Module Contents¶
Classes¶
A federated realm is a WAMP application realm with a trust anchor rooted in Ethereum, and |
- class autobahn.xbr._frealm.Seeder(frealm: FederatedRealm, operator: str | None = None, label: str | None = None, country: str | None = None, legal: str | None = None, endpoint: str | None = None, bandwidth_requested: int | None = None, bandwidth_offered: int | None = None)[source]¶
Bases:
object
- property frealm: FederatedRealm¶
- Returns:
- property operator: str | None¶
Operator address, e.g.
"0xe59C7418403CF1D973485B36660728a5f4A8fF9c"
.- Returns:
The Ethereum address of the endpoint operator.
- property label: str | None¶
Operator endpoint label.
- Returns:
A human readable label for the operator or specific operator endpoint.
- property country: str | None¶
Operator country (ISO 3166-1 alpha-2), e.g.
"US"
.- Returns:
ISO 3166-1 alpha-2 country code.
- property endpoint: str | None¶
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.
- __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: bytes | None = None, channel_binding: str | None = 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: Dict[str, Any] | None = 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 address¶
- __slots__ = ('_name_or_address', '_gateway_config', '_status', '_name_category', '_w3', '_ens', '_address',...¶
- CONTRACT_ADDRESS¶