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 absent or is the default (Ed25519). Used by #[serde(skip_serializing_if)] on envelope fields to omit the algorithm field for standard Ed25519 artifacts.