C# Class BitSharper.DumpedPrivateKey

Parses and generates private keys in the form used by the BitCoin "dumpprivkey" command. This is the private key bytes with a header byte and 4 checksum bytes at the end.
Inheritance: VersionedChecksummedBytes
显示文件 Open project: TangibleCryptography/BitSharper

Public Methods

Method Description
DumpedPrivateKey ( NetworkParameters @params, string encoded ) : System

Parses the given private key as created by the "dumpprivkey" BitCoin C++ RPC.

Private Methods

Method Description
DumpedPrivateKey ( NetworkParameters @params, byte keyBytes ) : System

Method Details

DumpedPrivateKey() public method

Parses the given private key as created by the "dumpprivkey" BitCoin C++ RPC.
If the string is invalid or the header byte doesn't match the network params.
public DumpedPrivateKey ( NetworkParameters @params, string encoded ) : System
@params NetworkParameters
encoded string The base58 encoded string.
return System