Skip to main content

Digital certificate

Nuchain supports creating digital certificate.

Certificate data in Nuchain is eternal --once it is written, it can not be erased, but the validity can still be revoked.


Certificate in Nuchain is platform for storage only, it is not an authority. However, the data in the blockchain, that has eternal nature, can be used to prove the existence of the certificate digitally.

Creating certificates#

Creating certificates requires an organisation, a holder of certificate issuer. Further details about creating organisation can be found at Organisation.

The steps of creating certificates in Nuchain are:

Nuchain Certificate

  1. The organisation needs to generate a certificate (as a template). The template then will be used in issuing certificates. The access of creating certificate is only available for account admin of the organisation and for accounts that has DId access to the organisation. Creating certificate is also possible using the extrinsic function certificate.create.

  2. The organisation issues a certificate for a recipient by using extrinsic function certificate.issue.

Checking the certificates#

Created and issued certificates are written on the blockchain and its existence can be proven by querying using the function certificate.issuedCert(ID).

The validity of the certificates can be proven by ensuring that

  1. the certificates are not revoked
  2. the certificates does not expire

Example of getting information of issued certificate using the javascript API:

let cert = await api.query.certificate.issuedCert("A35tYxqSP6i");

Revoking the certificates#

The issued certificates are able to be revoked. Revoking the certificates will make them invalid. Use extrinsic function certificate.revoke to revoke the certificates.

Expiration of certificates#

In Nuchain, the certificate issuer is able to set expiration time of the digital certificates by filling the parameter of expired when issuing a certificate.