# HempCoin THC: Exchange Integration Guide

December 2026 · hempcoin.org

THC runs a Bitcoin Core style node with the standard JSON RPC, so a Bitcoin integration carries over. The one new part is post quantum vault addresses, and the node's own wallet handles them, including watch only wallets and offline signing with standard PSBTs.

## At a glance

| Item | Value |
| --- | --- |
| Ticker | THC |
| Chain | Own layer 1, built on Qtum 30.3 and Bitcoin Core 30 (proof of stake plus smart contracts) |
| Block time | 32 seconds |
| Supply cap | 300,000,000 THC, fixed in consensus |
| Decimals | 8 |
| Node programs | `hempcoind` and `hempcoin-cli` at release (Bitcoin Core RPC, plus vault commands) |
| Ports | P2P 36777, RPC 36778 |
| SLIP44 coin type | 113 |
| Suggested deposit confirmations | 120 blocks, about 64 minutes. For large deposits, 500 blocks (about 4.5 hours). Past 500 blocks nodes refuse any reorganization, so the deposit is final |
| Default deposit address | thc1z vault (post quantum, NIST FIPS 204) |

## Address types

Use thc1z vault addresses for deposits. Accept every valid type below as a withdrawal destination, and check the Phase A dates in the next section.

| Type | Looks like | Signature | Notes |
| --- | --- | --- | --- |
| Vault | thc1z... | ML DSA 44, NIST FIPS 204 (post quantum) | Recommended for deposits and storage. Spends need about 1 KB more than a normal input |
| Script vault | thc1y... | Post quantum only | Multisig, inheritance, atomic swap locks |
| Cold staking vault | thc19... | Post quantum | Staking server can only restake; spend key stays offline |
| Hash vault | thc1r... | SLH DSA, NIST FIPS 205 (SHA256 only) | Largest signatures, for long term storage |
| Legacy | T... (prefix byte 65) | Elliptic curve | New ones end at Phase A |
| Script hash | prefix byte 85 | Elliptic curve inside | Standard multisig keeps working until the freeze |

Bech32 addresses use the human readable part thc. Refuse withdrawals to a thc1z, thc1y, thc19 or thc1r address whose program is not 32 bytes: every node already refuses to relay those payments.

## Dates that affect exchanges

Three consensus rules matter for custody. None can be moved by a vote, key or person. Check the live state any time with `getquantumstatus`.

| Rule | When | What changes for an exchange |
| --- | --- | --- |
| Phase A | Block 1,480,000, about 18 months after launch | Payments can no longer create new P2PK, P2PKH, P2WPKH or P2TR (taproot) outputs. Withdrawals to those address types are refused by the network, so validate addresses before queuing. Old coins still move, and P2SH and P2WSH still work |
| Canary | Any time | A coin no one has the key for sits in block 729. If it is ever spent, elliptic curve keys are broken and every old style coin freezes from the next block. Vault coins keep moving |
| Backstop | Block 9,860,000, about 10 years after launch | Old style coins freeze if the canary never fell |

If you keep standard P2WSH multisig custody for now, it works until the freeze. Moving hot and cold storage to vaults before Phase A removes the risk entirely, and the setup below does that with tools you already use.

## Recommended setup: watch only hot wallet, offline signer

The signing keys never touch an online machine. The online wallet tracks deposits and builds unsigned transactions; the offline wallet signs them. This is Bitcoin Core's standard PSBT flow with vault addresses in it.

On the offline signing machine:

1. Run the node with no network: `hempcoind -connect=0`.
2. Create and protect the wallet: `createwallet cold`, then `encryptwallet`, then `backupwallet`. The vault keys come from this wallet's own HD key, so the backup covers every vault.
3. Write the 24 vault words on paper as a second backup: `getvaultphrase`. Store them like any cold storage secret.
4. Export addresses (nothing secret): `exportvaultaddresses 100000 20000 > vault_addresses.json` for 100,000 deposit and 20,000 change addresses.

On the online machine:

1. Create a watch only wallet: `createwallet hot true true` (private keys disabled, blank).
2. Import the addresses: `importvaultaddresses "$(cat vault_addresses.json)"`.
3. Give each customer a deposit address: `getnewvaultaddress "customer 1042"`. Detect deposits with `listsinceblock` or `-walletnotify`, exactly as on Bitcoin.
4. Build a withdrawal: `walletcreatefundedpsbt '[]' '[{"thc1...": 12.5}]' 0 '{"fee_rate": 1000}'`. Change goes to an imported vault change address automatically.

Back on the offline machine, sign: `walletprocesspsbt "<psbt>"` returns the signed PSBT with complete set to true. Then on either machine: `finalizepsbt "<signed psbt>"` gives the raw hex, and `sendrawtransaction "<hex>"` broadcasts it.

Watch the address pools with `getvaultinfo` and export more from the signer before they run low. A watch only wallet can only hand out addresses it imported.

A smaller operation can run one encrypted hot wallet instead: `getnewvaultaddress` for deposits and `sendtoaddress` for withdrawals, unlocked with `walletpassphrase` only while sending.

## Sizes and fees

A vault input costs about 6.5 times a legacy input, because a post quantum signature and key are 3.7 KB. Fees are charged per virtual byte as on Bitcoin, and the wallet estimates vault sizes exactly.

| Input type | Virtual size |
| --- | --- |
| thc1r hash vault | about 2,015 vB |
| thc1z vault | 976 vB |
| Legacy P2PKH | about 148 vB |

A typical withdrawal (one vault input, a payment and vault change) measured 1,064 vB in testing. Batch withdrawals to share inputs. Use a fee rate at or above the node's minimum relay fee, shown by `getnetworkinfo` as relayfee; the 1000 sat/vB in the example above is only a placeholder.

## Carried over coins and deposits

Vault deposit addresses let holders deposit coins carried over from the Komodo chain directly. Those coins (created in blocks 1 to 229) can only move into vaults, so a payment of them to a legacy deposit address is refused by the network. A thc1z deposit address accepts them like any other payment.

The official wallet already handles this for holders: it never uses carried over coins for a payment to a non vault address, so no one ends up with a stuck transaction.

## Security notes and limits

- Vault keys are ML DSA 44 (NIST FIPS 204). Each key comes from the wallet's master key by a published rule, so the keys can be re derived and checked independently. Every signature in testing matched independent reference code byte for byte.
- An encrypted wallet keeps the vault seed encrypted. A locked wallet still hands out addresses made in advance but cannot sign.
- Vault inputs sign with SIGHASH\_ALL only.
- Signing hardware: no mainstream HSM signs FIPS 204 for THC yet. The offline signer above takes its place: run it on an air gapped machine.
- Signing is deterministic today. Hedged (randomized) signing for always online machines is planned.
- The code has not yet had an outside audit. The report will be published when it is done.

Contacts for integration questions: tim@hempcoin.org.
