Documentation ¶
Index ¶
Constants ¶
View Source
const ( PermanentResidentCard = "PermanentResidentCard" BankCard = "BankCard" )
View Source
const NormalizationAlgo = "URDNA2015"
View Source
const NormalizationFormat = "application/n-quads"
View Source
const ProofType = "Ed25519Signature2020"
follow the algorithm here. (https://w3c-ccg.github.io/data-integrity-spec/#proof-algorithm)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DidDocument ¶ added in v0.1.7
type DidDocument struct { Context []string `json:"@context"` Id string `json:"id"` Authentication []KeyMaterial `json:"authentication"` Service []Service `json:"service,omitempty"` CapabilityInvocation []KeyMaterial `json:"capabilityInvocation"` CapabilityDelegation []KeyMaterial `json:"capabilityDelegation"` AssertionMethod []KeyMaterial `json:"assertionMethod"` KeyAgreement []KeyMaterial `json:"keyAgreement,omitempty"` }
type KeyMaterial ¶ added in v0.1.7
type SerializedDocument ¶
type SerializedDocument = interface{}
Click to show internal directories.
Click to hide internal directories.