Skip to content

Commit

Permalink
Fix CDDL naming to match changes in spec from cardano-foundation#427 (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryun1 authored Feb 21, 2023
1 parent 59c6029 commit 3a9705d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CIP-0036/schema.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ registration_cbor = {
61285: registration_witness
}

$voting_pub_key /= bytes .size 32
$cip36_vote_pub_key /= bytes .size 32
$payment_address /= bytes
$nonce /= uint
$weight /= uint .size 4
$voting_purpose /= uint
legacy_key_registration = $voting_pub_key
delegation = [$voting_pub_key, $weight]
legacy_key_registration = $cip36_vote_pub_key
delegation = [$cip36_vote_pub_key, $weight]

; May support other stake credentials in the future.
; Such additional credentials should be tagged at the CDDL/CBOR level
Expand Down

0 comments on commit 3a9705d

Please sign in to comment.