Skip to main content

pin_matches

Function pin_matches 

Source
pub fn pin_matches(text: &str, wanted: &PinSet) -> Option<bool>
Expand description

Whether text is a pin, and if so whether it is one of wanted.

A pin is sha256:<64 hex> (a fingerprint) or spki-sha256:<64 hex> (a public key), in any case. None is text that is not a pin.