Class Signer
Inheritance
System.Object
Signer
Assembly: Xrpl.dll
Syntax
public class Signer : object
Methods
|
Improve this Doc
View Source
AddressToBigNumber(String)
Declaration
public static BigInteger AddressToBigNumber(string address)
Parameters
Type |
Name |
Description |
System.String |
address |
|
Returns
Type |
Description |
BigInteger |
|
|
Improve this Doc
View Source
AuthorizeChannel(XrplWallet, String, String)
Creates a signature that can be used to redeem a specific amount of XRP from a payment channel.
Declaration
public static string AuthorizeChannel(XrplWallet wallet, string channelID, string amount)
Parameters
Type |
Name |
Description |
XrplWallet |
wallet |
The account that will sign for this payment channel.
|
System.String |
channelID |
An id for the payment channel to redeem XRP from.
|
System.String |
amount |
The amount in drops to redeem.
|
Returns
Type |
Description |
System.String |
A signature that can be used to redeem a specific amount of XRP from a payment channel.
|
|
Improve this Doc
View Source
CompareSigners(Dictionary<String, Object>, Dictionary<String, Object>)
Declaration
public static int CompareSigners(Dictionary<string, dynamic> left, Dictionary<string, dynamic> right)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
left |
|
Dictionary<System.String, System.Object> |
right |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetDecodedTransaction(Dictionary<String, Object>)
Declaration
public static Dictionary<string, dynamic> GetDecodedTransaction(Dictionary<string, dynamic> txOrBlob)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
txOrBlob |
|
Returns
Type |
Description |
Dictionary<System.String, System.Object> |
|
|
Improve this Doc
View Source
GetDecodedTransaction(String)
Declaration
public static Dictionary<string, dynamic> GetDecodedTransaction(string txOrBlob)
Parameters
Type |
Name |
Description |
System.String |
txOrBlob |
|
Returns
Type |
Description |
Dictionary<System.String, System.Object> |
|
|
Improve this Doc
View Source
GetTransactionWithAllSigners(Dictionary<String, Object>[])
Declaration
public static Dictionary<string, dynamic> GetTransactionWithAllSigners(Dictionary<string, dynamic>[] transactions)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object>[] |
transactions |
|
Returns
Type |
Description |
Dictionary<System.String, System.Object> |
|
|
Improve this Doc
View Source
Multisign(Dictionary<String, Object>[])
Takes several transactions with Signer fields (in object or blob form) and creates a single transaction with all Signers that then gets signed and returned.
Declaration
public static string Multisign(Dictionary<string, dynamic>[] txs)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object>[] |
txs |
An array of signed Transactions (in object or blob form) to combine into a single signed Transaction.
|
Returns
Type |
Description |
System.String |
A single signed Transaction which has all Signers from transactions within it.
|
|
Improve this Doc
View Source
ValidateTransactionEquivalence(Dictionary<String, Object>[])
The transactions should all be equal except for the 'Signers' field.
Declaration
public static void ValidateTransactionEquivalence(Dictionary<string, dynamic>[] transactions)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object>[] |
transactions |
An array of Transactions which are expected to be equal other than 'Signers'.
|
|
Improve this Doc
View Source
VerifySignature(Dictionary<String, Object>)
Verifies that the given transaction has a valid signature based on public-key encryption.
Declaration
public static bool VerifySignature(Dictionary<string, dynamic> tx)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
tx |
A transaction object to verify the signature of. (Can be in object or encoded string format).
|
Returns
Type |
Description |
System.Boolean |
Returns true if tx has a valid signature, and returns false otherwise.
|
|
Improve this Doc
View Source
VerifySignature(String)
Verifies that the given transaction has a valid signature based on public-key encryption.
Declaration
public static bool VerifySignature(string tx)
Parameters
Type |
Name |
Description |
System.String |
tx |
A transaction string to verify the signature of.
|
Returns
Type |
Description |
System.Boolean |
Returns true if tx has a valid signature, and returns false otherwise.
|