Trait

special.sigma

BigInt

Related Doc: package sigma

Permalink

trait BigInt extends AnyRef

All modQ operations assume that Q is a global constant (an order of the only one cryptographically strong group which is used for all cryptographic operations). So it is globally and implicitly used in all methods.

Annotations
@Liftable() @WithMethodCallRecognizers()
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BigInt
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def add(that: BigInt): BigInt

    Permalink

    Returns a BigInt whose value is (this + that).

    Returns a BigInt whose value is (this + that).

    that

    value to be added to this BigInt.

    returns

    { @code this + that}

  2. abstract def and(that: BigInt): BigInt

    Permalink

    Returns a BigInteger whose value is (this & that).

    Returns a BigInteger whose value is (this & that). (This method returns a negative BigInteger if and only if this and that are both negative.)

    that

    value to be AND'ed with this BigInteger.

    returns

    this & that

  3. abstract def compareTo(that: BigInt): Int

    Permalink

    Compares this numeric with that numeric for order.

    Compares this numeric with that numeric for order. Returns a negative integer, zero, or a positive integer as the this is less than, equal to, or greater than that.

  4. abstract def divide(that: BigInt): BigInt

    Permalink

    Returns a BigInt whose value is (this / that).

    Returns a BigInt whose value is (this / that).

    that

    value by which this BigInt is to be divided.

    returns

    { @code this / that}

    Exceptions thrown

    ArithmeticException if { @code that} is zero.

  5. abstract def inverseModQ: BigInt

    Permalink

    Multiply this number with other by module Q.

    Multiply this number with other by module Q.

    Since

    Mainnet

  6. abstract def max(that: BigInt): BigInt

    Permalink

    Returns the maximum of this BigInteger and val.

    Returns the maximum of this BigInteger and val.

    that

    value with which the maximum is to be computed.

    returns

    the BigInteger whose value is the greater of this and { @code val}. If they are equal, either may be returned.

  7. abstract def min(that: BigInt): BigInt

    Permalink

    Returns the minimum of this BigInteger and val.

    Returns the minimum of this BigInteger and val.

    that

    value with which the minimum is to be computed.

    returns

    the BigInteger whose value is the lesser of this BigInteger and { @code val}. If they are equal, either may be returned.

  8. abstract def minusModQ(other: BigInt): BigInt

    Permalink

    Subtracts this number with other by module Q.

    Subtracts this number with other by module Q.

    Since

    2.0

  9. abstract def mod(m: BigInt): BigInt

    Permalink

    Returns a BigInt whose value is (this mod m).

    Returns a BigInt whose value is (this mod m). This method differs from remainder in that it always returns a non-negative BigInteger.

    m

    the modulus.

    returns

    { @code this mod m}

    Exceptions thrown

    ArithmeticException { @code m} ≤ 0

    See also

    #remainder

  10. abstract def modQ: BigInt

    Permalink

    Returns this mod Q, i.e.

    Returns this mod Q, i.e. remainder of division by Q, where Q is an order of the cryprographic group.

    Since

    2.0

  11. abstract def multModQ(other: BigInt): BigInt

    Permalink

    Multiply this number with other by module Q.

    Multiply this number with other by module Q.

    Since

    2.0

  12. abstract def multiply(that: BigInt): BigInt

    Permalink

    Returns a BigInt whose value is (this * that).

    Returns a BigInt whose value is (this * that).

    that

    value to be multiplied by this BigInt.

    returns

    { @code this * that}

  13. abstract def negate(): BigInt

    Permalink

    Returns a BigInt whose value is (-this).

    Returns a BigInt whose value is (-this).

    returns

    { @code -this}

  14. abstract def or(that: BigInt): BigInt

    Permalink

    Returns a BigInteger whose value is (this | that).

    Returns a BigInteger whose value is (this | that). (This method returns a negative BigInteger if and only if either this or that is negative.)

    that

    value to be OR'ed with this BigInteger.

    returns

    this | that

  15. abstract def plusModQ(other: BigInt): BigInt

    Permalink

    Adds this number with other by module Q.

    Adds this number with other by module Q.

    Since

    2.0

  16. abstract def remainder(that: BigInt): BigInt

    Permalink

    Returns a BigInt whose value is (this % that).

    Returns a BigInt whose value is (this % that).

    that

    value by which this BigInt is to be divided, and the remainder computed.

    returns

    { @code this % that}

    Exceptions thrown

    ArithmeticException if { @code that} is zero.

  17. abstract def signum: Int

    Permalink

    Returns the signum function of this BigInt.

    Returns the signum function of this BigInt.

    returns

    -1, 0 or 1 as the value of this BigInt is negative, zero or positive.

  18. abstract def subtract(that: BigInt): BigInt

    Permalink

    Returns a BigInt whose value is (this - that).

    Returns a BigInt whose value is (this - that).

    that

    value to be subtracted from this BigInt.

    returns

    { @code this - that}

  19. abstract def toAbs: BigInt

    Permalink

    Absolute value of this numeric value.

    Absolute value of this numeric value.

    Since

    2.0

  20. abstract def toBits: Coll[Boolean]

    Permalink

    Returns a big-endian representation of this BigInt in a collection of Booleans.

    Returns a big-endian representation of this BigInt in a collection of Booleans. Each boolean corresponds to one bit of the representation.

    Since

    2.0

  21. abstract def toByte: Byte

    Permalink

    Convert this BigInt value to Byte.

    Convert this BigInt value to Byte.

    Exceptions thrown

    ArithmeticException if overflow happens.

  22. abstract def toBytes: Coll[Byte]

    Permalink

    Returns a big-endian representation of this BigInt in a collection of bytes.

    Returns a big-endian representation of this BigInt in a collection of bytes. For example, the value 0x1213141516171819 would yield the byte array {0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19}.

    Since

    2.0

  23. abstract def toInt: Int

    Permalink

    Convert this BigInt value to Int.

    Convert this BigInt value to Int.

    Exceptions thrown

    ArithmeticException if overflow happens.

  24. abstract def toLong: Long

    Permalink

    Convert this BigInt value to Int.

    Convert this BigInt value to Int.

    Exceptions thrown

    ArithmeticException if overflow happens.

  25. abstract def toShort: Short

    Permalink

    Convert this BigInt value to Short.

    Convert this BigInt value to Short.

    Exceptions thrown

    ArithmeticException if overflow happens.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def %(m: BigInt): BigInt

    Permalink
    Annotations
    @Internal()
  4. def &(that: BigInt): BigInt

    Permalink
    Annotations
    @Internal()
  5. def *(that: BigInt): BigInt

    Permalink
    Annotations
    @Internal()
  6. def +(that: BigInt): BigInt

    Permalink
    Annotations
    @Internal()
  7. def -(that: BigInt): BigInt

    Permalink
    Annotations
    @Internal()
  8. def /(that: BigInt): BigInt

    Permalink
    Annotations
    @Internal()
  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def |(that: BigInt): BigInt

    Permalink
    Annotations
    @Internal()

Inherited from AnyRef

Inherited from Any

Ungrouped