Core ProofPack verifiable data exchange format with JWS, Merkle trees, selective disclosure, and blockchain attestation support
npm install @zipwire/proofpackCore JavaScript implementation of the ProofPack verifiable data exchange format.
``bash`
npm install @zipwire/proofpack
`javascript
import {
JwsReader,
MerkleTree,
AttestedMerkleExchangeReader,
JwsSignatureRequirement
} from '@zipwire/proofpack';
// Verify a JWS envelope
const reader = new JwsReader();
const result = await reader.verify(jwsEnvelopeJson, resolveVerifier);
// Create a Merkle tree
const tree = new MerkleTree();
tree.addJsonLeaves({ name: 'John Doe', email: 'john@example.com' });
tree.recomputeSha256Root();
// Verify an attested document
const attestedReader = new AttestedMerkleExchangeReader();
const verificationResult = await attestedReader.readAsync(jwsDocument, verificationContext);
``
- Node.js: >= 18.0.0
- npm: Latest version recommended
For complete documentation, examples, and advanced usage patterns, see:
- Main Documentation - Comprehensive guides and examples
- API Reference - Detailed usage patterns
- Troubleshooting - Common issues and solutions
- @zipwire/proofpack-ethereum - Ethereum integration with ES256K and EAS attestations
MIT - See LICENSE for details.