I’ve one easy query for folks which have good btc pockets information. I want to revive addresses and wif from mnemonic which Electrum created. In GUI of Electrum we now have “Pockets -> Info” part. There’s following values

And i attempted this code in C#. Values ​​usually are not what I anticipated. The place is my mistake?

utilizing NBitcoin;

Mnemonic mnemonic = new Mnemonic("join romance model oil cabbage banner east walnut fundamental north artwork jacket");
ExtKey hdroot = mnemonic.DeriveExtKey();
for (int i = 0; i < 5; i++)
{
    var key = hdroot.Derive(new KeyPath($"m/0'/{i}"));
    Console.WriteLine($"{key.PrivateKey.PubKey.GetAddress(ScriptPubKeyType.Segwit, Community.Primary)} : {key.PrivateKey.GetWif(Community.Primary)}");
}

// Output
//bc1q9acklm833kjug39yjdaezj3fyxdxjcmtg89wta: L1GGaEo1BA6oN5qRSuRz6f5txWHVStuHMEiYDimQQvKW2L7ZjmHd
//bc1qk3gqruqp3zvf02ke7v39kc43y9fy9esmxa23fg : KwfjRDfRyZDvTdaeTwszWhscAopLoKEutgM3UdZ1H2qypXNyBHJ1
//bc1qyrdt9422dap672p09e8keh286rlmlj7cnelc7g : KwDvbcEqa4qQPN1jfx7djLg7ZnnU9KyvMzL8uNrpFYmKwx6DmfvQ
//bc1q0yhxndekl8mpzksnknhj89vk948gkg8ta97j64 : Kx8p644NryKyF9NAXHW2EhJeZ9LHaf2GQJtLsZr6aRzVwELCcb6p
//bc1qjzgmxhgsemng5jsrpf5ewnc06l8895fmknsh92 : KwicTqWtH4oqyVdKMPTgHwyHuKF8RngYNmoaqBkFmc21xYLTYH5d

// Anticipate (Electrum export)
//bc1qpcd04aph9n53rnesx57ywwlzclay98j4erc5l5 p2wpkh:KxESNLwnVJYAXadt7qvxcqp1tfXuhf9HezHvZrMnCo5EbZzQGz2a
//bc1qehmcuy2t8q0864n92tfa34fgdkspzdtncxz9hk    p2wpkh:KxYwYRsb7YjpnR535EtwZ6GoTjMwTDvVcAntLBbNTDdkRidypXDF
//bc1qj2dmsx358ejpu4gfph862lkxamvx9xmuh9ttdu    p2wpkh:L5etBJASHrJ2ASsddetVFNSEXuEnX8kkQanvW2EBte7qDGbUUdGE
//bc1qls4k3u64q6mgdgss24ws4yfyk7scsm3s6ff99j    p2wpkh:KxKRuamb6SBEfCSj3iMLTJLwQ5AD1mCJj1CbJ8Nm2ZeRrnY5iMAM
//bc1q9nm2q7wggfrjnfv5dn2vv45hevksn75x48p457    p2wpkh:KxijCSahgFqmGoC7NzyNBYA7fHFaXDqLhtRktW5t3s3DjQbJ3qtS

Decimal Halmer is a brand new contributor to this web site. Take care in asking for clarification, commenting, and answering.
Try our Code of Conduct.