ElementsProject / ElementsProject/elements

Can't know what address tx is on when blinded

Abierto
#822 9 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C++
Estrellas
1.2k
Forks
416
Merge medio
1 d 23 h
PR fusionados (30 d)
15

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce el informe utilizando las llamadas mostradas a importaddress, sendtoaddress, gettransaction, getrawtransaction, getaddressinfo y listreceivedbyaddress, con la blinded address y el ID de transacción proporcionados. Rastrea cómo la watch-only wallet registra la transacción y expone las direcciones relacionadas; se considera terminado cuando una blinded address importada puede identificarse a partir de su transacción mediante un resultado RPC documentado o funcional.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Área
api, backend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.