SPB Git

Repository Public

CHAINS.md 9.4 KB

# QYVORA — chains

One section per chain: network identifiers, derivation, address format, fee model, indexers and their limits, what is and is not supported. Every statement is read from the code named next to it; the register of what was verified is STATUS.md. No transaction has been broadcast by this application on any of these chains so far.

Common to all of them:

  • One BIP-39 recovery phrase. Registry of networks: ChainRegistry (Sources/QyvoraWallet/Chains.swift); the identifiers below are ChainID raw values and never change between versions.
  • Test networks by default. Main networks need an internal build and the user's opt-in, and then per-transaction limits apply (MainnetPolicy, Sources/QyvoraCore/Networks.swift); ChainRegistry.previewLimits(for:) gives the sentences shown to the user.
  • Every endpoint is public, keyless and replaceable in the settings (defaults: EndpointConfiguration.default and EVMEndpointDefaults in Sources/QyvoraNetworking/HTTP.swift, SolanaEndpoints.default, TronEndpoints.default). An endpoint must prove which chain it serves before its data is used (genesis or identity block, EIP-155 chain id).
  • No signature scheme of any of these networks resists a large quantum computer.

# Bitcoin

Networks bitcoin, bitcoin-signet (default test network), bitcoin-testnet
Derivation BIP-84, m/84'/0'/0' (main), m/84'/1'/0' (test); receive …/0/i, change …/1/i
Addresses native SegWit P2WPKH, Bech32 (bc1q…, tb1q…); a new address for every payment
Signatures secp256k1 ECDSA (BIP-143 digest). Schnorr (BIP-340) is implemented in the engine and not used for spending
Fees fee rate (sat/vB) × virtual size; slow / normal / fast from the indexer's estimates, or a custom rate; coin control
Indexers Esplora: mempool.space and blockstream.info
Cold signing yes, PSBT (BIP-174)
Unaudited mainnet limits 0.002 BTC per transaction; fee at most 20 000 sat and 200 sat/vB

More: BITCOIN.md.

# Litecoin

Networks litecoin, litecoin-testnet
Derivation BIP-84, m/84'/2'/0' (main), m/84'/1'/0' (test)
Addresses native SegWit, Bech32 (ltc1q…, tltc1q…)
Signatures secp256k1 ECDSA, BIP-143 digest
Fees fee rate × virtual size, three tiers or custom, coin control
Indexers main: Blockbook (zelcore, atomicwallet) and Bitcore; test: Bitcore
Cold signing no
Unaudited mainnet limits 150 USD per transaction, with fresh prices from two sources that agree; fee at most 0.001 LTC and 200 litoshi/vB

# Dogecoin

Networks dogecoin, dogecoin-testnet
Derivation BIP-44, m/44'/3'/0' (main), m/44'/1'/0' (test)
Addresses legacy P2PKH, Base58Check (D…); Dogecoin has no SegWit
Signatures secp256k1 ECDSA, legacy digest: it does not commit to the amounts, so the wallet reads the previous transactions of the coins it spends before signing
Fees fee rate × size (minimum 1 DOGE per kB), three tiers or custom, coin control
Indexers main: Blockbook (zelcore) and Bitcore. Test network: none in the built-in endpoints; its balance and history cannot be read
Cold signing no
Unaudited mainnet limits 150 USD per transaction, with fresh prices from two sources that agree; fee at most 5 DOGE and 1 DOGE/kB

# Bitcoin Cash

Networks bitcoin-cash, bitcoin-cash-testnet (testnet4)
Derivation BIP-44, m/44'/145'/0' (main), m/44'/1'/0' (test)
Addresses CashAddr P2PKH with its prefix (bitcoincash:q…, bchtest:q…); a CashAddr without prefix is refused, the legacy form is accepted on input with a note
Signatures secp256k1 ECDSA, BIP-143 digest with fork id
Fees fee rate × size, three tiers or custom, coin control; no replace-by-fee
Indexers main: Blockbook (zelcore) and Bitcore; test: Bitcore. Bitcoin Cash shares Bitcoin's genesis block: an endpoint is identified by a block after the fork
Cold signing no
Unaudited mainnet limits 150 USD per transaction, with fresh prices from two sources that agree; fee at most 0.0005 BCH and 20 sat/byte

For the three coins above the last synchronization is kept between launches (UTXOCoinSyncRecord, Sources/QyvoraWallet/WalletService+UTXOCoins.swift) and shown as the previous session's until a new one completes; each synchronization reads every address again (no incremental reuse). Exposed outputs can be swept to a fresh address with prepareSweepOfExposed(chain:), signed on the device.

