github breez/breez-sdk-liquid 0.8.0
Breez SDK - Nodeless (Liquid Implementation) 0.8.0

latest releases: 0.11.2, precompiled_4271ba26291ccc21f05c1eee98b9ffb3, 0.11.1...
4 months ago

What's New

  • Added WASM support (Node.js and Web)
  • Lowered the minimum payment amount for sending
  • Enabled fee payments in USDT

More Information Regarding WASM

To achieve WASM support, we made several major improvements across the SDK:

  • WASM-Compatible SDK Core:
    We updated the sdk-common crate to work in WASM environments by:

    • Integrating a WASM-compatible gRPC client using tonic_web_wasm_client
    • Implementing custom DNS resolution for WASM
    • Refactoring our internal REST client for better testability without relying on non-WASM-compatible libraries
    • Introducing a new sdk-macros crate to support required macro annotations across platforms
  • New WASM-Specific Crate:
    We added a dedicated WASM interface using wasm-bindgen, with custom type and callback handling to provide a smooth developer experience.

  • Flexible SDK Customization:
    The new LiquidSdkBuilder makes it easy to configure SDK components, including platform-specific filesystem abstractions to support persistent storage in both Web and Node.js environments.

  • SQLite and Cache Handling:
    Since traditional database solutions are challenging in WASM, we use an adapted in-memory SQLite (rusqlite) setup along with a custom persistent watcher.

  • Background Tasks & System Adaptations:
    We implemented new methods for background task spawning, interval management, and system time access tailored for WASM constraints.

  • Alternative Blockchain Data Sources:
    As Electrum wasn't feasible in WASM, we integrated support for Waterfalls as a lightweight alternative for blockchain data.

  • WASM-Ready Boltz Integration:
    We refactored the Boltz swap client to be fully WASM compatible.

  • gRPC-Web Proxy Support:
    All our gRPC-based services (like the Breez Server and real-time sync) now support gRPC-Web proxies, ensuring seamless connectivity from browser environments.

What's Changed

New Contributors

Full Changelog: 0.7.2...0.8.0

Don't miss a new breez-sdk-liquid release

NewReleases is sending notifications on new releases.