Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "claim/message"

Index

Type aliases

MessageFactory

MessageFactory: function

Factory method type used for creating concrete instances of Message.

Type declaration

Functions

extractKeyId

  • extractKeyId(publicKeyId: string): number
  • Extracts key id from public key Id.

    Parameters

    • publicKeyId: string

      The ID of a signature public key

    Returns number

extractOntId

  • extractOntId(publicKeyId: string): string
  • Extracts ONT ID from public key Id.

    Parameters

    • publicKeyId: string

      The ID of a signature public key

    Returns string

retrievePublicKey

  • retrievePublicKey(publicKeyId: string, url: string): Promise<PublicKey>
  • Gets the public key associated with ONT ID from blockchain.

    Parameters

    • publicKeyId: string

      The ID of a signature public key

    • url: string

      Restful endpoint of Ontology node

    Returns Promise<PublicKey>

retrievePublicKeyState

  • retrievePublicKeyState(publicKeyId: string, url: string): Promise<PublicKeyStatus>
  • Gets the state of public key associated with ONT ID from blockchain.

    Parameters

    • publicKeyId: string

      The ID of a signature public key

    • url: string

      Restful endpoint of Ontology node

    Returns Promise<PublicKeyStatus>

Generated using TypeDoc