@heliuslabs/spr - v0.9.0-alpha
    Preparing search index...

    Class ViewingKey

    The ViewingKeyTrait surface. Constructors and secretBytes are excluded on purpose: a backend keeps the secret and exposes only operations over it.

    An implementer must hold viewing-key material in memory. Every operation returns synchronously, as Rust's ViewingKeyTrait does: a backend answering viewing-key operations over a wire is not a supported deployment.

    Implements

    Index
    • The viewing key of the wallet whose ed25519 derivationSeed is the signature over ed25519DerivationMessage(publicKey). Same key as LocalShieldedKeys.fromDerivationSeed holds, without the nullifier key, so nothing here hashes.

      Parameters

      • derivationSeed: Uint8Array

      Returns ViewingKey

    • Mirrors Rust ViewingKey::encrypt_ring_deposit. This key is the ephemeral one. The ring deposit label keeps the ciphertext closed under the transfer label.

      Parameters

      Returns Uint8Array