Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Jul 16, 2023
1 parent 2c0c168 commit 6c4a906
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -746,10 +746,10 @@ genWitnesses era =
(genShelleyKeyWitness era)
return $ bsWits ++ keyWits

genVerificationKey :: Key keyrole => AsType keyrole -> Gen (VerificationKey keyrole)
genVerificationKey :: (Key keyrole, HasTypeProxy keyrole) => AsType keyrole -> Gen (VerificationKey keyrole)
genVerificationKey roletoken = getVerificationKey <$> genSigningKey roletoken

genVerificationKeyHash :: Key keyrole => AsType keyrole -> Gen (Hash keyrole)
genVerificationKeyHash :: (Key keyrole, HasTypeProxy keyrole) => AsType keyrole -> Gen (Hash keyrole)
genVerificationKeyHash roletoken =
verificationKeyHash <$> genVerificationKey roletoken

Expand Down
2 changes: 1 addition & 1 deletion cardano-api/internal/Cardano/Api/Keys/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class (Eq (VerificationKey keyrole),
data SigningKey keyrole :: Type

-- | Get the corresponding verification key from a signing key.
getVerificationKey :: SigningKey keyrole -> VerificationKey keyrole
getVerificationKey :: HasTypeProxy keyrole => SigningKey keyrole -> VerificationKey keyrole

-- | Generate a 'SigningKey' deterministically, given a 'Crypto.Seed'. The
-- required size of the seed is given by 'deterministicSigningKeySeedSize'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ prop_roundtrip_VrfSigningKey_envelope =

-- -----------------------------------------------------------------------------

roundtrip_VerificationKey_envelope :: Key keyrole
roundtrip_VerificationKey_envelope :: (Key keyrole, HasTypeProxy keyrole)
=> AsType keyrole -> Property
roundtrip_VerificationKey_envelope roletoken =
H.property $ do
Expand Down

0 comments on commit 6c4a906

Please sign in to comment.