You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds -dev flag that enables:
- /api/dev/sign endpoint: signs messages with a built-in test key
(anvil account 0: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)
- dev-wallet.js: browser shim that provides window.ethereum compatible
interface, activated by ?dev-wallet URL parameter
- Dev wallet banner shows at bottom of page when active
Usage:
./bitwrap -port 8088 -dev # start with dev mode
open http://localhost:8088/poll?dev-wallet # use dev wallet in browser
Also fixes ecRecover v-parity bug: v=0/1 encodes R.y parity,
not the rare rx+N case. Both devSign and cast wallet sign now
produce signatures that RecoverAddress correctly verifies.
The dev wallet calls /api/dev/sign server-side to avoid implementing
ECDSA in JavaScript. Endpoint is gated behind -dev flag and returns
403 in production.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments