Enum yggdrasil_keys::FromHexError [−][src]
pub enum FromHexError { WrongKeyLength, Hex(FromHexError), ConflictingPubKeys, InvalidSigKey(SignatureError), }
Expand description
Describe error for trying to decode yggdrasil keys from hex strings.
Variants
The sec_hex
parameters can be either 64 hex encoded bytes,
if they are a keypair,
or 32 hex encoded bytes if they are just the private key.
The pub_hex
parameters have to be 32 hex encoded bytes.
Hex(FromHexError)
The strings have to be valid hex.
If pub_hex
is Some
and sec_hex
contains a keypair,
both supplied public keys have to be the same.
InvalidSigKey(SignatureError)
The signing keys are checked by the ed25519 implementation after parsing. If something doesn’t add up, this error will be returned.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for FromHexError
impl Send for FromHexError
impl Sync for FromHexError
impl Unpin for FromHexError
impl !UnwindSafe for FromHexError