Interface EcdsaSignature

All Known Implementing Classes:
EcdsaSignatureImpl

public interface EcdsaSignature
An secp256k1 ECDSA signature.
  • Method Details

    • r

      Get scalar R
      Returns:
      R
    • s

      Get scalar S
      Returns:
      S
    • serializeCompact

      byte[] serializeCompact()
      Serialize as a Bitcoin compact signature. A compact signature is the two signature component scalars (known as r and s) 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 of R, the high-bit is zero.
      Returns:
      true if this signature has a low R value.
    • of

      @Deprecated(forRemoval=true) static EcdsaSignature of(byte[] bytes)
      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 - R
      s - S
      Returns:
      signature