# EVM networks

One account for all of them: m/44'/60'/0'/0/0, secp256k1 ECDSA, EIP-55 address. Only EIP-1559 (type 2) transactions are signed; the chain id is inside the signed payload. Fee: slow / normal / fast priority fee by the rules of each network (EVMFeeRules); feeQuote(chain:asset:) gives an estimate before a recipient exists, the review of prepareSend states the real expected and maximum fee. ERC-20 tokens: built-in list, custom tokens read on chain, tokens found by the indexer kept apart until accepted. Cold signing: yes (the unsigned 0x02 payload). Open token approvals are found in the history and can be revoked on the network they are on.

Chain Identifiers Chain id (main / test) Coin History source shipped
Ethereum ethereum, ethereum-sepolia 1 / 11155111 ETH both (Blockscout)
Base base, base-sepolia 8453 / 84532 ETH Sepolia only
Arbitrum arbitrum, arbitrum-sepolia 42161 / 421614 ETH none
Optimism optimism, optimism-sepolia 10 / 11155420 ETH both
Polygon polygon, polygon-amoy 137 / 80002 POL none
BNB Smart Chain bsc, bsc-testnet 56 / 97 BNB none
Avalanche C-Chain avalanche, avalanche-fuji 43114 / 43113 AVAX both (Routescan, Etherscan dialect)

Where no history source ships, balances and payments work; history, token discovery and approvals are not available and the wallet says so. Base and OP Mainnet (OP Stack) add an L1 data fee, quoted by the network's GasPriceOracle and included in the fee shown; a cold device cannot verify it. On Arbitrum the gas of a plain transfer is estimated by the node (it carries the L1 component). Unaudited mainnet limits: a native value ceiling and a fee ceiling per network (MainnetPolicy.nativeValueCeiling(for:), feeCeiling(for:): 0.05 ETH and 0.01 ETH of fee on Ethereum), 150 USD per token transfer (a dollar-pegged token counts for at least 0.90 USD; any other needs fresh prices from two sources that agree), approvals only to revoke.

More: ETHEREUM.md.

# Solana

Networks solana (mainnet-beta), solana-devnet (default test network), solana-testnet
Derivation SLIP-0010 Ed25519, m/44'/501'/0'/0'
Address the Ed25519 public key itself, base58. No checksum: a mistyped character usually gives another valid address
Signatures Ed25519 (RFC 8032), written from scratch (Sources/QyvoraEd25519)
Fees 5 000 lamports per signature plus a priority fee (compute-unit price × units reserved); slow / normal / fast from recent prioritization fees, or a custom price
Endpoints JSON-RPC of each cluster; history from the same RPC (the 20 most recent signatures)
Tokens SPL Token and Token-2022 (transfers with extensions the wallet does not handle are refused); the sender pays the rent of a recipient's new token account, shown apart from the fee
Validity a transaction is tied to a recent blockhash: about a minute (SendReview.expiresAt)
Cold signing reviewed offline (qyvtx1 envelope); while the build is unaudited, signed only by a device that is online, which first checks that the blockhash is not a main-network one (QYV-APP-040)
Unaudited mainnet limits 150 USD of SOL per transaction, with fresh prices from two sources that agree; priority fee at most 0.01 SOL; a new token account at most 0.01 SOL

Every payment is simulated by the node before the user is asked anything. A memo can be attached.

# TRON

Networks tron, tron-nile (default test network), tron-shasta
Derivation BIP-32 secp256k1, m/44'/195'/0'/0/0
Address Base58Check, 34 characters starting with T
Signatures secp256k1 ECDSA over the SHA-256 of the transaction's raw data (protobuf encoded by the wallet itself)
Fees no tiers. Bandwidth for the bytes and, for a token, energy; what the account lacks is paid by burning TRX; a first payment to an unused address pays its activation. feeQuote gives a resource estimate
Endpoints full nodes (TronGrid, PublicNode, nileex.io) and the TronGrid history index
Tokens TRC-20; the outcome of a transfer is read from its receipt, never from the return value
Validity two minutes; thirty when prepared for cold signing
Cold signing reviewed offline (qyvtx1 envelope); while the build is unaudited, signed only by a device that is online, which first checks that the reference block is not a main-network one (QYV-APP-040)
Unaudited mainnet limits 150 USD of TRX per transaction, with fresh prices from two sources that agree; fee limit and worst-case fee at most 100 TRX

TRON broadcast has never been exercised against a real node; every TRON review says so. Whether the account ever sent a transaction is measured from the history, from one extra question to the index for a long history (only_from=true), and from the bandwidth or energy the account consumed.

Files main
Menu

Theme