ElementsProject / ElementsProject/elements

Can't know what address tx is on when blinded

Ouverte
#822 9 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C++
Étoiles
1.2k
Forks
416
Merge moyen
1 j 23 h
PR mergées (30 j)
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?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez le rapport en utilisant les appels importaddress, sendtoaddress, gettransaction, getrawtransaction, getaddressinfo et listreceivedbyaddress indiqués, avec la blinded address et l’identifiant de transaction fournis. Suivez la manière dont le portefeuille watch-only enregistre la transaction et expose les adresses associées ; le travail est terminé lorsqu’une blinded address importée peut être identifiée à partir de sa transaction au moyen d’un résultat RPC documenté ou fonctionnel.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Domaine
api, backend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.