Skip to content

Repoint secp256k1 dependency to 21-DOT-DEV/swift-secp256k1 - #912

Open
13Ophiuchus wants to merge 8 commits into
web3swift-team:developfrom
13Ophiuchus:fix/secp256k1-21dotdev
Open

Repoint secp256k1 dependency to 21-DOT-DEV/swift-secp256k1#912
13Ophiuchus wants to merge 8 commits into
web3swift-team:developfrom
13Ophiuchus:fix/secp256k1-21dotdev

Conversation

@13Ophiuchus

@13Ophiuchus 13Ophiuchus commented Jul 12, 2026

Copy link
Copy Markdown

Fixes #911 — repoints secp256k1 to 21-DOT-DEV/swift-secp256k1, matching SolanaSwift's fix in p2p-org/solana-swift#112 (PR p2p-org/solana-swift#113), so apps can use both web3swift and SolanaSwift together.

Verified with a full swift build + swift test in a downstream multi-chain wallet package (25/25 tests passing).

- Package.swift: swap GigaBitcoin/secp256k1.swift for 21-DOT-DEV/swift-secp256k1 across Web3Core and web3swift targets
- PlainKeystore.swift, SECP256k1.swift: import P256K + libsecp256k1 instead of bare secp256k1 module
- Matches the dependency used by AGWallet/Package.swift and solana-swift-patched, enabling multi-chain builds (Solana + EVM) without conflicting secp256k1 modules
13Ophiuchus added a commit to 13Ophiuchus/AetherAG-mono that referenced this pull request Jul 12, 2026
- Add solana-swift-patched submodule pointing at 13Ophiuchus/solana-swift @ fix/secp256k1-21dotdev (6a4b0dd8) — repoints secp256k1 to 21-DOT-DEV/swift-secp256k1; upstream PR p2p-org/solana-swift#114
- Add web3swift-patched submodule pointing at 13Ophiuchus/web3swift @ fix/secp256k1-21dotdev (f5ba580c) — same dependency fix; upstream PR web3swift-team/web3swift#912
- Both forks resolve the secp256k1/P256K module collision that blocked multi-chain (Solana + EVM) builds
- Update AGWallet EVMModule.swift and FlowModule.swift for compatibility with the repointed dependency
- Bump AetherAG submodule pointer (regenerated Package.resolved, swift-secp256k1 0.23.2 via 21-DOT-DEV) and Xcode workspace to match
- Update MILESTONES.md to reflect Bitcoin signing/address derivation completion and dependency resolution status
13Ophiuchus added a commit to 13Ophiuchus/AetherAG-mono that referenced this pull request Jul 12, 2026
- Add solana-swift-patched submodule pointing at 13Ophiuchus/solana-swift @ fix/secp256k1-21dotdev (6a4b0dd8) — repoints secp256k1 to 21-DOT-DEV/swift-secp256k1; upstream PR p2p-org/solana-swift#114
- Add web3swift-patched submodule pointing at 13Ophiuchus/web3swift @ fix/secp256k1-21dotdev (f5ba580c) — same dependency fix; upstream PR web3swift-team/web3swift#912
- Both forks resolve the secp256k1/P256K module collision that blocked multi-chain (Solana + EVM) builds
- Update AGWallet EVMModule.swift and FlowModule.swift for compatibility with the repointed dependency
- Bump AetherAG submodule pointer (regenerated Package.resolved, swift-secp256k1 0.23.2 via 21-DOT-DEV) and Xcode workspace to match
- Update MILESTONES.md to reflect Bitcoin signing/address derivation completion and dependency resolution status
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.

secp256k1 dependency conflicts with SolanaSwift consumers (P256K module collision)

1 participant