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.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FieldElement
  2. Serializable
  3. Product
  4. Equals
  5. FiniteFieldMember
  6. NetworkElement
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new FieldElement(bytes: ByteVector)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(other: FieldElement): FieldElement
    Definition Classes
    FiniteFieldMember
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  7. val bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    FieldElementNetworkElement
  8. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def fieldObj: FiniteFieldObject[FieldElement]
    Definition Classes
    FieldElementFiniteFieldMember
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getPublicKey: ECPublicKey
  15. def hex: String

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  16. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  17. def inverse: FieldElement
    Definition Classes
    FiniteFieldMember
  18. def isEven: Boolean
    Definition Classes
    FiniteFieldMember
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isOdd: Boolean
    Definition Classes
    FiniteFieldMember
  21. def isZero: Boolean
    Definition Classes
    FiniteFieldMember
  22. def multInv(other: FieldElement): FieldElement
    Definition Classes
    FiniteFieldMember
  23. def multiply(other: FieldElement): FieldElement
    Definition Classes
    FiniteFieldMember
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def negate: FieldElement
    Definition Classes
    FiniteFieldMember
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. def subtract(other: FieldElement): FieldElement
    Definition Classes
    FiniteFieldMember
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def thisAsF: FieldElement
    Definition Classes
    FiniteFieldMember
  32. def toBigInteger: BigInteger
    Definition Classes
    FiniteFieldMember
  33. def toPrivateKey: ECPrivateKey
  34. def toString(): String
    Definition Classes
    FieldElement → AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped