Documentation ¶
Overview ¶
Package sidetree implements sidetree client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDebugOutput ¶
SetDebugOutput is used to set output of debug logs.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client sidetree client.
func (*Client) DeactivateDID ¶
func (c *Client) DeactivateDID(did string, opts ...deactivate.Option) error
DeactivateDID deactivate did doc.
func (*Client) RecoverDID ¶
RecoverDID recover did doc.
type GetEndpointsFunc ¶
GetEndpointsFunc retrieves sidetree endpoints.
type Option ¶
type Option func(opts *Client)
Option is a DID client instance option.
func WithAuthTokenProvider ¶
func WithAuthTokenProvider(p authTokenProvider) Option
WithAuthTokenProvider add auth token provider.
func WithHTTPClient ¶
WithHTTPClient option is for custom http client.
func WithSidetreeOperationRequestFnc ¶
func WithSidetreeOperationRequestFnc(fnc func(req []byte, getEndpoints GetEndpointsFunc) ([]byte, error)) Option
WithSidetreeOperationRequestFnc overrides default sidetree operation request.
Directories ¶
Path | Synopsis |
---|---|
Package api include interface
|
Package api include interface |
Package doc implements sidetree document
|
Package doc implements sidetree document |
option
|
|
create
Package create implements sidetree create did option
|
Package create implements sidetree create did option |
deactivate
Package deactivate implements sidetree deactivate did option
|
Package deactivate implements sidetree deactivate did option |
recovery
Package recovery implements sidetree recovery did option
|
Package recovery implements sidetree recovery did option |
update
Package update implements sidetree update did option
|
Package update implements sidetree update did option |
Click to show internal directories.
Click to hide internal directories.