torvyon-core
Keys, recovery phrases, bt1/tbt1 addresses, Schnorr signing and UTXO
transaction building for the Torvyon blockchain.
Pure logic — no network, no I/O, no async. Every encoding is tested against vectors generated by the Torvyon node itself.
use ;
let key = from_hex?;
let from = key.address;
let payment = Payment ;
let signed = build_payment?.sign?;
let body = signed.to_json?; // POST to https://api.torvyon.tech/api/v1/tx/broadcast
- Networks: mainnet (
torvyon-mainnet,bt1…) is the default; testnet (torvyon-testnet-1,tbt1…) via the*_for_networkfunctions. Free test Byte: https://testnet.torvyon.tech/faucet/. - Hardware wallets:
sighash()on the unsigned transaction, sign on the device, thenwith_signature(public_key, signature). - Conditional outputs:
Conditionexposes the consensus primitives, andConditionTemplatescomposes them into treasury multisig, vesting, escrow/refund, HTLC and payment-channel locks. - Amounts are exact nibbles (1 Byte = 100,000,000 nibbles); no floats.
- Keys are never printed (
Debugis redacted) and are zeroized on drop.
Protocol spec, test vectors and the node API (OpenAPI) live in the
repository. JavaScript/TypeScript:
@torvyon/sdk.
More examples: docs/examples.md and examples/rust/build_payment.rs in the
repository.
License: MIT.