Object

com.alexdupre.bitcoincash

Script

Related Doc: package bitcoincash

Permalink

object Script

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Script
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Context(tx: Transaction, inputIndex: Int, amount: Satoshi) extends Product with Serializable

    Permalink

    Execution context of a tx script.

    Execution context of a tx script. A script is always executed in the "context" of a transaction that is being verified.

    tx

    transaction that is being verified

    inputIndex

    0-based index of the tx input that is being processed

  2. class Runner extends AnyRef

    Permalink

    Bitcoin script runner

  3. type Stack = List[Seq[Byte]]

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Runner

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def castToBoolean(input: Seq[Byte]): Boolean

    Permalink
  7. def checkLockTime(lockTime: Long, tx: Transaction, inputIndex: Int): Boolean

    Permalink
  8. def checkSequence(sequence: Long, tx: Transaction, inputIndex: Int): Boolean

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def cost(op: ScriptElt): Int

    Permalink
  11. def createMultiSigMofN(m: Int, pubkeys: Seq[PublicKey]): Seq[ScriptElt]

    Permalink

    Creates a m-of-n multisig script.

    Creates a m-of-n multisig script.

    m

    is the number of required signatures

    pubkeys

    are the public keys signatures will be checked against (there should be at least as many public keys as required signatures)

    returns

    a multisig redeem script

  12. def decodeNumber(input: Seq[Byte], checkMinimalEncoding: Boolean, maximumSize: Int = 4): Long

    Permalink
  13. def encodeNumber(value: Long): BinaryData

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getSigOpCount(script: Seq[ScriptElt], scriptFlag: Int, accurate: Boolean): Int

    Permalink
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def isDisabled(op: ScriptElt, scriptFlag: Int): Boolean

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isMinimallyEncoded(input: Seq[Byte], maximumSize: Int = 4): Boolean

    Permalink
  23. def isPayToScript(script: Array[Byte]): Boolean

    Permalink
  24. def isPayToScript(script: Seq[ScriptElt]): Boolean

    Permalink
  25. def isPushOnly(script: Seq[ScriptElt]): Boolean

    Permalink
  26. def isSimpleValue(op: ScriptElt): Boolean

    Permalink
  27. def isUpgradableNop(op: ScriptElt): Boolean

    Permalink
  28. def minimallyEncode(input: Seq[Byte]): Seq[Byte]

    Permalink
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def parse(blob: BinaryData): List[ScriptElt]

    Permalink
  33. def parse(input: InputStream, stack: Vector[ScriptElt] = Vector.empty[ScriptElt]): List[ScriptElt]

    Permalink

    parse a script from a input stream of binary data

    parse a script from a input stream of binary data

    input

    input stream

    stack

    initial command stack

    returns

    an updated command stack

    Annotations
    @tailrec()
  34. def pay2pkh(pubKey: PublicKey): Seq[ScriptElt]

    Permalink

    pubKey

    public key

    returns

    a pay-to-public-key-hash script

  35. def pay2pkh(pubKeyHash: BinaryData): Seq[ScriptElt]

    Permalink

    pubKeyHash

    public key hash

    returns

    a pay-to-public-key-hash script

  36. def pay2sh(script: BinaryData): Seq[ScriptElt]

    Permalink

    script

    bitcoin script

    returns

    a pay-to-script script

  37. def pay2sh(script: Seq[ScriptElt]): Seq[ScriptElt]

    Permalink

    script

    bitcoin script

    returns

    a pay-to-script script

  38. def publicKey(script: List[ScriptElt]): Array[Byte]

    Permalink

    extract a public key from a signature script

    extract a public key from a signature script

    script

    signature script

    returns

    the public key wrapped in the script

  39. def publicKeyHash(script: Array[Byte]): Array[Byte]

    Permalink
  40. def publicKeyHash(script: List[ScriptElt]): Array[Byte]

    Permalink

    extract a public key hash from a public key script

    extract a public key hash from a public key script

    script

    public key script

    returns

    the public key hash wrapped in the script

  41. def removeSignature(script: List[ScriptElt], signature: BinaryData): List[ScriptElt]

    Permalink
  42. def simpleValue(op: ScriptElt): Byte

    Permalink
  43. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def write(script: Seq[ScriptElt]): BinaryData

    Permalink
  49. def write(script: Seq[ScriptElt], out: OutputStream): Unit

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped