Skip to main content

Module bip276

Module bip276 

Source
Expand description

BIP276 script encoding/decoding.

Format: {prefix}:{version_hex}{network_hex}{data_hex}{checksum_hex} where checksum is the first 4 bytes of hash256 of the payload (everything before checksum). Translates the Go SDK bip276.go.

Constants§

BIP276_PREFIX
Default BIP276 prefix.

Functions§

decode_bip276
Decode a BIP276 encoded string.
decode_script_bip276
Convenience function: decode a BIP276 string expecting standard script prefix.
encode_bip276
Encode data in BIP276 format.
encode_script_bip276
Convenience function: encode a Script in BIP276 format with standard prefix.