Skip to main content

@midnight/zswap v0.3.11Readme | API


@midnight/zswap v0.3.11 / Output

Class: Output

A shielded transaction output

Constructors

new Output()

new Output(): Output

Returns

Output

Properties

commitment

readonly commitment: string;

The commitment of the output


contractAddress

readonly contractAddress: undefined | string;

The contract address receiving the output, if the recipient is a contract

Methods

serialize()

serialize(): Uint8Array

Returns

Uint8Array


toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string


deserialize()

static deserialize(raw): Output

Parameters

raw: Uint8Array

Returns

Output