Brazilolivmath/merkly
🌳 The simple and easy implementation of Merkle Tree
🌳 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.
Mastering Ethereum: 2nd Edition, by Andreas M. Antonopoulos, Gavin Wood, Carlo Parisi, Alessandro Mazza, Niccolò Pozzolini
DeFi Developer roadmap is a curated Developer handbook which includes a list of the best tools for DApps development, resources and references!
Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
A guide to smart contract security best practices
The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.
OpenZeppelin Contracts is a library for secure smart contract development.
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.
WTF Solidity 极简入门教程,供小白们使用。Now supports English! 官网: https://wtf.academy