ElementsProject / ElementsProject/elements

Can't know what address tx is on when blinded

Open
#822 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.2k
Forks
416
Avg merge
1d 23h
Merged PRs (30d)
15

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.