Skip to content

lift signer to top level since not PDP specific#4

Merged
parkan merged 2 commits intomasterfrom
refactor/signer-package
Feb 24, 2026
Merged

lift signer to top level since not PDP specific#4
parkan merged 2 commits intomasterfrom
refactor/signer-package

Conversation

@parkan
Copy link
Copy Markdown
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
Copy Markdown
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

added

@parkan parkan marked this pull request as ready for review February 24, 2026 14:58
@parkan parkan changed the base branch from feat/wagmi to master February 24, 2026 15:34
@parkan
Copy link
Copy Markdown
Collaborator Author

parkan commented Feb 24, 2026

@anjor I'm going to merge this to keep moving on the singularity integration that assumes this interface, if you have concerns please raise them in separate PR/issue, depending on severity

@parkan parkan merged commit 25d6b0b into master Feb 24, 2026
6 checks passed
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