| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ledger.Address
Contents
Synopsis
- toPubKeyHash :: Address -> Maybe PubKeyHash
- data Address = Address {}
- scriptHashAddress :: ValidatorHash -> Address
- stakingCredential :: Address -> Maybe StakingCredential
- toValidatorHash :: Address -> Maybe ValidatorHash
- type CardanoAddress = AddressInEra BabbageEra
- newtype PaymentPrivateKey = PaymentPrivateKey {
- unPaymentPrivateKey :: XPrv
- newtype PaymentPubKey = PaymentPubKey {}
- newtype PaymentPubKeyHash = PaymentPubKeyHash {}
- newtype StakePubKey = StakePubKey {}
- newtype StakePubKeyHash = StakePubKeyHash {}
- toPlutusAddress :: AddressInEra era -> Address
- toPlutusPubKeyHash :: Hash PaymentKey -> PubKeyHash
- cardanoAddressCredential :: AddressInEra era -> Credential
- cardanoPubKeyHash :: AddressInEra era -> Maybe PubKeyHash
- cardanoStakingCredential :: AddressInEra era -> Maybe StakingCredential
- paymentPubKeyHash :: PaymentPubKey -> PaymentPubKeyHash
- pubKeyHashAddress :: PaymentPubKeyHash -> Maybe StakingCredential -> Address
- pubKeyAddress :: PaymentPubKey -> Maybe StakingCredential -> Address
- scriptValidatorHashAddress :: ValidatorHash -> Maybe StakingCredential -> Address
- stakePubKeyHashCredential :: StakePubKeyHash -> StakingCredential
- stakeValidatorHashCredential :: StakeValidatorHash -> StakingCredential
- xprvToPaymentPubKey :: XPrv -> PaymentPubKey
- xprvToPaymentPubKeyHash :: XPrv -> PaymentPubKeyHash
- xprvToStakingCredential :: XPrv -> StakingCredential
- xprvToStakePubKey :: XPrv -> StakePubKey
- xprvToStakePubKeyHash :: XPrv -> StakePubKeyHash
- mkValidatorCardanoAddress :: NetworkId -> Versioned Validator -> AddressInEra BabbageEra
Documentation
toPubKeyHash :: Address -> Maybe PubKeyHash #
Constructors
| Address | |
Instances
type CardanoAddress = AddressInEra BabbageEra Source #
newtype PaymentPrivateKey Source #
Constructors
| PaymentPrivateKey | |
Fields
| |
newtype PaymentPubKey Source #
Constructors
| PaymentPubKey | |
Fields | |
Instances
newtype PaymentPubKeyHash Source #
Constructors
| PaymentPubKeyHash | |
Fields | |
Instances
newtype StakePubKey Source #
Constructors
| StakePubKey | |
Fields | |
Instances
newtype StakePubKeyHash Source #
Constructors
| StakePubKeyHash | |
Fields | |
Instances
toPlutusAddress :: AddressInEra era -> Address Source #
toPlutusPubKeyHash :: Hash PaymentKey -> PubKeyHash Source #
cardanoAddressCredential :: AddressInEra era -> Credential Source #
cardanoPubKeyHash :: AddressInEra era -> Maybe PubKeyHash Source #
cardanoStakingCredential :: AddressInEra era -> Maybe StakingCredential Source #
pubKeyHashAddress :: PaymentPubKeyHash -> Maybe StakingCredential -> Address Source #
The address that should be targeted by a transaction output locked by the given public payment key (with its staking credentials).
pubKeyAddress :: PaymentPubKey -> Maybe StakingCredential -> Address Source #
The address that should be targeted by a transaction output locked by the given public key. (with its staking credentials).
scriptValidatorHashAddress :: ValidatorHash -> Maybe StakingCredential -> Address Source #
The address that should be used by a transaction output locked by the given validator script (with its staking credentials).
stakePubKeyHashCredential :: StakePubKeyHash -> StakingCredential Source #
Construct a StakingCredential from a public key hash.
stakeValidatorHashCredential :: StakeValidatorHash -> StakingCredential Source #
Construct a StakingCredential from a validator script hash.
xprvToPaymentPubKey :: XPrv -> PaymentPubKey Source #
xprvToPaymentPubKeyHash :: XPrv -> PaymentPubKeyHash Source #
xprvToStakingCredential :: XPrv -> StakingCredential Source #
xprvToStakePubKey :: XPrv -> StakePubKey Source #
xprvToStakePubKeyHash :: XPrv -> StakePubKeyHash Source #
mkValidatorCardanoAddress :: NetworkId -> Versioned Validator -> AddressInEra BabbageEra Source #
Cardano address of a versioned Validator script.
Orphan instances
| FromJSONKey (AddressInEra BabbageEra) Source # | |
Methods fromJSONKey :: FromJSONKeyFunction (AddressInEra BabbageEra) fromJSONKeyList :: FromJSONKeyFunction [AddressInEra BabbageEra] | |
| ToJSONKey (AddressInEra BabbageEra) Source # | |
Methods toJSONKey :: ToJSONKeyFunction (AddressInEra BabbageEra) toJSONKeyList :: ToJSONKeyFunction [AddressInEra BabbageEra] | |