class EosSharp::Core::Providers::DefaultSignProvider
: public ISignProvider
Signature provider default implementation that stores private keys in memory.
Members | Descriptions |
---|---|
public DefaultSignProvider (string privateKey) |
Create provider with single private key. |
public DefaultSignProvider () |
|
public DefaultSignProvider (List< string > privateKeys) |
Create provider with list of private keys. |
public DefaultSignProvider (Dictionary< string, string > encodedKeys) |
Create provider with dictionary of encoded key pairs. |
public DefaultSignProvider (Dictionary< string, byte[]> keys) |
Create provider with dictionary of key pair with private key as byte array. |
public Task< IEnumerable< string > > GetAvailableKeys () |
Get available public keys from signature provider. |
public Task< IEnumerable< string > > Sign (string chainId, IEnumerable< string > requiredKeys, byte[] signBytes, IEnumerable< string > abiNames) |
Sign bytes using the signature provider. |
public string Sign (string chainId, byte[] signBytes) |
Sign bytes using the signature provider. |
public Dictionary< string, string > Sign () |
|
private readonly byte[] KeyTypeBytes = Encoding.UTF8.GetBytes("K1") |
|
private readonly Dictionary< string, byte[]> Keys = new Dictionary<string, byte[]>() |
public
DefaultSignProvider
(string privateKey)
Create provider with single private key.
privateKey
public
DefaultSignProvider
()
public
DefaultSignProvider
(List< string > privateKeys)
Create provider with list of private keys.
privateKeys
public
DefaultSignProvider
(Dictionary< string, string > encodedKeys)
Create provider with dictionary of encoded key pairs.
encodedKeys
public
DefaultSignProvider
(Dictionary< string, byte[]> keys)
Create provider with dictionary of key pair with private key as byte array.
keys
public Task< IEnumerable< string > >
GetAvailableKeys
()
Get available public keys from signature provider.
List of public keys
public Task< IEnumerable< string > >
Sign
(string chainId, IEnumerable< string > requiredKeys, byte[] signBytes, IEnumerable< string > abiNames)
Sign bytes using the signature provider.
-
chainId
EOSIO Chain id -
requiredKeys
required public keys for signing this bytes -
signBytes
signature bytes -
abiNames
abi contract names to get abi information from
List of signatures per required keys
public string
Sign
(string chainId, byte[] signBytes)
Sign bytes using the signature provider.
-
key
key used for signing -
signBytes
signature bytes -
abiNames
abi contract names to get abi information from
List of signatures per required keys