LN-Dymension: DA client for RollAP

Description of Laod Network integration as a Data Availability client for Dymension RollApps

https://dymension.xyz

Key Details

  • Load Network provides a gateway for Arweave's permanent with its own (LN) high data throughput of the permanently stored data into .

  • Current maximum encoded blob size is 8 MB (8_388_608 bytes).

  • Laod Network currently operating in public testnet (Alphanet) - not recommended to use it in production environment.

Prerequisites and Resources

  1. Understand how to boot basic Dymension RollApp and how to configure it.

  2. Obtain test tLOAD tokens through our faucet for testing purposes.

  3. Monitor your transactions using the Load Network explorer.

How it works

You may choose to use Load Network as a DataAvailability layer of your RollApp. We assume that you know how to boot and configure basics of your dymint RollApp. As an example you may use https://github.com/dymensionxyz/rollapp-evm repository. Example uses "mock" DA client. To use Load Network you should simply set next environment variable before config generation step using init.sh export DA_CLIENT="weavevm" # This is the key change export WVM_PRIV_KEY="your_hex_string_wvm_priv_key_without_0x_prefix" init.sh will generate basic configuration for da_config.json in dymint.toml which should look like. da_config = '{"endpoint":"https://alphanet.load.network","chain_id":9496,"timeout":60000000000,"private_key_hex":"your_hex_string_load_priv_key_without_0x_prefix"}' In this example we use PRIVATE_KEY of your LN address. It's not the most secure way to handle transaction signing and that's why we also provide an ability to use web3signer as a signing method. To enable web3signer you will need to change init.sh script and add correspondent fields or change da_config.json in dymint.toml directly. e.g da_config = '{"endpoint":"https://alphanet.load.network","chain_id":9496,"timeout":"60000000000","web3_signer_endpoint":"http://localhost:9000"}'

and to enable tls next fields should be add to the json file:

web3_signer_tls_cert_file web3_signer_tls_key_file web3_signer_tls_ca_cert_file Web3 signer

Web3Signer is a tool by Consensys which allows remote signing.

Warnings

Using a remote signer comes with risks, please read the web3signer docs. However this is a recommended way to sign transactions for enterprise users and production environments. Web3Signer is not maintained by Load Network team. Example of the most simple local web3signer deployment (for testing purposes): https://github.com/allnil/web3signer_test_deploy Example of used configuration:

in rollap-evm log you will eventually see something like this:

Last updated