Skip to content

Commit ebc89c0

Browse files
committed
Expose Key interface in Cardano.Api.Shelley
Annoyingly I could not keep the explicit individual definitions + data instances exported so needed to reach for (..) and deduplicate exports.
1 parent 4aba02f commit ebc89c0

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

cardano-api/src/Cardano/Api.hs

+2-9
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,12 @@ module Cardano.Api (
4242
AsType(..),
4343
-- * Cryptographic key interface
4444
-- $keys
45-
Key,
46-
VerificationKey,
45+
Key(..),
4746
SigningKey(..),
48-
getVerificationKey,
49-
verificationKeyHash,
47+
VerificationKey(..),
5048
castVerificationKey,
5149
castSigningKey,
52-
53-
-- ** Generating keys
5450
generateSigningKey,
55-
deterministicSigningKey,
56-
deterministicSigningKeySeedSize,
5751

5852
-- ** Hashes
5953
-- | In Cardano most keys are identified by their hash, and hashes are
@@ -685,7 +679,6 @@ import Cardano.Api.IPC
685679
import Cardano.Api.IPC.Monad
686680
import Cardano.Api.Key
687681
import Cardano.Api.KeysByron
688-
import Cardano.Api.KeysPraos
689682
import Cardano.Api.KeysShelley
690683
import Cardano.Api.LedgerEvent
691684
import Cardano.Api.LedgerState

cardano-api/src/Cardano/Api/Shelley.hs

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module Cardano.Api.Shelley
1212

1313
-- * Cryptographic key interface
1414
-- $keys
15+
Key(..),
1516
VerificationKey(..),
1617
SigningKey(..),
1718

@@ -230,6 +231,7 @@ import Cardano.Api.Eras
230231
import Cardano.Api.IPC
231232
import Cardano.Api.InMode
232233
import Cardano.Api.KeysPraos
234+
import Cardano.Api.KeysByron
233235
import Cardano.Api.KeysShelley
234236
import Cardano.Api.LedgerState
235237
import Cardano.Api.NetworkId

cardano-cli/src/Cardano/CLI/Byron/Run.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import qualified Cardano.Crypto.Hashing as Crypto
2121
import qualified Cardano.Crypto.Signing as Crypto
2222

2323
import Cardano.Api hiding (UpdateProposal, GenesisParameters)
24-
import Cardano.Api.Byron (SomeByronSigningKey (..), Tx (..), VerificationKey (..))
24+
import Cardano.Api.Byron (SomeByronSigningKey (..), Tx (..))
2525

2626
import Ouroboros.Consensus.Byron.Ledger (ByronBlock)
2727
import Ouroboros.Consensus.Ledger.SupportsMempool (ApplyTxErr)

cardano-cli/src/Cardano/CLI/Shelley/Run/Key.hs

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import qualified Cardano.Crypto.Wallet as Crypto
3131
import qualified Cardano.Ledger.Keys as Shelley
3232

3333
import Cardano.Api
34-
import Cardano.Api.Byron hiding (SomeByronSigningKey (..))
3534
import qualified Cardano.Api.Byron as ByronApi
3635
import Cardano.Api.Crypto.Ed25519Bip32 (xPrvFromBytes)
3736
import Cardano.Api.Shelley

0 commit comments

Comments
 (0)