assist/credentials

This module incorporates code for generating valid credentials, ensuring their correctness.

Functions

create_stake_credential(sc: ValidatorHash) -> Referenced<Credential>

Creates a stake credential from the hex encoding of a stake key. This can be used to find the reward amount from the withdrawals information inside the transaction of the form Dict<StakeCredential, Int>.

credentials.create_stake_credential(datum.contract_hash)
Search Document