Page MenuHomePhabricator

[ecash-agora] Limit token truncation level to 5 (SLP) and 3 (ALP)
AcceptedPublic

Authored by tobias_ruck on Thu, Sep 12, 23:09.

Details

Reviewers
bytesofman
Fabien
Group Reviewers
Restricted Project
Summary

For ALP, the estimation often results in truncating 4 or more bytes, which is not supported in the Script, therefore we limit it to 3.

We also limit SLP to 5 bytes (which is also the maximum). There's currently no known set of parameters that would result in 6 bytes of truncation, but it's an important failsafe.

Depends on D16753.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
ecash-agora-partial-approx-alp
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30308
Build 60143: Build Diffecash-agora-tests · ecash-agora-integration-tests
Build 60142: arc lint + arc unit