Programmatically generate Policy Id from Policy script

Serialize the script to CBOR according to the CDDL specification, prepend a zero byte, and hash all that with blake2b_244. For details, see Policy hash in python.

1 Like