Skip to main content

detect_proof_type

Function detect_proof_type 

Source
pub fn detect_proof_type(bytes: &[u8]) -> Option<ProofType>
Expand description

Detect the proof type from the first byte (version tag).

Returns None if the tag byte is unrecognized or the slice is empty.