Handling witnesses for Tx building intents.
The type of credential to provide.
It can either be a key, typically from a wallet, a native script, or a plutus script.
Helper function to convert a credential witness to an Address.Credential.
Represents different types of script witnesses.
Represents a Native script witness.
Expected signatures are not put in the "required_signers" field of the Tx but are still used to estimate fees.
If you expect to sign with all credentials present in the multisig,
you can use Dict.values (Cardano.Script.extractSigners script)
.
Otherwise, just list the credentials you intend to sign with.
Represents a Plutus script witness.
Represents different sources for witnesses.
Error type describing all kind of errors that can happen while validating witnesses.
Convert an error into a human-readable string.
True if the this is a credential witness for a Plutus script.
Encode a witness source into a unique Hex string representation.
Transform a witness source into a Result type.
This isn’t to semantically say it can fail, just to take advantage of all the functions operating on the Result type. In Haskell, we would have converted to Either.
Extract the [OutputReference] from a witness source, if passed by reference. Return [Nothing] if passed by value.
Check that the datum witness matches the output datum option.
Check the witness of a script.
Check the witness of a native script. Both the script hash and the validity of expected signers.
Check the validity of a Plutus script witness. Witness sources are checked, script hashes are matched.
Voting credentials can either come from a DRep, a stake pool, or Constitutional Committee member.