| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Curly.Core.Security
- data Access
 - data PrivateKey
 - data PublicKey
 - data SharedSecret
 - data KeyFingerprint
 - data Signature
 - data Signed a
 - genPrivateKey :: MonadIO m => m PrivateKey
 - publicKey :: PrivateKey -> PublicKey
 - fingerprint :: PublicKey -> KeyFingerprint
 - sharedSecret :: MonadIO m => Bool -> PrivateKey -> PublicKey -> m SharedSecret
 - signBytes :: MonadIO m => PrivateKey -> Bytes -> m Signature
 - isValidSignatureFrom :: PublicKey -> Signature -> Bytes -> Bool
 - signValue :: (MonadIO m, Serializable Bytes a) => PrivateKey -> a -> m (Signed a)
 - extractSignedBy :: Serializable Bytes a => PublicKey -> Signed a -> Maybe a
 - unsafeExtractSigned :: Signed a -> a
 - decrypt :: (MonadIO m, Format Bytes a, ?secret :: SharedSecret) => ParserT Bytes m a
 - encrypt :: (MonadIO m, Serializable Bytes a, ?secret :: SharedSecret) => a -> m Bytes
 - signedDatum :: Format Bytes a => PublicKey -> Parser Bytes a
 - type KeyStore = Map String (KeyFingerprint, PublicKey, Maybe PrivateKey, Metadata, Map String Access)
 - curlyKeysFile :: FilePath
 - getKeyStore :: MonadIO m => m KeyStore
 - modifyKeyStore :: MonadIO m => (KeyStore -> KeyStore) -> m ()
 - newtype Zesty a = Zesty a
 
Keys and Secrets
data PrivateKey Source #
Instances
data SharedSecret Source #
data KeyFingerprint Source #
genPrivateKey :: MonadIO m => m PrivateKey Source #
publicKey :: PrivateKey -> PublicKey Source #
sharedSecret :: MonadIO m => Bool -> PrivateKey -> PublicKey -> m SharedSecret Source #
signValue :: (MonadIO m, Serializable Bytes a) => PrivateKey -> a -> m (Signed a) Source #
extractSignedBy :: Serializable Bytes a => PublicKey -> Signed a -> Maybe a Source #
unsafeExtractSigned :: Signed a -> a Source #
Encryption/Decryption
encrypt :: (MonadIO m, Serializable Bytes a, ?secret :: SharedSecret) => a -> m Bytes Source #
Environment
type KeyStore = Map String (KeyFingerprint, PublicKey, Maybe PrivateKey, Metadata, Map String Access) Source #
curlyKeysFile :: FilePath Source #
The path of the Curly key wallet
getKeyStore :: MonadIO m => m KeyStore Source #