pub fn encode(seal: impl AsRef<[u8]>) -> Result<Vec<u8>>Expand description
Encoding of a Groth16 seal by prefixing it with the verifier selector.
The verifier selector is determined from the first 4 bytes of the hash of the verifier parameters including the Groth16 verification key and the control IDs that commit to the RISC Zero circuits.
NOTE: Selector value of the current zkVM version is used. If you need to use a selector from a different version of the zkVM, use the encode_seal method instead.