blockchain_utils
blockchain_utils copied to clipboard
Wrong coinIdx for EthereumTestnet?
Should this ethereumTestnet BipCoinConfig be used for networks like Ethereum Sepolia and Ethereum Holesky?
I am asking this because it uses coinIdx = 1 (the Bitcoin testnet's SLIP44 coin type). But, if this configuration is intended to represent the Sepolia network, it should use the same coinIdx as the Ethereum Mainnet (60), right? Since Ethereum derives the same keys on both networks.
- bip44_conf.dart (765-776):
/// Configuration for EthereumTestnet
static final BipCoinConfig ethereumTestnet = BipCoinConfig(
coinNames: CoinsConf.ethereum.coinName,
coinIdx: Slip44.testnet,
chainType: ChainType.testnet,
defPath: derPathNonHardenedFull,
keyNetVer: bip44BtcKeyNetVerMain,
wifNetVer: null,
type: EllipticCurveTypes.secp256k1,
addressEncoder: ([dynamic kwargs]) => EthAddrEncoder(),
addrParams: {},
);
Thank you.