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.