Closed Umiiii closed 1 year ago
Interesting, it looks like you're trying to download a proof from the server that your tapd
then thinks is invalid. So the problem might not be on your end at all.
Thanks for the report, we'll investigate.
Dug into this a bit, and it looks like the proof returned by the server fails before the actual tap level validation. instead the SMT inclusion proof doesn't match the universe root we fetch.
Confirmed the same RPC error on my testnet setup, same minting outpoint. ScriptKey shows different x & y values.
ScriptKey shows different x & y values.
Can you elaborate on that? As in another leaf for that asset group or something else?
Some inserted debug logs:
2023-05-26 17:33:14.435 [INF] UNIV: Reconstructed root: (mssmt.NodeHash) (len=32 cap=32) 75fa411dc1702cb57819dc699b8c662f649cffda918efc4a750875f190cfe25f
2023-05-26 17:33:14.435 [INF] UNIV: Expected root: (mssmt.NodeHash) (len=32 cap=32) 174d433bd665bad3be8ea975c14e5945804d92913abd9852e024fc85c347d2f9
2023-05-26 17:33:14.435 [INF] UNIV: Universe root root: (mssmt.NodeHash) (len=32 cap=32) 174d433bd665bad3be8ea975c14e5945804d92913abd9852e024fc85c347d2f9
So it is the case that the roots mismatch. I think then this would mean the issuance proof isn't being serialized properly for the request/response of RpcUniverseDiff
.
Encountered the similar issue while syncing universe. I was testing a workflow to transfer one asset from one tapd instance to address generated on another tapd instance.
The CLI command I hit was : tapcli universe sync --universe_host testnet.universe.lightning.finance
And the output I received was
[tapcli] rpc error: code = Unknown desc = unable to sync universe: proof for key=(universe.BaseKey) {
MintingOutpoint: (wire.OutPoint) afbb5f6b0ca78c2798d7671d5dccbd34efc8983079aa732b1f719779a95dfd8a:0,
ScriptKey: (asset.ScriptKey)(0xc000031030)({
PubKey: (secp256k1.PublicKey)(0xc00093a000)({
x: (secp256k1.FieldVal) 63d5f10e1912bfbc9a53ea1decd49b55af231a30675a342b40954af6d1d2103e,
y: (secp256k1.FieldVal) 5c7da2252d8e24e26adaedb5f6887ff58c7699d3131812d94b22f683e670fc60
}),
TweakedScriptKey: (*asset.TweakedScriptKey)(
Will be the team's P0 priority as this issue will be encountered by many users.
Solve by cleaning up DB state
Hi, I am trying to mint my own taproot assets and I followed the steps:
Launched bitcoin testnet with
bitcoind
, where thebitcoin.conf
looks like:Launched
lnd
, withlnd.conf
:Launched
tapd
, withtapd --network=testnet --debuglevel=debug --lnd.host=localhost:10009 --lnd.macaroonpath=~/.lnd/data/chain/bitcoin/testnet/admin.macaroon --lnd.tlspath=~/.lnd/tls.cert
Unlock lnd, create wallet address, and receive some testnet bitcoin:
after that, mint asset:
And then, when I want to sync with universe, I got this error: