dataintegrity

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(src interface{}, algo string) (*string, error)

Types

type Proof

type Proof struct {
	Type               string    `json:"type"`
	ProofPurpose       string    `json:"proofPurpose"`
	VerificationMethod string    `json:"verificationMethod"`
	Created            time.Time `json:"created"`
	Domain             string    `json:"domain,omitempty"`
	ProofValue         string    `json:"proofValue"`
}

https://w3c-ccg.github.io/data-integrity-spec/#proofs

type ProofBuilder

type ProofBuilder struct {
	// contains filtered or unexported fields
}

ProofBuilder https://w3c.github.io/vc-data-integrity/#add-proof

func NewProofBuilder

func NewProofBuilder(pk *cryptosuite.PrivateKey, purpose string) *ProofBuilder

func (*ProofBuilder) Source

func (p *ProofBuilder) Source(src interface{}) *ProofBuilder

type ProofPurpose

type ProofPurpose string

https://w3c.github.io/vc-data-integrity/#proof-purposes

var (
	ProofPurposeAuthentication       ProofPurpose = "authentication"
	ProofPurposeAssertionMethod      ProofPurpose = "assertionMethod"
	ProofPurposeKeyAgreement         ProofPurpose = "keyAgreement"
	ProofPurposeCapabilityDelegation ProofPurpose = "capabilityDelegation"
	ProofPurposeCapabilityInvocation ProofPurpose = "capabilityInvocation"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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