C# Class Paymetheus.Bitcoin.Wallet.WalletSeed

Exibir arquivo Open project: btcsuite/Paymetheus

Public Methods

Method Description
DecodeAndValidateUserInput ( string userInput, PgpWordList pgpWordList ) : byte[]

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

EncodeWordList ( PgpWordList pgpWordList, byte seed ) : string[]
GenerateRandomSeed ( ) : byte[]

Private Methods

Method Description
DecodeUserInput ( string userInput, 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, PgpWordList pgpWordList ) : byte[]
userInput string
pgpWordList PgpWordList
return byte[]

EncodeWordList() public static method

public static EncodeWordList ( PgpWordList pgpWordList, byte seed ) : string[]
pgpWordList PgpWordList
seed byte
return string[]

GenerateRandomSeed() public static method

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