Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSetKeysMisMatch = errors.New("keyset: DID and IPFS key DID do not match") ErrIPFSKeyNotFound = errors.New("ipfsKey not found") ErrIPFSKeyMissingFragment = errors.New("ipfsKey has no fragment") ErrIPFSKeyMissingID = errors.New("ipfsKey has no ID") ErrIPFSKeyMissingName = errors.New("ipfsKey has no name") )
Functions ¶
This section is empty.
Types ¶
type Keyset ¶
type Keyset struct { DID did.DID EncryptionKey key.EncryptionKey SigningKey key.SigningKey }
KeySet struct the encryption and signing keys are actual keys, but the IPFSKey is a reference to the IPFS key and holds names and paths. The key itself resides in IPFS.
func GetOrCreate ¶ added in v0.0.6
Creates new keyset from a name (typically fragment of a DID) This requires that the key is already in IPFS and that IPFS is running.
func UnmarshalFromCBOR ¶
func (Keyset) MarshalToCBOR ¶
Click to show internal directories.
Click to hide internal directories.