org.bitcoins.core.protocol.script
Creates a T from a hex string.
Creates a T from a hex string.
Creates a T out of a sequence of bytes.
Creates a T out of a sequence of bytes.
Builds a script from the given asm with the given constructor if the invariant holds true, else throws an error
Builds a script from the given asm with the given constructor if the invariant holds true, else throws an error
Creates a T from the given ScriptTokens
Creates a T from the given ScriptTokens
Scripts are serialized with a CompactSizeUInt at the beginning to indicate how long the Script is.
Scripts are serialized with a CompactSizeUInt at the beginning to indicate how long the Script is. This construct assumes the CompactSizeUInt is NOT passed into the constructor. Only the actual Script program bytes.
Scripts are serialized with a CompactSizeUInt at the beginning to indicate how long the ScriptSignature is .
Scripts are serialized with a CompactSizeUInt at the beginning to indicate how long the ScriptSignature is . This construct assumes the CompactSizeUInt is NOT passed into the constructor. Only the actual Script program hex is.
Creates a T out of a sequence of bytes.
Creates a T out of a sequence of bytes.
Creates a T out of a sequence of bytes in little endian.
Creates a T out of a sequence of bytes in little endian.
Creates a T out of a hex string.
Creates a T out of a hex string.
Creates a T out of a hex string in little endian.
Creates a T out of a hex string in little endian.
Allows a def foo[C: Factory]()
construction.
Allows a def foo[C: Factory]()
construction.
We need this check because sometimes we can get very lucky in having a non valid lock time script that has the first 4 bytes as a valid locktime script and then the bytes after the first 4 bytes gets lucky and is parsed by our ScriptParser A good way to see if this is _actually_ a valid script is by checking if we have any UndefinedOP_NOP in the script, which means we definitely don't have a valid locktime script
We need this check because sometimes we can get very lucky in having a non valid lock time script that has the first 4 bytes as a valid locktime script and then the bytes after the first 4 bytes gets lucky and is parsed by our ScriptParser A good way to see if this is _actually_ a valid script is by checking if we have any UndefinedOP_NOP in the script, which means we definitely don't have a valid locktime script
See this example of what happened before we added this check: Travis CI