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
66
67
68
69
70
71
72
73
pub extern crate aead;

pub extern crate hex;

#[cfg(feature = "serde")]
#[macro_use]
pub extern crate serde;

#[cfg_attr(all(feature = "serde", feature = "wql"), macro_use)]
#[cfg(feature = "serde")]
pub extern crate serde_json;

#[macro_use]
pub extern crate zeroize;

/// Common macros
#[macro_use]
mod macros;

mod error;
pub use error::{ConversionError, EncryptionError, UnexpectedError, ValidationError};

/// Trait for qualifiable identifier types, having an optional prefix and method
#[macro_use]
pub mod qualifiable;
pub use qualifiable::Qualifiable;

/// Trait definition for validatable data types
#[macro_use]
mod validation;
pub use validation::Validatable;

/// base58 encoding and decoding
pub mod base58;

/// Indy DID representation and derivation
pub mod did;

/// Indy signing keys and verification keys
pub mod keys;

/// Base64 encoding and decoding
#[cfg(feature = "base64")]
pub mod base64;

/// Hash algorithms
#[cfg(feature = "hash")]
pub mod hash;

/// Message packing and unpacking
#[cfg(feature = "pack")]
pub mod pack;

/// Generation of normalized ledger transaction for signing
#[cfg(feature = "txn_signature")]
pub mod txn_signature;

/// Wallet query language
#[cfg(feature = "wql")]
pub mod wql;

/// Re-export ursa to avoid version conflicts
#[cfg(any(
    feature = "cl",
    feature = "cl_native",
    feature = "ed25519",
    feature = "hash",
    feature = "pack",
    feature = "wallet_key"
))]
pub extern crate ursa;

pub extern crate once_cell;