Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Transaction

Index

Constructors

constructor

Methods

Static signApplicationLinkData

  • signApplicationLinkData(username: string, pubKey: Buffer, privKey: Buffer): { address: string; pub_key: string; signature: string; value: string }
  • Sign the VerificationData for an ApplicationLink request

    Parameters

    • username: string

      username

    • pubKey: Buffer

      public key Buffer

    • privKey: Buffer

      private key Buffer

    Returns { address: string; pub_key: string; signature: string; value: string }

    VerificationData object

    • address: string
    • pub_key: string
    • signature: string
    • value: string

Static signBytes

  • signBytes(hash: Buffer, privateKey: Buffer): Buffer
  • Generic sign function

    Parameters

    • hash: Buffer

      sha256 hash bytes to sign

    • privateKey: Buffer

      private key

    Returns Buffer

    signed message as Buffer

Static signTxBody

  • signTxBody(txBody: TxBody, authInfo: AuthInfo, accountNumber: number, privKey: Buffer): Uint8Array
  • Sign a TxBody

    Parameters

    • txBody: TxBody

      TxBody to sign

    • authInfo: AuthInfo

      signer AuthInfo

    • accountNumber: number

      signer account number

    • privKey: Buffer

      signer private key Buffer

    Returns Uint8Array

    sign bytes

Generated using TypeDoc