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:

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§

pub use self::error::Error;
pub use self::error::Result;

Modules§

common
Definitions of common types (Url, Timestamp, JSON types, etc).
convert
Functionality for JSON conversion and Base de- and encoding.
custom_time
An implementation of now_utc which calls out to an externally defined function.
error
Errors that may occur in the identity core crate.

Macros§

json
Construct a serde_json::Value from a JSON literal.
register_custom_now_utc
Register a function to be invoked by identity_core in order to get a Timestamp representing “now”.