#account-id #unique-identifier #validation #valid #unc #utility #syntactically

unc-account-id

This crate contains the Account ID primitive and its validation facilities

2 unstable releases

0.7.2 Apr 11, 2024
0.1.0 Mar 5, 2024

#2 in #account-id

Download history 69/week @ 2024-03-24 80/week @ 2024-03-31 366/week @ 2024-04-07 83/week @ 2024-04-14 117/week @ 2024-04-21 17/week @ 2024-04-28 136/week @ 2024-05-05 248/week @ 2024-05-12 372/week @ 2024-05-19 286/week @ 2024-05-26 189/week @ 2024-06-02 112/week @ 2024-06-09 97/week @ 2024-06-16 57/week @ 2024-06-23 68/week @ 2024-06-30 28/week @ 2024-07-07

253 downloads per month
Used in 25 crates (7 directly)

GPL-2.0-or-later

52KB
1K SLoC

unc-account-id

This crate provides a type for representing a syntactically valid, unique account identifier on the Utility network, according to the Utility Account ID rules.

crates.io Documentation

Usage

use unc_account_id::AccountId;

let alice: AccountId = "alice.unc".parse()?;

assert!("ƒelicia.unc".parse::<AccountId>().is_err()); // (ƒ is not f)

See the docs for more information.

Minimum Supported Rust Version (MSRV)

1.65

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–570KB
~12K SLoC