-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor cardano cip36 registration parts. (#443)
* 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
Showing
26 changed files
with
552 additions
and
667 deletions.
There are no files selected for viewing
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
catalyst-gateway/bin/src/cardano/cip36_registration/cip36_registration.cddl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
5 changes: 5 additions & 0 deletions
5
catalyst-gateway/bin/src/cardano/cip36_registration/cip36_witness.cddl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
registration_witness = { | ||
1 : stake_witness | ||
} | ||
|
||
stake_witness /= ed25519_signature |
Oops, something went wrong.