CallResultPrivate
For the complete documentation index, see llms.txt
Midnight.js API Reference v4.1.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / CallResultPrivate
Type Alias: CallResultPrivate<C, PCK>
CallResultPrivate<
C,PCK> =object
The private (sensitive) portions of the call result.
Remarks
Privacy-sensitive type. Every field on this type carries data the zero-knowledge proofs were designed to keep confidential: the ZK-aligned circuit input/output, the private transcript outputs from witness calls, the JS-typed circuit result, the next private state, and the next Zswap local state.
Application code must not log, serialize, or transmit instances of this
type. If a non-sensitive subset of the call result is needed (for example,
the JS result value alone), extract that field explicitly rather than
passing the whole object across a trust boundary.
Type Parameters
C
C extends Contract.Any
PCK
PCK extends Contract.ProvableCircuitId<C>
Properties
input
readonlyinput:AlignedValue
ZK representation of the circuit arguments.
nextPrivateState
readonlynextPrivateState:Contract.PrivateState<C>
The private state resulting from executing the circuit.
nextZswapLocalState
readonlynextZswapLocalState:ZswapLocalState
The Zswap local state resulting from executing the circuit.
output
readonlyoutput:AlignedValue
ZK representation of the circuit result.
privateTranscriptOutputs
readonlyprivateTranscriptOutputs:AlignedValue[]
ZK representation of the circuit witness call results.
result
readonlyresult:Contract.CircuitReturnType<C,PCK>
The JS representation of the value returned by the circuit.