Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Check

Hierarchy

  • Check

Constructors

constructor

  • Parameters

    Returns Check

Properties

Protected _chain

_chain: Chain

Protected _signature

_signature: Signature

chainId

chainId: Buffer

coin

coin: Buffer

dueBlock

dueBlock: Buffer

gasCoin

gasCoin: Buffer

lock

lock: Buffer

nonce

nonce: Buffer

r

r: Buffer

raw

raw: Buffer[]

s

s: Buffer

v

v: Buffer

value

value: Buffer

Methods

getRaw

  • getRaw(): Buffer[]
  • Returns Buffer[]

getSignature

  • Returns Signature

hash

  • hash(withLock?: boolean): Buffer
  • Computes a sha3-256 hash of the serialized check

    Parameters

    • withLock: boolean = false

      Include the lock to hash or not

    Returns Buffer

isSigned

  • isSigned(): boolean
  • Returns boolean

isValidSignature

  • isValidSignature(): boolean
  • Determines if the signature is valid

    Returns boolean

serialize

  • serialize(): Buffer
  • Returns the rlp encoding of the transaction

    Returns Buffer

setLock

  • setLock(password: string): Check
  • Parameters

    • password: string

    Returns Check

sign

  • Parameters

    • keyPair: KeyPair
    • password: string = ...

    Returns Check

toJSON

  • toJSON(labels?: boolean): object | string[]
  • Returns the transaction in JSON format

    Parameters

    • labels: boolean = false

    Returns object | string[]

toString

  • toString(): string
  • Returns string

valid

  • valid(): boolean
  • Returns boolean

Static getProof

  • getProof(password: string, address: string): Buffer
  • Generate check redeem Proof for given password and redeemer account address

    Parameters

    • password: string

      string

    • address: string

      Address

    Returns Buffer

Static rlpSchema

Generated using TypeDoc