ElementsProject / ElementsProject/elements

Can't know what address tx is on when blinded

オープン
#822 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
1.2k
フォーク
416
平均マージ
1日 23時間
マージ済み PR(30日)
15

説明

Using 0.18.1.5.

I import a blinded p2sh-segwit address into a watchonly wallet (watching01.dat):

`{"method":"importaddress","params":["AzpnRT1ZSSFAfupU2i7qQnwb4hhmui3Psyc4z7wARGJ5ip4wFWKW9yqRZMKGDE1bUbVtd8kW6Z5W5D7x","",false]}`

When there's a transaction to that address (from another wallet):

`{"method":"sendtoaddress","params":["AzpnRT1ZSSFAfupU2i7qQnwb4hhmui3Psyc4z7wARGJ5ip4wFWKW9yqRZMKGDE1bUbVtd8kW6Z5W5D7x",0.10000000,"","",false,false,1,"UNSET","b2e15d0d7a0c94e4e2ce0fe6e8691b9e451377f6e46e8045a86f7c4b5d4f0f23"]}`
`{"result":"85a5d20384fe88d728d81e1174ade68c472af2e2303d51380fd1527ef282cd61","error":null,"id":null}`

...the watching node gets it correctly:

`2020-02-18T22:28:26Z [watching01.dat] AddToWallet 85a5d20384fe88d728d81e1174ade68c472af2e2303d51380fd1527ef282cd61 new`

Problem: I can't find what address the tx is related to. I can only find unconfidential addresses...

```
gettransaction 85a5d20384fe88d728d81e1174ade68c472af2e2303d51380fd1527ef282cd61 true
...no mention of any address
```

```
getrawtransaction 85a5d20384fe88d728d81e1174ade68c472af2e2303d51380fd1527ef282cd61 true
vout.scriptPubKey.addresses: XBtacEZHPBF9kBRm6UrfEv43yZVTncmenq
vout.scriptPubKey.addresses: XEgpKAfhKutEtoJK5HkaMY9gaP93GnRz77
```

```
getaddressinfo XBtacEZHPBF9kBRm6UrfEv43yZVTncmenq
"iswatchonly": false,
getaddressinfo XEgpKAfhKutEtoJK5HkaMY9gaP93GnRz77
"iswatchonly": true,
"confidential": "AzppvKt1J3Xt3XM22r1DydataEVVnESR8wYWoe2S4kvdM8tzTVFFCFp7d7xq87XmLJiG2Y3SqQxGjpWp",
```

```
listreceivedbyaddress 0 true true
{
"address": "XEgpKAfhKutEtoJK5HkaMY9gaP93GnRz77",
"amount": {
"bitcoin": 0.00000000
},
"confirmations": 0,
"label": "",
"txids": [
]
},
```

Question: if I imported the blinded AzpnRT address and it got detected, I assume the node has the ability to tell the blinded address is involved in the tx. If I have a bunch of imported addresses, how can I know what address a tx is related to?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

示されている importaddress、sendtoaddress、gettransaction、getrawtransaction、getaddressinfo、listreceivedbyaddress の呼び出しを、提供された blinded address とトランザクション ID を使って実行し、報告を再現します。watch-only ウォレットがトランザクションを記録し、関連するアドレスを公開する方法を追跡します。完了の条件は、インポートした blinded address を、そのトランザクションから、文書化された、または動作する RPC 結果によって特定できることです。

索引モデルが issue の本文から書いたものです。

評価

領域
api, backend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。