ScriptPublicKey (Class)¶
A script public key.
Represents the locking conditions for an output. This script defines the conditions that must be met to spend the associated funds.
__new__
¶
__new__(version: int, script: Binary) -> ScriptPublicKey
Create a new script public key.
| PARAMETER | DESCRIPTION |
|---|---|
version
|
The script version number.
TYPE:
|
script
|
The script bytes.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
ScriptPublicKey
|
A new ScriptPublicKey instance.
TYPE:
|
__str__
¶
The string representation.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The address as a hex string
TYPE:
|