xbr._frealm¶
Classes¶
A federated realm is a WAMP application realm with a trust anchor rooted in Ethereum, and |
|
Module Contents¶
- class FederatedRealm(name_or_address: str, gateway_config: Dict[str, Any] | None = None)[source]¶
Bases:
objectA 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.
- class 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- __slots__ = ('_frealm', '_operator', '_label', '_country', '_legal', '_endpoint', '_bandwidth_requested',...[source]¶
- 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]¶
- _frealm: FederatedRealm[source]¶
- property country: str | None[source]¶
Operator country (ISO 3166-1 alpha-2), e.g.
"US".- Returns:
ISO 3166-1 alpha-2 country code.
- 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:
- property endpoint: str | None[source]¶
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 frealm: FederatedRealm[source]¶
return: