Skip to main content

๐Ÿข Attester

In this section you will walk though all processes done by the Attester.

  1. You will create an account that is used to pay for all transactions and the storage deposits.
  2. 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.
  3. Before we can attest claims, we need a CType which describes and gives context to what we attest.
  4. 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.

โ””โ”€ 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