#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

new 0.7.2 Apr 11, 2024
0.1.0 Mar 5, 2024

#1 in #account-id

Download history 84/week @ 2024-02-28 156/week @ 2024-03-06 33/week @ 2024-03-13 114/week @ 2024-03-20 76/week @ 2024-03-27 194/week @ 2024-04-03

476 downloads per month
Used in 22 crates (6 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–580KB
~12K SLoC