Package Exports
- @zipwire/proofpack-ethereum
- @zipwire/proofpack-ethereum/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zipwire/proofpack-ethereum) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@zipwire/proofpack-ethereum
Ethereum integration for ProofPack with ES256K signatures, EAS attestations, and multi-network blockchain verification.
Quick Start
npm install @zipwire/proofpack-ethereum
import {
EasAttestationVerifierFactory,
ES256KVerifier,
ES256KJwsSigner
} from '@zipwire/proofpack-ethereum';
// Verify EAS attestations
const networks = {
'base-sepolia': {
rpcUrl: 'https://api.developer.coinbase.com/rpc/v1/base-sepolia/YOUR_API_KEY',
easContractAddress: '0x4200000000000000000000000000000000000021'
}
};
const verifierFactory = EasAttestationVerifierFactory.fromConfig(networks);
const result = await verifierFactory.verifyAsync(attestation, merkleRoot);
// Verify ES256K signatures
const verifier = new ES256KVerifier('0x1234567890123456789012345678901234567890');
const isValid = await verifier.verifyAsync(jwsToken, messageHash);
// Sign with ES256K
const signer = new ES256KJwsSigner('0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef');
const signature = await signer.sign(payload);
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
- Ethereum Integration Guide - Ethereum-specific features
- Network Configuration - Multi-network setup
Network Configuration
For complete network configuration details, supported networks, and provider setup, see Network Configuration in the main documentation.
Related Packages
- @zipwire/proofpack - Core ProofPack functionality
License
MIT - See LICENSE for details.