Skip to main content

@midnight-ntwrk/midnight-js-contracts v0.2.5 • API


Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-contracts / Witness

Type alias: Witness<PS>

Witness<PS>: (context, ...rest) => [PS, any]

A type representing a witness in a contract.

Type parameters

PS

The private state modified by the witness.

Parameters

context: WitnessContext<any, PS>

• ...rest: any[]

Returns

[PS, any]