1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
pub type Result<T, E = Error> = ::core::result::Result<T, E>;
#[derive(Debug, thiserror::Error, strum::IntoStaticStr)]
pub enum Error {
#[error("{0}")]
CoreError(#[from] ::identity_core::Error),
#[error("{0}")]
InvalidDID(#[from] crate::did::DIDError),
#[error("Verification Method Not Found")]
MethodNotFound,
#[error("invalid document property: {0}")]
InvalidDocument(&'static str, #[source] Option<::identity_core::Error>),
#[error("invalid service property: {0}")]
InvalidService(&'static str),
#[error("invalid verification method property: {0}")]
InvalidMethod(&'static str),
#[error("invalid or empty `id` fragment")]
MissingIdFragment,
#[error("Invalid Verification Method Type")]
InvalidMethodType,
#[error("verification method already exists")]
MethodAlreadyExists,
#[error("unable to modify relationships on embedded methods, use insert or remove instead")]
InvalidMethodEmbedded,
#[error("Unknown Method Scope")]
UnknownMethodScope,
#[error("Unknown Method Type")]
UnknownMethodType,
#[error("Invalid Key Data")]
InvalidKeyData,
#[error("Invalid Base58 Key Data")]
InvalidKeyDataBase58,
#[error("Invalid Multibase Key Data")]
InvalidKeyDataMultibase,
#[error("signature verification failed: {0}")]
InvalidSignature(&'static str),
#[error("unable to decode base64 string: `{0}`")]
Base64DecodingError(String, #[source] identity_core::error::Error),
#[error("revocation bitmap could not be deserialized or decompressed")]
BitmapDecodingError(#[source] std::io::Error),
#[error("revocation bitmap could not be serialized or compressed")]
BitmapEncodingError(#[source] std::io::Error),
}