Skip to content

Commit de8d59a

Browse files
committed
update types
1 parent f4ca89b commit de8d59a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bcc-api/src/Bcc/Api/KeysSophie.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1257,12 +1257,12 @@ instance Key GenesisVestedKey where
12571257
proxy = Proxy
12581258

12591259
getVerificationKey :: SigningKey GenesisVestedKey -> VerificationKey GenesisVestedKey
1260-
getVerificationKey (GenesisSigningKey sk) =
1260+
getVerificationKey (GenesisVestedSigningKey sk) =
12611261
GenesisVestedVerificationKey (Sophie.VKey (Crypto.deriveVerKeyDSIGN sk))
12621262

12631263
verificationKeyHash :: VerificationKey GenesisVestedKey -> Hash GenesisVestedKey
12641264
verificationKeyHash (GenesisVestedVerificationKey vkey) =
1265-
GenesisKeyHash (Sophie.hashKey vkey)
1265+
GenesisVestedKeyHash (Sophie.hashKey vkey)
12661266

12671267

12681268
instance SerialiseAsRawBytes (VerificationKey GenesisVestedKey) where
@@ -1278,7 +1278,7 @@ instance SerialiseAsRawBytes (SigningKey GenesisVestedKey) where
12781278
Crypto.rawSerialiseSignKeyDSIGN sk
12791279

12801280
deserialiseFromRawBytes (AsSigningKey AsGenesisVestedKey) bs =
1281-
GenesisSigningKey <$> Crypto.rawDeserialiseSignKeyDSIGN bs
1281+
GenesisVestedSigningKey <$> Crypto.rawDeserialiseSignKeyDSIGN bs
12821282

12831283

12841284
newtype instance Hash GenesisVestedKey =
@@ -1289,7 +1289,7 @@ newtype instance Hash GenesisVestedKey =
12891289
deriving anyclass SerialiseAsCBOR
12901290

12911291
instance SerialiseAsRawBytes (Hash GenesisVestedKey) where
1292-
serialiseToRawBytes (GenesisKeyHash (Sophie.KeyHash vkh)) =
1292+
serialiseToRawBytes (GenesisVestedKeyHash (Sophie.KeyHash vkh)) =
12931293
Crypto.hashToBytes vkh
12941294

12951295
deserialiseFromRawBytes (AsHash AsGenesisVestedKey) bs =

0 commit comments

Comments
 (0)