Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RawKey

An implementation of the Key interfaces that uses a raw private key.

Hierarchy

Index

Constructors

constructor

  • new RawKey(privateKey: Buffer): RawKey

Properties

privateKey

privateKey: Buffer

Raw private key, in bytes.

Optional publicKey

publicKey: Buffer

raw compressed bytes public key

Optional rawAddress

rawAddress: Buffer

Optional rawPubKey

rawPubKey: Buffer

Accessors

accAddress

accPubKey

valAddress

valPubKey

Methods

createSignature

ecdsaSign

  • ecdsaSign(payload: Buffer): { recid: number; signature: Uint8Array }
  • Parameters

    • payload: Buffer

    Returns { recid: number; signature: Uint8Array }

    • recid: number
    • signature: Uint8Array

sign

  • sign(payload: Buffer): Promise<Buffer>

signTx