object SecP256K1 extends SecP256K1CurveCommon with SignatureSchema[SecP256K1PrivateKey, SecP256K1PublicKey, SecP256K1Signature]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SecP256K1
- SignatureSchema
- SecP256K1CurveCommon
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canonicalize(s: BigInteger): BigInteger
- Annotations
- @inline()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val curve: SecP256K1Curve
- Definition Classes
- SecP256K1CurveCommon
- Annotations
- @SuppressWarnings()
- val domain: ECDomainParameters
- Definition Classes
- SecP256K1CurveCommon
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def ethEcRecover(messageHash: ByteString, sigBytes: ByteString): Option[ByteString]
Recover and return the eth address that generated the signature.
Recover and return the eth address that generated the signature. The code is adapted from ETH Besu client.
- messageHash
hash of the data that was signed
- sigBytes
65 bytes for (r 32Bytes, s 32Bytes, v 1Byte)
- def generatePriPub(): (SecP256K1PrivateKey, SecP256K1PublicKey)
- Definition Classes
- SecP256K1 → SignatureSchema
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val halfCurveOrder: BigInteger
- Definition Classes
- SecP256K1CurveCommon
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val params: X9ECParameters
- Definition Classes
- SecP256K1CurveCommon
- def point(bytes: ByteString): ECPoint
- def secureGeneratePriPub(): (SecP256K1PrivateKey, SecP256K1PublicKey)
- Definition Classes
- SecP256K1 → SignatureSchema
- def sign(message: Array[Byte], privateKey: Array[Byte]): SecP256K1Signature
- Definition Classes
- SecP256K1 → SignatureSchema
- def sign(message: AVector[Byte], privateKey: SecP256K1PrivateKey): SecP256K1Signature
- Definition Classes
- SignatureSchema
- def sign(bytes: RandomBytes, privateKey: SecP256K1PrivateKey): SecP256K1Signature
- Definition Classes
- SignatureSchema
- def sign(message: ByteString, privateKey: SecP256K1PrivateKey): SecP256K1Signature
- Definition Classes
- SignatureSchema
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verify(message: Array[Byte], signature: Array[Byte], publicKey: Array[Byte]): Boolean
- Definition Classes
- SecP256K1 → SignatureSchema
- def verify(message: AVector[Byte], signature: SecP256K1Signature, publicKey: SecP256K1PublicKey): Boolean
- Definition Classes
- SignatureSchema
- def verify(message: ByteString, signature: SecP256K1Signature, publicKey: SecP256K1PublicKey): Boolean
- Definition Classes
- SignatureSchema
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated