From 46666f4ff606f4b0384146c5d5bb07a2e60f8c50 Mon Sep 17 00:00:00 2001 From: Dendi Suhubdy <4477337+dendisuhubdy@users.noreply.github.com> Date: Thu, 5 Nov 2026 12:05:26 +0800 Subject: [PATCH] core: vendor fullnode v0.8.5; node-integration runs against it Co-Authored-By: Claude Opus 5.5 --- .github/workflows/node-integration.yml | 2 +- README.md | 6 +++--- core/Cargo.lock | 10 +++++----- core/crates/wallet-core/src/lib.rs | 4 ++-- core/vendor/fullnode | 2 +- desktop/src-tauri/Cargo.lock | 10 +++++----- ios/RandWalletTests/CoreSmokeTests.swift | 2 +- web/wallet/test/core.integration.test.mjs | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/node-integration.yml b/.github/workflows/node-integration.yml index 725296c..fc17f0d 100644 --- a/.github/workflows/node-integration.yml +++ b/.github/workflows/node-integration.yml @@ -41,7 +41,7 @@ env: CARGO_TERM_COLOR: always RUST_TOOLCHAIN: 1.98.1 # v0.8.3-rc1: fullnode 9443de63, the whole v0.8.3 batch but #159 (storage only). Set v0.8.3 at the tag. - FULLNODE_TAG: v0.8.4 + FULLNODE_TAG: v0.8.5 jobs: real-node: diff --git a/README.md b/README.md index 197cf58..f79a232 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ STARK proof, keys are Poseidon2 hashes, envelopes are ML-KEM-768 + ChaCha20-Poly primitives exist only in the fullnode's Rust crates, and a wallet that re-implemented them in Swift, Java or JavaScript would have to be byte-identical to the node or every transfer is refused. So `core/` vendors the fullnode crates (`core/vendor/fullnode`, -a submodule at fullnode `v0.8.4` `e1f75f1` (the v0.8.3 batch plus the digest log; constraint set 9, the `randprotocol-msig` signer checks with the payee check a signer runs, and the verified fold in the verify cache), chain 21 onward: **split authorisation**, where a transaction carries a bundle proof made from the viewing key and a small authorisation proof the wallet always makes itself from the spend key; **BIND-1**, a transaction bound to its chain's genesis; program state and the `Invoke` action (RPL-2); and the chain's bridge fee) and exposes one JSON entry point, `call(method, params)`, that each +a submodule at fullnode `v0.8.5` `d8efd47` (v0.8.4 plus the audit v12 node fixes; constraint set 9, the `randprotocol-msig` signer checks with the payee check a signer runs, and the verified fold in the verify cache), chain 21 onward: **split authorisation**, where a transaction carries a bundle proof made from the viewing key and a small authorisation proof the wallet always makes itself from the spend key; **BIND-1**, a transaction bound to its chain's genesis; program state and the `Invoke` action (RPL-2); and the chain's bridge fee) and exposes one JSON entry point, `call(method, params)`, that each client wraps: an XCFramework on iOS, a `.so` on Android, WebAssembly in the browser. Everything above that line — the RPC client, note store, scan and send flow, key storage and the UI — is Swift, Java and JavaScript. @@ -199,11 +199,11 @@ The first build of any client compiles the prover and takes several minutes. ```bash git clone --recurse-submodules https://github.com/randprotocol/clients.git cd clients -git checkout v0.8.4 && git submodule update --init # a release, rather than main +git checkout v0.8.5 && git submodule update --init # a release, rather than main ``` or unpack `rand-wallet--source.tar.gz` from a release, which has the submodule in it already. -The submodule is the full node (`core/vendor/fullnode`, at `v0.8.4` `e1f75f1`, the v0.8.3 batch plus the digest log): the wallet's +The submodule is the full node (`core/vendor/fullnode`, at `v0.8.5` `d8efd47`, v0.8.4 plus the audit v12 node fixes): the wallet's cryptography is the node's own code. ### 3. Test the core (optional, about a minute) diff --git a/core/Cargo.lock b/core/Cargo.lock index 4eaa2b7..2cc275e 100644 --- a/core/Cargo.lock +++ b/core/Cargo.lock @@ -149,7 +149,7 @@ dependencies = [ [[package]] name = "bridge-codec" -version = "0.8.4" +version = "0.8.5" [[package]] name = "bs58" @@ -1388,7 +1388,7 @@ checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" [[package]] name = "randprotocol-core" -version = "0.8.4" +version = "0.8.5" dependencies = [ "bincode", "blake3", @@ -1408,7 +1408,7 @@ dependencies = [ [[package]] name = "randprotocol-msig" -version = "0.8.4" +version = "0.8.5" dependencies = [ "getrandom 0.2.17", "getrandom 0.4.3", @@ -1422,7 +1422,7 @@ dependencies = [ [[package]] name = "randprotocol-prover" -version = "0.8.4" +version = "0.8.5" dependencies = [ "blake3", "bs58", @@ -1442,7 +1442,7 @@ dependencies = [ [[package]] name = "randprotocol-zkvm" -version = "0.8.4" +version = "0.8.5" dependencies = [ "chacha20", "chacha20poly1305", diff --git a/core/crates/wallet-core/src/lib.rs b/core/crates/wallet-core/src/lib.rs index 8785108..fb044a5 100644 --- a/core/crates/wallet-core/src/lib.rs +++ b/core/crates/wallet-core/src/lib.rs @@ -103,7 +103,7 @@ pub const VERSION: &str = env!("CARGO_PKG_VERSION"); /// set 7 — the delegated prover, `randprotocol-prover`'s sealed job wire, unchanged since), /// `e6d1327`, `109f47d`, `1a13359` (`feat/address-sharing` on v0.5.9: the address fingerprint, /// `randpay:` links and the encrypted memo), `9c142c1` (v0.5.1). -pub const CHAIN_BUILD: &str = "e1f75f1"; +pub const CHAIN_BUILD: &str = "d8efd47"; /// The chain the defaults below describe: chain 21 (fullnode v0.8.0, constraint set 9; perps, /// multisig, the `fees` section, `hc_auth_multisig`), cut from chain 20's state. Before it, chain /// 20, cut 2026-10-01 on fullnode v0.6.8 (`c9c9bd3`) from chain 19's state, with `program_state`, `binding_domain: 1` and `bridge.fees` (10 bps each @@ -6190,7 +6190,7 @@ mod tests { fn version_reports_chain_fourteen() { let v = constants(); assert_eq!(v["default_chain_id"], 21); - assert_eq!(v["chain_build"], "e1f75f1"); + assert_eq!(v["chain_build"], "d8efd47"); assert_eq!(v["rpl_transfer"], true); assert_eq!(v["bridge_burn"], true); assert_eq!(v["bridge_burn_proofs"], 1); diff --git a/core/vendor/fullnode b/core/vendor/fullnode index e1f75f1..d8efd47 160000 --- a/core/vendor/fullnode +++ b/core/vendor/fullnode @@ -1 +1 @@ -Subproject commit e1f75f114941eb0c5f0f588083e4ede301104be9 +Subproject commit d8efd472d8d8fc81c6bf5ccaa511d3656750eb25 diff --git a/desktop/src-tauri/Cargo.lock b/desktop/src-tauri/Cargo.lock index 44e60f5..ad457f4 100644 --- a/desktop/src-tauri/Cargo.lock +++ b/desktop/src-tauri/Cargo.lock @@ -476,7 +476,7 @@ dependencies = [ [[package]] name = "bridge-codec" -version = "0.8.4" +version = "0.8.5" [[package]] name = "brotli" @@ -3934,7 +3934,7 @@ checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" [[package]] name = "randprotocol-core" -version = "0.8.4" +version = "0.8.5" dependencies = [ "bincode", "blake3", @@ -3954,7 +3954,7 @@ dependencies = [ [[package]] name = "randprotocol-msig" -version = "0.8.4" +version = "0.8.5" dependencies = [ "getrandom 0.2.17", "getrandom 0.4.3", @@ -3968,7 +3968,7 @@ dependencies = [ [[package]] name = "randprotocol-prover" -version = "0.8.4" +version = "0.8.5" dependencies = [ "anyhow", "axum", @@ -3998,7 +3998,7 @@ dependencies = [ [[package]] name = "randprotocol-zkvm" -version = "0.8.4" +version = "0.8.5" dependencies = [ "chacha20", "chacha20poly1305", diff --git a/ios/RandWalletTests/CoreSmokeTests.swift b/ios/RandWalletTests/CoreSmokeTests.swift index 4037bbc..f73c956 100644 --- a/ios/RandWalletTests/CoreSmokeTests.swift +++ b/ios/RandWalletTests/CoreSmokeTests.swift @@ -6,7 +6,7 @@ final class CoreSmokeTests: XCTestCase { func testVersionReportsChainDefaults() throws { let c = try RandCore.constants() XCTAssertEqual(c.defaultChainId, 21) - XCTAssertEqual(c.chainBuild, "e1f75f1", "fullnode main 97bcf4b (the v0.8.3 batch, constraint set 9), chain 21") + XCTAssertEqual(c.chainBuild, "d8efd47", "fullnode main 97bcf4b (the v0.8.3 batch, constraint set 9), chain 21") XCTAssertEqual(c.tokenSymbol, "RAND") XCTAssertEqual(c.bundleBaseFee, "1000000") // Constraint set 8: the gas every bundle proof declares — chain 18's genesis pin. diff --git a/web/wallet/test/core.integration.test.mjs b/web/wallet/test/core.integration.test.mjs index 98a7067..6a1c1a1 100644 --- a/web/wallet/test/core.integration.test.mjs +++ b/web/wallet/test/core.integration.test.mjs @@ -249,7 +249,7 @@ test('the artefact this wallet loads is built for chain 21 on the hidden-asset b // Fullnode v0.6.7 (constraint set 8 and split authorisation — the build chains 18 and 19 run): // every bundle proof declares the guest's ceiling, which the genesis pins; the chains on which a // memo claim is never believed; the two guests chain 18's `rand_status` names (2026-09-30). - assert.equal(k.chain_build, 'e1f75f1'); + assert.equal(k.chain_build, 'd8efd47'); assert.equal(k.bundle_gas_limit, 20479); assert.equal(k.hc_bundle, '60af094acfe65d85fdb18fb3d06cf9085dcf28c96e59e87f1ee527226e6e3fce', 'bundle guest v3'); assert.equal(k.hc_auth, '1e4e347f44cf86750b30a9a4bdf9ec9256efe353d4ff8017451eca7d195639c1', 'the auth guest');