Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo Constitional -> Constitutional #163

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions cardano-api/internal/Cardano/Api/Keys/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ instance SerialiseAsRawBytes (SigningKey CommitteeHotKey) where
Crypto.rawSerialiseSignKeyDSIGN sk

deserialiseFromRawBytes (AsSigningKey AsCommitteeHotKey) bs =
maybeToRight (SerialiseAsRawBytesError "Unable to deserialise SigningKey Constitional Committee Hot Key") $
maybeToRight (SerialiseAsRawBytesError "Unable to deserialise SigningKey Constitutional Committee Hot Key") $
CommitteeHotSigningKey <$> Crypto.rawDeserialiseSignKeyDSIGN bs


Expand All @@ -747,18 +747,18 @@ instance SerialiseAsRawBytes (Hash CommitteeHotKey) where
Crypto.hashToBytes vkh

deserialiseFromRawBytes (AsHash AsCommitteeHotKey) bs =
maybeToRight (SerialiseAsRawBytesError "Unable to deserialise Hash Constitional Committee Hot Key") $
maybeToRight (SerialiseAsRawBytesError "Unable to deserialise Hash Constitutional Committee Hot Key") $
CommitteeHotKeyHash . Shelley.KeyHash <$> Crypto.hashFromBytes bs

instance HasTextEnvelope (VerificationKey CommitteeHotKey) where
textEnvelopeType _ = "ConstitionalCommitteeHotVerificationKey_"
textEnvelopeType _ = "ConstitutionalCommitteeHotVerificationKey_"
<> fromString (Crypto.algorithmNameDSIGN proxy)
where
proxy :: Proxy (Shelley.DSIGN StandardCrypto)
proxy = Proxy

instance HasTextEnvelope (SigningKey CommitteeHotKey) where
textEnvelopeType _ = "ConstitionalCommitteeHotSigningKey_"
textEnvelopeType _ = "ConstitutionalCommitteeHotSigningKey_"
<> fromString (Crypto.algorithmNameDSIGN proxy)
where
proxy :: Proxy (Shelley.DSIGN StandardCrypto)
Expand Down Expand Up @@ -835,7 +835,7 @@ instance SerialiseAsRawBytes (SigningKey CommitteeColdKey) where
Crypto.rawSerialiseSignKeyDSIGN sk

deserialiseFromRawBytes (AsSigningKey AsCommitteeColdKey) bs =
maybeToRight (SerialiseAsRawBytesError "Unable to deserialise SigningKey Constitional Committee Cold Key") $
maybeToRight (SerialiseAsRawBytesError "Unable to deserialise SigningKey Constitutional Committee Cold Key") $
CommitteeColdSigningKey <$> Crypto.rawDeserialiseSignKeyDSIGN bs


Expand All @@ -851,18 +851,18 @@ instance SerialiseAsRawBytes (Hash CommitteeColdKey) where
Crypto.hashToBytes vkh

deserialiseFromRawBytes (AsHash AsCommitteeColdKey) bs =
maybeToRight (SerialiseAsRawBytesError "Unable to deserialise Hash Constitional Committee Cold Key") $
maybeToRight (SerialiseAsRawBytesError "Unable to deserialise Hash Constitutional Committee Cold Key") $
CommitteeColdKeyHash . Shelley.KeyHash <$> Crypto.hashFromBytes bs

instance HasTextEnvelope (VerificationKey CommitteeColdKey) where
textEnvelopeType _ = "ConstitionalCommitteeColdVerificationKey_"
textEnvelopeType _ = "ConstitutionalCommitteeColdVerificationKey_"
<> fromString (Crypto.algorithmNameDSIGN proxy)
where
proxy :: Proxy (Shelley.DSIGN StandardCrypto)
proxy = Proxy

instance HasTextEnvelope (SigningKey CommitteeColdKey) where
textEnvelopeType _ = "ConstitionalCommitteeColdSigningKey_"
textEnvelopeType _ = "ConstitutionalCommitteeColdSigningKey_"
<> fromString (Crypto.algorithmNameDSIGN proxy)
where
proxy :: Proxy (Shelley.DSIGN StandardCrypto)
Expand Down