erebos-0.1.2: Decentralized messaging and synchronization
Safe HaskellSafe-Inferred
LanguageHaskell2010

Erebos.PubKey

Synopsis

Documentation

loadKey :: (KeyPair sec pub, MonadIO m, MonadError String m) => Stored pub -> m sec Source #

loadKeyMb :: (KeyPair sec pub, MonadIO m) => Stored pub -> m (Maybe sec) Source #

data Signature Source #

Instances

Instances details
Show Signature Source # 
Instance details

Defined in Erebos.PubKey

Storable Signature Source # 
Instance details

Defined in Erebos.PubKey

data Signed a Source #

Instances

Instances details
Show a => Show (Signed a) Source # 
Instance details

Defined in Erebos.PubKey

Methods

showsPrec :: Int -> Signed a -> ShowS #

show :: Signed a -> String #

showList :: [Signed a] -> ShowS #

Storable a => Storable (Signed a) Source # 
Instance details

Defined in Erebos.PubKey

Methods

store' :: Signed a -> Store Source #

load' :: Load (Signed a) Source #

store :: forall (c :: Type -> Type). StorageCompleteness c => Storage' c -> Signed a -> IO (Ref' c) Source #

load :: Ref -> Signed a Source #

unsafeMapSigned :: (a -> b) -> Signed a -> Signed b Source #

Passed function needs to preserve the object representation to be safe