Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Transaction

A Plasma transaction.

Hierarchy

  • Transaction

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • body: TransactionBody
    • signature0: Buffer | null
    • signature1: Buffer | null

    Returns Transaction

Properties

body

The body of the transaction.

signature0

signature0: Buffer | null = null

The unlock signature authorizing body.input0.

signature1

signature1: Buffer | null = null

The unlock signature authorizing body.input1.

Methods

sign

  • sign(privateKey: Buffer): void
  • Generates the authorization signatures for both inputs.

    Parameters

    • privateKey: Buffer

    Returns void

toArray

  • toArray(): (null | Buffer)[][]
  • Serializes the transaction to an array that can be encoded as RLP.

    Returns (null | Buffer)[][]

toRLP

  • toRLP(): Buffer
  • Serializes the transaction to an RLP-encoded Buffer.

    Returns Buffer

Generated using TypeDoc