Interface EcdsaSignature
- All Known Implementing Classes:
EcdsaSignatureImpl
public interface EcdsaSignature
An secp256k1 ECDSA signature.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasLowR()Is this signature a "low R" signature.static EcdsaSignatureof(byte[] bytes) Deprecated, for removal: This API element is subject to removal in a future version.static EcdsaSignatureof(SecpScalar r, SecpScalar s) Deprecated, for removal: This API element is subject to removal in a future version.r()Get scalar Rs()Get scalar Sbyte[]Serialize as a Bitcoin compact signature.
-
Method Details
-
r
-
s
-
serializeCompact
byte[] serializeCompact()Serialize as a Bitcoin compact signature. A compact signature is the two signature component scalars (known asrands) serialized in-order as binary data in big-endian format.- Returns:
- a Bitcoin compact signature
-
hasLowR
boolean hasLowR()Is this signature a "low R" signature. In other words: In a 256-bit big-endian representation ofR, the high-bit is zero.- Returns:
- true if this signature has a low R value.
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Create an ECDSA signature from serialized bytes- Parameters:
bytes- bytes- Returns:
- signature
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Create an ECDSA signature from R and S values- Parameters:
r- Rs- S- Returns:
- signature
-
Secp256k1.ecdsaSignatureParseCompact(byte[])