Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DataIntegrityProof is the type property on proofs created using data // integrity cryptographic suites. DataIntegrityProof = "DataIntegrityProof" )
View Source
const DateTimeFormat = time.RFC3339
DateTimeFormat is the date-time format used by the data integrity specification, which matches RFC3339. https://www.w3.org/TR/xmlschema11-2/#dateTime
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyManager ¶
type KeyManager interface {
// Get key handle for the given keyID
// Returns:
// - handle instance (to private key)
// - error if failure
Get(keyID string) (interface{}, error)
}
KeyManager manages keys and their storage for the aries framework.
type Proof ¶
type Proof struct {
ID string `json:"id,omitempty"`
Type string `json:"type"`
CryptoSuite string `json:"cryptosuite,omitempty"`
ProofPurpose string `json:"proofPurpose"`
VerificationMethod string `json:"verificationMethod"`
Created string `json:"created,omitempty"`
Expires string `json:"expires,omitempty"`
Domain string `json:"domain,omitempty"`
Challenge string `json:"challenge,omitempty"`
ProofValue string `json:"proofValue"`
PreviousProof string `json:"previousProof,omitempty"`
}
Proof implements the data integrity proof model: https://www.w3.org/TR/vc-data-integrity/#proofs
type ProofOptions ¶
type ProofOptions struct {
Purpose string
VerificationMethodID string
VerificationMethod *VerificationMethod
ProofType string
SuiteType string
Domain string
Challenge string
Created time.Time
Expires time.Time // During verification process the value must be taken from Proof.Expires.
CustomFields map[string]interface{}
}
ProofOptions provides options for signing or verifying a data integrity proof.
type VerificationMethod ¶
type VerificationMethod = did.VerificationMethod
VerificationMethod implements the data integrity verification method model: https://www.w3.org/TR/vc-data-integrity/#verification-methods
Click to show internal directories.
Click to hide internal directories.