Documentation ¶
Index ¶
- Constants
- type Client
- type ClientConfig
- type CreateRequest
- type Delta
- type DidDocument
- type DidDocumentMetadata
- type Document
- type IonError
- type Method
- type Patches
- type PublicKeyJwk
- type PublicKeys
- type ResolveDidResponse
- type Service
- type Services
- type SuffixData
- type UpdateDataToSign
- type UpdateRequest
- type VerificationMethod
Constants ¶
View Source
const DEFAULT_URL string = "http://localhost:3000/"
View Source
const IDENTIFIERS_URL string = "identifiers"
View Source
const OPERATIONS_URL string = "operations"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ResolveDid(didstr string) ([]byte, error) UpdateDid(req interface{}) ([]byte, error) }
func NewClient ¶
func NewClient(cfg *ClientConfig) Client
type ClientConfig ¶
type ClientConfig struct {
Url string
}
type CreateRequest ¶
type CreateRequest struct { Type string `json:"type"` SuffixData SuffixData `json:"suffixData"` Delta Delta `json:"delta"` }
Create Request
type DidDocument ¶
type DidDocument struct { ID string `json:"id"` Context []interface{} `json:"@context"` Service []Service `json:"service"` VerificationMethod []VerificationMethod `json:"verificationMethod"` Authentication []string `json:"authentication"` }
TODO remove in favor of real type
type DidDocumentMetadata ¶
type Document ¶
type Document struct { PublicKeys []PublicKeys `json:"publicKeys,omitempty"` Services []Services `json:"services,omitempty"` }
type Patches ¶
type Patches struct { Action string `json:"action"` Services []Services `json:"services,omitempty"` PublicKeys []PublicKeys `json:"publicKeys,omitempty"` Ids []string `json:"ids,omitempty"` Document *Document `json:"document,omitempty"` }
type PublicKeyJwk ¶
type PublicKeys ¶
type ResolveDidResponse ¶
type ResolveDidResponse struct { Context string `json:"@context"` DidDocument DidDocument `json:"didDocument"` DidDocumentMetadata DidDocumentMetadata `json:"didDocumentMetadata"` }
ResolveDid Response
type SuffixData ¶
type UpdateDataToSign ¶
type UpdateRequest ¶
type UpdateRequest struct { Type string `json:"type"` DidSuffix string `json:"didSuffix"` RevealValue string `json:"revealValue"` Delta Delta `json:"delta"` SignedData string `json:"signedData"` }
Consolidate with Create Request Update Request
type VerificationMethod ¶
type VerificationMethod struct { ID string `json:"id"` Controller string `json:"controller"` Type string `json:"type"` PublicKeyJwk PublicKeyJwk `json:"publicKeyJwk"` }
Click to show internal directories.
Click to hide internal directories.