Class Key
Inheritance
System.Object
Key
Assembly: Netmavryk.dll
Syntax
public class Key : object
Constructors
|
Improve this Doc
View Source
Key(ECKind)
Declaration
public Key(ECKind kind = default(ECKind))
Parameters
| Type |
Name |
Description |
| ECKind |
kind |
|
Properties
|
Improve this Doc
View Source
Address
Declaration
public string Address { get; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
PubKey
Declaration
public PubKey PubKey { get; }
Property Value
Methods
|
Improve this Doc
View Source
FromBase58(String)
Declaration
public static Key FromBase58(string base58)
Parameters
| Type |
Name |
Description |
| System.String |
base58 |
|
Returns
|
Improve this Doc
View Source
FromBase64(String, ECKind)
Declaration
public static Key FromBase64(string base64, ECKind kind = default(ECKind))
Parameters
| Type |
Name |
Description |
| System.String |
base64 |
|
| ECKind |
kind |
|
Returns
|
Improve this Doc
View Source
FromBytes(Byte[], ECKind)
Declaration
public static Key FromBytes(byte[] bytes, ECKind kind = default(ECKind))
Parameters
| Type |
Name |
Description |
| System.Byte[] |
bytes |
|
| ECKind |
kind |
|
Returns
|
Improve this Doc
View Source
FromHex(String, ECKind)
Declaration
public static Key FromHex(string hex, ECKind kind = default(ECKind))
Parameters
| Type |
Name |
Description |
| System.String |
hex |
|
| ECKind |
kind |
|
Returns
|
Improve this Doc
View Source
FromMnemonic(Mnemonic)
Declaration
public static Key FromMnemonic(Mnemonic mnemonic)
Parameters
Returns
|
Improve this Doc
View Source
FromMnemonic(Mnemonic, String, ECKind)
Declaration
public static Key FromMnemonic(Mnemonic mnemonic, string passphrase, ECKind kind = default(ECKind))
Parameters
| Type |
Name |
Description |
| Mnemonic |
mnemonic |
|
| System.String |
passphrase |
|
| ECKind |
kind |
|
Returns
|
Improve this Doc
View Source
FromMnemonic(Mnemonic, String, String)
Declaration
public static Key FromMnemonic(Mnemonic mnemonic, string email, string password)
Parameters
| Type |
Name |
Description |
| Mnemonic |
mnemonic |
|
| System.String |
email |
|
| System.String |
password |
|
Returns
|
Improve this Doc
View Source
GetBase58()
Declaration
public string GetBase58()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetBytes()
Declaration
Returns
| Type |
Description |
| System.Byte[] |
|
|
Improve this Doc
View Source
GetHex()
Declaration
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Sign(Byte[])
Declaration
public Signature Sign(byte[] bytes)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
bytes |
|
Returns
|
Improve this Doc
View Source
Sign(String)
Declaration
public Signature Sign(string message)
Parameters
| Type |
Name |
Description |
| System.String |
message |
|
Returns
|
Improve this Doc
View Source
SignOperation(Byte[])
Prepends forged operation bytes with 0x03 and signs the result
Declaration
public Signature SignOperation(byte[] bytes)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
bytes |
Forged operation bytes
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Verify(Byte[], Byte[])
Declaration
public bool Verify(byte[] data, byte[] signature)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
data |
|
| System.Byte[] |
signature |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Verify(String, String)
Declaration
public bool Verify(string message, string signature)
Parameters
| Type |
Name |
Description |
| System.String |
message |
|
| System.String |
signature |
|
Returns
| Type |
Description |
| System.Boolean |
|