asimov-id 25.3.2

ASIMOV Software Development Kit (SDK) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This is free and unencumbered software released into the public domain.

use thiserror::Error;

#[derive(Clone, Debug, Eq, Error, PartialEq)]
pub enum KeyError {
    #[error("empty input")]
    EmptyInput,

    #[error("invalid length")]
    InvalidLength,

    #[error("invalid prefix")]
    InvalidPrefix,

    #[error("invalid encoding: {0}")]
    InvalidEncoding(bs58::decode::Error),
}