Return the CID of what this access key decrypts.
This is mainly used for disambiguation, in case the
label the AccessKey links to has multiple conflicting writes.
Returns Uint8Array
getLabel
getLabel(): Uint8Array
Return the label in the forest, used for
accessing the ciphertext that can be decrypted with
this access key.
Returns Uint8Array
getSnapshotKey
getSnapshotKey(): Uint8Array
Returns the snapshot key.
May derive the key on-the-fly in case this
AccessKey also gives access to the temporal access level.
Returns Uint8Array
getTemporalKey
getTemporalKey(): undefined | Uint8Array
Returns the temporal key or null, in case this
access key only gives access to the shapshot level.
Returns undefined | Uint8Array
toBytes
toBytes(): Uint8Array
Serialize this AccessKey into bytes.
This will contain secret key material!
Make sure to keep safe or encrypt
(e.g. using the WebCrypto and asymmetrically encrypting these bytes).
Return the CID of what this access key decrypts. This is mainly used for disambiguation, in case the label the AccessKey links to has multiple conflicting writes.