Interface SecpScalar

All Known Implementing Classes:
SecpScalarImpl

public interface SecpScalar
  • Field Details

  • Method Details

    • toBigInteger

      BigInteger toBigInteger()
      Get the scalar as a BigInteger
      Returns:
      scalar value
    • isInRange

      static boolean isInRange(BigInteger e)
      Check if an integer is in the inclusive range 1 to N - 1, where N is the order of the SECG P256K1 generator point.
      Parameters:
      e - A possible scalar to validate
      Returns:
      true if valid
    • checkInRange

      static BigInteger checkInRange(BigInteger e)
      Throw IllegalArgumentException if an integer is not in the inclusive range 1 to N - 1, where N is the order of the SECG P256K1 generator point.
      Parameters:
      e - unvalidated integer
      Returns:
      a validated integer
    • serialize

      byte[] serialize()