Skip to content

LinkTed/dns-stamp-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dns-stamp-parser

A library to encode and decode DNS stamp. Build status Dependency status Code coverage Latest version License

Usage

Add this to your Cargo.toml:

[dependencies]
dns-stamp-parser = "~3.0.0"

Example

use dns_stamp_parser::DnsStamp;

fn example() {
    let stamp = "sdns://AgcAAAAAAAAADTIxNy4xNjkuMjAuMjIgPhoaD2xT8-l6SS1XCEtbmAcFnuBXqxUFh2_YP9o9uDgNZG5zLmFhLm5ldC51awovZG5zLXF1ZXJ5";
    let dns_stamp = DnsStamp::decode(stamp).unwrap();
    println!("{}", dns_stamp.encode().unwrap());
}

About

Rust libary to encode and decode DNS stamps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages