C# Class lageant.client.Models.Keystore

Mostrar archivo Open project: bitbeans/lageant

Private Properties

Property Type Description
ConvertToByteArray byte[]

Public Methods

Method Description
GetKeyById ( byte id ) : Key

Try to retrieve a key by it`s key id.

GetKeyById ( string id ) : Key

Try to retrieve a key by it`s key id.

GetKeyByPrivateKey ( byte privateKey ) : Key

Try to retrieve a key by it`s private key.

GetKeyByPrivateKey ( string privateKey ) : Key

Try to retrieve a key by it`s private key.

GetKeyByPublicKey ( byte publicKey ) : Key

Try to retrieve a key by it`s public key.

GetKeyByPublicKey ( string publicKey ) : Key

Try to retrieve a key by it`s public key.

Private Methods

Method Description
ConvertToByteArray ( string hex ) : byte[]

Convert hex into byte array.

Method Details

GetKeyById() public method

Try to retrieve a key by it`s key id.
public GetKeyById ( byte id ) : Key
id byte A 8 byte key id.
return Key

GetKeyById() public method

Try to retrieve a key by it`s key id.
public GetKeyById ( string id ) : Key
id string A 8 byte key id (as hex).
return Key

GetKeyByPrivateKey() public method

Try to retrieve a key by it`s private key.
public GetKeyByPrivateKey ( byte privateKey ) : Key
privateKey byte A 32 byte private key.
return Key

GetKeyByPrivateKey() public method

Try to retrieve a key by it`s private key.
public GetKeyByPrivateKey ( string privateKey ) : Key
privateKey string A 32 byte private key (as hex).
return Key

GetKeyByPublicKey() public method

Try to retrieve a key by it`s public key.
public GetKeyByPublicKey ( byte publicKey ) : Key
publicKey byte A 32 byte public key.
return Key

GetKeyByPublicKey() public method

Try to retrieve a key by it`s public key.
public GetKeyByPublicKey ( string publicKey ) : Key
publicKey string A 32 byte public key (as hex).
return Key