Skip to content

Wrong coinIdx for EthereumTestnet? #14

@marco-moreiraf

Description

@marco-moreiraf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions