Skip to content

Commit

Permalink
make cddl schema backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
zeegomo committed Jan 11, 2022
1 parent 3f32fc1 commit 7a3df9b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CIP-0015/schema.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ $staking_pub_key /= bytes .size 32
$ed25519_signature /= bytes .size 64
$reward_address /= bytes
$nonce /= uint
$prop /= uint
$proportion /= uint
$voting_purpose /= uint
delegation = (vote_key: $voting_pub_key, proportion: $prop)
legacy_key_registration = $voting_pub_key
delegation = ($voting_pub_key, $proportion)

key_registration = {
1 : [+delegation],
1 : [+delegation] / legacy_key_registration,
2 : $staking_pub_key,
3 : $reward_address,
4 : $nonce,
5 : $voting_purpose
? 5 : $voting_purpose .default 0
}


registration_signature = {
1 : $ed25519_signature
}

0 comments on commit 7a3df9b

Please sign in to comment.