autobahn.xbr._frealm


Module Contents

Classes

Seeder

FederatedRealm

A federated realm is a WAMP application realm with a trust anchor rooted in Ethereum, and

class autobahn.xbr._frealm.Seeder(frealm: FederatedRealm, operator: Optional[str] = None, label: Optional[str] = None, country: Optional[str] = None, legal: Optional[str] = None, endpoint: Optional[str] = None, bandwidth_requested: Optional[int] = None, bandwidth_offered: Optional[int] = None)[source]

Bases: object

property frealm: FederatedRealm
Returns

property operator: Optional[str]

Operator address, e.g. "0xe59C7418403CF1D973485B36660728a5f4A8fF9c".

Returns

The Ethereum address of the endpoint operator.

property label: Optional[str]

Operator endpoint label.

Returns

A human readable label for the operator or specific operator endpoint.

property country: Optional[str]

Operator country (ISO 3166-1 alpha-2), e.g. "US".

Returns

ISO 3166-1 alpha-2 country code.

property legal: Optional[str]
Returns

property endpoint: Optional[str]

Public WAMP endpoint of seeder. Secure WebSocket URL resolving to a public IPv4 or IPv6 listening url accepting incoming WAMP-WebSocket connections, e.g. wss://service1.example.com/ws.

Returns

The endpoint URL.

property bandwidth_requested: Optional[int]
Returns

property bandwidth_offered: Optional[int]
Returns

__slots__ = ['_frealm', '_operator', '_label', '_country', '_legal', '_endpoint', '_bandwidth_requested',...
static _create_eip712_connect(chain_id: int, verifying_contract: bytes, channel_binding: str, channel_id: bytes, block_no: int, challenge: bytes, pubkey: bytes, realm: bytes, delegate: bytes, seeder: bytes, bandwidth: int)[source]
create_authextra(client_key: autobahn.wamp.interfaces.ICryptosignKey, delegate_key: autobahn.wamp.interfaces.IEthereumKey, bandwidth_requested: int, channel_id: Optional[bytes] = None, channel_binding: Optional[str] = None) twisted.internet.defer.Deferred[source]
Parameters
  • client_key

  • delegate_key

  • bandwidth_requested

  • channel_id

  • channel_binding

Returns

class autobahn.xbr._frealm.FederatedRealm(name_or_address: str, gateway_config: Optional[Dict[str, Any]] = None)[source]

Bases: object

A federated realm is a WAMP application realm with a trust anchor rooted in Ethereum, and which can be shared between multiple parties.

A federated realm is globally identified on an Ethereum chain (e.g. on Mainnet or Rinkeby) by an Ethereum address associated to a federated realm owner by an on-chain record stored in the WAMP Network contract. The federated realm address thus only needs to exist as an identifier of the federated realm-owner record.

property status: str
property name_or_address: str
property gateway_config: Optional[Dict[str, Any]]
property name_category: Optional[str]
property address
property seeders: List[Seeder]
__slots__ = ['_name_or_address', '_gateway_config', '_status', '_name_category', '_w3', '_ens', '_address',...
CONTRACT_ADDRESS
CONTRACT_ABI :str =
root_ca() autobahn.xbr.EIP712AuthorityCertificate[source]
initialize()[source]
Returns

_initialize_background()[source]