Adding a New cType
The Process for Adding a New cType
Step 1: Define the cType Schema (Off-Chain)
const driversLicenseCType = Kilt.CType.fromProperties('Digital Driver\'s License', {
licenseNumber: { type: 'string' },
familyName: { type: 'string' },
givenName: { type: 'string' },
dateOfBirth: { type: 'string', format: 'date' },
issueDate: { type: 'string', format: 'date' },
expiryDate: { type: 'string', format: 'date' },
issuingCountry: { type: 'string' },
heightCm: { type: 'integer' },
organDonor: { type: 'boolean' }
});
Step 2: Calculate the ctypeHash
ctypeHashStep 3: Propose the New cType via Governance
Step 4: Committee Voting and Execution
Last updated