Constructors

Properties

client: KeyManagementServiceClient
compressedPublicKey: string
keyPath: string
publicKey: string

Methods

  • Parameters

    • derSignature: string

      The signature in DER format as provided by the Google API

    • message: string | Buffer

      The original message to be signed

    • publicKey: string

      The public key string converted from the PEM key provided by Google

    Returns string

    Description

    Converts a DER formatted signature to an EOS compatible one

  • Returns Promise<string>

  • Parameters

    • format: "K1" | "legacy" = 'K1'

    Returns Promise<string>

  • Private

    Returns the public key using google's APIs

    Returns Promise<IPublicKey>

    Memberof

    SignerKMS

  • Private

    Uses the provided credentials and signs a given message or buffer and returns the signature string.

    Parameters

    • message: string | Buffer

    Returns Promise<string>

    Memberof

    SignerKMS

  • Private

    Returns a key from the stored keyring.

    Lowers the total calls to the google-auth APIs

    Returns Promise<boolean>

    Memberof

    SignerKMS

  • Parameters

    • message: string | Buffer

      The original message to sign in DER format

    Returns Promise<string>

    • The signed message in EOS format

    Description

    Signs a message and returns the signed message as a string with the EOS format (SIG_K1_base58message)

  • Verify a signed message given the key stored in the key ring

    Parameters

    • signedMessage: string
    • originalMessage: string

    Returns Promise<boolean>

    Memberof

    SignerKMS

Generated using TypeDoc