Skip to main content

deserialize_proof

Function deserialize_proof 

Source
pub fn deserialize_proof(
    bytes: &[u8],
) -> Result<(ProofOfPayment, Vec<TxHash>), String>
Expand description

Deserialize proof bytes from the PaymentProof format (single-node).

Expects the first byte to be PROOF_TAG_SINGLE_NODE. Returns (ProofOfPayment, Vec<TxHash>).

ยงErrors

Returns an error if the tag is missing or the bytes cannot be deserialized.