Skip to main content

deserialize_single_node_proof

Function deserialize_single_node_proof 

Source
pub fn deserialize_single_node_proof(
    bytes: &[u8],
) -> Result<PaymentProof, String>
Expand description

Deserialize the full single-node PaymentProof, including the ADR-0004 commitment_sidecars. Use this where the sidecars are needed (the node-side cross-check); deserialize_proof remains for callers that only want the quotes + tx hashes.

ยงErrors

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