scuttlebutt-types-0.1.0: generic types for Secure Scuttlebutt

Safe HaskellNone
LanguageHaskell2010

Ssb.Types.Key

Synopsis

Documentation

parsePublicKey :: ByteString -> Maybe PublicKey Source #

Parses a SSB public key, which is base64 encoded, and has a prefix of "@" and a suffix specifying the type of the key.

parseEd25519PublicKey :: ByteString -> Maybe PublicKey Source #

Decodes a SSB Ed25519 public key, which is base64 encoded.

formatPublicKey :: PublicKey -> ByteString Source #

Formats a SSB public key to a base64 encoded string with a prefix of "@" and suffix specifying the type of the key.