Documentation
¶
Index ¶
- func CreateDocument(id string, controller string, keyset *keyset.Keyset) (*doc.Document, error)
- type Entity
- func New(id *did.DID, controller *did.DID) (*Entity, error)
- func NewFromIPFSKey(ipfsKey *ipfs.Key) (*Entity, error)
- func NewFromIPFSKeyWithController(ipfsKey *ipfs.Key, controller *did.DID) (*Entity, error)
- func NewFromKeyset(keyset *keyset.Keyset) (*Entity, error)
- func NewFromPackedKeyset(data string) (*Entity, error)
- func Unpack(data string) (*Entity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entity ¶
So not only does it create a new DID, it also creates a new IPNS key, which you can use to publish your DID Document with.
func NewFromIPFSKeyWithController ¶ added in v0.0.6
func NewFromPackedKeyset ¶
func (*Entity) MarshalToCBOR ¶
func (*Entity) PublishDocument ¶ added in v0.1.0
Publish entity document. This needs to be done, when the keyset is new. Maybe we can check the assertionMethod and keyAgreement fields to see if the document is already published corretly.
func (*Entity) PublishDocumentGorutine ¶ added in v0.2.0
func (e *Entity) PublishDocumentGorutine(wg *sync.WaitGroup, cancel context.CancelFunc, opts *doc.PublishOptions)
func (*Entity) UnmarshalFromCBOR ¶
Click to show internal directories.
Click to hide internal directories.