Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype PublicKey = Ed25519PublicKey {}
- parsePublicKey :: ByteString -> Maybe PublicKey
- parseEd25519PublicKey :: ByteString -> Maybe PublicKey
- formatPublicKey :: PublicKey -> ByteString
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.