| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ledger.Address
Synopsis
- stakingCredential :: Address -> Maybe StakingCredential
- scriptHashAddress :: ValidatorHash -> Address
- toValidatorHash :: Address -> Maybe ValidatorHash
- toPubKeyHash :: Address -> Maybe PubKeyHash
- data Address = Address {}
- type CardanoAddress = AddressInEra BabbageEra
- newtype PaymentPrivateKey = PaymentPrivateKey {}
- 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
Documentation
stakingCredential :: Address -> Maybe StakingCredential Source #
The staking credential of an address (if any)
scriptHashAddress :: ValidatorHash -> Address Source #
The address that should be used by a transaction output locked by the given validator script hash.
toValidatorHash :: Address -> Maybe ValidatorHash Source #
The validator hash of the address, if any
toPubKeyHash :: Address -> Maybe PubKeyHash Source #
The PubKeyHash of the address, if any
Address with two kinds of credentials, normal and staking.
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 #
cardanoAddressCredential :: AddressInEra era -> Credential Source #
cardanoPubKeyHash :: AddressInEra era -> Maybe PubKeyHash 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.
xprvToStakePubKey :: XPrv -> StakePubKey Source #