Class EcdsaSignature
Inheritance
System.Object
EcdsaSignature
Assembly: Xrpl.Keypairs.dll
Syntax
public class EcdsaSignature : object
Constructors
|
Improve this Doc
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
|
Improve this Doc
View Source
R
The two components of the signature.
Declaration
Field Value
Type |
Description |
BigInteger |
|
|
Improve this Doc
View Source
S
The two components of the signature.
Declaration
Field Value
Type |
Description |
BigInteger |
|
Methods
|
Improve this Doc
View Source
CheckIsCanonical(Byte[], Boolean)
Declaration
public static bool CheckIsCanonical(byte[] sig, bool strict)
Parameters
Type |
Name |
Description |
System.Byte[] |
sig |
|
System.Boolean |
strict |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DecodeFromDer(Byte[])
Declaration
public static EcdsaSignature DecodeFromDer(byte[] bytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
Returns
|
Improve this Doc
View Source
DerByteStream()
Declaration
protected MemoryStream DerByteStream()
Returns
Type |
Description |
MemoryStream |
|
|
Improve this Doc
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
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
IsStrictlyCanonical(Byte[])
Declaration
public static bool IsStrictlyCanonical(byte[] sig)
Parameters
Type |
Name |
Description |
System.Byte[] |
sig |
|
Returns
Type |
Description |
System.Boolean |
|