curly-core-0.7.2: The core libraries for the Curly compiler.

Safe HaskellNone
LanguageHaskell2010

Curly.Core.Security

Contents

Synopsis

Keys and Secrets

data Signed a Source #

Instances

Serializable Bytes a => Serializable Bytes (Signed a) Source # 
Format Bytes a => Format Bytes (Signed a) Source # 

Methods

datum :: Parser Bytes (Signed a) #

Eq a => Eq (Signed a) Source # 

Methods

(==) :: Signed a -> Signed a -> Bool #

(/=) :: Signed a -> Signed a -> Bool #

Ord a => Ord (Signed a) Source # 

Methods

compare :: Signed a -> Signed a -> Ordering #

(<) :: Signed a -> Signed a -> Bool #

(<=) :: Signed a -> Signed a -> Bool #

(>) :: Signed a -> Signed a -> Bool #

(>=) :: Signed a -> Signed a -> Bool #

max :: Signed a -> Signed a -> Signed a #

min :: Signed a -> Signed a -> Signed a #

Show a => Show (Signed a) Source # 

Methods

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

show :: Signed a -> String #

showList :: [Signed a] -> ShowS #

Generic (Signed a) Source # 

Associated Types

type Rep (Signed a) :: * -> * #

Methods

from :: Signed a -> Rep (Signed a) x #

to :: Rep (Signed a) x -> Signed a #

type Rep (Signed a) Source # 
type Rep (Signed a) = D1 (MetaData "Signed" "Curly.Core.Security" "curly-core-0.7.2-5Alk9IYXOqrI6xJCLJNJpU" False) (C1 (MetaCons "Signed" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Signature))))

Encryption/Decryption

encrypt :: (MonadIO m, Serializable Bytes a, ?secret :: SharedSecret) => a -> m Bytes Source #

Environment

curlyKeysFile :: FilePath Source #

The path of the Curly key wallet

Showing and reading formats

newtype Zesty a Source #

Constructors

Zesty a 

Instances