Hierarchy (view full)

Constructors

Properties

cryptoOptions: Partial<NodeCryptoOptions>
id: string
identityKeyPair: CryptoKeyPair
keyStores: KeyStoreSet

Methods

  • Type Parameters

    • S extends Signer<S>

    Parameters

    • peerId: string
    • signerClass: (new (certificate, privateKey) => S)
        • new (certificate, privateKey): S
        • Parameters

          Returns S

    Returns Promise<null | S>

  • Type Parameters

    • V extends Verifier<V>

    Parameters

    • peerId: string
    • verifierClass: (new (trustedCertificates) => V)
        • new (trustedCertificates): V
        • Parameters

          Returns V

    Returns Promise<V>

  • Produce a PrivateNodeRegistrationRequest to register with a Internet gateway.

    Parameters

    • authorizationSerialized: ArrayBuffer

    Returns Promise<ArrayBuffer>

  • Create channel with Internet gateway using registration details.

    Parameters

    Returns Promise<void>

    Throws

    NodeError if the internetGatewayIdentityCertificate didn't issue deliveryAuthorization

  • Validate the message and report whether it's correctly bound for this node.

    Parameters

    • message: RAMFMessage<GatewayPayload>

      The message to validate

    • Optional trustedCertificates: readonly Certificate[]

      If authorisation should be verified

    Returns Promise<void>

    Throws

    If the message is invalid

Generated using TypeDoc