Skip to content

FinalizedR0Script (Class)

The result of finalizing a ZkScriptBuilder.

sig_script is the spending script — set it on the transaction input. redeem_script is the inner commit script — hash it with pay_to_script_hash_script to derive the P2SH script-public-key.

redeem_script property

redeem_script: str

The inner redeem (commit) script, hex-encoded.

RETURNS DESCRIPTION
str

The redeem script bytes as a hex string.

TYPE: str

sig_script property

sig_script: str

The spending (signature) script, hex-encoded.

RETURNS DESCRIPTION
str

The sig script bytes as a hex string.

TYPE: str

__repr__

__repr__() -> str

The detailed string representation.

RETURNS DESCRIPTION
str

The FinalizedR0Script as a repr string.

TYPE: str