Skip to main content

is_default_optional_algorithm

Function is_default_optional_algorithm 

Source
pub fn is_default_optional_algorithm(alg: &Option<SigningAlgorithm>) -> bool
Expand description

Returns true when the optional algorithm is either absent or equal to the default (Ed25519). Used by #[serde(skip_serializing_if)] on envelope fields so that legacy Ed25519 artifacts remain byte-identical on the wire.