Documentation
¶
Index ¶
- func CreateEntityDocument(id *did.DID, controller *did.DID, keyset *keyset.Keyset) (*doc.Document, error)
- type Entity
- func New(id *did.DID, controller *did.DID, forceUpdate bool) (*Entity, error)
- func NewFromKey(ipfsKey *ipnskey.Key, controller *did.DID, forceUpdate bool) (*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 NewFromKey ¶
func NewFromPackedKeyset ¶
func (*Entity) MarshalToCBOR ¶
func (*Entity) Publish ¶
Publishes the entity's DIDDocument and IPNSKey to IPFS. If force is true, it will publish even if the IPNSKey is already published.
func (*Entity) PublishEntityDocument ¶
func (*Entity) UnmarshalFromCBOR ¶
Click to show internal directories.
Click to hide internal directories.