Class EcdsaSignature
Inheritance
object
EcdsaSignature
Assembly: Xrpl.Keypairs.dll
Syntax
public class EcdsaSignature
Constructors
|
Edit this page
View Source
EcdsaSignature(BigInteger, BigInteger)
Constructs a signature with the given components.
Declaration
public EcdsaSignature(BigInteger r, BigInteger s)
Parameters
| Type |
Name |
Description |
| BigInteger |
r |
|
| BigInteger |
s |
|
Fields
|
Edit this page
View Source
R
The two components of the signature.
Declaration
Field Value
| Type |
Description |
| BigInteger |
|
|
Edit this page
View Source
S
The two components of the signature.
Declaration
Field Value
| Type |
Description |
| BigInteger |
|
Methods
|
Edit this page
View Source
CheckIsCanonical(byte[], bool)
Declaration
public static bool CheckIsCanonical(byte[] sig, bool strict)
Parameters
| Type |
Name |
Description |
| byte[] |
sig |
|
| bool |
strict |
|
Returns
|
Edit this page
View Source
DecodeFromDer(byte[])
Declaration
public static EcdsaSignature DecodeFromDer(byte[] bytes)
Parameters
| Type |
Name |
Description |
| byte[] |
bytes |
|
Returns
|
Edit this page
View Source
DerByteStream()
Declaration
protected MemoryStream DerByteStream()
Returns
| Type |
Description |
| MemoryStream |
|
|
Edit this page
View Source
EncodeToDer()
DER is an international standard for serializing data structures which is widely used in cryptography.
It'S somewhat like protocol buffers but less convenient. This method returns a standard DER encoding
of the signature, as recognized by OpenSSL and other libraries.
Declaration
public byte[] EncodeToDer()
Returns
|
Edit this page
View Source
IsStrictlyCanonical(byte[])
Declaration
public static bool IsStrictlyCanonical(byte[] sig)
Parameters
| Type |
Name |
Description |
| byte[] |
sig |
|
Returns