plutus-ledger-1.1.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.Crypto

Synopsis

Documentation

newtype PubKey Source #

Constructors

PubKey 

Instances

Instances details
Eq PubKey Source # 
Instance details

Defined in Ledger.Crypto

Ord PubKey Source # 
Instance details

Defined in Ledger.Crypto

Show PubKey Source # 
Instance details

Defined in Ledger.Crypto

IsString PubKey Source # 
Instance details

Defined in Ledger.Crypto

Generic PubKey Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type Rep PubKey :: Type -> Type Source #

NFData PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

rnf :: PubKey -> () Source #

ToJSON PubKey Source # 
Instance details

Defined in Ledger.Crypto

ToJSONKey PubKey Source # 
Instance details

Defined in Ledger.Crypto

FromJSON PubKey Source # 
Instance details

Defined in Ledger.Crypto

FromJSONKey PubKey Source # 
Instance details

Defined in Ledger.Crypto

Newtype PubKey Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type O PubKey Source #

ToSchema PubKey Source # 
Instance details

Defined in Ledger.Orphans

Pretty PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

pretty :: PubKey -> Doc ann Source #

prettyList :: [PubKey] -> Doc ann Source #

Serialise PubKey Source # 
Instance details

Defined in Ledger.Crypto

UnsafeFromData PubKey Source # 
Instance details

Defined in Ledger.Crypto

FromData PubKey Source # 
Instance details

Defined in Ledger.Crypto

ToData PubKey Source # 
Instance details

Defined in Ledger.Crypto

Ord PubKey Source # 
Instance details

Defined in Ledger.Crypto

Eq PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

(==) :: PubKey -> PubKey -> Bool Source #

Lift DefaultUni PubKey Source # 
Instance details

Defined in Ledger.Crypto

Typeable DefaultUni PubKey Source # 
Instance details

Defined in Ledger.Crypto

type Rep PubKey Source # 
Instance details

Defined in Ledger.Crypto

type Rep PubKey = D1 ('MetaData "PubKey" "Ledger.Crypto" "plutus-ledger-1.1.0.0-JskZbcPMCdRJVHaAZ0to82" 'True) (C1 ('MetaCons "PubKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPubKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LedgerBytes)))
type O PubKey Source # 
Instance details

Defined in Ledger.Crypto

type O PubKey = GO (Rep PubKey)

newtype PrivateKey Source #

A cryptographic private key.

Constructors

PrivateKey 

Instances

Instances details
Eq PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Ord PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Show PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Generic PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type Rep PrivateKey :: Type -> Type Source #

Hashable PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

ToJSON PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

ToJSONKey PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

FromJSON PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

FromJSONKey PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

ToHttpApiData PrivateKey Source # 
Instance details

Defined in Ledger.Orphans

FromHttpApiData PrivateKey Source # 
Instance details

Defined in Ledger.Orphans

Newtype PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type O PrivateKey Source #

Pretty PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Serialise PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

UnsafeFromData PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

FromData PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

ToData PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Ord PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Eq PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Lift DefaultUni PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Typeable DefaultUni PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

type Rep PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

type Rep PrivateKey = D1 ('MetaData "PrivateKey" "Ledger.Crypto" "plutus-ledger-1.1.0.0-JskZbcPMCdRJVHaAZ0to82" 'True) (C1 ('MetaCons "PrivateKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPrivateKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LedgerBytes)))
type O PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

newtype Signature Source #

A message with a cryptographic signature.

Constructors

Signature 

Instances

Instances details
Eq Signature Source # 
Instance details

Defined in Ledger.Crypto

Ord Signature Source # 
Instance details

Defined in Ledger.Crypto

Show Signature Source # 
Instance details

Defined in Ledger.Crypto

Generic Signature Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type Rep Signature :: Type -> Type Source #

NFData Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

rnf :: Signature -> () Source #

ToJSON Signature Source # 
Instance details

Defined in Ledger.Crypto

FromJSON Signature Source # 
Instance details

Defined in Ledger.Crypto

ToSchema Signature Source # 
Instance details

Defined in Ledger.Orphans

Pretty Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

pretty :: Signature -> Doc ann Source #

prettyList :: [Signature] -> Doc ann Source #

Serialise Signature Source # 
Instance details

Defined in Ledger.Crypto

UnsafeFromData Signature Source # 
Instance details

Defined in Ledger.Crypto

FromData Signature Source # 
Instance details

Defined in Ledger.Crypto

ToData Signature Source # 
Instance details

Defined in Ledger.Crypto

Ord Signature Source # 
Instance details

Defined in Ledger.Crypto

Eq Signature Source # 
Instance details

Defined in Ledger.Crypto

Lift DefaultUni Signature Source # 
Instance details

Defined in Ledger.Crypto

Typeable DefaultUni Signature Source # 
Instance details

Defined in Ledger.Crypto

type Rep Signature Source # 
Instance details

Defined in Ledger.Crypto

type Rep Signature = D1 ('MetaData "Signature" "Ledger.Crypto" "plutus-ledger-1.1.0.0-JskZbcPMCdRJVHaAZ0to82" 'True) (C1 ('MetaCons "Signature" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

newtype Passphrase Source #

Passphrase newtype to mark intent

Constructors

Passphrase 

Instances

Instances details
Show Passphrase Source # 
Instance details

Defined in Ledger.Crypto

IsString Passphrase Source # 
Instance details

Defined in Ledger.Crypto

pubKeyHash :: PubKey -> PubKeyHash Source #

Compute the hash of a public key.

signedBy :: ByteArrayAccess a => Signature -> PubKey -> a -> Bool Source #

Check whether the given Signature was signed by the private key corresponding to the given public key.

sign :: ByteArrayAccess a => a -> XPrv -> Passphrase -> Signature Source #

Sign a message using a private key and passphrase.

signTx :: TxId -> XPrv -> Passphrase -> Signature Source #

Sign the hash of a transaction using a private key and passphrase.

generateFromSeed :: ByteString -> Passphrase -> XPrv Source #

Generate a private key from a seed phrase and passphrase

Signing and generation with no passphrase

sign' :: ByteArrayAccess a => a -> XPrv -> Signature Source #

Sign a message using a private key with no passphrase.

signTx' :: TxId -> XPrv -> Signature Source #

Sign the hash of a transaction using a private key that has no passphrase.

generateFromSeed' :: ByteString -> XPrv Source #

Generate a private key from a seed phrase without a passphrase.