ElementsProject / ElementsProject/elements
Implement fast merkleroot computations in Python
- 主要言語
- C++
- スター
- 1.2k
- フォーク
- 416
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 15
説明
Currently our functional tests require setting the global `util.node_fastmerkle` with an Elements node, and to compute merkle roots in blocktools.py we call an RPC on this node. This is ugly and crazy and causes mysterious failures when adding new tests. We should just implement sha2 midstates in Python (there is plenty of MIT-licensed code floating around which does this, for example https://github.com/slush0/stratum-mining-proxy/blob/master/mining_libs/midstate.py ).
コントリビューションガイド
調査の方向性
まず blocktools.py と util.node_fastmerkle を設定する機能テストを読み、次に参照されている midstate 実装と現在の RPC ベースの merkle-root パスを比較します。Elements ノードやグローバルな node_fastmerkle 依存関係を必要とせずに Python で merkle root が計算され、影響を受けるテストがそのセットアップに依存しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- blockchain
- issue の種類
- リファクタリング
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100