Crates.io | dns-stamp-parser |
lib.rs | dns-stamp-parser |
version | 3.0.0 |
source | src |
created_at | 2019-10-29 18:58:00.756156 |
updated_at | 2021-02-21 15:37:06.741092 |
description | Libary to encode and decode DNS stamps |
homepage | |
repository | https://github.com/LinkTed/dns-stamp-parser |
max_upload_size | |
id | 176717 |
size | 158,204 |
A library to encode and decode DNS stamp.
Add this to your Cargo.toml
:
[dependencies]
dns-stamp-parser = "~3.0.0"
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());
}