Skip to content

Commit

Permalink
rename CDDL timelock variable names
Browse files Browse the repository at this point in the history
For consistency, we are going to uniformly use "invalid_before" and
"invalid_hereafter" to denote the half open validity intervals
[invalid_before, invalid_hereafter).
  • Loading branch information
Jared Corduan committed Dec 7, 2020
1 parent 581767d commit 7931dc8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions shelley-ma/shelley-ma-test/cddl-files/shelley-ma.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,20 @@ native_script =
// script_all
// script_any
// script_n_of_k
// timelock_start
// timelock_expiry
// invalid_before
; Timelock validity intervals are half-open intervals [a, b).
; This field specifies the left (included) endpoint a.
// invalid_hereafter
; Timelock validity intervals are half-open intervals [a, b).
; This field specifies the right (excluded) endpoint b.
]

script_pubkey = (0, addr_keyhash)
script_all = (1, [ * native_script ])
script_any = (2, [ * native_script ])
script_n_of_k = (3, n: uint, [ * native_script ])
timelock_start = (4, uint)
timelock_expiry = (5, uint)
invalid_before = (4, uint)
invalid_hereafter = (5, uint)

coin = uint

Expand Down

0 comments on commit 7931dc8

Please sign in to comment.