Skip to content

Commit

Permalink
address reviews II
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcFontaine committed Mar 27, 2023
1 parent a9ee666 commit 4b824c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cardano-testnet/src/Testnet/Util/Cli.hs
Expand Up @@ -40,21 +40,21 @@ data KeyNames = KeyNames
, signingKeyFile :: FilePath
}

type KeyGen a = H.Integration (File (VKey a), File (SKey a))
type KeyGen a = (File (VKey a), File (SKey a))

cliAddressKeyGen :: TmpDir -> KeyNames -> KeyGen PaymentKey
cliAddressKeyGen :: TmpDir -> KeyNames -> H.Integration (KeyGen PaymentKey)
cliAddressKeyGen = shelleyKeyGen "address" "key-gen"

cliStakeAddressKeyGen :: TmpDir -> KeyNames -> KeyGen StakeKey
cliStakeAddressKeyGen :: TmpDir -> KeyNames -> H.Integration (KeyGen StakeKey)
cliStakeAddressKeyGen = shelleyKeyGen "stake-address" "key-gen"

cliNodeKeyGenVrf :: TmpDir -> KeyNames -> KeyGen VrfKey
cliNodeKeyGenVrf :: TmpDir -> KeyNames -> H.Integration (KeyGen VrfKey)
cliNodeKeyGenVrf = shelleyKeyGen "node" "key-gen-VRF"

cliNodeKeyGenKes :: TmpDir -> KeyNames -> KeyGen KesKey
cliNodeKeyGenKes :: TmpDir -> KeyNames -> H.Integration (KeyGen KesKey)
cliNodeKeyGenKes = shelleyKeyGen "node" "key-gen-KES"

shelleyKeyGen :: String -> String -> TmpDir -> KeyNames -> KeyGen x
shelleyKeyGen :: String -> String -> TmpDir -> KeyNames -> H.Integration (KeyGen x)
shelleyKeyGen command subCommand tmpDir keyNames = do
let
vKeyPath = tmpDir </> verificationKeyFile keyNames
Expand Down

0 comments on commit 4b824c7

Please sign in to comment.