This module incorporates code for generating valid certificates, ensuring their correctness.
delegate_credential(sc: ScriptHash, pool_id: StakePoolId) -> Certificate
Creates a credential delegation for changing the location of the stake. This certificate can be used to check if stake is being delegated to a specific pool.
certificates.delegate_credential(datum.contract_hash, datum.pool_id)