Skip to content

Commit

Permalink
Fix #311 - Add Cold Committee Key text envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Oct 2, 2023
1 parent 1a140f5 commit c56a070
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cardano-cli/src/Cardano/CLI/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ data SomeSigningWitness
| AGenesisDelegateExtendedSigningWitness (SigningKey GenesisDelegateExtendedKey)
| AGenesisUTxOSigningWitness (SigningKey GenesisUTxOKey)
| ADRepSigningWitness (SigningKey DRepKey)
| ACommitteeSigningWitness (SigningKey CommitteeColdKey)


-- | Data required for constructing a Shelley bootstrap witness.
Expand Down Expand Up @@ -652,6 +653,7 @@ categoriseSomeSigningWitness swsk =
AGenesisDelegateExtendedSigningWitness sk -> AShelleyKeyWitness (WitnessGenesisDelegateExtendedKey sk)
AGenesisUTxOSigningWitness sk -> AShelleyKeyWitness (WitnessGenesisUTxOKey sk)
ADRepSigningWitness sk -> AShelleyKeyWitness (WitnessPaymentKey $ castDrep sk)
ACommitteeSigningWitness sk -> AShelleyKeyWitness (WitnessCommitteeColdKey sk)

-- TODO: Conway era - Add constrctor for SigningKey DrepKey to ShelleyWitnessSigningKey
castDrep :: SigningKey DRepKey -> SigningKey PaymentKey
Expand Down Expand Up @@ -704,6 +706,7 @@ readWitnessSigningData (KeyWitnessSigningData skFile mbByronAddr) = do
, FromSomeType (AsSigningKey AsGenesisDelegateExtendedKey ) AGenesisDelegateExtendedSigningWitness
, FromSomeType (AsSigningKey AsGenesisUTxOKey ) AGenesisUTxOSigningWitness
, FromSomeType (AsSigningKey AsDRepKey ) ADRepSigningWitness
, FromSomeType (AsSigningKey AsCommitteeColdKey ) ACommitteeSigningWitness
]

bech32FileTypes =
Expand Down

0 comments on commit c56a070

Please sign in to comment.