ElementsProject / ElementsProject/elements
`blindrawtransaction` and `rawblindrawtransaction` RPCs null asset parse error
- Ngôn ngữ chính
- C++
- Star
- 1.2k
- Fork
- 416
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 15
Mô tả
```
blindrawtransaction "hexstring" ( ignoreblindfail ["assetcommitment",...] blind_issuances "totalblinder" )
Convert one or more outputs of a raw transaction into confidential ones using only wallet inputs.
Returns the hex-encoded raw transaction.
The output keys used can be specified by using a confidential address in createrawtransaction.
This call may add an additional 0-value unspendable output in order to balance the blinders.
Arguments:
1. hexstring (string, required) A hex-encoded raw transaction.
2. ignoreblindfail (boolean, optional, default=true) Return a transaction even when a blinding attempt fails due to number of blinded inputs/outputs.
3. asset_commitments (json array, optional) An array of input asset generators. If provided, this list must be empty, or match the final input commitment list, including ordering, to make a valid surjection proof. This list does not include generators for issuances, as these assets are inherently unblinded.
[
"assetcommitment", (string) A hex-encoded asset commitment, one for each input. Null commitments must be "".
...
]
4. blind_issuances (boolean, optional, default=true) Blind the issuances found in the raw transaction or not. All issuances will be blinded if true.
5. totalblinder (string) Ignored for now.
Result:
"hex" (string) serialized transaction
```
The doc says that Null commitments must be "", but there is no code to parse them. Users can use any dummy 66 hex valid generator string instead of null. But the rpc docs are incorrect.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu từ các điểm vào phân tích đối số RPC của blindrawtransaction và rawblindrawtransaction, sau đó so sánh cách chúng xử lý asset_commitments với dạng null commitment được ghi trong tài liệu. Công việc được xem là hoàn tất khi cả hai RPC nhất quán chấp nhận các null commitment được ghi trong tài liệu dưới dạng chuỗi rỗng, đồng thời tài liệu RPC và phần xác minh liên quan đã được cập nhật cho phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- api, backend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 35/100