Skip to content

sign_script_hash (Func)

Sign a script hash with a private key.

PARAMETER DESCRIPTION
script_hash

The script hash to sign as a hex string.

TYPE: str

privkey

The private key for signing.

TYPE: PrivateKey

RETURNS DESCRIPTION
str

The signature as a hex string.

TYPE: str

RAISES DESCRIPTION
Exception

If signing fails.