models

package
v0.0.0-...-64dd8ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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"`
	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
	MaxAge               int64
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL