object ScriptParser extends ScriptParser
- Alphabetic
- By Inheritance
- ScriptParser
- ScriptParser
- StringFactory
- Factory
- 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
- def apply(hex: String): Vector[ScriptToken]
Creates a T from a hex string.
Creates a T from a hex string.
- Definition Classes
- Factory
- def apply(bytes: ByteVector): Vector[ScriptToken]
Creates a T out of a sequence of bytes.
Creates a T out of a sequence of bytes.
- Definition Classes
- Factory
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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 fromBytes(bytes: ByteVector): Vector[ScriptToken]
Parses a list of bytes into a list of script tokens
Parses a list of bytes into a list of script tokens
- Definition Classes
- ScriptParser → Factory
- def fromBytesLE(bytes: ByteVector): Vector[ScriptToken]
Creates a T out of a sequence of bytes in little endian.
Creates a T out of a sequence of bytes in little endian.
- Definition Classes
- Factory
- def fromBytesOpt(bytes: ByteVector): Option[Vector[ScriptToken]]
Deserializes the given ByteVector to a T If the ByteVector is not correct, None is returned
Deserializes the given ByteVector to a T If the ByteVector is not correct, None is returned
- Definition Classes
- Factory
- def fromBytesT(bytes: ByteVector): Try[Vector[ScriptToken]]
Deserializes the given ByteVector string if the ByteVector is not correct, we give you a Failure
Deserializes the given ByteVector string if the ByteVector is not correct, we give you a Failure
- Definition Classes
- Factory
- def fromHex(hex: String): Vector[ScriptToken]
Creates a T out of a hex string.
Creates a T out of a hex string.
- Definition Classes
- Factory
- def fromHexLE(hex: String): Vector[ScriptToken]
Creates a T out of a hex string in little endian.
Creates a T out of a hex string in little endian.
- Definition Classes
- Factory
- def fromHexOpt(hex: String): Option[Vector[ScriptToken]]
Deserializes the given hex string to a T If the hex is not correct, None is returned
Deserializes the given hex string to a T If the hex is not correct, None is returned
- Definition Classes
- Factory
- def fromHexT(hex: String): Try[Vector[ScriptToken]]
Deserializes the given hex string if the hex is not correct, we give you a Failure
Deserializes the given hex string if the hex is not correct, we give you a Failure
- Definition Classes
- Factory
- def fromString(str: String): Vector[ScriptToken]
Parses an asm output script of a transaction example: "OP_DUP OP_HASH160 e2e7c1ab3f807151e832dd1accb3d4f5d7d19b4b OP_EQUALVERIFY OP_CHECKSIG" example: ["0", "IF 0x50 ENDIF 1", "P2SH,STRICTENC", "0x50 is reserved (ok if not executed)"] (from script_valid.json)
Parses an asm output script of a transaction example: "OP_DUP OP_HASH160 e2e7c1ab3f807151e832dd1accb3d4f5d7d19b4b OP_EQUALVERIFY OP_CHECKSIG" example: ["0", "IF 0x50 ENDIF 1", "P2SH,STRICTENC", "0x50 is reserved (ok if not executed)"] (from script_valid.json)
- Definition Classes
- ScriptParser → StringFactory
- def fromStringOpt(string: String): Option[Vector[ScriptToken]]
Treis to parse a string to type t, returns None if failure
Treis to parse a string to type t, returns None if failure
- Definition Classes
- StringFactory
- def fromStringT(string: String): Try[Vector[ScriptToken]]
Tries to parse string to type t, returns scala.util.Failure if the fails
Tries to parse string to type t, returns scala.util.Failure if the fails
- Definition Classes
- StringFactory
- 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
- 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()
- def parseBytesFromString(s: String): Vector[ScriptConstant]
Parses the bytes in string format, an example input would look like this "0x09 0x00000000 0x00000000 0x10" see https://github.com/bitcoin/bitcoin/blob/master/src/test/data/script_valid.json#L21-L25 for examples of this
Parses the bytes in string format, an example input would look like this "0x09 0x00000000 0x00000000 0x10" see https://github.com/bitcoin/bitcoin/blob/master/src/test/data/script_valid.json#L21-L25 for examples of this
- Definition Classes
- ScriptParser
- def parseRedeemScript(scriptToken: ScriptToken): Try[Vector[ScriptToken]]
Parses a redeem script from the given script token
Parses a redeem script from the given script token
- Definition Classes
- ScriptParser
- implicit def self: Factory[Vector[ScriptToken]]
Allows a
def foo[C: Factory]()
construction.Allows a
def foo[C: Factory]()
construction.- Definition Classes
- Factory
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()