Skip to content

Comments

lift signer to top level since not PDP specific#4

Draft
parkan wants to merge 1 commit intofeat/wagmifrom
refactor/signer-package
Draft

lift signer to top level since not PDP specific#4
parkan wants to merge 1 commit intofeat/wagmifrom
refactor/signer-package

Conversation

@parkan
Copy link
Collaborator

@parkan parkan commented Feb 20, 2026

  • New signer/ package with dual-protocol Filecoin/EVM signing interfaces
  • Secp256k1Signer signs both native Filecoin messages and Ethereum transactions from the same key
  • BLSSigner for Filecoin-only signing
  • Accepts lotus wallet export format via FromLotusExport()
  • pdp.Signer kept as type alias for backward compat
  • Bumps blst to v0.3.16 for C23 compiler compat

@parkan parkan force-pushed the refactor/signer-package branch from 953fa8d to 39f4582 Compare February 20, 2026 13:34
Move Signer interface out of pdp/ into signer/ package. A secp256k1
key can sign both native Filecoin messages (blake2b) and Ethereum
transactions (keccak256) from the same key material.

Interfaces:
  signer.Signer    - Filecoin signing (all key types)
  signer.EVMSigner - adds EVM transaction signing (secp256k1 only)

Implementations:
  Secp256k1Signer - dual-protocol, implements EVMSigner
  BLSSigner       - Filecoin-only, implements Signer

Accepts lotus wallet export format directly via FromLotusExport().

pdp.Signer and pdp.NewPrivateKeySigner kept as aliases for backward
compatibility. Also bumps blst to v0.3.16 for C23 compat.
@parkan
Copy link
Collaborator Author

parkan commented Feb 20, 2026

this likely needs an explicit user visible trapdoor for "your wallet is BLS, you cannot FEVM as EOA" unless I'm missing some magic proxy actor that will convert BLS signed messages into EVM compatible txs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant