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 / CallResultPrivate

Type alias: CallResultPrivate<PS, C, ICK>

CallResultPrivate<PS, C, ICK>: Object

The private (sensitive) portions of the call result.

Type parameters

PS

C extends Contract<PS>

ICK extends ImpureCircuitId<C>

Type declaration

input

readonly input: AlignedValue

ZK representation of the circuit arguments.

nextPrivateState

readonly nextPrivateState: PS

The private state resulting from executing the circuit.

nextZswapLocalState

readonly nextZswapLocalState: ZswapLocalState

The Zswap local state resulting from executing the circuit.

output

readonly output: AlignedValue

ZK representation of the circuit result.

privateTranscriptOutputs

readonly privateTranscriptOutputs: AlignedValue[]

ZK representation of the circuit witness call results.

result

readonly result: CircuitReturnType<C, ICK>

The JS representation of the input to the circuit.