Add a way to pad transactions' size if needed by Simplicity cost metric
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- blockchain
調査の方向性
この issue では rust-elements の名前が挙げられていますが、ファイルもテストも指定されていません。まず、トランザクションの weight とシリアライゼーションのエントリーポイント、および既存の Simplicity のコスト処理を特定し、その後 padding の基準と必要なカバレッジを決定してください。必要な weight までトランザクションに padding を追加する、標準化されテスト済みの仕組みが実装されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Simplicity transactions have an additional "cost" associated with the computational resources consumed by verification of the results of executing the contract.
This cost is paid for by ensuring that the transaction has a sufficiently high weight (using conventional weight calculations) to cause the associated fee to be adequate according to the cost formula. Currently, most typical Simplicity programs inherently produce large enough transactions to satisfy this requirement, so there hasn't been a need to artificially increase the size of their transactions in order to get them accepted by Liquid nodes. However, this might not always be the case for more computationally-intensive contracts in the future, e.g. those that use loops or that call expensive jets repeatedly for some reason.
So, we could use a standardized way to pad transactions to make them deliberately larger when this turns out to be required by the cost formula.
@apoelstra suggested that the appropriate place to specify and implement the basis for this is here in rust-elements.
- 主要言語
- Rust
- スター
- 57
- フォーク
- 40
- 平均マージ
- 11時間 58分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ElementsProject/rust-elements のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
ElementsProject/rust-elements#290 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ElementsProject/rust-elements#277 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
ElementsProject/rust-elements#273 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ElementsProject/rust-elements#268 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
ElementsProject/rust-elements#262 · コメント 2 件 · リアクション 1 件 ·
ElementsProject/rust-elements の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
gitbutlerapp/gitbutler#15998 · コメント 1 件 ·
-
bug triage:deciding
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
open-telemetry/otel-arrow#4132 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100