background-shape

Duniter Substrate Benchmark

Cryptocurrencies like Bitcoin have developed free and decentralized tools to run currencies according to the free software way of life. They inspire the Duniter project, but Duniter adopts an egalitarian monetary creation based on The Relative Theory of Money, an article published in 2010 by Stéphane Laborde.

Client

AxiomTeam

Service

Blockchain

Date

March 1, 2023

Challenge

The project (version 2) is based on the Substrate framework written in Rust. Substrate provides a flexible framework for developing blockchain logic. This flexibility enables the implementation of sophisticated runtime logic based on a unit element called a pallet. Benchmarking a pallet allows for measuring the time it takes to execute different functions in the runtime and weights each pallet calls accordingly to prevent your blockchain from attacks by malicious actors.

Solution

We implemented the benchmark for the pallets of the project. Several pallets were tightly coupled, and a custom genesis configuration and chain with prepared identities had to be developed to run the benchmark in the runtime.

case-details