merkly icon indicating copy to clipboard operation
merkly copied to clipboard

Mekle Root FFI

Open olivmath opened this issue 1 year ago • 2 comments

Build Merkle Root using Rust FFI

I want Merkly to work like this:

import merkly

mtree = MerkleTree(['a', 'b', 'c', 'd'], turbo=True)

# build merkle root using Rust by FFI
assert mtree.root.hex() == '68203f90e9d07dc5859259d7536e87a6ba9d345f2552b5b9de2999ddce9ce1bf'

olivmath avatar Feb 01 '24 04:02 olivmath

Maybe you should use Maturin and pyo3?

Sovenok-Hacker avatar Apr 01 '24 19:04 Sovenok-Hacker

I tried to go that route, but I'm learning a lot about the low level with FFI. BUT, it doesn't work as I thought at first, maybe I'll switch to Maturin or Pyo3.

Are you using the merkly? you have some suggestions to use Maturin or Pyo3? I'm super open to new ideas!

olivmath avatar May 30 '24 18:05 olivmath