Learn how to programmatically create, sign, and anchor your first certificate on Circular using your private key, including hashing, signing, and API submission.
Introduction
This tutorial provides a technical walkthrough for issuing and anchoring your first certificate on Circular using direct cryptographic signing. It assumes access to a valid Circular account with avail
Prerequisites
An active Circular account (with sufficient certificate credits)
The private key associated with your Circular account (locally stored and securely managed)
Node.js or equivalent environment with elliptic and crypto-js modules
A data payload or metadata you wish to certify
1
Install Required Libraries
Make sure the environment has the necessary crypto libraries:
npm install elliptic crypto-js
2
Define the Certificate Metadata
Create a JSON object that describes your certificate:
const certificate = {
title: "Protocol A Study Consent",
description: "Signed digital copy of consent form for participant #2045",
issuer: "0xYourPublicKey",
timestamp: new Date().toISOString(),
dataHash: "<sha256 hash of document or payload>"
};
Your private key is the only way to sign and authorize certificates from your account. Keep it secure, store it offline if possible, and never expose it in client-side code or public repositories.
Submitting the signed payload to the Circular network
Verifying that your certificate is anchored and retrievable
In production systems, the Circular SDK handles most of this behind the scenes, but direct signing is useful for low-level integrations, auditing, or custom dApp infrastructure.