case class FieldElement(bytes: ByteVector) extends FiniteFieldMember[FieldElement] with Product with Serializable
Represents integers modulo the secp256k1 field size: pow(2,256) - 0x1000003D1.
Supports arithmetic for these elements including +, -, *, and inverses. Supports 32 byte serialization as is needed for ECPrivateKeys.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FieldElement
- Serializable
- Product
- Equals
- FiniteFieldMember
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new FieldElement(bytes: ByteVector)
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
- def add(other: FieldElement): FieldElement
- Definition Classes
- FiniteFieldMember
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- val bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- FieldElement → NetworkElement
- def bytesLE: ByteVector
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def fieldObj: FiniteFieldObject[FieldElement]
- Definition Classes
- FieldElement → FiniteFieldMember
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getPublicKey: ECPublicKey
- def hex: String
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
- Definition Classes
- NetworkElement
- def hexLE: String
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- def inverse: FieldElement
- Definition Classes
- FiniteFieldMember
- def isEven: Boolean
- Definition Classes
- FiniteFieldMember
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOdd: Boolean
- Definition Classes
- FiniteFieldMember
- def isZero: Boolean
- Definition Classes
- FiniteFieldMember
- def multInv(other: FieldElement): FieldElement
- Definition Classes
- FiniteFieldMember
- def multiply(other: FieldElement): FieldElement
- Definition Classes
- FiniteFieldMember
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def negate: FieldElement
- Definition Classes
- FiniteFieldMember
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def subtract(other: FieldElement): FieldElement
- Definition Classes
- FiniteFieldMember
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def thisAsF: FieldElement
- Definition Classes
- FiniteFieldMember
- def toBigInteger: BigInteger
- Definition Classes
- FiniteFieldMember
- def toPrivateKey: ECPrivateKey
- def toString(): String
- Definition Classes
- FieldElement → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()