Class XrplKeypairs
Inheritance
object
XrplKeypairs
Assembly: Xrpl.Keypairs.dll
Syntax
public static class XrplKeypairs
Methods
|
Edit this page
View Source
DeriveAddress(string)
Declaration
public static string DeriveAddress(string publicKey)
Parameters
| Type |
Name |
Description |
| string |
publicKey |
|
Returns
|
Edit this page
View Source
DeriveAddressFromBytes(byte[])
Declaration
public static string DeriveAddressFromBytes(byte[] publicKeyBytes)
Parameters
| Type |
Name |
Description |
| byte[] |
publicKeyBytes |
|
Returns
|
Edit this page
View Source
DeriveKeypair(string, string?, bool, int)
Declaration
public static IXrplKeyPair DeriveKeypair(string seed, string? algorithm = null, bool validator = false, int index = 0)
Parameters
| Type |
Name |
Description |
| string |
seed |
|
| string |
algorithm |
|
| bool |
validator |
|
| int |
index |
|
Returns
|
Edit this page
View Source
DerivePublicKeyFromPrivateKey(string)
Declaration
public static string DerivePublicKeyFromPrivateKey(string privateKey)
Parameters
| Type |
Name |
Description |
| string |
privateKey |
|
Returns
|
Edit this page
View Source
FromRandom()
Generate random seed bytes for new account
Declaration
public static byte[] FromRandom()
Returns
| Type |
Description |
| byte[] |
byte seed array
|
|
Edit this page
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 |
| byte[] |
entropy |
seed byte array
|
| string |
algorithm |
seed algorithm, base - secp256k1
|
Returns
|
Edit this page
View Source
GetAlgorithmFromKey(string)
get seed algorithm from seed key
Declaration
public static string GetAlgorithmFromKey(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
seed key
|
Returns
|
Edit this page
View Source
Sign(byte[], string)
Declaration
public static string Sign(byte[] message, string privateKey)
Parameters
| Type |
Name |
Description |
| byte[] |
message |
byte array
|
| string |
privateKey |
private key
|
Returns
|
Edit this page
View Source
Sign(string, string)
Declaration
public static string Sign(string HexMessage, string privateKey)
Parameters
| Type |
Name |
Description |
| string |
HexMessage |
Hex Message
|
| string |
privateKey |
private key
|
Returns
|
Edit this page
View Source
Verify(byte[], string, string)
Declaration
public static bool Verify(byte[] message, string signature, string publicKey)
Parameters
| Type |
Name |
Description |
| byte[] |
message |
|
| string |
signature |
|
| string |
publicKey |
|
Returns
|
Edit this page
View Source
Verify(string, string, string)
Declaration
public static bool Verify(string HexMessage, string signature, string publicKey)
Parameters
| Type |
Name |
Description |
| string |
HexMessage |
|
| string |
signature |
|
| string |
publicKey |
|
Returns