Skip to content

Commit

Permalink
Merge pull request #440 from IntersectMBO/smelc/fix-cc-hash-prefixes
Browse files Browse the repository at this point in the history
Make committee hash prefixes CIP-5 compliant
  • Loading branch information
smelc committed Feb 6, 2024
2 parents 9143a17 + 6d8a27b commit 18d4f52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cardano-api/internal/Cardano/Api/Keys/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,8 @@ instance CastVerificationKeyRole CommitteeHotKey PaymentKey where
PaymentVerificationKey (Shelley.VKey vk)

instance SerialiseAsBech32 (Hash CommitteeHotKey) where
bech32PrefixFor _ = "committee_hot"
bech32PrefixesPermitted _ = ["committee_hot"]
bech32PrefixFor _ = "cc_hot"
bech32PrefixesPermitted _ = ["cc_hot"]

instance SerialiseAsBech32 (VerificationKey CommitteeHotKey) where
bech32PrefixFor _ = "cc_hot_vk"
Expand Down Expand Up @@ -877,8 +877,8 @@ instance CastVerificationKeyRole CommitteeColdKey PaymentKey where
PaymentVerificationKey (Shelley.VKey vk)

instance SerialiseAsBech32 (Hash CommitteeColdKey) where
bech32PrefixFor _ = "committee_cold"
bech32PrefixesPermitted _ = ["committee_cold"]
bech32PrefixFor _ = "cc_cold"
bech32PrefixesPermitted _ = ["cc_cold"]

instance SerialiseAsBech32 (VerificationKey CommitteeColdKey) where
bech32PrefixFor _ = "cc_cold_vk"
Expand Down

0 comments on commit 18d4f52

Please sign in to comment.