Key derivation
| Export | Purpose |
|---|---|
SETUP_MESSAGE | Canonical wallet message for HKDF entropy |
deriveKeysFromSignature | Viewing + spending keys from signature hex |
computeStealthAddressAndViewTag | One-time destination from meta-address |
stealthMetaAddressToHex | Encode meta-address to 66-byte hex |
generateRandomMetaAddress | Fresh throwaway meta-address (decoy recipients) |
Unified signer
WalletClient, and Solana wallet-adapter.
requestSetupSignature(signer) prompts for the SETUP_MESSAGE signature; pass the
same shapes to OpaqueClient.fromWallet. See OpaqueClient overview.
Recipient resolution
client.resolveRecipient.
parseMetaAddressValue validates that both 33-byte halves are real curve points.
isOnsNameInput(name, parentName) gates the ONS path (depth-1 subnames of the parent
in force). The Solana mirror primitives (fetchOnsMirrorRecord, getOnsMirrorRecordPda,
onsNameHash, decodeOnsMirrorRecord, fetchSnsTxtRecord) live in
@opaquecash/stealth-chain-solana.
Chain deployments
@opaquecash/deployments registry; import that
package directly for raw addresses, ABIs, and Solana program ids. See
Deployments.
Indexer normalization
PSR codecs (@opaquecash/psr-core)
Chain adapters
OpaqueClient.scan. Most apps should use client.scan.
Solana PSR (namespaced)
AvoidscomputeSchemaId name clash with psr-core:
Prover artifacts
/circuits/....
Types reference
| Type | Description |
|---|---|
OpaqueClientConfig | Client construction |
UnifiedSigner | One wallet shape for fromWallet / requestSetupSignature |
ResolvedRecipient | resolveRecipient result with source tag |
DummyAnnouncement | Decoy announcement from generateDummyAnnouncements |
OpaqueScanChain | "ethereum" | "solana" |
PsrChain | Same as OpaqueScanChain |
UnifiedOwnedOutput | Scan result with chain + source tags |
OwnedStealthOutput | Owned stealth output from WASM filter |
IndexerAnnouncement | Normalized indexer row |
PrepareStealthSendResult | Stealth send derivation result |
SendStealthPaymentParams / SendStealthPaymentResult | High-level send |
CreateSchemaParams / CreateSchemaResult | Schema registration |
IssueAttestationParams / IssueAttestationResult | Attestation issuance |
VerifyReputationArgs | Proof verification payload |
DiscoveredTrait | PSR trait from discoverTraitsV2 or legacy discoverTraits |
TokenBalanceSummary | Aggregated token balance |
OutputBalance | Per-output native balance |