plutus-ledger-0.1.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.Crypto

Synopsis

Documentation

newtype Signature Source #

A message with a cryptographic signature.

Constructors

Signature 

Instances

Instances details
Eq Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Ord Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Show Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Generic Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Associated Types

type Rep Signature :: Type -> Type Source #

NFData Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

rnf :: Signature -> () Source #

ToJSON Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

FromJSON Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

ToSchema Signature Source # 
Instance details

Defined in Ledger.Orphans

Serialise Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Pretty Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

pretty :: Signature -> Doc ann Source #

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

UnsafeFromData Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

FromData Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

ToData Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Ord Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Eq Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Lift DefaultUni Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Typeable DefaultUni Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

type Rep Signature 
Instance details

Defined in Plutus.V1.Ledger.Crypto

type Rep Signature = D1 ('MetaData "Signature" "Plutus.V1.Ledger.Crypto" "plutus-ledger-api-0.1.0.0-6XBf4FRRdNK1B20rg7kZGy" 'True) (C1 ('MetaCons "Signature" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

newtype PubKeyHash Source #

The hash of a public key. This is frequently used to identify the public key, rather than the key itself.

Instances

Instances details
Eq PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Ord PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Show PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

IsString PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Generic PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Associated Types

type Rep PubKeyHash :: Type -> Type Source #

NFData PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

rnf :: PubKeyHash -> () Source #

Hashable PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

ToJSON PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

ToJSONKey PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

FromJSON PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

FromJSONKey PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Newtype PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Associated Types

type O PubKeyHash Source #

ToSchema PubKeyHash Source # 
Instance details

Defined in Ledger.Orphans

Serialise PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Pretty PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

UnsafeFromData PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

FromData PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

ToData PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Ord PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Eq PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Lift DefaultUni PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Typeable DefaultUni PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

type Rep PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

type Rep PubKeyHash = D1 ('MetaData "PubKeyHash" "Plutus.V1.Ledger.Crypto" "plutus-ledger-api-0.1.0.0-6XBf4FRRdNK1B20rg7kZGy" 'True) (C1 ('MetaCons "PubKeyHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPubKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))
type O PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

newtype PubKey Source #

A cryptographic public key.

Constructors

PubKey 

Instances

Instances details
Eq PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Ord PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Show PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

IsString PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Generic PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Associated Types

type Rep PubKey :: Type -> Type Source #

NFData PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

rnf :: PubKey -> () Source #

ToJSON PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

ToJSONKey PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

FromJSON PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

FromJSONKey PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Newtype PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Associated Types

type O PubKey Source #

ToSchema PubKey Source # 
Instance details

Defined in Ledger.Orphans

Serialise PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Pretty PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

pretty :: PubKey -> Doc ann Source #

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

UnsafeFromData PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

FromData PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

ToData PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Ord PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Eq PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

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

Lift DefaultUni PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Typeable DefaultUni PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

type Rep PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

type Rep PubKey = D1 ('MetaData "PubKey" "Plutus.V1.Ledger.Crypto" "plutus-ledger-api-0.1.0.0-6XBf4FRRdNK1B20rg7kZGy" 'True) (C1 ('MetaCons "PubKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPubKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LedgerBytes)))
type O PubKey 
Instance details

Defined in Plutus.V1.Ledger.Crypto

type O PubKey = GO (Rep PubKey)

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.