Utilities
Utilities
Helper functions for proving key management and testing
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Helper functions for proving key management and testing
if (!t2z.is_proving_key_ready()) {
console.log('Building proving key...');
t2z.prebuild_proving_key();
}
const ready = t2z.is_proving_key_ready();
// true if key is built, false otherwise
const address = t2z.generate_test_address('testnet');
// "utest1abc..."
const keypair = t2z.generate_test_keypair('testnet');
// Returns:
// {
// transparent_address: "tmAbc...",
// pubkey: "03abc...",
// privkey: "deadbeef...",
// orchard_address: "utest1...",
// orchard_fvk: "uviewtest1..."
// }
const version = t2z.version();
// "0.1.0"
t2z.init();
Was this page helpful?
