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 authored and Jimbo4350 committed Sep 29, 2022
1 parent 4441c0f commit b7e323e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
11 changes: 2 additions & 9 deletions cardano-api/src/Cardano/Api.hs
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 @@ -692,7 +686,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
Expand Up @@ -12,6 +12,7 @@ module Cardano.Api.Shelley

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

Expand Down Expand Up @@ -235,6 +236,7 @@ import Cardano.Api.InMode
import Cardano.Api.IPC
import Cardano.Api.KeysByron
import Cardano.Api.KeysPraos
import Cardano.Api.KeysByron
import Cardano.Api.KeysShelley
import Cardano.Api.LedgerState
import Cardano.Api.NetworkId
Expand Down
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/Byron/Run.hs
Expand Up @@ -21,7 +21,7 @@ import qualified Cardano.Crypto.Hashing as Crypto
import qualified Cardano.Crypto.Signing as Crypto

import Cardano.Api hiding (UpdateProposal, GenesisParameters)
import Cardano.Api.Byron (SomeByronSigningKey (..), Tx (..), VerificationKey (..))
import Cardano.Api.Byron (SomeByronSigningKey (..), Tx (..))

import Ouroboros.Consensus.Byron.Ledger (ByronBlock)
import Ouroboros.Consensus.Ledger.SupportsMempool (ApplyTxErr)
Expand Down
1 change: 0 additions & 1 deletion cardano-cli/src/Cardano/CLI/Shelley/Run/Key.hs
Expand Up @@ -31,7 +31,6 @@ import qualified Cardano.Crypto.Wallet as Crypto
import qualified Cardano.Ledger.Keys as Shelley

import Cardano.Api
import Cardano.Api.Byron hiding (SomeByronSigningKey (..))
import qualified Cardano.Api.Byron as ByronApi
import Cardano.Api.Crypto.Ed25519Bip32 (xPrvFromBytes)
import Cardano.Api.Shelley
Expand Down

0 comments on commit b7e323e

Please sign in to comment.