cardano-crypto-wrapper-1.5.1.3: Cryptographic primitives used in Byron era of the Cardano project
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Crypto.Signing.Redeem

Synopsis

Documentation

newtype RedeemVerificationKey Source #

Wrapper around PublicKey.

Instances

Instances details
FromJSON RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

FromJSONKey RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

ToJSON RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

ToJSONKey RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

Generic RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

Associated Types

type Rep RedeemVerificationKeyTypeType Source #

Show RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

FromCBOR RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

ToCBOR RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

DecCBOR RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

EncCBOR RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

NFData RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

Methods

rnfRedeemVerificationKey → () Source #

Buildable RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

Eq RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

Ord RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

NoThunks RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

MonadError SchemaError m ⇒ FromObjectKey m RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

Monad m ⇒ ToObjectKey m RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

type Rep RedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.VerificationKey

type Rep RedeemVerificationKey = D1 ('MetaData "RedeemVerificationKey" "Cardano.Crypto.Signing.Redeem.VerificationKey" "cardano-crypto-wrapper-1.5.1.3-inplace" 'True) (C1 ('MetaCons "RedeemVerificationKey" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PublicKey)))

fromAvvmVKTextEither AvvmVKError RedeemVerificationKey Source #

Read the text into a redeeming verification key. The key should be in AVVM format which is base64(url). This function must be inverse of redeemVKB64UrlF formatter.

redeemVKBuildByteStringRedeemVerificationKey Source #

Creates a verification key from 32 byte bytestring, fails with error otherwise

newtype RedeemSigningKey Source #

Wrapper around SecretKey.

Instances

Instances details
Generic RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

Associated Types

type Rep RedeemSigningKeyTypeType Source #

Show RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

FromCBOR RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

ToCBOR RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

DecCBOR RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

EncCBOR RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

NFData RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

Methods

rnfRedeemSigningKey → () Source #

Buildable RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

Eq RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

NoThunks RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

type Rep RedeemSigningKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.SigningKey

type Rep RedeemSigningKey = D1 ('MetaData "RedeemSigningKey" "Cardano.Crypto.Signing.Redeem.SigningKey" "cardano-crypto-wrapper-1.5.1.3-inplace" 'True) (C1 ('MetaCons "RedeemSigningKey" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SecretKey)))

redeemToVerificationRedeemSigningKeyRedeemVerificationKey Source #

Verification key derivation function.

newtype RedeemSignature a Source #

Wrapper around Signature

Instances

Instances details
FromJSON a ⇒ FromJSON (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

ToJSON a ⇒ ToJSON (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

Generic (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

Associated Types

type Rep (RedeemSignature a) ∷ TypeType Source #

Show (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

DecCBOR a ⇒ FromCBOR (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

EncCBOR a ⇒ ToCBOR (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

Methods

toCBORRedeemSignature a → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (RedeemSignature a) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [RedeemSignature a] → Size Source #

Typeable a ⇒ DecCBOR (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

Typeable a ⇒ EncCBOR (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

Methods

encCBORRedeemSignature a → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (RedeemSignature a) → Size Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [RedeemSignature a] → Size Source #

NFData (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

Methods

rnfRedeemSignature a → () Source #

Buildable (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

Eq (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

type Rep (RedeemSignature a) Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Signature

type Rep (RedeemSignature a) = D1 ('MetaData "RedeemSignature" "Cardano.Crypto.Signing.Redeem.Signature" "cardano-crypto-wrapper-1.5.1.3-inplace" 'True) (C1 ('MetaCons "RedeemSignature" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Signature)))

redeemSignEncCBOR a ⇒ ProtocolMagicIdSignTagRedeemSigningKey → a → RedeemSignature a Source #

Encode something with EncCBOR and sign it

verifyRedeemSigEncCBOR a ⇒ ProtocolMagicIdSignTagRedeemVerificationKey → a → RedeemSignature a → Bool Source #

Verify a redeem signature

redeemKeyGenMonadRandom m ⇒ m (RedeemVerificationKey, RedeemSigningKey) Source #

Generate a key pair. It's recommended to run it with runSecureRandom from Cardano.Crypto.Random because the OpenSSL generator is probably safer than the default IO generator.

redeemDeterministicKeyGenByteStringMaybe (RedeemVerificationKey, RedeemSigningKey) Source #

Create key pair deterministically from 32 bytes

data CompactRedeemVerificationKey Source #

Instances

Instances details
FromJSON CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

FromJSONKey CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

ToJSON CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

ToJSONKey CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

Generic CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

Associated Types

type Rep CompactRedeemVerificationKeyTypeType Source #

Show CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

FromCBOR CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

ToCBOR CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

DecCBOR CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

EncCBOR CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

NFData CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

Eq CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

Ord CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

NoThunks CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

MonadError SchemaError m ⇒ FromObjectKey m CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

Monad m ⇒ ToObjectKey m CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

type Rep CompactRedeemVerificationKey Source # 
Instance details

Defined in Cardano.Crypto.Signing.Redeem.Compact

type Rep CompactRedeemVerificationKey = D1 ('MetaData "CompactRedeemVerificationKey" "Cardano.Crypto.Signing.Redeem.Compact" "cardano-crypto-wrapper-1.5.1.3-inplace" 'False) (C1 ('MetaCons "CompactRedeemVerificationKey" 'PrefixI 'False) ((S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))))