JSPM

@zipwire/proofpack-ethereum

0.3.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q54723F
  • License MIT

Ethereum integration for ProofPack with ES256K signatures, EAS attestations, and multi-network blockchain verification

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);

Features

  • ES256K Signatures - Ethereum secp256k1 signature verification
  • ES256K Signing - Create ES256K signatures for Ethereum addresses
  • EAS Attestation - Ethereum Attestation Service integration
  • Multi-Network Support - Base, Sepolia, Optimism, Polygon networks
  • Real Blockchain Integration - Live attestation verification

Supported Networks

  • Base Sepolia (Testnet) - ✅ Working with Coinbase Cloud Node
  • Base (Mainnet) - ✅ Supported
  • Ethereum Sepolia - ✅ Supported via Alchemy
  • Optimism Sepolia - ✅ Supported via Alchemy
  • Polygon Mumbai - ✅ Supported via Alchemy

Requirements

  • Node.js: >= 18.0.0
  • API Keys: Coinbase Cloud Node or Alchemy API key for blockchain access

Documentation

For complete documentation, examples, and advanced usage patterns, see:

  • @zipwire/proofpack - Core library (required dependency)

License

MIT - See LICENSE for details.