Documentation ¶
Overview ¶
Package orb implement orb vdr
Index ¶
- Constants
- type KeyRetriever
- type OperationType
- type Option
- type VDR
- func (v *VDR) Accept(method string) bool
- func (v *VDR) Close() error
- func (v *VDR) Create(did *docdid.Doc, opts ...vdrapi.DIDMethodOption) (*docdid.DocResolution, error)
- func (v *VDR) Deactivate(didID string, opts ...vdrapi.DIDMethodOption) error
- func (v *VDR) Read(did string, opts ...vdrapi.DIDMethodOption) (*docdid.DocResolution, error)
- func (v *VDR) Update(didDoc *docdid.Doc, opts ...vdrapi.DIDMethodOption) error
Constants ¶
View Source
const ( // DIDMethod did method. DIDMethod = "orb" // OperationEndpointsOpt operation endpoints opt. OperationEndpointsOpt = "operationEndpoints" // ResolutionEndpointsOpt resolution endpoints opt. ResolutionEndpointsOpt = "resolutionEndpointsOpt" // UpdatePublicKeyOpt update public key opt. UpdatePublicKeyOpt = "updatePublicKey" // RecoveryPublicKeyOpt recovery public key opt. RecoveryPublicKeyOpt = "recoveryPublicKey" // RecoverOpt recover opt. RecoverOpt = "recover" // AnchorOriginOpt anchor origin opt. AnchorOriginOpt = "anchorOrigin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyRetriever ¶
type KeyRetriever interface { GetNextRecoveryPublicKey(didID string) (crypto.PublicKey, error) GetNextUpdatePublicKey(didID string) (crypto.PublicKey, error) GetSigningKey(didID string, ot OperationType) (crypto.PrivateKey, error) }
KeyRetriever key retriever.
type OperationType ¶
type OperationType int
OperationType operation type.
const ( // Update operation. Update OperationType = iota // Recover operation. Recover )
type Option ¶
type Option func(opts *VDR)
Option configures the bloc vdr.
func WithDisableProofCheck ¶ added in v0.1.3
WithDisableProofCheck disable proof check.
func WithDocumentLoader ¶
func WithDocumentLoader(l jsonld.DocumentLoader) Option
WithDocumentLoader overrides the default JSONLD document loader used when processing JSONLD DID Documents.
func WithIPFSEndpoint ¶ added in v0.1.3
WithIPFSEndpoint overrides the global ipfs endpoint.
func WithTLSConfig ¶
WithTLSConfig option is for definition of secured HTTP transport using a tls.Config instance.
type VDR ¶
type VDR struct {
// contains filtered or unexported fields
}
VDR bloc.
func New ¶
func New(keyRetriever KeyRetriever, opts ...Option) (*VDR, error)
New creates new orb VDR.
func (*VDR) Create ¶
func (v *VDR) Create(did *docdid.Doc, opts ...vdrapi.DIDMethodOption) (*docdid.DocResolution, error)
Create did doc. nolint: gocyclo
func (*VDR) Deactivate ¶
func (v *VDR) Deactivate(didID string, opts ...vdrapi.DIDMethodOption) error
Deactivate did doc.
func (*VDR) Read ¶
func (v *VDR) Read(did string, opts ...vdrapi.DIDMethodOption) (*docdid.DocResolution, error)
Click to show internal directories.
Click to hide internal directories.