UNPKG

jsonld-signatures-merkleproof2019

Version:

A jsonld signature implementation to support MerkleProof2019 verification in Verifiable Credential context

11 lines (10 loc) 305 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeEntry = removeEntry; function removeEntry(map, key) { const stepIndex = map.findIndex(entry => entry === key); if (stepIndex > -1) { // delete by reference map.splice(stepIndex, 1); } }