pub fn decode(bytes: &[u8]) -> Option<Vec<u8>>Expand description
Decode a chain secret file. Tries hex (64 ASCII chars) and base64 (standard alphabet) in turn; falls back to raw bytes.
§Errors
Returns None for an empty input — empty is never a valid
HMAC key. Returns Some(Vec<u8>) for any non-empty input,
decoded as best as possible.