mycitadel-apple icon indicating copy to clipboard operation
mycitadel-apple copied to clipboard

Incompatible contract descriptor

Open claudiosdc opened this issue 5 years ago • 1 comments

I have noticed that the My Citadel app (installed on my iPhone) is showing a descriptor text in the "Share descriptor" section of the "Contract details" panel (right below the QR code) that is not compatible with the Bitcoin output descriptor reference found here.

This is the descriptor text displayed on the My Citadel app:

wpkh(m=[f7e41fce]/827166'/0'/1'/1537404484'/802918955'=[tpubDGDcjfCNU5T8FBXVquV8TqM8WZyLh3WGEq4CQB3heHzwDeXUGwKuF1QMiueug5vYimpNhnGGtbkHDWvXXL4mmshNYgXUsi2KXZvNu5o5JxD]/0/*)#tgh8pjqe

And this was the expected descriptor text compatible with the reference doc:

wpkh([f7e41fce/827166'/0'/1'/1537404484'/802918955']tpubDGDcjfCNU5T8FBXVquV8TqM8WZyLh3WGEq4CQB3heHzwDeXUGwKuF1QMiueug5vYimpNhnGGtbkHDWvXXL4mmshNYgXUsi2KXZvNu5o5JxD/0/*)#xxxxxxxx

Where #xxxxxxxx is the appropriately calculated checksum.

claudiosdc avatar Mar 17 '21 21:03 claudiosdc

Yes, this is an intentional extension of the standard. You can manually remove m= prefix and checksum and it will work with Bitcoin Core. But you should not do that since bitcoin Core is RGB unaware and will not see all utxos (some of them are tweaked)

dr-orlovsky avatar Mar 21 '21 17:03 dr-orlovsky