Constructors

Methods

  • Returns void

  • 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

  • Return the label in the forest, used for accessing the ciphertext that can be decrypted with this access key.

    Returns 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

  • Returns the temporal key or null, in case this access key only gives access to the shapshot level.

    Returns undefined | 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).

    Returns Uint8Array

  • Deserialize an AccessKey previously generated from into_bytes.

    Parameters

    • bytes: Uint8Array

    Returns AccessKey

Generated using TypeDoc