Documentation ¶
Index ¶
- Variables
- type AuditLog
- type Client
- func (c *Client) CreateDID(ctx context.Context, signer *did.PrivKey, ...) (string, error)
- func (c *Client) GetAuditLog(ctx context.Context, didstr string) ([]*AuditLog, error)
- func (c *Client) GetDocument(ctx context.Context, didstr string) (*did.Document, error)
- func (c *Client) GetDocumentData(ctx context.Context, didstr string) (*DocumentData, error)
- func (c *Client) GetHealth(ctx context.Context) (*Health, error)
- func (c *Client) GetLastOperation(ctx context.Context, didstr string) (Operation, error)
- func (c *Client) GetOperationLog(ctx context.Context, didstr string) (Operations, error)
- func (c *Client) SetTombstone(ctx context.Context, signer *did.PrivKey, didstr string) error
- func (c *Client) UpdateHandle(ctx context.Context, signer *did.PrivKey, didstr, handle string) error
- func (c *Client) UpdatePDS(ctx context.Context, signer *did.PrivKey, didstr, pdsEndpoint string) error
- func (c *Client) UpdateRotationKeys(ctx context.Context, signer *did.PrivKey, didstr string, rotationKeys []string) error
- func (c *Client) UpdateVerificationMethod(ctx context.Context, signer *did.PrivKey, didstr, keyID, keyDID string) error
- type Create
- func (c *Create) GetAlsoKnownAs() []string
- func (c *Create) GetRotationKeys() []string
- func (c *Create) GetServices() map[string]*Service
- func (c *Create) GetType() string
- func (c *Create) GetVerificationMethods() map[string]string
- func (t *Create) MarshalCBOR(w io.Writer) error
- func (c *Create) SetSignature(signature string)
- func (t *Create) UnmarshalCBOR(r io.Reader) (err error)
- type DocumentData
- type Health
- type Operation
- type Operations
- type Service
- type Signable
- type Tombstone
- func (t *Tombstone) GetAlsoKnownAs() []string
- func (t *Tombstone) GetRotationKeys() []string
- func (t *Tombstone) GetServices() map[string]*Service
- func (t *Tombstone) GetType() string
- func (t *Tombstone) GetVerificationMethods() map[string]string
- func (t *Tombstone) MarshalCBOR(w io.Writer) error
- func (t *Tombstone) SetSignature(signature string)
- func (t *Tombstone) UnmarshalCBOR(r io.Reader) (err error)
- type Update
- func (o *Update) GetAlsoKnownAs() []string
- func (o *Update) GetRotationKeys() []string
- func (o *Update) GetServices() map[string]*Service
- func (o *Update) GetType() string
- func (o *Update) GetVerificationMethods() map[string]string
- func (t *Update) MarshalCBOR(w io.Writer) error
- func (o *Update) SetSignature(signature string)
- func (t *Update) UnmarshalCBOR(r io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIsTombstone = fmt.Errorf("plc client: did is marked as tombstone")
View Source
var ErrNotCBORCompatible = fmt.Errorf("plc client: not cbor compatible")
View Source
var ErrUnknownOperationType = fmt.Errorf("plc client: unknown operation type")
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetAuditLog ¶
func (*Client) GetDocument ¶
func (*Client) GetDocumentData ¶
func (*Client) GetLastOperation ¶
func (*Client) GetOperationLog ¶
func (*Client) SetTombstone ¶
func (*Client) UpdateHandle ¶
func (*Client) UpdateRotationKeys ¶
type Create ¶
type Create struct { SigningKey string `json:"signingKey" cborgen:"signingKey"` RecoveryKey string `json:"recoveryKey" cborgen:"recoveryKey"` Handle string `json:"handle" cborgen:"handle"` Service string `json:"service" cborgen:"service"` Type string `json:"type" cborgen:"type"` Prev *string `json:"prev" cborgen:"prev"` Sig string `json:"sig" cborgen:"sig,omitempty"` }
func (*Create) GetAlsoKnownAs ¶
func (*Create) GetRotationKeys ¶
func (*Create) GetServices ¶
func (*Create) GetVerificationMethods ¶
func (*Create) SetSignature ¶
type DocumentData ¶
type Operations ¶
type Operations []Operation
type Service ¶
type Signable ¶
type Signable interface { cbor.CBORMarshaler SetSignature(string) }
type Tombstone ¶
type Tombstone struct { Type string `json:"type" cborgen:"type"` Prev *string `json:"prev" cborgen:"prev"` Sig string `json:"sig" cborgen:"sig,omitempty"` }
func (*Tombstone) GetAlsoKnownAs ¶
func (*Tombstone) GetRotationKeys ¶
func (*Tombstone) GetServices ¶
func (*Tombstone) GetVerificationMethods ¶
func (*Tombstone) SetSignature ¶
type Update ¶
type Update struct { RotationKeys []string `json:"rotationKeys" cborgen:"rotationKeys"` VerificationMethods map[string]string `json:"verificationMethods" cborgen:"verificationMethods"` AlsoKnownAs []string `json:"alsoKnownAs" cborgen:"alsoKnownAs"` Services map[string]*Service `json:"services" cborgen:"services"` Type string `json:"type" cborgen:"type"` Prev *string `json:"prev" cborgen:"prev"` Sig string `json:"sig" cborgen:"sig,omitempty"` }
func (*Update) GetAlsoKnownAs ¶
func (*Update) GetRotationKeys ¶
func (*Update) GetServices ¶
func (*Update) GetVerificationMethods ¶
func (*Update) SetSignature ¶
Click to show internal directories.
Click to hide internal directories.