Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InMemorySigner

description

A local implementation of the signer. Will represent a Tezos account and be able to produce signature in its behalf

warn

If running in production and dealing with tokens that have real value, it is strongly recommended to use a HSM backed signer so that private key material is not stored in memory or on disk

Hierarchy

  • InMemorySigner

Index

Constructors

constructor

  • new InMemorySigner(key: string, passphrase?: string): InMemorySigner

Methods

publicKey

  • publicKey(): Promise<string>

publicKeyHash

  • publicKeyHash(): Promise<string>

secretKey

  • secretKey(): Promise<string>

sign

  • sign(bytes: string, watermark?: Uint8Array): Promise<{ bytes: string; prefixSig: string; sbytes: string; sig: string }>
  • Parameters

    • bytes: string

      Bytes to sign

    • Optional watermark: Uint8Array

      Watermark to append to the bytes

    Returns Promise<{ bytes: string; prefixSig: string; sbytes: string; sig: string }>

Static fromFundraiser

  • fromFundraiser(email: string, password: string, mnemonic: string): InMemorySigner

Static fromMnemonic

Static fromSecretKey

  • fromSecretKey(key: string, passphrase?: string): Promise<InMemorySigner>

Generated using TypeDoc