go-moi-identifiers is a package that contains implementations for all account identifiers
used in the MOI Protocol such as the AssetID
, LogicID
and ParticipantID
identifiers.
The full specification for MOI Identifier can be found at SPECIFICATION.md.
The root type Identifier
is simple 32-byte array that can be used to represent any of the identifiers.
Each of the specific identifiers can be converted to and from the Identifier
type with validations.
The package contains the functionality to access flags, metadata, variant ID and account ID from the identifier. It also contains validation for multiple versions of each identifier kind and generator functions for each kind.
The package is designed to be used in the MOI Protocol and can be used in any other project that requires the use of MOI identifiers. It has 100% test coverage and is well documented. Refer to the contributing guidelines below to contribute to the project or report issues.
Install the latest release using the following command
go get -u github.com/sarvalabs/go-moi-identifiers
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 below, without any additional terms or conditions.
© 2024 Sarva Labs Inc. & MOI Protocol Developers.
This project is licensed under either of
at your option.
The SPDX license identifier for this project is MIT OR Apache-2.0
.