Midnight.js API Reference v1.0.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / Witness
Type Alias: Witness()<PS>
Witness<
PS
> = (context
, ...rest
) => [PS
,any
]
A type representing a witness in a contract.
Type Parameters
PS
PS
The private state modified by the witness.
Parameters
context
WitnessContext
<any
, PS
>
rest
...any
[]
Returns
[PS
, any
]