Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mekle Root FFI #58

Open
olivmath opened this issue Feb 1, 2024 · 2 comments · May be fixed by #57
Open

Mekle Root FFI #58

olivmath opened this issue Feb 1, 2024 · 2 comments · May be fixed by #57
Assignees
Labels
feat Adds a feature that didn't exist before
Milestone

Comments

@olivmath
Copy link
Owner

olivmath commented Feb 1, 2024

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 olivmath self-assigned this Feb 1, 2024
@olivmath olivmath added the feat Adds a feature that didn't exist before label Feb 1, 2024
@olivmath olivmath added this to the Accelerator milestone Feb 1, 2024
@olivmath olivmath linked a pull request Feb 1, 2024 that will close this issue
@Sovenok-Hacker
Copy link

Maybe you should use Maturin and pyo3?

@olivmath
Copy link
Owner Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Adds a feature that didn't exist before
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants