The TypeScript SDK
The pieces the app is built from. Deriving meta-addresses, scanning announcements, planning a payment and building a claim.
Modules
| crypto | Derivation and the shared secret. |
|---|---|
| keys | The watch key and the spend key, derived from a wallet signature and a PIN. |
| address | One-time address derivation and meta-address encoding. |
| program | The announcement program codec. |
| announcements | Reading announcements back from the chain. |
| scan | Matching announcements against a watch key. |
| payments | Planning a payment and building a claim transaction. |
| link | Handles, link paths and the resolver record format. |
| encoding | Base58 helpers, shared with the resolver. |
| constants | Program 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 failsAvailability
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.