๐ข Attester
In this section you will walk though all processes done by the Attester.
- You will create an account that is used to pay for all transactions and the storage deposits.
- The next step is to create a DID, which is the identity that is used to create attestations. While you can always switch the KILT account and pay deposits and fees with any account you like, your DID stays the same and is the way Claimers will identify you and put trust in you.
- Before we can attest claims, we need a CType which describes and gives context to what we attest.
- Once we have a way to pay fees and deposits, have an identity and a CType we can create attestations.
Folder Structureโ
Create the following files in the Attester folder. This folders serves to mimic an Attester service.
- Typescript
- Javascript
โโ kilt-rocks/ # project
โโ attester/ # all attester code
โโ attestCredential.ts # issues attestations
โโ ctypeSchema.ts # create a local CType definition
โโ generateAccount.ts # functions for setting up and loading the attester's account
โโ generateCtype.ts # register the CType on chain
โโ generateDid.ts # registers the attester's on-chain DID
โโ generateKeypairs.ts # setup the keys for the attester's DID
โโ kilt-rocks/ # project
โโ attester/ # all attester code
โโ attestCredential.js # issues attestations
โโ ctypeSchema.js # create a local CType definition
โโ generateAccount.js # functions for setting up and loading the attester's account
โโ generateCtype.js # register the CType on chain
โโ generateDid.js # registers the attester's on-chain DID
โโ generateKeypairs.js # setup the keys for the attester's DID