Crate aiid[][src]

Expand description

AIngle AI-ID base32 encoding utility.

Example

extern crate aiid;

fn main() {
    let enc = aiid::aiidEncoding::with_kind("ais0").unwrap();
    let key = enc.encode(&[0; 32]).unwrap();
    assert_eq!("aiSciacbd", key);
    let buffer = enc.decode(&key).unwrap();
    assert_eq!([0; 32].to_vec(), buffer);
}

Structs

an instance that can encode / decode a particular aiid encoding configuration

represents an encoding configuration for aiid rendering and parsing

a simple struct(String) for reporting aiid errors

Type Definitions

aiid Result type