ma-did 0.4.0

Rust implementation of the 間 (did:ma) DID method for secure identities and messaging
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::sync::OnceLock;

pub const NAME: &str = "ma";
pub const PROPER_NAME: &str = "";
pub const VERSION: &str = "0.0.1";

pub fn rendezvous() -> String {
    format!("/{NAME}/{VERSION}")
}

static BLAKE3_CONTENT_LABEL: OnceLock<String> = OnceLock::new();

pub fn blake3_content_label() -> &'static str {
    BLAKE3_CONTENT_LABEL.get_or_init(rendezvous).as_str()
}

pub const BLAKE3_HEADERS_LABEL: &str = NAME;
pub const BLAKE3_SUM_SIZE: usize = 32;