Skip to content

Commit

Permalink
Expose Key interface in Cardano.Api.Shelley
Browse files Browse the repository at this point in the history
Annoyingly I could not keep the explicit individual definitions + data
instances exported so needed to reach for (..) and deduplicate exports.
  • Loading branch information
ch1bo committed Jun 20, 2022
1 parent 4aba02f commit fe1a7bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 2 additions & 9 deletions cardano-api/src/Cardano/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,12 @@ module Cardano.Api (
AsType(..),
-- * Cryptographic key interface
-- $keys
Key,
VerificationKey,
Key(..),
SigningKey(..),
getVerificationKey,
verificationKeyHash,
VerificationKey(..),
castVerificationKey,
castSigningKey,

-- ** Generating keys
generateSigningKey,
deterministicSigningKey,
deterministicSigningKeySeedSize,

-- ** Hashes
-- | In Cardano most keys are identified by their hash, and hashes are
Expand Down Expand Up @@ -685,7 +679,6 @@ import Cardano.Api.IPC
import Cardano.Api.IPC.Monad
import Cardano.Api.Key
import Cardano.Api.KeysByron
import Cardano.Api.KeysPraos
import Cardano.Api.KeysShelley
import Cardano.Api.LedgerEvent
import Cardano.Api.LedgerState
Expand Down
2 changes: 2 additions & 0 deletions cardano-api/src/Cardano/Api/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module Cardano.Api.Shelley

-- * Cryptographic key interface
-- $keys
Key(..),
VerificationKey(..),
SigningKey(..),

Expand Down Expand Up @@ -230,6 +231,7 @@ import Cardano.Api.Eras
import Cardano.Api.IPC
import Cardano.Api.InMode
import Cardano.Api.KeysPraos
import Cardano.Api.KeysByron
import Cardano.Api.KeysShelley
import Cardano.Api.LedgerState
import Cardano.Api.NetworkId
Expand Down

0 comments on commit fe1a7bc

Please sign in to comment.