C# Class Paymetheus.Bitcoin.Wallet.PgpWordList

Show file Open project: btcsuite/Paymetheus Class Usage Examples

Public Methods

Method Description
Decode ( string words ) : byte[]

Creates the original byte stream for a PGP word list encoding.

Encode ( byte value ) : string[]

Create the PGP word list encoding of a byte stream.

PgpWordList ( ) : System

Private Methods

Method Description
CaseInsensitive ( string word ) : string
MismatchedIndex ( int byteIndex, ushort wordListIndex ) : bool
OriginalByte ( ushort wordIndex ) : byte
WordListIndex ( byte b, int byteIndex ) : int

Method Details

Decode() public method

Creates the original byte stream for a PGP word list encoding.
The words argument is null /// The words argument is not a valid PGP word list encoding ///
public Decode ( string words ) : byte[]
words string The encoded byte stream
return byte[]

Encode() public method

Create the PGP word list encoding of a byte stream.
The value argument is null
public Encode ( byte value ) : string[]
value byte The byte stream to encode
return string[]

PgpWordList() public method

public PgpWordList ( ) : System
return System