Crate identity_core
source ·Expand description
§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.Timestamp
: an RFC3339 compliant timestamp.Url
: a URL string.- Collections:
OneOrMany
,OneOrSet
, andOrderedSet
.
The above types are located in the common
module.
§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.
Re-exports§
Modules§
- Definitions of common types (
Url
,Timestamp
, JSON types, etc). - Functionality for JSON conversion and Base de- and encoding.
- An implementation of
now_utc
which calls out to an externally defined function. - Errors that may occur in the identity core crate.
Macros§
- Construct a
serde_json::Value
from a JSON literal. - Register a function to be invoked by
identity_core
in order to get a Timestamp representing “now”.