Developers

The TypeScript SDK

The pieces the app is built from. Deriving meta-addresses, scanning announcements, planning a payment and building a claim.

Modules

cryptoDerivation and the shared secret.
keysThe watch key and the spend key, derived from a wallet signature and a PIN.
addressOne-time address derivation and meta-address encoding.
programThe announcement program codec.
announcementsReading announcements back from the chain.
scanMatching announcements against a watch key.
paymentsPlanning a payment and building a claim transaction.
linkHandles, link paths and the resolver record format.
encodingBase58 helpers, shared with the resolver.
constantsProgram address, seeds and mint defaults.

Verifying a resolver record

A record carries the wallet signature that claimed the handle. Decoding it checks that signature. A record signed by somebody else throws rather than resolving to somebody else's keys.

import { metaAddressFromRecord } from "stealth-pay-sdk"; const meta = metaAddressFromRecord(record); // throws if the signature fails

Availability

The SDK lives in the repository as the sdk/ workspace and is not published to npm. It is private while the audit question is unsettled. There is no install line to give you yet. When that changes, this page will carry the install command and a worked example instead of a description.