Documentation
¶
Index ¶
- func DidFromOp(op *Operation) (string, error)
- type Client
- func (c *Client) CreateDID(sigkey *atcrypto.PrivateKeyK256, recovery string, handle string) (string, *Operation, error)
- func (c *Client) CreateDidCredentials(sigkey *atcrypto.PrivateKeyK256, recovery string, handle string) (*DidCredentials, error)
- func (c *Client) SendOperation(ctx context.Context, did string, op *Operation) error
- func (c *Client) SignOp(sigkey *atcrypto.PrivateKeyK256, op *Operation) error
- type ClientArgs
- type DidCredentials
- type Operation
- type OperationService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(args *ClientArgs) (*Client, error)
func (*Client) CreateDidCredentials ¶
func (c *Client) CreateDidCredentials(sigkey *atcrypto.PrivateKeyK256, recovery string, handle string) (*DidCredentials, error)
func (*Client) SendOperation ¶
type ClientArgs ¶
type DidCredentials ¶
type Operation ¶
type Operation struct {
Type string `json:"type"`
VerificationMethods map[string]string `json:"verificationMethods"`
RotationKeys []string `json:"rotationKeys"`
AlsoKnownAs []string `json:"alsoKnownAs"`
Services map[string]identity.OperationService `json:"services"`
Prev *string `json:"prev"`
Sig string `json:"sig,omitempty"`
}
func (*Operation) MarshalCBOR ¶
type OperationService ¶
Click to show internal directories.
Click to hide internal directories.