@zipwire/proofpack
v0.4.1
Published
Core ProofPack verifiable data exchange format with JWS, Merkle trees, selective disclosure, and blockchain attestation support
Downloads
15
Maintainers
Readme
@zipwire/proofpack
Core JavaScript implementation of the ProofPack verifiable data exchange format.
Quick Start
npm install @zipwire/proofpackimport {
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: '[email protected]' });
tree.recomputeSha256Root();
// Verify an attested document
const attestedReader = new AttestedMerkleExchangeReader();
const verificationResult = await attestedReader.readAsync(jwsDocument, verificationContext);Requirements
- Node.js: >= 18.0.0
- npm: Latest version recommended
Documentation
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
Related Packages
- @zipwire/proofpack-ethereum - Ethereum integration with ES256K and EAS attestations
License
MIT - See LICENSE for details.
