Class XrplKeypairs
Inheritance
System.Object
XrplKeypairs
Assembly: Xrpl.Keypairs.dll
Syntax
public static class XrplKeypairs : object
Methods
|
Improve this Doc
View Source
DeriveAddress(String)
Declaration
public static string DeriveAddress(string publicKey)
Parameters
Type |
Name |
Description |
System.String |
publicKey |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DeriveAddressFromBytes(Byte[])
Declaration
public static string DeriveAddressFromBytes(byte[] publicKeyBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
publicKeyBytes |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DeriveKeypair(String, Nullable<String>, Boolean, Int32)
Declaration
public static IXrplKeyPair DeriveKeypair(string seed, string? algorithm = null, bool validator = false, int index = 0)
Parameters
Type |
Name |
Description |
System.String |
seed |
|
System.Nullable<System.String> |
algorithm |
|
System.Boolean |
validator |
|
System.Int32 |
index |
|
Returns
|
Improve this Doc
View Source
FromRandom()
Generate random seed bytes for new account
Declaration
public static byte[] FromRandom()
Returns
Type |
Description |
System.Byte[] |
byte seed array
|
|
Improve this Doc
View Source
GenerateSeed(Byte[], String)
generate string seed from bytes array, if null - random
Declaration
public static string GenerateSeed(byte[] entropy = null, string algorithm = "secp256k1")
Parameters
Type |
Name |
Description |
System.Byte[] |
entropy |
seed byte array
|
System.String |
algorithm |
seed algorithm, base - secp256k1
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetAlgorithmFromKey(String)
get seed algorithm from seed key
Declaration
public static string GetAlgorithmFromKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
seed key
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Sign(Byte[], String)
Declaration
public static string Sign(byte[] message, string privateKey)
Parameters
Type |
Name |
Description |
System.Byte[] |
message |
byte array
|
System.String |
privateKey |
private key
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Verify(Byte[], String, String)
Declaration
public static bool Verify(byte[] message, string signature, string publicKey)
Parameters
Type |
Name |
Description |
System.Byte[] |
message |
|
System.String |
signature |
|
System.String |
publicKey |
|
Returns
Type |
Description |
System.Boolean |
|