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

And i attempted this code in C#. Values ​​are usually 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.Major)} : {key.PrivateKey.GetWif(Community.Major)}");
}

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

// Count on (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 website. Take care in asking for clarification, commenting, and answering.
Try our Code of Conduct.