P2PKHDataLockBuilder class
A combination of P2PKH and an "OP_PUSHDATA data
OP_DROP" pre-prended to the
Locking Script. This results in a spendable output that has data attached.
The implication here is that spending the output signs over the data.
Combined locking + unlocking script has this shape: FIXME: Add in the ScriptSig component. This is just the locking script code 'OP_PUSHDATA1 32 0x2606168dabed7b4d11fdd242317adb480ee8c4fa7330db1a8b4f1c7749072aea OP_DROP OP_DUP OP_HASH160 20 0x581e5e328b0d34d724c09f123c050b341d11d96c OP_EQUALVERIFY OP_CHECKSIG'
- Inheritance
-
- Object
- LockingScriptBuilder
- P2PKHDataLockBuilder
Constructors
-
P2PKHDataLockBuilder.fromAddress(Address address, List<
int> data) -
P2PKHDataLockBuilder.fromPublicKey(SVPublicKey pubKey, List<
int> data, {NetworkType networkType = NetworkType.MAIN}) - P2PKHDataLockBuilder.fromScript(SVScript script)
Properties
- address → Address?
-
no setter
-
dataBuffer
→ List<
int> ? -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pubkeyHash
→ List<
int> ? -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- script ↔ SVScript?
-
getter/setter pairinherited
Methods
-
getScriptPubkey(
) → SVScript -
This method must be implemented by all subclasses. It must return a
valid locking script a.k.a scriptPubkey
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
SVScript script) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited