C# Class Paymetheus.Decred.Wallet.WalletSeed

Mostrar archivo Open project: decred/Paymetheus

Public Methods

Method Description
DecodeAndValidateUserInput ( string userInput, Paymetheus.Decred.Wallet.PgpWordList pgpWordList ) : byte[]

Decodes user input as either the hexadecimal or PGP word list encoding of a seed and validates the seed length.

DoubleSha256 ( byte value ) : byte[]
EncodeWordList ( Paymetheus.Decred.Wallet.PgpWordList pgpWordList, byte seed ) : string[]
GenerateRandomSeed ( ) : byte[]

Private Methods

Method Description
DecodeUserInput ( string userInput, Paymetheus.Decred.Wallet.PgpWordList pgpWordList ) : byte[]

Method Details

DecodeAndValidateUserInput() public static method

Decodes user input as either the hexadecimal or PGP word list encoding of a seed and validates the seed length.
public static DecodeAndValidateUserInput ( string userInput, Paymetheus.Decred.Wallet.PgpWordList pgpWordList ) : byte[]
userInput string
pgpWordList Paymetheus.Decred.Wallet.PgpWordList
return byte[]

DoubleSha256() public static method

public static DoubleSha256 ( byte value ) : byte[]
value byte
return byte[]

EncodeWordList() public static method

public static EncodeWordList ( Paymetheus.Decred.Wallet.PgpWordList pgpWordList, byte seed ) : string[]
pgpWordList Paymetheus.Decred.Wallet.PgpWordList
seed byte
return string[]

GenerateRandomSeed() public static method

public static GenerateRandomSeed ( ) : byte[]
return byte[]