C# Class Paymetheus.Decred.Wallet.WalletSeed

Afficher le fichier Open project: decred/Paymetheus

Méthodes publiques

Méthode 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

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

Method Details

DecodeAndValidateUserInput() public static méthode

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
Résultat byte[]

DoubleSha256() public static méthode

public static DoubleSha256 ( byte value ) : byte[]
value byte
Résultat byte[]

EncodeWordList() public static méthode

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

GenerateRandomSeed() public static méthode

public static GenerateRandomSeed ( ) : byte[]
Résultat byte[]