Issuers
Add the following code to issue credentials via CHAPI with LearnCard!
import { initLearnCard } from '@learncard/init';
const learnCard = await initLearnCard({ seed: '1234' });
const vc = learnCard.invoke.newCredential(); // Or otherwise generate a credential, i.e. VC-API or OIDC
const result = await learnCard.invoke.storeCredentialViaChapiDidAuth(vc);
if (result.success) console.log('Credential stored! π');
More Info
π°Using LearnCard to Interact with a CHAPI WalletLast updated
Was this helpful?