Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Utilities for recognising and converting Secure Scuttlebutt (SSB) URIs

Notifications You must be signed in to change notification settings

ssb-ngi-pointer/ssb-uri-rs-archived

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This repo was moved to https://github.com/ssbc/ssb-uri-rs. This archival will remain in this GitHub org ssb-ngi-pointer to demonstrate the outcome of the work done by the SSB NGI Pointer team during 2020 and 2021. The SSB NGI Pointer team is no longer active because we completed our grant project.

ssb-uri-rs

Utilities for recognising and converting Secure Scuttlebutt (SSB) URIs according to the SSB URI Specification.

ssb-uri-rs crate

Example

use ssb_uri_rs;

let example_uri = "ssb:message/sha256/g3hPVPDEO1Aj_uPl0-J2NlhFB2bbFLIHlty-YuqFZ3w=";

assert!(ssb_uri_rs::is_classic_msg_uri(example_uri)?);

let example_sigil = ssb_uri_rs::msg_uri_to_sigil(example_uri)?;

assert_eq!(example_sigil, "%g3hPVPDEO1Aj/uPl0+J2NlhFB2bbFLIHlty+YuqFZ3w=.sha256");

Documentation

Use cargo doc to generate and serve the Rust documentation for this library:

git clone [email protected]:ssb-ngi-pointer/ssb-uri-rs.git
cd ssb-uri-rs
cargo doc --no-deps --open 

License

LGPL-3.0.

About

Utilities for recognising and converting Secure Scuttlebutt (SSB) URIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages