RepositoryPythonBRBrazil
olivmath

olivmath/merkly

🌳 The simple and easy implementation of Merkle Tree

82sao
16fork
6issue
0lượt xem

🌳 merkly: Merkle Tree trong Python đơn giản và dễ dùng

Một thư viện Python nhẹ, cung cấp cách triển khai Merkle Tree đơn giản với hỗ trợ keccak-256 mặc định.

merkly là một thư viện mã nguồn mở bằng Python, cung cấp cách triển khai Merkle Tree đơn giản và dễ sử dụng. Dự án hỗ trợ tạo leaf, tạo root, tạo proof và xác thực proof, với hàm băm mặc định là keccak-256 nếu người dùng không tự cung cấp.

✨ Điểm nổi bật

  • Tạo Leaf: Hỗ trợ tạo leaf từ danh sách đầu vào.
  • Tạo Root: Tính toán root của cây Merkle, tương thích với MerkleTreeJS.
  • Tạo Proof: Tạo proof cho từng leaf.
  • Xác thực Proof: Kiểm chứng proof của một leaf.
  • Hỗ trợ hàm băm tùy chỉnh: Cho phép người dùng truyền hàm băm riêng.
  • Hỗ trợ leaf bất kỳ kích thước nào: Linh hoạt với dữ liệu đầ vào.
  • Lá có thể đọc được: Cung cấp dạng hex và rút gọn để dễ kiểm tra.

💡 Vì sao đáng chú ý

merkly khác biệt nhờ cách tiếp cận đơn giản nhưng đầy đủ chức năng: từ việc xây dựng cây, tạo proof cho đến xác thực, tất cả đều trong một API nhất quán. Đặc biệt, root được tính tương thích với MerkleTreeJS, giúp dễ dàng tích hợp giữa Python và JavaScript. Mặc định dùng keccak-256 — phù hợp với sinh thái hệ blockchain Ethereum — nhưng vẫn cho phép tùy chỉnh hàm băm, phù hợp cho cả ứng dụng phi blockchain.


#MerkleTree #Python #Blockchain #Ethereum #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Repository
ethereumbook/ethereumbook

Mastering Ethereum: 2nd Edition, by Andreas M. Antonopoulos, Gavin Wood, Carlo Parisi, Alessandro Mazza, Niccolò Pozzolini

21.5k
Oct 12, 2026
RepositoryJavaScript
OffcierCia/DeFi-Developer-Road-Map

DeFi Developer roadmap is a curated Developer handbook which includes a list of the best tools for DApps development, resources and references!

10.9k
Oct 20, 2026
RepositoryTypeScript
NomicFoundation/hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.

8.5k
Oct 24, 2026
RepositoryHTML
ConsenSysDiligence/smart-contract-best-practices

A guide to smart contract security best practices

7.6k
Mar 28, 2025
RepositoryRust
unionlabs/union

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

73.7k
Jul 25, 2026
RepositorySolidity
OpenZeppelin/openzeppelin-contracts

OpenZeppelin Contracts is a library for secure smart contract development.

27.3k
Oct 21, 2026
RepositoryC++
argotorg/solidity

Solidity, the Smart Contract Programming Language

25.8k
Oct 22, 2026
RepositoryPython
ConsenSysDiligence/mythril

Mythril is a symbolic-execution-based securty analysis tool for EVM bytecode. It detects security vulnerabilities in smart contracts built for Ethereum and other EVM-compatible blockchains.

4.3k
Apr 27, 2026
RepositorySolidity
AmazingAng/WTF-Solidity

WTF Solidity 极简入门教程,供小白们使用。Now supports English! 官网: https://wtf.academy

14.1k
Oct 11, 2026