コード例 #1
0
ファイル: WalletSeed.cs プロジェクト: jrick/Paymetheus
 public static string[] EncodeWordList(PgpWordList pgpWordList, byte[] seed)
 {
     var seedHash = DoubleSha256(seed);
     var seedWithChecksum = new byte[seed.Length + 1];
     Array.Copy(seed, seedWithChecksum, seed.Length);
     seedWithChecksum[seedWithChecksum.Length - 1] = seedHash[0];
     return pgpWordList.Encode(seedWithChecksum);
 }
コード例 #2
0
        public static string[] EncodeWordList(PgpWordList pgpWordList, byte[] seed)
        {
            var seedHash         = DoubleSha256(seed);
            var seedWithChecksum = new byte[seed.Length + 1];

            Array.Copy(seed, seedWithChecksum, seed.Length);
            seedWithChecksum[seedWithChecksum.Length - 1] = seedHash[0];
            return(pgpWordList.Encode(seedWithChecksum));
        }
コード例 #3
0
 public static string[] EncodeWordList(PgpWordList pgpWordList, byte[] seed) => pgpWordList.Encode(seed);