1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! # moonproof-node-client
//!
//! Rust client for the Midnight node's Substrate submission RPC.
//!
//! Midnight transactions are submitted as **unsigned** Substrate extrinsics
//! wrapping the Midnight tx bytes: `pallet_midnight.send_mn_transaction(Vec<u8>)`.
//! The Midnight bytes carry all required cryptographic signatures internally
//! (Intent signatures + ZK proofs), so the Substrate layer adds no authentication.
//!
//! Transport is WebSocket JSON-RPC on port 9944 in the local dev harness. The
//! status subscription uses `author_submitAndWatchExtrinsic`, and the wallet
//! collapses Substrate tx-pool statuses into three emitted events:
//! [`SubmissionEvent::Submitted`], [`SubmissionEvent::InBlock`], and
//! [`SubmissionEvent::Finalized`].
//!
//! ## Reference
//!
//! TS counterpart: `@midnight-ntwrk/wallet-sdk-node-client`
//! (`midnight-wallet/packages/node-client/src/effect/PolkadotNodeClient.ts`).
pub use ;
pub use Config;
pub use NodeClientError;
pub use ;
pub use ;
pub use PolkadotNodeClient;