2

While looking through the options of the cardano-cli transaction build options I saw the options,

  --certificate-file CERTIFICATEFILE
                           Filepath of the certificate. This encompasses all
                           types of certificates (stake pool certificates, stake
                           key certificates etc). Optionally specify a script
                           witness.
  --certificate-script-file FILE
                           The file containing the script to witness the use of
                           the certificate.
  --certificate-redeemer-cbor-file CBOR FILE
                           The script redeemer, in the given JSON file. The file
                           must follow the special JSON schema for script data.
  --certificate-redeemer-file JSON FILE
                           The script redeemer, in the given JSON file. The file
                           must follow the special JSON schema for script data.
  --certificate-redeemer-value JSON VALUE
                           The script redeemer, in JSON syntax. There is no
                           schema: (almost) any JSON value is supported,
                           including top-level strings and numbers

I was wondering how and what type of scripts are allowed for these certificates? Can we also generate our own type of certificates with plutus? As stated after the --certificate-file flag these entail atleast stake pool certificates and stake key certificates. This would be a good lightweight option for on-chain voting.

1 Answer 1

1

I looked at the constructors in the Haddock files of the Certificates in the Plutus.V1.Ledger module. There the datatype DCert is defined as

enter image description here

I am not sure but answering my own question, currently only the above certificates are possible. It is still not clear to me what the --certificate-script-file flag does exactly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.