Skip to content

Commit

Permalink
Support signing transactions with extended committee keys
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Feb 6, 2024
1 parent 67e410a commit 191d945
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cardano-cli/src/Cardano/CLI/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,9 @@ data SomeSigningWitness
| ADRepSigningWitness (SigningKey DRepKey)
| ADRepExtendedSigningWitness (SigningKey DRepExtendedKey)
| ACommitteeColdSigningWitness (SigningKey CommitteeColdKey)
| ACommitteeColdExtendedSigningWitness (SigningKey CommitteeColdExtendedKey)
| ACommitteeHotSigningWitness (SigningKey CommitteeHotKey)
| ACommitteeHotExtendedSigningWitness (SigningKey CommitteeHotExtendedKey)
deriving Show


Expand Down Expand Up @@ -677,7 +679,9 @@ categoriseSomeSigningWitness swsk =
ADRepSigningWitness sk -> AShelleyKeyWitness (WitnessDRepKey sk)
ADRepExtendedSigningWitness sk -> AShelleyKeyWitness (WitnessDRepExtendedKey sk)
ACommitteeColdSigningWitness sk -> AShelleyKeyWitness (WitnessCommitteeColdKey sk)
ACommitteeColdExtendedSigningWitness sk -> AShelleyKeyWitness (WitnessCommitteeColdExtendedKey sk)
ACommitteeHotSigningWitness sk -> AShelleyKeyWitness (WitnessCommitteeHotKey sk)
ACommitteeHotExtendedSigningWitness sk -> AShelleyKeyWitness (WitnessCommitteeHotExtendedKey sk)

data ReadWitnessSigningDataError
= ReadWitnessSigningDataSigningKeyDecodeError !(FileError InputDecodeError)
Expand Down Expand Up @@ -727,7 +731,9 @@ readWitnessSigningData (KeyWitnessSigningData skFile mbByronAddr) = do
, FromSomeType (AsSigningKey AsDRepKey ) ADRepSigningWitness
, FromSomeType (AsSigningKey AsDRepExtendedKey ) ADRepExtendedSigningWitness
, FromSomeType (AsSigningKey AsCommitteeColdKey ) ACommitteeColdSigningWitness
, FromSomeType (AsSigningKey AsCommitteeColdExtendedKey ) ACommitteeColdExtendedSigningWitness
, FromSomeType (AsSigningKey AsCommitteeHotKey ) ACommitteeHotSigningWitness
, FromSomeType (AsSigningKey AsCommitteeHotExtendedKey ) ACommitteeHotExtendedSigningWitness
]

bech32FileTypes =
Expand Down

0 comments on commit 191d945

Please sign in to comment.