Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 487 Bytes

File metadata and controls

19 lines (15 loc) · 487 Bytes

did

Implements a parser for decentralized identifiers. Uses pest for now to define the grammar of the generic scheme defined in the specification. This will be changed in the future to something more performant like nom.

Usage

use did_rs::DID;

fn main() {
    let d = DID::parse("did:example:").expect("failed");
    println!("{}", d);
}