10 releases
0.7.0-alpha.6 | Mar 3, 2023 |
---|---|
0.7.0-alpha.5 | Feb 15, 2023 |
0.7.0-alpha.4 | Nov 24, 2022 |
0.7.0-alpha.3 | Oct 28, 2022 |
0.1.0 | Aug 12, 2020 |
#2 in #tangle
454 downloads per month
Used in 10 crates
170KB
4K
SLoC
IOTA Identity - Core
The core types and utilities for IOTA identity.
The types and traits exposed by this crate are mainly intended to be used by the other crates constituting the IOTA Identity Framework.
Common Data Types
This crate exposes some fundamental data types used across the IOTA Identity Framework:
Context
: represents JSON-LD contexts.Fragment
: a DID URL fragment.Timestamp
: an RFC3339 compliant timestamp.Url
: a URL string.- Collections:
OneOrMany
,OneOrSet
, andOrderedSet
.
The above types are located in the common
module.
Cryptographic Primitives
Cryptographic primitives and traits necessary for DID related operations such as signing and verifying data can be found in the crypto
module.
While the IOTA Identity Framework strives to keep cryptographic operations as internal implementation details, certain lower-level interfaces require constructs from this module, often through the cryptographic KeyPair
type.
Convenient JSON Serialization
The ToJson
and FromJson
traits from this crate provide convenience functions to convert most types from the IOTA Identity Framework to and from a few common JSON representations.
Base Encoding Utilities
BaseEncoding
provides methods to encode and decode binary text with respect to several bases.
Dependencies
~7MB
~170K SLoC