Skip to content

Commit

Permalink
Merge pull request #2576 from input-output-hk/redxaxder/integrity_has…
Browse files Browse the repository at this point in the history
…h_description

document script integrity hash behavior
  • Loading branch information
Jared Corduan committed Dec 6, 2021
2 parents e7b7773 + 847e869 commit 7155301
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eras/alonzo/test-suite/cddl-files/alonzo.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,12 @@ script_data_hash = $hash32 ; New
; - If two keys have the same length, the one with the lower value
; in (byte-wise) lexical order sorts earlier.
;
; For PlutusV1 (language id 0), the script integrity data is a cost_model.
; This is the value of the costmdls map at key 0.
; For PlutusV1 (language id 0), the language view is the following:
; - the value of costmdls map at key 0 is encoded as an indefinite length
; list and the result is encoded as a bytestring. (our apologies)
; - the language ID tag is also encoded twice. first as a uint then as
; a bytestring. (our apologies)
;
; If there is no value for key 0, then the corresponding scripts cannot execute.
; Regardless of what the script integrity data is.

Expand Down

0 comments on commit 7155301

Please sign in to comment.