Skip to content

prepare_r0_groth16_proof (Func)

Convert a borsh-encoded Groth16Receipt<ReceiptClaim> to the compressed ark-groth16 proof bytes (hex), without a builder.

PARAMETER DESCRIPTION
receipt

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

TYPE: Binary

RETURNS DESCRIPTION
str

The compressed proof bytes, hex-encoded.

TYPE: str

RAISES DESCRIPTION
ZkError

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