pub fn validate_header<E>(header: &Header<E>) -> Result<(), OperationError>where
E: Extensions,Expand description
Validate an operation header.
This method validates that the following conditions are true:
- Signature can be verified against the author public key and unsigned header bytes
- Header version is supported (currently only version 1 is supported)
- If
payload_hashis set thepayload_sizeis >0otherwise it is zero - If
backlinkis set thenseq_numis >0otherwise it is zero