object ScriptNumberUtil extends ScriptNumberUtil

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScriptNumberUtil
  2. ScriptNumberUtil
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def changeSignBitToNegative(bytes: ByteVector): ByteVector
    Definition Classes
    ScriptNumberUtil
  6. def changeSignBitToNegative(hex: String): ByteVector
    Definition Classes
    ScriptNumberUtil
  7. def changeSignBitToPositive(hex: String): ByteVector
    Definition Classes
    ScriptNumberUtil
  8. def changeSignBitToPositive(bytes: ByteVector): ByteVector

    Change sign bit to positive

    Change sign bit to positive

    Definition Classes
    ScriptNumberUtil
  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 equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. def firstByteAllZeros(hex: String): Boolean
    Definition Classes
    ScriptNumberUtil
  14. def firstByteAllZeros(bytes: ByteVector): Boolean
    Definition Classes
    ScriptNumberUtil
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isNegative(bytes: ByteVector): Boolean
    Definition Classes
    ScriptNumberUtil
  19. def isNegative(hex: String): Boolean
    Definition Classes
    ScriptNumberUtil
  20. def isPositive(hex: String): Boolean

    Determines if a given hex string is a positive number

    Determines if a given hex string is a positive number

    Definition Classes
    ScriptNumberUtil
  21. def isPositive(bytes: ByteVector): Boolean

    Determines if a byte array is a positive or negative number

    Determines if a byte array is a positive or negative number

    Definition Classes
    ScriptNumberUtil
  22. def isZero(x: ScriptNumber): Boolean

    Checks if the two given numbers are equivalent to zero in Script.

    Checks if the two given numbers are equivalent to zero in Script. Unfortunatey Script is one's complement which means we have things like negative zero, and also there isn't an enforcement of a minimal representation of zero, which means 0x00 = 0x0000 = 0x0000000.. == OP_0

    Definition Classes
    ScriptNumberUtil
  23. def longToByteVector(long: Long): ByteVector

    Converts a long number to the bytevec representation in Script

    Converts a long number to the bytevec representation in Script

    Definition Classes
    ScriptNumberUtil
  24. def longToHex(long: Long): String

    Converts a long number to the representation of number inside of Bitcoin script's number system

    Converts a long number to the representation of number inside of Bitcoin script's number system

    Definition Classes
    ScriptNumberUtil
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toByteVec(long: Long): ByteVector
    Definition Classes
    ScriptNumberUtil
  30. def toInt(bytes: ByteVector): Int

    Takes in a sequence of bytes and converts it into a signed number This should only be used for numbers inside of Script

    Takes in a sequence of bytes and converts it into a signed number This should only be used for numbers inside of Script

    Definition Classes
    ScriptNumberUtil
  31. def toInt(hex: String): Int

    Takes in a hex string and converts it into a signed number This function interprets the bytes as little endian numbers This should only be used for numbers inside of Script

    Takes in a hex string and converts it into a signed number This function interprets the bytes as little endian numbers This should only be used for numbers inside of Script

    Definition Classes
    ScriptNumberUtil
  32. def toLong(bytes: ByteVector): Long

    Takes a sequence of bytes and converts it in to signed number inside of bitcoin script's numbering system This function interprets the bytes as little endian numbers This should only be used for numbers inside of Script

    Takes a sequence of bytes and converts it in to signed number inside of bitcoin script's numbering system This function interprets the bytes as little endian numbers This should only be used for numbers inside of Script

    Definition Classes
    ScriptNumberUtil
  33. def toLong(hex: String): Long

    Takes a hex number and converts it into a signed number used in the bitcoin script's numbering system.

    Takes a hex number and converts it into a signed number used in the bitcoin script's numbering system. This function interprets the bytes as little endian numbers This should only be used for numbers inside of Script

    Definition Classes
    ScriptNumberUtil
  34. def toString(): String
    Definition Classes
    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 ScriptNumberUtil

Inherited from AnyRef

Inherited from Any

Ungrouped