C# Class Paymetheus.Bitcoin.Util.Base58

Implements the modified base58 encoding and decoding methods used by Bitcoin wallets.
Show file Open project: btcsuite/Paymetheus

Public Methods

Method Description
Decode ( string data ) : byte[]
Encode ( byte value ) : string
IsBase58Encoded ( string value ) : bool

Checks that the string is base58 encoded, and that it should decode without errors, by checking that each character in the string is a base58 digit.

TryDecode ( string encodedData, byte &decodedResult ) : bool

Method Details

Decode() public static method

public static Decode ( string data ) : byte[]
data string
return byte[]

Encode() public static method

public static Encode ( byte value ) : string
value byte
return string

IsBase58Encoded() public static method

Checks that the string is base58 encoded, and that it should decode without errors, by checking that each character in the string is a base58 digit.
public static IsBase58Encoded ( string value ) : bool
value string The string to check.
return bool

TryDecode() public static method

public static TryDecode ( string encodedData, byte &decodedResult ) : bool
encodedData string
decodedResult byte
return bool