scuttlebutt-types-0.3.0: generic types for Secure Scuttlebutt

Safe HaskellNone
LanguageHaskell2010

Ssb.Types.Link

Synopsis

Documentation

data Link Source #

A link to a message, feed, or blob.

Constructors

Link 

Fields

  • linkSigil :: Char

    sigil that starts the link, eg '@'

  • linkTo :: Text

    thing being linked to (base64 encoded)

  • linkTag :: Text

    hash or key algorithm of thing being linked to, eg "sha256"

parseLink :: Text -> Either String Link Source #

Parses a Link eg "@LA9HYf5rnUJFHHTklKXLLRyrEytayjbFZRo76Aj/qKs=.ed25519"

formatLink :: Link -> Text Source #

Formats a Link.