Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proof ¶
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) Build ¶
func (p *ProofBuilder) Build() (*Proof, error)
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" )
Click to show internal directories.
Click to hide internal directories.