Skip to content

Commit

Permalink
Merge pull request #292 from input-output-hk/mgalazyn/feature/add-wit…
Browse files Browse the repository at this point in the history
…ness-committe-cold-key

Add witness committee cold key
  • Loading branch information
carbolymer authored Oct 2, 2023
2 parents e3a2a78 + ad063bb commit 151eff1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cardano-api/internal/Cardano/Api/Eras/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +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 151eff1

Please sign in to comment.