Skip to content

Commit

Permalink
Add witness committee cold key
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Oct 2, 2023
1 parent ef3f9f4 commit b2cffec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cardano-api/internal/Cardano/Api/Eras/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ forEraMaybeEon :: ()
forEraMaybeEon =
inEonForEra Nothing Just

maybeEon :: (Eon eon, IsCardanoEra era)
=> Maybe (eon era) -- ^ The eon if supported in the era
maybeEon ::
( Eon eon
, IsCardanoEra era -- ^ Era to check
) => Maybe (eon era) -- ^ The eon if supported in the era
maybeEon =
inEonForEra Nothing Just cardanoEra

Expand Down
4 changes: 4 additions & 0 deletions cardano-api/internal/Cardano/Api/Tx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ data ShelleyWitnessSigningKey =
| WitnessGenesisDelegateExtendedKey
(SigningKey GenesisDelegateExtendedKey)
| WitnessGenesisUTxOKey (SigningKey GenesisUTxOKey)
| WitnessCommitteeColdKey (SigningKey CommitteeColdKey)


makeShelleyKeyWitness :: forall era
Expand Down Expand Up @@ -794,6 +795,9 @@ toShelleySigningKey key = case key of
WitnessGenesisDelegateExtendedKey (GenesisDelegateExtendedSigningKey sk) ->
ShelleyExtendedSigningKey sk

WitnessCommitteeColdKey (CommitteeColdSigningKey sk) ->
ShelleyNormalSigningKey sk


getShelleyKeyWitnessVerificationKey
:: ShelleySigningKey
Expand Down

0 comments on commit b2cffec

Please sign in to comment.