Skip to content

prepare_r0_succinct_witness (Func)

Convert a borsh-encoded SuccinctReceipt<ReceiptClaim> to its four on-stack witness byte vectors (hex), without a builder.

PARAMETER DESCRIPTION
receipt

A borsh-encoded SuccinctReceipt<ReceiptClaim>, as hex, bytes, or list of ints.

TYPE: Binary

RETURNS DESCRIPTION
R0SuccinctWitnessParts

The claim, control index, control digests, and seal.

TYPE: R0SuccinctWitnessParts

RAISES DESCRIPTION
ZkError

If the receipt cannot be decoded or the witness cannot be prepared.