Skip to main content

Module server

Module server 

Source

Modules§

audit
PERMISSION AUDIT — record what a REAL wallet would have prompted the user for.
broadcast_follow_up
What the served /createAction does AFTER Wallet::create_action returns.
handlers
types

Structs§

ServerConfig
Server configuration (auth, TLS, etc.)
TlsConfig
TLS configuration (cert + key paths).

Functions§

make_router
Build the axum Router with all 28 WalletInterface endpoints.
make_wallet_state
make_wallet_state_from_arc
Build a WalletState from an existing Arc<Wallet>.
run
sanitize_lone_surrogates
Browser wallets accept JSON whose strings carry lone UTF-16 surrogate escapes ("\ud83d" without its pair); serde does not, so a page whose keyID or data happened to contain one got 400 Failed to parse the request body as JSON: keyID: lone leading surrogate from this wallet while MetaNet Desktop served the same call (beta soak, 2026-09-02, two logins lost). A browser’s encoder turns such a code unit into U+FFFD when it hashes the string, so the same substitution here yields the same bytes the JS wallet would derive from.

Type Aliases§

SpendingLock
Lock that serializes spending operations (createAction). Non-spending endpoints (encrypt, getPublicKey, listOutputs, etc.) are unaffected.