PostQ
$POSTQ
AppDashboardCanary$POSTQDocs

SDK

The app and the CLI share three modules. They run in the browser and in Node.

#lms — the signature scheme

Function
buildKey(SEED, I, onProgress)builds the 1,024-leaf tree
rootOf(key)the 48-byte root
sign(key, leaf, message)a 2,508-byte signature
verify(root, message, signature)the leaf index, or −1

#protocol — bytes and addresses

Function
generateMnemonic(), validateMnemonic(words)24 BIP-39 words
epochKeyMaterial(seed64, epoch, context)SEED and I for one epoch of one vault
vaultId(root, options), findStatePda, findVaultPda, findSigBufferPdaidentity and addresses
encodeActions, decodeActions, describeActionsthe payload and its sentence

#sdk — the chain

Function
fetchVault, fetchAllVaultsread vault state
vaultFromSeed(words, options)the root and addresses of a new vault
buildOpenVaultTx, buildDepositTxsopening and deposits
prepareExecute, prepareRotate, prepareClosesign on the device, return the fee transactions
findPendingSignaturessignatures written but not landed
sendOneByOnesimulate, ask the wallet, send, confirm, one at a time
fetchAssets, checkRecipientsassets with risk flags; destination checks