Skip to content

Instantly share code, notes, and snippets.

View Wind4Greg's full-sized avatar

Greg Bernstein Wind4Greg

View GitHub Profile
@Wind4Greg
Wind4Greg / VCIntegrityTestCreate2.js
Created February 28, 2023 18:38
Creating a EdDSA signed VC
/*
Steps to create a signed verifiable credential in the *DataIntegrityProof*
representation.
*/
import jsonld from 'jsonld';
import { base58btc } from "multiformats/bases/base58";
import * as ed from '@noble/ed25519';
import { sha256 } from '@noble/hashes/sha256';
import { bytesToHex, concatBytes } from '@noble/hashes/utils';