Skip to content

Go package for primitive identifier types used across the MOI Protocol

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

sarvalabs/go-moi-identifiers

Repository files navigation

go version license go docs latest tag

ci status issue count pulls count

MOI Identifiers

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

Install the latest release using the following command

go get -u github.com/sarvalabs/go-moi-identifiers

Contributing

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.

License

© 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.

About

Go package for primitive identifier types used across the MOI Protocol

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks