biscuit-haskell-0.4.0.0: Library support for the Biscuit security token
Safe HaskellNone
LanguageHaskell2010

Auth.Biscuit.Crypto

Synopsis

Documentation

verifyExternalSig :: PublicKey -> (ByteString, Signature, PublicKey) -> Bool Source #

When adding a pre-signed third-party block to a token, we make sure the third-party block is correctly signed (pk-signature match, and the third-party block is pinned to the last biscuit block)

data PublicKey Source #

Instances

Instances details
Show PublicKey Source # 
Instance details

Defined in Auth.Biscuit.Crypto

Eq PublicKey Source # 
Instance details

Defined in Auth.Biscuit.Crypto

Ord PublicKey Source # 
Instance details

Defined in Auth.Biscuit.Crypto

Lift PublicKey Source # 
Instance details

Defined in Auth.Biscuit.Crypto

Methods

lift :: Quote m => PublicKey -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => PublicKey -> Code m PublicKey #

data SecretKey Source #

Instances

Instances details
Show SecretKey Source # 
Instance details

Defined in Auth.Biscuit.Crypto

Eq SecretKey Source # 
Instance details

Defined in Auth.Biscuit.Crypto

data Signature Source #

Instances

Instances details
Show Signature Source # 
Instance details

Defined in Auth.Biscuit.Crypto

Eq Signature Source # 
Instance details

Defined in Auth.Biscuit.Crypto

toPublic :: SecretKey -> PublicKey Source #

Generate a public key from a secret key