Skip to content

Commit

Permalink
Include deserialisation of stake keys in deserialiseAnyVerificationKe…
Browse files Browse the repository at this point in the history
…yTextEnvelope
  • Loading branch information
Jimbo4350 committed Feb 20, 2025
1 parent 5858356 commit bcef194
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cardano-api/src/Cardano/Api/Internal/DeserialiseAnyOf.hs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ deserialiseAnyVerificationKeyTextEnvelope bs =
deserialiseFromTextEnvelopeAnyOf allTextEnvelopeCBOR
=<< first TextEnvelopeAesonDecodeError (Aeson.eitherDecodeStrict' bs)
where
-- TODO: Add AsStakeKey!
allTextEnvelopeCBOR
:: [FromSomeType HasTextEnvelope SomeAddressVerificationKey]
allTextEnvelopeCBOR =
Expand All @@ -360,6 +361,7 @@ deserialiseAnyVerificationKeyTextEnvelope bs =
, FromSomeType (AsVerificationKey AsCommitteeHotExtendedKey) ACommitteeHotExtendedVerificationKey
, FromSomeType (AsVerificationKey AsPaymentKey) APaymentVerificationKey
, FromSomeType (AsVerificationKey AsPaymentExtendedKey) APaymentExtendedVerificationKey
, FromSomeType (AsVerificationKey AsStakeKey) AStakeVerificationKey
, FromSomeType (AsVerificationKey AsStakeExtendedKey) AStakeExtendedVerificationKey
, FromSomeType (AsVerificationKey AsGenesisUTxOKey) AGenesisUTxOVerificationKey
, FromSomeType (AsVerificationKey AsGenesisExtendedKey) AGenesisExtendedVerificationKey
Expand Down

0 comments on commit bcef194

Please sign in to comment.