Files
salvium-rs/src/randomx
Matt Hess 4eb3062d9c Wire oracle.js to crypto provider, add QuickJS compatibility
- Oracle: replace Node.js crypto (createHash/createVerify) with crypto
    provider's verifySignature, eliminating the 'crypto' module dependency.
    verifyPricingRecordSignature and validatePricingRecord are now async.

  - Rust crate: add SHA-256 (all targets) and verify_signature with ECDSA
    P-256 + DSA support (native-only) to salvium-crypto. FFI bindings and
    C header updated. All 31 Rust tests pass.

  - Crypto backends: add sha256/verifySignature to JS (noble + WebCrypto
    fallback), WASM (noble + WebCrypto fallback), and JSI (native FFI).

  - QuickJS compat (6 issues):
    · catch {} → catch (_e) {} across 10 files
    · Buffer → bytesToHex/hexToBytes in consensus.js and validation.js
    · AbortController → Promise.race timeout in rpc/client, connection-
      manager, and oracle
    · URLSearchParams → manual query string in rpc/client and oracle
    · Promise.allSettled → Promise.all wrapper in connection-manager
    · btoa → _toBase64 with manual fallback in rpc/client
    · pemToDer base64 decoder with 3-tier fallback (Buffer/atob/manual)

  - Fix GammaPicker exclusion zone (60 → 10) matching C++ gamma_picker
  - Fix testnet TARGET heights for coinbase maturity
2026-02-10 05:42:11 +00:00
..