Elastos Insights

Behind the Code: Weekly Elastos Technical Update

Behind The Code - 29 April 2025

Welcome to our weekly Behind the Code Technical Update, providing detailed insights into the continuous development happening across the Elastos ecosystem. Each Tuesday, our “Behind the Code” series offers transparent updates on the ongoing improvements, innovations, and milestones achieved by our dedicated development teams. Whether you’re a developer, creator, investor, or simply curious about the technology powering the Smartweb, these updates give you a clear view of how we’re building the future of a truly decentralized Smartweb that prioritizes user sovereignty and Bitcoin-level security.

Our updates cover the entire Elastos ecosystem, including BeL2 (Bitcoin-secured DeFi layer), Elacity (decentralized digital assets marketplace), Essentials Wallet, and more. Let’s dive into what our teams have accomplished over the past week.

BeL2

Stablecoin System Development

  • Architecture Refinement: Completed restructuring of the Issuer order creation flow, allowing Issuer to directly interact with the LoanContract
  • Contract Optimizations:
    • Implemented stablecoin contract with pause functionality
    • Limited minting/burning permissions to authorized minters only
    • Enhanced Issuer implementation to handle all lender operations

Lending Protocol Improvements

  • Code Review & Security: Conducted comprehensive security audit of contracts, identifying and documenting risk areas
  • Testing Preparation: Restructured code and test scripts to validate Issuer creation and order operation functionality on testnet
  • Security Enhancements:
    • Replaced tx.origin with msg.sender in contract code to eliminate security vulnerabilities
    • Implemented SafeERC20 for all token transfer operations
    • Optimized transaction sequence: inbound transfers before state changes, outbound transfers after state changes
    • Added parameter validation, event logging, and reentrancy protection

New Side Chain Development

  • Multi-signature Wallet:
    • Developed and deployed multi-signature wallet for testing on the new side chain
    • Integrated multi-sig addresses into chain code
    • Reviewed and provided optimization suggestions for the contract
  • Chain Configuration:
    • Successfully renamed ESC project to PGP and migrated to dedicated repository
    • Modified chainID to 12343
    • Adjusted withdrawal contract genesis block integration code
    • Configured transaction fee parameters
  • Testing & Maintenance:
    • Tested and verified reward distribution contract functionality
    • Merged code to fix illegal voting on the main chain
    • Resolved the new side chain withdrawal issues after genesis block contract writing

Bug Fixes

  • Fixed arbitrator address generation inconsistency between contract and frontend
  • Resolved BTC fee script issues in loan unlocking process
  • Debugged BTC fee transaction failures and implemented fixes in the app code

Elacity

Media Preview System and Transcoding (Live in next update)

  • Achievements:
    • 10-second unencrypted previews added for unauthenticated users
    • Backend and frontend preview workflow integrated into mint forms
    • Frontend player updated to use previewURL metadata
    • Improved transcoding support across H264, AAC, and Opus formats
    • Fixed freezing issues in ffmpeg.wasm during preview generation
  • Ongoing Work:
    • Validating preview performance in production
    • Expanding codec support to improve playback on different devices
  • Community Impact: Users can now sample digital content before purchasing, improving discovery and decision-making

Adaptive Streaming and Smart Bitrate Switching (In Progress)

  • Achievements:
    • BOLA algorithm added for automatic bitrate selection during streaming
    • Fixed memory leaks and network inconsistencies in bitrate workflows
    • Built buffer visualization and network throttling tools for playback testing
  • Ongoing Work:
    • Fine-tuning BOLA parameters to improve bitrate switching
    • Verifying algorithm behavior against reference models
  • Community Impact: Users will experience smoother playback even during unstable internet conditions

Explore View and UI Performance Upgrades (Live)

  • Achievements:
    • Explore filter functionality repaired
    • Channel listings limited to two categories for better clarity
    • Fixed player lock/play button behavior
    • Resolved resurfaced UI bugs across devices
  • Ongoing Work:
    • Final validation of UI improvements across mobile and desktop devices
  • Community Impact: Browsing and searching for digital assets is now easier and more intuitive

Wallet, Essentials, and Web3 Authentication (Live)

  • Achievements:
    • Integrated Particle Auth in Puter
    • Enabled hybrid login using Web2 (Google, Facebook, X) and Web3 (MetaMask, WalletConnect, Essentials)
    • Wallet addresses linked to user profiles and displayed in account settings
  • Ongoing Work:
    • Modularizing authentication services for faster login and stronger session management
  • Community Impact: Users can log in using familiar methods while retaining full control over their identities and assets

ElastOS Platform Support (In Progress)

  • Achievements:
    • Forked and rebranded the Puter repository
    • Set up a CI/CD pipeline for automatic deployment, unit test enforcement, and structured debugging logs
  • Ongoing Work:
    • Finalizing ElastOS visual rebranding using Elastos logos, colors, and essential apps only (Document Editor, File Manager, Terminal, Settings)
    • Reviewing adaptive streaming functionality within ElastOS
  • Community Impact: Users will soon have access to a virtual environment to run Web3 applications in a trusted and consistent setting

Elastos Essentials Wallet

  • Fixed BPOS voting transition prompt display issues
  • Optimized the new side chain-related code
  • Resolved compilation connection issues by specifying androidx.core
    =1.6.0
  • Debugged cross-chain transactions from ELA main chain to PGP chain

What’s Next

BeL2

  • Complete Issuer functionality verification on testnet
  • Continue contract security optimizations
  • Expand test coverage and scenarios
  • Verify BTC fee fix effectiveness
  • Implement remaining recommended security measures

The new side chain

  • Finalize multi-signature wallet functionality
  • Complete remaining tests (crash chain, contracts, revenue distribution)
  • Prepare for mainnet launch

Elacity

  • Finalize ElastOS visual rebranding
  • Continue fine-tuning BOLA parameters for adaptive streaming
  • Expand codec support for improved playback
  • Complete validation of UI improvements across devices

Wallet Development

  • Continue refining PGP chain support in EE wallet
  • Complete cross-chain transaction testing and optimization

Join the Revolution

The Elastos ecosystem continues to demonstrate consistent progress toward our vision of a user-sovereign Smartweb. By bringing together Bitcoin’s security, decentralized identity, and peer-to-peer networks, we’re building a Smartweb where users truly own their data, identity, and digital assets.

Whether you’re a developer looking to build on our holistic infrastructure, a content creator seeking to directly monetize your work without middlemen, or simply a user who values privacy and control over your digital life, Elastos provides the tools and technology to make this possible.

We invite you to explore these new features, provide feedback, and join us in building the foundation for a more equitable digital future. Stay tuned for next week’s technical update as we continue empowering users and revolutionizing the way we interact online! 

Connect with Elastos: Visit Elastos.net to learn more, or download Elastos Essentials to get started today.

More Blogs