Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Storable pub => KeyPair sec pub | sec -> pub, pub -> sec where Source #
generateKeys :: Storage -> IO (sec, Stored pub) Source #
keyGetPublic :: sec -> Stored pub Source #
keyGetData :: sec -> ScrubbedBytes Source #
keyFromData :: ScrubbedBytes -> Stored pub -> Maybe sec Source #
Instances
KeyPair SecretKexKey PublicKexKey Source # | |
Defined in Erebos.PubKey | |
KeyPair SecretKey PublicKey Source # | |
Defined in Erebos.PubKey generateKeys :: Storage -> IO (SecretKey, Stored PublicKey) Source # keyGetPublic :: SecretKey -> Stored PublicKey Source # keyGetData :: SecretKey -> ScrubbedBytes Source # keyFromData :: ScrubbedBytes -> Stored PublicKey -> Maybe SecretKey Source # |