Ethereum integration for ProofPack with ES256K signatures, EAS attestations, and multi-network blockchain verification
npm install @zipwire/proofpack-ethereumEthereum integration for ProofPack with ES256K signatures, EAS attestations, and multi-network blockchain verification.
``bash`
npm install @zipwire/proofpack-ethereum
`javascript
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);
``
- Node.js: >= 18.0.0
- npm: Latest version recommended
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
For complete network configuration details, supported networks, and provider setup, see Network Configuration in the main documentation.
- @zipwire/proofpack - Core ProofPack functionality
MIT - See LICENSE for details.