Hello!:
When i try instantiate-certificate-batch -c conf.ini with the default config returns
cert_schema.errors.BlockcertValidationError: ‘nonce’ is a required property
Please help.
Hi @mary.tellez
cert-tools is not the best well maintained package in the ecosystem, and we welcome community updates to ensure the experience is smooth.
In any case, the error is pretty self explanatory, you need to add a nonce
property.
hi, but nonce property does not exist
What do you mean it does not exist?
It is defined as part of the model of Blockcerts v3: https://www.blockcerts.org/schema/3.1/context.json
In the config file properties, but i find the way with additional_global_fields. Thank you!!!
@mary.tellez Can you share the solution please?
Hello, yes of course, in conf.ini add the line at the end
additional_global_fields = {“fields”: [{“path”: “$.nonce”,“value”: “sec:nonce”}]}
This my entired conf.ini
issuer information
issuer_url = https://xpertopolis.com
issuer_email = contact@issuer.org
issuer_name = Xpertopolis
issuer_id = https://www.blockcerts.org/samples/2.0/issuer-testnet.json
revocation_list=https://www.blockcerts.org/samples/2.0/revocation-list-testnet.json
issuer_public_key=ecdsa-koblitz-pubkey:000000000000000000000000000000000
issuer_logo_file = images/logo.png
###################
TEMPLATE DATA
###################
data_dir = sample_data
template output directory
template_dir = certificate_templates
template_file_name = test.json
##############################
INSTANTIATE BATCH CONFIG
##############################
unsigned_certificates_dir = unsigned_certificates
roster = rosters/roster_testnet.csv
filename_format = uuid
no_clobber = True
additional_global_fields = {“fields”: [{“path”: “$.nonce”,“value”: “sec:nonce”}]}