Documentation ¶
Overview ¶
Copyright 2023 The Go SSI Framework Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2023 The Go SSI Framework Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2023 The Go SSI Framework Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2023 The Go SSI Framework Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
- func NewBuilder() *builder
- type BuilderItem
- type BuilderSlice
- type Context
- type Document
- func (d *Document) AlsoKnownAs() interface{}
- func (d *Document) AssertionMethod() interface{}
- func (d *Document) Authentication() interface{}
- func (d *Document) CapabilityDelegation() interface{}
- func (d *Document) CapabilityInvocation() interface{}
- func (d *Document) Context() interface{}
- func (d *Document) Controller() interface{}
- func (d *Document) Get(key string) interface{}
- func (d *Document) GetAssociatedVerificationMethod(purpose ProofPurpose) ([]VerificationMethod, error)
- func (d *Document) GetVerificationMethodById(keyId string) (VerificationMethod, error)
- func (d *Document) KeyAgreement() interface{}
- func (d *Document) MarshalJSON() ([]byte, error)
- func (d *Document) Metadata() DocumentMetadata
- func (d *Document) Services() interface{}
- func (d *Document) Set(key, value interface{}) error
- func (d *Document) Subject() interface{}
- func (d *Document) UnmarshalJSON(data []byte) error
- func (d *Document) VerificationMethod() interface{}
- type DocumentMetadata
- type MapItem
- type MapSlice
- type Proof
- type ProofPurpose
- type Service
- type VerificationMethod
- type VerificationRelation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder() *builder
Types ¶
type BuilderItem ¶
type BuilderItem struct {
Key, Value interface{}
}
BuilderItem representation of one map item.
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
didDocument holds the properties, the metadsata, and options for document resolution
func (*Document) AlsoKnownAs ¶
func (d *Document) AlsoKnownAs() interface{}
AlsoKnownAs gets the alsoKnownAs property of the document
func (*Document) AssertionMethod ¶
func (d *Document) AssertionMethod() interface{}
AssertionMethod gets the assertionMethod property of the document
func (*Document) Authentication ¶
func (d *Document) Authentication() interface{}
Authentication gets the authentication property of the document
func (*Document) CapabilityDelegation ¶
func (d *Document) CapabilityDelegation() interface{}
CapabilityDelegation gets the capabilityDelegation property of the document
func (*Document) CapabilityInvocation ¶
func (d *Document) CapabilityInvocation() interface{}
CapabilityInvocation gets the capabilityInvocation property of the document
func (*Document) Context ¶
func (d *Document) Context() interface{}
Context gets the context property of the document
func (*Document) Controller ¶
func (d *Document) Controller() interface{}
Controller gets the controller property of the document
func (*Document) GetAssociatedVerificationMethod ¶
func (d *Document) GetAssociatedVerificationMethod(purpose ProofPurpose) ([]VerificationMethod, error)
GetAssociatedVerificationMethod gets the associated verification method for a purpose
func (*Document) GetVerificationMethodById ¶
func (d *Document) GetVerificationMethodById(keyId string) (VerificationMethod, error)
func (*Document) KeyAgreement ¶
func (d *Document) KeyAgreement() interface{}
KeyAgreement gets the keyAgreement property of the document
func (*Document) MarshalJSON ¶
func (*Document) Metadata ¶
func (d *Document) Metadata() DocumentMetadata
Metadata gets the metadata of the document
func (*Document) Services ¶
func (d *Document) Services() interface{}
Services gets the services property of the document
func (*Document) Subject ¶
func (d *Document) Subject() interface{}
Subject gets the did subject property of the document
func (*Document) UnmarshalJSON ¶
func (*Document) VerificationMethod ¶
func (d *Document) VerificationMethod() interface{}
VerificationMethod gets the verificationMethod property of the document
type DocumentMetadata ¶
type DocumentMetadata struct { // Deactivated is deactivated flag key. Deactivated bool `json:"deactivated"` }
DocumentMetadata document metadata, consist of the REQUIRED attributes.
type MapItem ¶
type MapItem struct {
Key, Value interface{}
}
MapItem representation of one map item.
type Proof ¶
type Proof struct { Type string `json:"type,omitempty"` Created time.Time `json:"created,omitempty"` VerificationMethod string `json:"verificationMethod,omitempty"` ProofPurpose ProofPurpose `json:"proofPurpose,omitempty"` Nonce string `json:"nonce,omitempty"` ProofValue *string `json:"jws,omitempty"` }
type ProofPurpose ¶
type ProofPurpose string
const ( AssertionMethod ProofPurpose = "assertionMethod" Authentication ProofPurpose = "authentication" KeyAgreement ProofPurpose = "keyAgreement" CapabilityInvocation ProofPurpose = "capabilityInvocation" CapabilityDelegation ProofPurpose = "capabilityDelegation" )
func (ProofPurpose) String ¶
func (p ProofPurpose) String() string
type VerificationMethod ¶
type VerificationRelation ¶
type VerificationRelation interface{}