object ScriptNumberUtil extends ScriptNumberUtil
- Alphabetic
- By Inheritance
- ScriptNumberUtil
- ScriptNumberUtil
- AnyRef
- Any
- Hide All
- Show All
- 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 changeSignBitToNegative(bytes: ByteVector): ByteVector
- Definition Classes
- ScriptNumberUtil
- def changeSignBitToNegative(hex: String): ByteVector
- Definition Classes
- ScriptNumberUtil
- def changeSignBitToPositive(hex: String): ByteVector
- Definition Classes
- ScriptNumberUtil
- def changeSignBitToPositive(bytes: ByteVector): ByteVector
Change sign bit to positive
Change sign bit to positive
- Definition Classes
- ScriptNumberUtil
- 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 equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def firstByteAllZeros(hex: String): Boolean
- Definition Classes
- ScriptNumberUtil
- def firstByteAllZeros(bytes: ByteVector): Boolean
- Definition Classes
- ScriptNumberUtil
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNegative(bytes: ByteVector): Boolean
- Definition Classes
- ScriptNumberUtil
- def isNegative(hex: String): Boolean
- Definition Classes
- ScriptNumberUtil
- 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
- 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
- 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
- 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
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toByteVec(long: Long): ByteVector
- Definition Classes
- ScriptNumberUtil
- 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
- 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
- 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
- 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
- def toString(): String
- Definition Classes
- 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()