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

    Interface ShieldedKeys

    The privacy roles of one shielded wallet, exposed as the functions the protocol needs of them and nothing more: no method returns a long-lived secret, and every method takes a batch so a remote holder answers a sync or a spend in one round trip per method.

    decrypt exposes only cipher output. Viewing role roots are derived from the canonical local secret and are never returned by this capability. Ciphertext is unauthenticated, so callers must verify decoded commitments before accepting an output. Malformed requests reject the whole batch.

    Proving is the one place the nullifier secret is consumed rather than derived from; it lives on the client-layer ProofAuthority, next to the witness types it needs.

    Every batch method takes the caller's RequestContext: a sync or a build that is cancelled or times out passes its signal on, so a remote holder stops the round trip too. In-process keys have nothing to cancel and ignore it.

    interface ShieldedKeys {
        address(): ShieldedAddress;
        viewingPublicKeys(): readonly X25519PublicKey[];
        decrypt(
            requests: readonly DecryptRequest[],
            context?: RequestContext,
        ): Promise<readonly Uint8Array<ArrayBufferLike>[]>;
        derive(
            requests: readonly DeriveRequest[],
            context?: RequestContext,
        ): Promise<readonly Bytes32[]>;
        transactionKeys(
            requests: readonly TransactionKeyRequest[],
            context?: RequestContext,
        ): Promise<readonly ViewingKey[]>;
    }

    Implemented by

    Index