ElementsProject / ElementsProject/elements
Hide blinding factors for explicit outputs in gettransactoin and listunspent
- 主要语言
- C++
- 星标
- 1.2k
- 派生
- 417
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 15
描述
Currently for explicit outputs gettransaction shows this:
```
"details": [
{
"category": "generate",
"amount": 0.00104720,
"amountblinder": "0000000000000000000000000000000000000000000000000000000000000000",
"asset": "0a8e7509f0ab8b750909e378b51af66158464430b88d8efb0627b0b6226f91ea",
"assetblinder": "0000000000000000000000000000000000000000000000000000000000000000",
"vout": 0
}
```
It's probably better to just hide the blinding factors there instead of showing 00000.
Same for listunspent:
```
{
"txid": "05df25d4c8c94aaf6c5538d6aed22803abb524cbc6ab115811de3d7716c3e458",
"vout": 0,
"scriptPubKey": "51",
"amount": 0.00104720,
"asset": "0a8e7509f0ab8b750909e378b51af66158464430b88d8efb0627b0b6226f91ea",
"amountblinder": "0000000000000000000000000000000000000000000000000000000000000000",
"assetblinder": "0000000000000000000000000000000000000000000000000000000000000000",
"confirmations": 8003,
"spendable": true,
"solvable": true,
"desc": "raw(51)#8lvh9jxk",
"safe": true
}
```
贡献指南
调研方向
找到 gettransaction 和 listunspent 的 RPC 实现,然后检查显式输出如何填充 amountblinder 和 assetblinder。当这些盲化因子字段对于显式输出被省略,而不是作为全零值返回,并且受影响的 RPC 测试(如果存在)已更新或运行时,此更改即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100