Minter Docsv3.3.0
Protocol / Overview: node, consensus, addresses
Protocol

Overview: node, consensus, addresses

Minter Go Node v3.3.0 architecture: Tendermint v0.34.19 consensus, IAVL v0.17.3 state tree, single-block finality, CheckTx vs DeliverTx stages, and Mx, Mp, Mt, Mc prefixes.

Minter Go Node v3.3.0 (commit 235a4a2f7a69452e1a3be50d91b5a51bcc0d2ada, node-grpc-gateway 53ffbb191668) compiles consensus, the financial state machine, and versioned state storage into a single Go binary with no user smart-contract bytecode VM.

Minter Go Node v3.3.0 stack

LayerImplementation and source filesResponsibility
Consensus and P2PIn-process Tendermint v0.34.19 via proxy.NewLocalClientCreator(app) (cmd/minter/cmd/node.go:200-254), CListMempoolP2P gossip on :26656, mempool replication, and two-phase Prevote / Precommit BFT voting
Execution dispatcherNewExecutorV3(GetDataV3) (coreV2/minter/blockchain.go:164), knownUpdates: v300, v310, v320, v330Decodes and executes 37 active transaction handlers out of 38 declared opcodes 0x01..0x26 (0x13 is unregistered)
State tree and DBIAVL v0.17.3 + tm-db v0.6.6 backed by goleveldb (tree/tree.go:33-114, cmd/utils/flags.go:42-67)Stores balances, coins, SwapV2 pools, limit orders, candidates, and queues, producing a block AppHash
Units and chain IDs1 coin = 10^18 pip (coreV2/types/types.go); ChainID = 1 (Mainnet, base coin 0 = BIP), ChainID = 2 (Testnet, base coin 0 = MNT)Arbitrary-precision integer accounting and cross-network replay protection

Block interval and single-block finality

The protocol's nominal block interval is BLOCK_TIME_NOMINAL = 5 s: Mainnet periods derive from this constant (720-block reward and re-election interval, 17,280 blocks per day, 518,400 blocks per 30 days, 18,921,600 blocks per 3 years). Public Testnet (chainId = 2, base coin MNT, monthly epochs minter-testnet-YYYYMM) uses shortened protocol periods (120-block reward interval, order expiry phase H % 120 == 60, Unbond = 531, MoveStake = 177, LockStake = 34,560, Jail = 354, OrderExpire = 86,400, EditCandidateCommission = 1,593 blocks).

A block at height H is committed once validators controlling strictly more than 2/3 of active voting power sign Precommit votes for the same block hash:

  • As long as fewer than 1/3 of active stake is Byzantine, committed blocks cannot reorganize, so integrators do not wait for multi-block confirmation depth.
  • A transaction is final once included in a committed block with code == 0 ("0" in JSON API v2 responses).
  • Signing two conflicting votes at the same height and round (DuplicateVoteEvidence) burns 5% of the candidate's stake and moves the remaining 95% into FrozenFunds for 518,400 blocks (blockchain.go:336).

ABCI block stages (CheckTx vs DeliverTx)

  1. CheckTx (mempool admission on POST /v2/send_transaction): verifies canonical RLP, ChainID, tx.Nonce == account.Nonce + 1, signature recovery, and spendable balance against CheckState. Rejected packets pay 0 pip, and code: "0" from send_transaction indicates mempool acceptance rather than block execution.
  2. BeginBlock: pays out matured FrozenFunds (Unbond, MoveStake, Lock), updates the 24-block validator liveness window, processes DuplicateVoteEvidence, and checks SetHaltBlock (0x0F) quorum.
  3. DeliverTx (sequential block execution): on code == 0, state changes apply to IAVL, the sender's Nonce increments, and the fee enters rewardPool. If handler.Run fails in DeliverTx (code != 0), state changes do not apply, the FailedTx fee is deducted, and the sender's Nonce does not increment (see Execution, gas and fees).
  4. EndBlock and Commit: sweeps expired limit orders (height % 720 == 360 on Mainnet, height % 120 == 60 on Testnet), distributes PayRewardsV5Fix rewards and recalculates the active validator set (720 blocks on Mainnet, 120 blocks on Testnet), and commits the new IAVL AppHash.
Monthly Testnet resets and cross-epoch replay

The public Testnet (https://testnet.minter.network/status.json) resets cleanly to a fresh epoch minter-testnet-YYYYMM on the 1st of every month. Because ChainID = 2 is constant across epochs and account Nonce restarts at 0, a transaction signed by a reused user Mx... address in a prior epoch can be replayed in a later epoch if that address receives funds again. Service addresses rotate per epoch, and developers should generate a new disposable test mnemonic per epoch.

Entity prefixes and BIP-44 derivation

Every external Minter identifier carries a two-character prefix (coreV2/types/types.go):

PrefixEntityByte lengthString lengthDerivation formula
MxAccount or multisig address20 bytes42 chars"Mx" + hexLower(Keccak256(uncompressedSecp256k1PubKey[1:65])[12:32])
MpValidator consensus public key32 bytes66 chars"Mp" + hexLower(ed25519PublicKey32B)
MtOn-chain transaction hash32 bytes66 chars"Mt" + hexLower(SHA256(rawSignedTxBytes)) (10 RLP fields)
McOff-chain check (RedeemCheck 0x09)Variable RLPVariable"Mc" + hexLower(RLP([Nonce, ChainID, DueBlock, Coin, Value, GasCoin, Lock, V, R, S])) (10 fields)

User secp256k1 keys derive from a BIP-39 mnemonic at BIP-44 path m/44'/60'/0'/0/{index}: the 20 address bytes after Mx match the EVM 0x address derived from the same public key.

Keccak-256 vs SHA-256 hash domains

Pre-NIST Keccak-256 computes Mx... addresses, the 9-field transaction signingHash, and Mc... check digests. Standard SHA-256 (FIPS 180-4) computes the on-chain Mt... transaction hash over the 10-field signed RLP bytes and derives the check passphrase scalar passKey = SHA256(passphrase) (see Encoding and signing).