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

    Class LocalShieldedKeys

    In-process keys. The counterpart of the enclave-backed implementation: the same interface answered from a ViewingKey and a NullifierKey held here.

    Implements

    Index
    • The roles behind a Solana wallet: derivationSeed is that wallet's Ed25519 signature over ed25519DerivationMessage(publicKey), verified here so a seed that is the right width but not that signature fails before it derives anything.

      Parameters

      • input: Readonly<{ solanaPublicKey: Address; derivationSeed: Uint8Array }>

      Returns LocalShieldedKeys

    • Lends a copy of the nullifier key for the duration of use: the one place the secret itself, not a derivation, is needed is the proof witness. The copy is destroyed when use settles, so it must not be retained.

      Type Parameters

      • T

      Parameters

      Returns T