Skip to content

Commit

Permalink
refactor: Refactor cardano cip36 registration parts. (#443)
Browse files Browse the repository at this point in the history
* rename follower mod to chain_state

* rename voter_registration mods to cip36_registration

* remove unused 61284.cddl and 61285.cddl files

* fix urls

* cleanup cip36_registration code

* wip

* wip

* fix fmt

* fix

* wip

* wip

* fix spelling

* wip

* wip

* fix

* wip

* wip
  • Loading branch information
Mr-Leshiy authored Apr 23, 2024
1 parent 044ca8e commit a8c7f7c
Show file tree
Hide file tree
Showing 26 changed files with 552 additions and 667 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

registration = {
1 : [+delegation] / legacy_key_registration,
2 : stake_credential,
3 : payment_address,
4 : nonce,
? 5 : voting_purpose .default 0
}

cip36_vote_pub_key /= bytes .size 32
payment_address /= bytes
nonce /= uint
weight /= uint .size 4
voting_purpose /= uint
legacy_key_registration = cip36_vote_pub_key
delegation = [cip36_vote_pub_key, weight]
stake_credential /= staking_pub_key
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
registration_witness = {
1 : stake_witness
}

stake_witness /= ed25519_signature
Loading

0 comments on commit a8c7f7c

Please sign in to comment.