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, findSigBufferPda | identity and addresses |
encodeActions, decodeActions, describeActions | the payload and its sentence |
#sdk — the chain
| Function | |
|---|---|
fetchVault, fetchAllVaults | read vault state |
vaultFromSeed(words, options) | the root and addresses of a new vault |
buildOpenVaultTx, buildDepositTxs | opening and deposits |
prepareExecute, prepareRotate, prepareClose | sign on the device, return the fee transactions |
findPendingSignatures | signatures written but not landed |
sendOneByOne | simulate, ask the wallet, send, confirm, one at a time |
fetchAssets, checkRecipients | assets with risk flags; destination checks |