- Coin: Zano → Lethean, ticker: ZAN/ZANO → LTHN - Ports: 11211 → 36941 (mainnet RPC), 46941 (testnet RPC) - Wallet: 11212 → 36944/46944 - Address prefix: iTHN - URLs: zano.org → lethean.io - Explorer links: explorer.lthn.io Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB
lethean-util
CryptoNote node utility for Lethean — address generation, validation, and block/transaction processing.
This is Lethean's equivalent of cryptoforknote-util. It's a C++ native Node.js addon that links against the Lethean blockchain source tree.
Install
npm install
# Requires: cmake, g++, libboost-all-dev
# The native addon links against ../blockchain/src/ via the Lethean symlink
Usage
var cn = require('lethean-util');
// Validate address
var decoded = cn.address_decode(Buffer.from('iTHNUNiuu3VP...'));
// Get block hash
var hash = cn.get_pow_hash(blockBlob);
// Convert block blob
var converted = cn.convert_blob(blockBlob);
Functions
| Function | Purpose |
|---|---|
address_decode |
Decode a Lethean address (iTHN prefix) |
is_address_valid |
Validate address format |
convert_blob |
Convert block blob for mining |
get_pow_hash |
Calculate ProgPoWZ proof-of-work hash |
get_hash_from_block_template_with_extra |
Hash with extra data |
get_blob_from_block_template |
Extract blob from template |
get_id_hash |
Get block ID hash |
get_merged_mining_nonce_size |
Merged mining nonce size |
baseDiff |
Base difficulty calculation |
Network
| Property | Value |
|---|---|
| Address prefix | iTHN (standard), iTHn (integrated) |
| Decimal places | 12 |
| Coin units | 1,000,000,000,000 |