Module ockam_identity::models
source · Expand description
On-the-wire data types
Structs
- Set a keys&values that an Authority (issuer) attests about the Subject
- Individual Identity change which implies replacing the old key
- Data inside a
Change
- Unique identifier for a
super::Change
Computed as SHA256 of the correspondingsuper::ChangeData
CBOR binary - Identity Change History
- Credential
Credential
and the correspondingPurposeKeyAttestation
that was used to issue thatCredential
and will be used to verify it- Data inside a
Credential
- Number that determines which keys&values to expect in the
Attributes
- Unique identifier for an
super::super::identity::Identity
Equals to theChangeHash
of the firstsuper::Change
in thesuper::ChangeHistory
Computed as SHA256 of the firstsuper::ChangeData
CBOR binary - Self-signed Attestation of an
super::super::identity::Identity
associating a [super::super::purpose_key::PurposeKey
] with itself - Data inside a
PurposeKeyAttestation
- Timestamp in seconds (UTC)
- Binary and a version
Enums
Change
signature- Signature over
CredentialData
using corresponding Credentialssuper::PurposeKeyAttestation
- Key dedicated to signing
super::Credential
s Change
’s public key- Signature over data field using a key from
super::super::identity::Identity
PurposeKeyAttestation
’s public key
Constants
- ChangeHash length
- Identifier length