This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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'; |