Documentation
¶
Index ¶
- Constants
- Variables
- type Authentication
- type AuthenticationBSONUnmarshaler
- type AuthenticationMarshaler
- type DIDDocument
- type DIDDocumentBSONUnmarshaler
- type DIDDocumentMarshaler
- type Data
- func (d Data) Bytes() []byte
- func (d Data) DID() string
- func (d *Data) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (d *Data) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (d Data) Equal(ct Data) bool
- func (d Data) IsValid([]byte) error
- func (d Data) MarshalBSON() ([]byte, error)
- func (d Data) MarshalJSON() ([]byte, error)
- func (d Data) PubKey() string
- type DataBSONUnmarshaler
- type DataJSONMarshaler
- type DataJSONUnmarshaler
- type Design
- func (de Design) Bytes() []byte
- func (de Design) DIDMethod() string
- func (de *Design) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (de *Design) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (de Design) DocAuthType() string
- func (de Design) DocContext() string
- func (de Design) DocSvcEndPoint() string
- func (de Design) DocSvcType() string
- func (de Design) Equal(cd Design) bool
- func (de Design) GenerateHash() util.Hash
- func (de Design) Hash() util.Hash
- func (de Design) IsValid([]byte) error
- func (de Design) MarshalBSON() ([]byte, error)
- func (de Design) MarshalJSON() ([]byte, error)
- type DesignBSONUnmarshaler
- type DesignJSONMarshaler
- type DesignJSONUnmarshaler
- type Document
- func (d Document) Bytes() []byte
- func (d Document) DIDDoc() DIDDocument
- func (d *Document) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (d *Document) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (d Document) IsValid([]byte) error
- func (d Document) MarshalBSON() ([]byte, error)
- func (d Document) MarshalJSON() ([]byte, error)
- type DocumentBSONUnmarshaler
- type DocumentJSONMarshaler
- type DocumentJSONUnmarshaler
- type Service
- type ServiceBSONUnmarshaler
- type ServiceMarshaler
Constants ¶
View Source
const MinKeyLen = 128
View Source
const Nid = "0000"
Variables ¶
View Source
var DataHint = hint.MustNewHint("mitum-did-data-v0.0.1")
View Source
var DesignHint = hint.MustNewHint("mitum-did-design-v0.0.1")
View Source
var DocumentHint = hint.MustNewHint("mitum-did-document-v0.0.1")
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func NewAuthentication ¶
func NewAuthentication( id, authType, controller, publicKeyHex string, ) Authentication
func (Authentication) Bytes ¶
func (d Authentication) Bytes() []byte
func (Authentication) IsValid ¶
func (d Authentication) IsValid([]byte) error
type AuthenticationMarshaler ¶
type DIDDocument ¶
type DIDDocument struct {
// contains filtered or unexported fields
}
func NewDIDDocument ¶
func NewDIDDocument( context_, did, created, status, authType, publicKeyHex, serviceType, serviceEndPoint string, ) DIDDocument
func (DIDDocument) Bytes ¶
func (d DIDDocument) Bytes() []byte
func (DIDDocument) DID ¶
func (d DIDDocument) DID() string
func (DIDDocument) IsValid ¶
func (d DIDDocument) IsValid([]byte) error
func (*DIDDocument) SetStatus ¶
func (d *DIDDocument) SetStatus(status string)
func (DIDDocument) Status ¶
func (d DIDDocument) Status() string
type DIDDocumentMarshaler ¶
type DIDDocumentMarshaler struct {
Context_ string `json:"@context"`
ID string `json:"id"`
Created string `json:"created"`
Status string `json:"status"`
Auth AuthenticationMarshaler `json:"authentication"`
Service ServiceMarshaler `json:"service"`
}
type Data ¶
type Data struct {
hint.BaseHinter
// contains filtered or unexported fields
}
func (Data) MarshalBSON ¶
func (Data) MarshalJSON ¶
type DataBSONUnmarshaler ¶
type DataJSONMarshaler ¶
type DataJSONMarshaler struct {
hint.BaseHinter
PublicKey string `json:"publicKey"`
DID string `json:"did"`
}
type DataJSONUnmarshaler ¶
type Design ¶
type Design struct {
hint.BaseHinter
// contains filtered or unexported fields
}
func (Design) DocAuthType ¶
func (Design) DocContext ¶
func (Design) DocSvcEndPoint ¶
func (Design) DocSvcType ¶
func (Design) GenerateHash ¶
func (Design) MarshalBSON ¶
func (Design) MarshalJSON ¶
type DesignBSONUnmarshaler ¶
type DesignJSONMarshaler ¶
type DesignJSONUnmarshaler ¶
type Document ¶
type Document struct {
hint.BaseHinter
// contains filtered or unexported fields
}
func NewDocument ¶
func NewDocument( didDoc DIDDocument, ) Document
func (Document) DIDDoc ¶
func (d Document) DIDDoc() DIDDocument
func (Document) MarshalBSON ¶
func (Document) MarshalJSON ¶
type DocumentBSONUnmarshaler ¶
type DocumentJSONMarshaler ¶
type DocumentJSONMarshaler struct {
hint.BaseHinter
DIDDoc DIDDocumentMarshaler `json:"did_document"`
}
type DocumentJSONUnmarshaler ¶
type DocumentJSONUnmarshaler struct {
Hint hint.Hint `json:"_hint"`
DIDDoc DIDDocumentMarshaler `json:"did_document"`
}
type ServiceBSONUnmarshaler ¶
type ServiceMarshaler ¶
Click to show internal directories.
Click to hide internal directories.