Create an AnonCreds Schema
Create an AnonCreds Schema as a DID-Linked Resource on cheqd for issuing AnonCreds.
Import a DID (optional)
const seed = TypedArrayEncoder.fromString(`<seed>`) // Secret seed. Should be kept secure in production!
const cheqdDid = 'did:cheqd:testnet:d37eba59-513d-42d3-8f9f-d1df0548b675' // Cheqd DID to be imported
await agent.dids.import({
did: cheqdDid,
overwrite: true,
privateKeys: [
{
privateKey: seed,
keyType: KeyType.Ed25519,
},
],
})Register a Schema
Parameters
Last updated
Was this helpful?