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.