Commit a3bd662
committed
feat(mock): in-process mock wallet — offline login + signing, no device
Promote the proven SSO/statement-store responder into a public, feature-gated
`mock_wallet` module (behind the `mock` feature; never in the default build).
`MockWalletPlatform` composes `truapi-platform`'s `MockPlatform` for the ten
platform-seam capabilities and answers `ChainProvider::connect` with a
`MockWalletConnection` that completes the SSO pairing handshake (login) and
answers signing requests over the statement-store channel — sr25519-signed and
P-256/AES-GCM-encrypted, exactly as a paired wallet would.
Closes the wallet-seam gap: login and signing now complete deterministically
in-process. Through-core tests cover login-to-authenticated and sign_payload.1 parent aad062e commit a3bd662
3 files changed
Lines changed: 700 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| |||
0 commit comments