Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Unable to send assets after creating a wallet using an existing cipher seed mnemonic. #1208

Closed
youngzhenhao opened this issue Nov 21, 2024 · 4 comments · Fixed by #1213
Assignees
Labels
bug Something isn't working needs triage
Milestone

Comments

@youngzhenhao
Copy link

Background

Sending assets after creating a wallet using an existing cipher seed mnemonic, this error returns: [tapcli] unable to send assets: rpc error: code = Unknown desc = unable to sign and commit virtual packet: unable to generate Taproot Asset witness data: invalid transfer asset witness:.

lncli walletbalance

{
    "total_balance": "7473",
    "confirmed_balance": "7473",
    "unconfirmed_balance": "0",
    "locked_balance": "0",
    "reserved_balance_anchor_chan": "0",
    "account_balance": {
        "default": {
            "confirmed_balance": "7473",
            "unconfirmed_balance": "0"
        }
    }
}

tapcli a l

{
    "assets":  [
        {
            "version":  "ASSET_VERSION_V0",
            "asset_genesis":  {
                "genesis_point":  "e27eef0b269ad501df2bb10f2eb78ebbc6b7d50b0fd7b863d01d93da8a65f1ce:0",
                "name":  "乖乖🐉",
                "meta_hash":  "3361645a88c4dde3a723f3353355c2a70321b9de6cc1da55260a52eb0aaebc79",
                "asset_id":  "b832d1c158e198609941a3be5e646504363fbee8d87d89750a5436fa4d4c8d77",
                "asset_type":  "NORMAL",
                "output_index":  0
            },
            "amount":  "50",
            "lock_time":  0,
            "relative_lock_time":  0,
            "script_version":  0,
            "script_key":  "02a4d1248dbeab217f3238424b83b012640170be6f25207c6680aa1ab8392c6dc6",
            "script_key_is_local":  true,
            "asset_group":  null,
            "chain_anchor":  {
                "anchor_tx":  "020000000001023cd37f55de8f59365f6e32f3621ed47520d6cb6fa717998635a087ae5a4b2afd0100000000000000006d53ae40454d49698c25be5b6352315de2806aa6a0385da5020200acaca48d5200000000000000000003e8030000000000002251206eb16112c8eac5ade4df3c214c08e9d00312561bf09bed84b86f183c2e3e72d9e80300000000000022512072e4e7620b48a314ce3c88e2732714fb6bf6343348d0e05d043de8bd90b38f89311d00000000000022512094f675ebd98b63f24f9cda9b93c183722839e29d83bba7637e775657ec9ba3f701408c28b5406229ff5d24b6039ebaf8a12a6f596337441d731740a2d34f27c91e3bf0c231d26d2478c4fa7de2e1d6748939cfd0c8d47417671a1290dd80389762a801406ef315213fae243bd3f4c8c282c945e4e899c0194fb19ef450fcbc167a670a2c3fa7006f63f18b511a0b36d6952bc0b9703d20a16cd50cb5e3df9828b7fe14b500000000",
                "anchor_block_hash":  "0000000000000000000256873b4c1db712d7cc2e911be4948574e052151e6bcb",
                "anchor_outpoint":  "9243d1a2d59a0d03c19caf855eda2dccc1915cec9074c6b5dcd2c73b7ad0a8cf:0",
                "internal_key":  "039934af1006e78e6c8542bede99ad6e885d2261e3a12dd2a44ab3289dde5903c3",
                "merkle_root":  "edcc5648c461380097c93ab75c3bb7dbf19628f70fb91d62d4c5d26319bce6b9",
                "tapscript_sibling":  "",
                "block_height":  871164
            },
            "prev_witnesses":  [],
            "is_spent":  false,
            "lease_owner":  "",
            "lease_expiry":  "0",
            "is_burn":  false,
            "script_key_declared_known":  false,
            "script_key_has_script_path":  false,
            "decimal_display":  null
        }
    ],
    "unconfirmed_transfers":  "0",
    "unconfirmed_mints":  "0"
}

Your environment

litd: 0.13.3-alpha
lnd: 0.18.2-beta
tapd: 0.4.1-alpha
network: mainnet
system: Microsoft Windows 11 22631.4460
lnd.bitcoin.node=neutrino
  • any other relevant environment details

Logs

lnd.log

Steps to reproduce

  • Copy backed up .tapd files to new path.
  • Use an existing cipher seed mnemonic to create the wallet via lncli create.
  • Waiting for lnd to be fully synced to its chain backend.
  • Send assets.

Expected behavior

SendAssetResponse

Actual behavior

Error [tapcli] unable to send assets: rpc error: code = Unknown desc = unable to sign and commit virtual packet: unable to generate Taproot Asset witness data: invalid transfer asset witness:

@guggero
Copy link
Member

guggero commented Nov 21, 2024

Thanks for the report. Just to confirm: The seed is still the same as when the assets were first created/received? You just re-initialized the wallet with the same seed?

@youngzhenhao
Copy link
Author

YES, SAME SEED.
Here are the steps to reproduce it on the regtest; some parameters have been omitted.

1. lit.conf

lnd-mode=integrated
uipassword=12345678
network=regtest
lnd.alias=reg
lnd.bitcoin.active=true

lnd.bitcoin.node=neutrino
lnd.rpclisten=0.0.0.0:10009
lnd.rpcmiddleware.enable=true
lnd.db.bolt.auto-compact=true
autopilot.disable=true
lnd.bitcoin.regtest=true
lnd.neutrino.persistfilters=true
taproot-assets.network=regtest
lnd.fee.url=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json
lnd.neutrino.broadcasttimeout=11s
taproot-assets.universe.federationserver=132.232.109.84:8443
lnd.neutrino.addpeer=132.232.109.84:18444

2. lncli create

Input wallet password:
Confirm password:

Do you have an existing cipher seed mnemonic or extended master root key you want to use?
Enter 'y' to use an existing cipher seed mnemonic, 'x' to use an extended master root key
or 'n' to create a new seed (Enter y/x/n): n

Your cipher seed can optionally be encrypted.
Input your passphrase if you wish to encrypt it (or press enter to proceed without a cipher seed passphrase):

Generating fresh cipher seed...

!!!YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!!!

---------------BEGIN LND CIPHER SEED---------------
 1. ability   2. story     3. edit      4. museum
 5. couple    6. tunnel    7. cover     8. plug
 9. despair  10. crush    11. acquire  12. such
13. august   14. federal  15. mistake  16. path
17. rival    18. foot     19. advance  20. share
21. false    22. jaguar   23. harbor   24. ask
---------------END LND CIPHER SEED-----------------

!!!YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!!!

lnd successfully initialized!

3. lncli getinfo

{
    "version": "0.18.2-beta commit=",
    "commit_hash": "",
    "identity_pubkey": "0246b74633c344aa48934cc567e48b7d1256b56d0acd00333ee6fffa71285da61a",
    "alias": "reg",
    "color": "#3399ff",
    "num_pending_channels": 0,
    "num_active_channels": 0,
    "num_inactive_channels": 0,
    "num_peers": 0,
    "block_height": 31419,
    "block_hash": "30c76615d6dc9d0b88a8c2b10f08a41b0e22d1da67ebdd234e0b67eee0f633f0",
    "best_header_timestamp": "1732241401",
    "synced_to_chain": true,
    "synced_to_graph": false,
    "testnet": false,
    "chains": [
        {
            "chain": "bitcoin",
            "network": "regtest"
        }
    ],
    "uris": [],
    "features": {
        "0": {
            "name": "data-loss-protect",
            "is_required": true,
            "is_known": true
        },
        "5": {
            "name": "upfront-shutdown-script",
            "is_required": false,
            "is_known": true
        },
        "7": {
            "name": "gossip-queries",
            "is_required": false,
            "is_known": true
        },
        "8": {
            "name": "tlv-onion",
            "is_required": true,
            "is_known": true
        },
        "12": {
            "name": "static-remote-key",
            "is_required": true,
            "is_known": true
        },
        "14": {
            "name": "payment-addr",
            "is_required": true,
            "is_known": true
        },
        "17": {
            "name": "multi-path-payments",
            "is_required": false,
            "is_known": true
        },
        "23": {
            "name": "anchors-zero-fee-htlc-tx",
            "is_required": false,
            "is_known": true
        },
        "25": {
            "name": "route-blinding",
            "is_required": false,
            "is_known": true
        },
        "27": {
            "name": "shutdown-any-segwit",
            "is_required": false,
            "is_known": true
        },
        "30": {
            "name": "amp",
            "is_required": true,
            "is_known": true
        },
        "31": {
            "name": "amp",
            "is_required": false,
            "is_known": true
        },
        "45": {
            "name": "explicit-commitment-type",
            "is_required": false,
            "is_known": true
        },
        "2023": {
            "name": "script-enforced-lease",
            "is_required": false,
            "is_known": true
        }
    },
    "require_htlc_interceptor": false,
    "store_final_htlc_resolutions": false
}

4. lncli newaddress p2tr

{
    "address": "bcrt1pk9y55waxfat9r406kg3zj50pm8r96lsljz3gnx0tcx5rsqzca90qwnefzv"
}
{
    "address": "bcrt1pupfpxeh5quq6mgy45ldm5pswmnulqfqzk5kgzl5m0nqq5fu4g4zqrj7kw7"
}

5. lncli walletbalance

{
    "total_balance": "20000000",
    "confirmed_balance": "20000000",
    "unconfirmed_balance": "0",
    "locked_balance": "0",
    "reserved_balance_anchor_chan": "0",
    "account_balance": {
        "default": {
            "confirmed_balance": "20000000",
            "unconfirmed_balance": "0"
        }
    }
}

6. tapcli a m --type normal --name token --supply 1024 --meta_bytes "no_data"

{
    "pending_batch":  {
        "batch_key":  "03200f844ebe8a73ea1a9f18ef601cfe4ea30d161f89736f9d79e2f2032633e176",
        "batch_txid":  "",
        "state":  "BATCH_STATE_PENDING",
        "assets":  [
            {
                "asset_version":  "ASSET_VERSION_V0",
                "asset_type":  "NORMAL",
                "name":  "token",
                "asset_meta":  {
                    "data":  "6e6f5f64617461",
                    "type":  "META_TYPE_OPAQUE",
                    "meta_hash":  "57f43c28b4ab4e5744d8521e63703e9bde2a3ee66faf8b13651db2aba56fc719"
                },
                "amount":  "1024",
                "new_grouped_asset":  false,
                "group_key":  "",
                "group_anchor":  "",
                "group_internal_key":  null,
                "group_tapscript_root":  "",
                "script_key":  {
                    "pub_key":  "a97b948cee54bd2f6d76c093db03b29e72efb1aa7f378a45297d8d471b71e6c8",
                    "key_desc":  {
                        "raw_key_bytes":  "036f391317acb49a4d653acb6cbd0ecd2ac468417dc1ec98828854c17a99074462",
                        "key_loc":  {
                            "key_family":  212,
                            "key_index":  0
                        }
                    },
                    "tap_tweak":  ""
                }
            }
        ],
        "created_at":  "1732242326",
        "height_hint":  31422,
        "batch_psbt":  ""
    }
}

7. tapcli a m finalize

{
    "batch":  {
        "batch_key":  "03200f844ebe8a73ea1a9f18ef601cfe4ea30d161f89736f9d79e2f2032633e176",
        "batch_txid":  "796f3920cc47ed2922a28a6e7082d0c4307660733e1eabce96d8e2db06fa406e",
        "state":  "BATCH_STATE_BROADCAST",
        "assets":  [
            {
                "asset_version":  "ASSET_VERSION_V0",
                "asset_type":  "NORMAL",
                "name":  "token",
                "asset_meta":  {
                    "data":  "6e6f5f64617461",
                    "type":  "META_TYPE_OPAQUE",
                    "meta_hash":  "57f43c28b4ab4e5744d8521e63703e9bde2a3ee66faf8b13651db2aba56fc719"
                },
                "amount":  "1024",
                "new_grouped_asset":  false,
                "group_key":  "",
                "group_anchor":  "",
                "group_internal_key":  null,
                "group_tapscript_root":  "",
                "script_key":  {
                    "pub_key":  "a97b948cee54bd2f6d76c093db03b29e72efb1aa7f378a45297d8d471b71e6c8",
                    "key_desc":  {
                        "raw_key_bytes":  "036f391317acb49a4d653acb6cbd0ecd2ac468417dc1ec98828854c17a99074462",
                        "key_loc":  {
                            "key_family":  212,
                            "key_index":  0
                        }
                    },
                    "tap_tweak":  ""
                }
            }
        ],
        "created_at":  "1732242326",
        "height_hint":  31422,
        "batch_psbt":  "70736274ff0100a8020000000190c4051bbd82e9660ea9be8106a89d28b19415b542d63b63e05e7609b807404d01000000000000000003e80300000000000022512028153ea19a8c52cadaaefcc46dac296624312fb49ba3acac27b411ff9724e750b80b000000000000160014f6e7f73e70304c2449de2ef12be6cde4cf7d5e68438398000000000022512085f8387587c2bb22c29552d8891913b0c1a1588d04e8255770540ed86c551fbd000000000001012b8096980000000000225120e0521366f40701ada095a7dbba060edcf9f02402b52c817e9b7cc00a27954544010842014018c5efaf7acc06dec89311b8e07134c813b28b9d6b046370936cbd6fc9c6f34620191e00926cc5ac0746d91e1fd5b10e80fb64bc2e729409639eb8457bd6b7e6000000220202287af2d880fc5391d8be7eef8affedb8c649ed4f73c12e67d8448af31725ceb118000000005600008000000080000000800100000000000000010520287af2d880fc5391d8be7eef8affedb8c649ed4f73c12e67d8448af31725ceb12107287af2d880fc5391d8be7eef8affedb8c649ed4f73c12e67d8448af31725ceb1190000000000560000800000008000000080010000000000000000"
    }
}

8. tapcli a l

{
    "assets":  [
        {
            "version":  "ASSET_VERSION_V0",
            "asset_genesis":  {
                "genesis_point":  "4d4007b809765ee0633bd642b51594b1289da80681bea90e66e982bd1b05c490:1",
                "name":  "token",
                "meta_hash":  "57f43c28b4ab4e5744d8521e63703e9bde2a3ee66faf8b13651db2aba56fc719",
                "asset_id":  "8fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae",
                "asset_type":  "NORMAL",
                "output_index":  0
            },
            "amount":  "1024",
            "lock_time":  0,
            "relative_lock_time":  0,
            "script_version":  0,
            "script_key":  "02a97b948cee54bd2f6d76c093db03b29e72efb1aa7f378a45297d8d471b71e6c8",
            "script_key_is_local":  true,
            "asset_group":  null,
            "chain_anchor":  {
                "anchor_tx":  "0200000000010190c4051bbd82e9660ea9be8106a89d28b19415b542d63b63e05e7609b807404d01000000000000000003e80300000000000022512028153ea19a8c52cadaaefcc46dac296624312fb49ba3acac27b411ff9724e750b80b000000000000160014f6e7f73e70304c2449de2ef12be6cde4cf7d5e68438398000000000022512085f8387587c2bb22c29552d8891913b0c1a1588d04e8255770540ed86c551fbd014018c5efaf7acc06dec89311b8e07134c813b28b9d6b046370936cbd6fc9c6f34620191e00926cc5ac0746d91e1fd5b10e80fb64bc2e729409639eb8457bd6b7e600000000",
                "anchor_block_hash":  "63821a45103ff9d65fc004301a794650a43341e842a90997f5ecf995e9986091",
                "anchor_outpoint":  "796f3920cc47ed2922a28a6e7082d0c4307660733e1eabce96d8e2db06fa406e:0",
                "internal_key":  "03200f844ebe8a73ea1a9f18ef601cfe4ea30d161f89736f9d79e2f2032633e176",
                "merkle_root":  "d075b8f4e56b45545251db873c0dd083c8c3bff01fe1a517e013b371619497f9",
                "tapscript_sibling":  "",
                "block_height":  31423
            },
            "prev_witnesses":  [],
            "is_spent":  false,
            "lease_owner":  "",
            "lease_expiry":  "0",
            "is_burn":  false,
            "script_key_declared_known":  false,
            "script_key_has_script_path":  false,
            "decimal_display":  null
        }
    ],
    "unconfirmed_transfers":  "0",
    "unconfirmed_mints":  "0"
}

9. tapcli a s

  • -addr taprt1qqqszqspqqzzpray530wnlc44wwmxgdrq5ul2pnytlty37l8sw6gqx4856v73rawqcss9v5yc97uud8au42sxanp8z674twmzy747h034fzrttr7kn7q8xx4pqssyn3swdfhplhuztc4pvwppprgm89t586ycc52jdwaq4f4j442x9k7pgqs5rppw4hxjan9wfek2unsvvaz7te3xvezuv3nxghrzvpe9curgw3cxs6rxk4c3tv
{
    "transfer":  {
        "transfer_timestamp":  "1732242578",
        "anchor_tx_hash":  "4b0a2aab9258babd555d2ec2924de98045d861b87c6cd72239a07cc1ea4dc7b9",
        "anchor_tx_height_hint":  31426,
        "anchor_tx_chain_fees":  "1272",
        "inputs":  [
            {
                "anchor_point":  "796f3920cc47ed2922a28a6e7082d0c4307660733e1eabce96d8e2db06fa406e:0",
                "asset_id":  "8fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae",
                "script_key":  "02a97b948cee54bd2f6d76c093db03b29e72efb1aa7f378a45297d8d471b71e6c8",
                "amount":  "1024"
            }
        ],
        "outputs":  [
            {
                "anchor":  {
                    "outpoint":  "b9c74deac17ca03922d76c7cb861d84580e94d92c22e5d55bdba5892ab2a0a4b:0",
                    "value":  "1000",
                    "internal_key":  "031404f397ea015607a6cbb0a855c3960de28dfda30bd296b150b0aa352eb4eb5e",
                    "taproot_asset_root":  "6d63afa72a796f30a13fa326bd0ac4e0faf7d0850ad6e0f009c3bc99ad6703ad",
                    "merkle_root":  "6d63afa72a796f30a13fa326bd0ac4e0faf7d0850ad6e0f009c3bc99ad6703ad",
                    "tapscript_sibling":  "",
                    "num_passive_assets":  0
                },
                "script_key":  "02ef295a8452c822cc936059b037e1d983462a26bdff12a552d54dbf4516b2f68e",
                "script_key_is_local":  true,
                "amount":  "1014",
                "new_proof_blob":  "5441505000040000000002246e40fa06dbe2d896ceab1e3e73607630c4d082706e8aa22229ed47cc20396f79000000000450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096e88000000000000000006fd0163020000000001026e40fa06dbe2d896ceab1e3e73607630c4d082706e8aa22229ed47cc20396f790000000000000000009e375f4a50586fc27c0d44a133f38f6045047effb7be8f5c75339da21f1d22a300000000000000000003e803000000000000225120396611b350265be9a2cd75a73376698a13e59cb27a536bdf517047aa9e8ec359e8030000000000002251203ad1c285212cbe67a345025c154894d406ea4927c7e55e008d75a1c734f02dd4a08d9800000000002251207e6ebd03591d3d088ee88250a193d4dd7f09811e32399d9c7205a9f006bad3640140843ef0e0d11ccc0b9ea42c35b4581ec1d41174a18a20fcf30d8df71147e41b9d840c1065fa9e71db08af8cc4566e418057e4e55aae28af0d8118c5e1e4b9200101400f7fd91c088038f037d1182aad629aec74455e588b842cf66a264f9d2dbfbd54dba921a10e2a12ba1beb9b8dbe873db3ef6d93d59e864d1ca6e49110d73d9011000000000801000afd015c000100024f90c4051bbd82e9660ea9be8106a89d28b19415b542d63b63e05e7609b807404d0000000105746f6b656e57f43c28b4ab4e5744d8521e63703e9bde2a3ee66faf8b13651db2aba56fc71900000000000401000603fd03f60bad01ab01656e40fa06dbe2d896ceab1e3e73607630c4d082706e8aa22229ed47cc20396f79000000008fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae02a97b948cee54bd2f6d76c093db03b29e72efb1aa7f378a45297d8d471b71e6c803420140fb083f8c71099a4c04911ea85380213f300c73d7a62edefeb89fe71824c7a1437ccd631401611feff0a0364572e3a9d18165a067ee61e70403f6e62008501a7d0d2872150c57a9b4c5a0ee926bbbca1070b818eb3c12dcd3e28fb28c67a7ecb01a3a00000000000004000e020000102102ef295a8452c822cc936059b037e1d983462a26bdff12a552d54dbf4516b2f68e0c9f0004000000000221031404f397ea015607a6cbb0a855c3960de28dfda30bd296b150b0aa352eb4eb5e0374014900010002208fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae04220000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff022700010202220000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0df802c70004000000010221024e30735370fefc12f150b1c108468d9caba1f44c628a935dd05535956aa316de039c017100010002208fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae044a0001617a9e6fccd55c307a6377fc7b442fd73303f07d954cea26eb7af524e03751cc000000000000000affffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f022700010202220000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2e0004000000020221023042a3494bc9799cf29d0950cf83c85b1fd27108cd2e82675b31bf7d7960dc440503040101160400000000",
                "split_commit_root_hash":  "72150c57a9b4c5a0ee926bbbca1070b818eb3c12dcd3e28fb28c67a7ecb01a3a",
                "output_type":  "OUTPUT_TYPE_SPLIT_ROOT",
                "asset_version":  "ASSET_VERSION_V0",
                "lock_time":  "0",
                "relative_lock_time":  "0"
            },
            {
                "anchor":  {
                    "outpoint":  "b9c74deac17ca03922d76c7cb861d84580e94d92c22e5d55bdba5892ab2a0a4b:1",
                    "value":  "1000",
                    "internal_key":  "024e30735370fefc12f150b1c108468d9caba1f44c628a935dd05535956aa316de",
                    "taproot_asset_root":  "cdbe86053fe95b5413807ea5814d3dafc1c67ab550ec4ec746fc06f3fd712782",
                    "merkle_root":  "cdbe86053fe95b5413807ea5814d3dafc1c67ab550ec4ec746fc06f3fd712782",
                    "tapscript_sibling":  "",
                    "num_passive_assets":  0
                },
                "script_key":  "02b284c17dce34fde55503766138b5eaaddb113d5f5df1aa4435ac7eb4fc0398d5",
                "script_key_is_local":  false,
                "amount":  "10",
                "new_proof_blob":  "5441505000040000000002246e40fa06dbe2d896ceab1e3e73607630c4d082706e8aa22229ed47cc20396f79000000000450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096e88000000000000000006fd0163020000000001026e40fa06dbe2d896ceab1e3e73607630c4d082706e8aa22229ed47cc20396f790000000000000000009e375f4a50586fc27c0d44a133f38f6045047effb7be8f5c75339da21f1d22a300000000000000000003e803000000000000225120396611b350265be9a2cd75a73376698a13e59cb27a536bdf517047aa9e8ec359e8030000000000002251203ad1c285212cbe67a345025c154894d406ea4927c7e55e008d75a1c734f02dd4a08d9800000000002251207e6ebd03591d3d088ee88250a193d4dd7f09811e32399d9c7205a9f006bad3640140843ef0e0d11ccc0b9ea42c35b4581ec1d41174a18a20fcf30d8df71147e41b9d840c1065fa9e71db08af8cc4566e418057e4e55aae28af0d8118c5e1e4b9200101400f7fd91c088038f037d1182aad629aec74455e588b842cf66a264f9d2dbfbd54dba921a10e2a12ba1beb9b8dbe873db3ef6d93d59e864d1ca6e49110d73d9011000000000801000afd029e000100024f90c4051bbd82e9660ea9be8106a89d28b19415b542d63b63e05e7609b807404d0000000105746f6b656e57f43c28b4ab4e5744d8521e63703e9bde2a3ee66faf8b13651db2aba56fc719000000000004010006010a0bfd021901fd02150165000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fd01aa4a00013a927cf2e7f243ea69e4ed7a0fa1f6eb9ee6ee0052fde443a818b579949943e500000000000003f6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdffd015c000100024f90c4051bbd82e9660ea9be8106a89d28b19415b542d63b63e05e7609b807404d0000000105746f6b656e57f43c28b4ab4e5744d8521e63703e9bde2a3ee66faf8b13651db2aba56fc71900000000000401000603fd03f60bad01ab01656e40fa06dbe2d896ceab1e3e73607630c4d082706e8aa22229ed47cc20396f79000000008fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae02a97b948cee54bd2f6d76c093db03b29e72efb1aa7f378a45297d8d471b71e6c803420140fb083f8c71099a4c04911ea85380213f300c73d7a62edefeb89fe71824c7a1437ccd631401611feff0a0364572e3a9d18165a067ee61e70403f6e62008501a7d0d2872150c57a9b4c5a0ee926bbbca1070b818eb3c12dcd3e28fb28c67a7ecb01a3a00000000000004000e020000102102ef295a8452c822cc936059b037e1d983462a26bdff12a552d54dbf4516b2f68e0e020000102102b284c17dce34fde55503766138b5eaaddb113d5f5df1aa4435ac7eb4fc0398d50c9f0004000000010221024e30735370fefc12f150b1c108468d9caba1f44c628a935dd05535956aa316de0374014900010002208fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae04220000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff022700010202220000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0df802c70004000000000221031404f397ea015607a6cbb0a855c3960de28dfda30bd296b150b0aa352eb4eb5e039c017100010002208fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae044a00019ca40a4656a2297612b39e31067c869a60b0d90e48c9b21fd3f6c86de2da054700000000000003f6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f022700010202220000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2e0004000000020221023042a3494bc9799cf29d0950cf83c85b1fd27108cd2e82675b31bf7d7960dc4405030401010f9f0004000000000221031404f397ea015607a6cbb0a855c3960de28dfda30bd296b150b0aa352eb4eb5e0374014900010002208fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae04220000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff022700010202220000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff160400000000",
                "split_commit_root_hash":  "",
                "output_type":  "OUTPUT_TYPE_SIMPLE",
                "asset_version":  "ASSET_VERSION_V0",
                "lock_time":  "0",
                "relative_lock_time":  "0"
            }
        ]
    }
}

10. tapcli a l

{
    "assets":  [
        {
            "version":  "ASSET_VERSION_V0",
            "asset_genesis":  {
                "genesis_point":  "4d4007b809765ee0633bd642b51594b1289da80681bea90e66e982bd1b05c490:1",
                "name":  "token",
                "meta_hash":  "57f43c28b4ab4e5744d8521e63703e9bde2a3ee66faf8b13651db2aba56fc719",
                "asset_id":  "8fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae",
                "asset_type":  "NORMAL",
                "output_index":  0
            },
            "amount":  "1014",
            "lock_time":  0,
            "relative_lock_time":  0,
            "script_version":  0,
            "script_key":  "02ef295a8452c822cc936059b037e1d983462a26bdff12a552d54dbf4516b2f68e",
            "script_key_is_local":  true,
            "asset_group":  null,
            "chain_anchor":  {
                "anchor_tx":  "020000000001026e40fa06dbe2d896ceab1e3e73607630c4d082706e8aa22229ed47cc20396f790000000000000000009e375f4a50586fc27c0d44a133f38f6045047effb7be8f5c75339da21f1d22a300000000000000000003e803000000000000225120396611b350265be9a2cd75a73376698a13e59cb27a536bdf517047aa9e8ec359e8030000000000002251203ad1c285212cbe67a345025c154894d406ea4927c7e55e008d75a1c734f02dd4a08d9800000000002251207e6ebd03591d3d088ee88250a193d4dd7f09811e32399d9c7205a9f006bad3640140843ef0e0d11ccc0b9ea42c35b4581ec1d41174a18a20fcf30d8df71147e41b9d840c1065fa9e71db08af8cc4566e418057e4e55aae28af0d8118c5e1e4b9200101400f7fd91c088038f037d1182aad629aec74455e588b842cf66a264f9d2dbfbd54dba921a10e2a12ba1beb9b8dbe873db3ef6d93d59e864d1ca6e49110d73d901100000000",
                "anchor_block_hash":  "4e8fceb0cb4d94169c02316015d9d9ee226e3f493fbfc9b41d59fb0077dee138",
                "anchor_outpoint":  "b9c74deac17ca03922d76c7cb861d84580e94d92c22e5d55bdba5892ab2a0a4b:0",
                "internal_key":  "031404f397ea015607a6cbb0a855c3960de28dfda30bd296b150b0aa352eb4eb5e",
                "merkle_root":  "6d63afa72a796f30a13fa326bd0ac4e0faf7d0850ad6e0f009c3bc99ad6703ad",
                "tapscript_sibling":  "",
                "block_height":  31427
            },
            "prev_witnesses":  [],
            "is_spent":  false,
            "lease_owner":  "",
            "lease_expiry":  "0",
            "is_burn":  false,
            "script_key_declared_known":  false,
            "script_key_has_script_path":  false,
            "decimal_display":  null
        }
    ],
    "unconfirmed_transfers":  "0",
    "unconfirmed_mints":  "0"
}

11. Shutdown litd

Logs

lnd.log

Tapd files

data
    └─regtest
        │  admin.macaroon
        │  tapd.db
        │  tapd.db-shm
        │  tapd.db-wal
        │  tapd.db.1732241876644264200.backup
        │
        └─proofs
            └─8fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae
                    02a97b948cee54bd2f6d76c093db03b29e72efb1aa7f378a45297d8d471b71e6c8-796f3920cc47ed2922a28a6e7082d0c4-0.assetproof
                    02b284c17dce34fde55503766138b5eaaddb113d5f5df1aa4435ac7eb4fc0398d5-b9c74deac17ca03922d76c7cb861d845-1.assetproof
                    02ef295a8452c822cc936059b037e1d983462a26bdff12a552d54dbf4516b2f68e-b9c74deac17ca03922d76c7cb861d845-0.assetproof

data.zip

12. Delete all files except lit.conf and tapd data.

Delete lit, lnd, loop, pool, faraday files.
Restart litd.

13. lncli create

Input wallet password:
Confirm password:

Do you have an existing cipher seed mnemonic or extended master root key you want to use?
Enter 'y' to use an existing cipher seed mnemonic, 'x' to use an extended master root key
or 'n' to create a new seed (Enter y/x/n): y

Input your 24-word mnemonic separated by spaces: ability story edit museum couple tunnel cover plug despair crush acquire such august federal mistake path rival foot advance share false jaguar harbor ask

Input your cipher seed passphrase (press enter if your seed doesn't have a passphrase):

Input an optional address look-ahead used to scan for used keys (default 2500):

!!!YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!!!

---------------BEGIN LND CIPHER SEED---------------
 1. ability   2. story     3. edit      4. museum
 5. couple    6. tunnel    7. cover     8. plug
 9. despair  10. crush    11. acquire  12. such
13. august   14. federal  15. mistake  16. path
17. rival    18. foot     19. advance  20. share
21. false    22. jaguar   23. harbor   24. ask
---------------END LND CIPHER SEED-----------------

!!!YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!!!

lnd successfully initialized!

14. lncli getinfo

{
    "version": "0.18.2-beta commit=",
    "commit_hash": "",
    "identity_pubkey": "0246b74633c344aa48934cc567e48b7d1256b56d0acd00333ee6fffa71285da61a",
    "alias": "reg",
    "color": "#3399ff",
    "num_pending_channels": 0,
    "num_active_channels": 0,
    "num_inactive_channels": 0,
    "num_peers": 0,
    "block_height": 31432,
    "block_hash": "15984e782e799667d5cc455a72998b9c446762c720058c0a63d0dca838070171",
    "best_header_timestamp": "1732243201",
    "synced_to_chain": true,
    "synced_to_graph": false,
    "testnet": false,
    "chains": [
        {
            "chain": "bitcoin",
            "network": "regtest"
        }
    ],
    "uris": [],
    "features": {
        "0": {
            "name": "data-loss-protect",
            "is_required": true,
            "is_known": true
        },
        "5": {
            "name": "upfront-shutdown-script",
            "is_required": false,
            "is_known": true
        },
        "7": {
            "name": "gossip-queries",
            "is_required": false,
            "is_known": true
        },
        "8": {
            "name": "tlv-onion",
            "is_required": true,
            "is_known": true
        },
        "12": {
            "name": "static-remote-key",
            "is_required": true,
            "is_known": true
        },
        "14": {
            "name": "payment-addr",
            "is_required": true,
            "is_known": true
        },
        "17": {
            "name": "multi-path-payments",
            "is_required": false,
            "is_known": true
        },
        "23": {
            "name": "anchors-zero-fee-htlc-tx",
            "is_required": false,
            "is_known": true
        },
        "25": {
            "name": "route-blinding",
            "is_required": false,
            "is_known": true
        },
        "27": {
            "name": "shutdown-any-segwit",
            "is_required": false,
            "is_known": true
        },
        "30": {
            "name": "amp",
            "is_required": true,
            "is_known": true
        },
        "31": {
            "name": "amp",
            "is_required": false,
            "is_known": true
        },
        "45": {
            "name": "explicit-commitment-type",
            "is_required": false,
            "is_known": true
        },
        "2023": {
            "name": "script-enforced-lease",
            "is_required": false,
            "is_known": true
        }
    },
    "require_htlc_interceptor": false,
    "store_final_htlc_resolutions": false
}

15. lncli walletbalance

{
    "total_balance": "19992803",
    "confirmed_balance": "19992803",
    "unconfirmed_balance": "0",
    "locked_balance": "0",
    "reserved_balance_anchor_chan": "0",
    "account_balance": {
        "default": {
            "confirmed_balance": "19992803",
            "unconfirmed_balance": "0"
        }
    }
}

16. tapcli a l

{
    "assets":  [
        {
            "version":  "ASSET_VERSION_V0",
            "asset_genesis":  {
                "genesis_point":  "4d4007b809765ee0633bd642b51594b1289da80681bea90e66e982bd1b05c490:1",
                "name":  "token",
                "meta_hash":  "57f43c28b4ab4e5744d8521e63703e9bde2a3ee66faf8b13651db2aba56fc719",
                "asset_id":  "8fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae",
                "asset_type":  "NORMAL",
                "output_index":  0
            },
            "amount":  "1014",
            "lock_time":  0,
            "relative_lock_time":  0,
            "script_version":  0,
            "script_key":  "02ef295a8452c822cc936059b037e1d983462a26bdff12a552d54dbf4516b2f68e",
            "script_key_is_local":  true,
            "asset_group":  null,
            "chain_anchor":  {
                "anchor_tx":  "020000000001026e40fa06dbe2d896ceab1e3e73607630c4d082706e8aa22229ed47cc20396f790000000000000000009e375f4a50586fc27c0d44a133f38f6045047effb7be8f5c75339da21f1d22a300000000000000000003e803000000000000225120396611b350265be9a2cd75a73376698a13e59cb27a536bdf517047aa9e8ec359e8030000000000002251203ad1c285212cbe67a345025c154894d406ea4927c7e55e008d75a1c734f02dd4a08d9800000000002251207e6ebd03591d3d088ee88250a193d4dd7f09811e32399d9c7205a9f006bad3640140843ef0e0d11ccc0b9ea42c35b4581ec1d41174a18a20fcf30d8df71147e41b9d840c1065fa9e71db08af8cc4566e418057e4e55aae28af0d8118c5e1e4b9200101400f7fd91c088038f037d1182aad629aec74455e588b842cf66a264f9d2dbfbd54dba921a10e2a12ba1beb9b8dbe873db3ef6d93d59e864d1ca6e49110d73d901100000000",
                "anchor_block_hash":  "4e8fceb0cb4d94169c02316015d9d9ee226e3f493fbfc9b41d59fb0077dee138",
                "anchor_outpoint":  "b9c74deac17ca03922d76c7cb861d84580e94d92c22e5d55bdba5892ab2a0a4b:0",
                "internal_key":  "031404f397ea015607a6cbb0a855c3960de28dfda30bd296b150b0aa352eb4eb5e",
                "merkle_root":  "6d63afa72a796f30a13fa326bd0ac4e0faf7d0850ad6e0f009c3bc99ad6703ad",
                "tapscript_sibling":  "",
                "block_height":  31427
            },
            "prev_witnesses":  [],
            "is_spent":  false,
            "lease_owner":  "",
            "lease_expiry":  "0",
            "is_burn":  false,
            "script_key_declared_known":  false,
            "script_key_has_script_path":  false,
            "decimal_display":  null
        }
    ],
    "unconfirmed_transfers":  "0",
    "unconfirmed_mints":  "0"
}

17. tapcli a s

  • -addr taprt1qqqszqspqqzzpray530wnlc44wwmxgdrq5ul2pnytlty37l8sw6gqx4856v73rawqcss9dgvqrx0vskwgam903k8f82jh9jtx845dz4vuxydd3xlh6v3m2rgpqssyflsmt7x0t295y325cprdmfyw3yevue8454hcqnq7vktlvf4xx4gpgqs7rppw4hxjan9wfek2unsvvaz7te3xvezuv3nxghrzvpe9curgw3cxs6rxfr9250

ERROR

[tapcli] unable to send assets: rpc error: code = Unknown desc = unable to sign and commit virtual packet: unable to generate Taproot Asset witness data: invalid transfer asset witness:

18. Shutdown Litd

Logs

lnd.log

Tapd files

data
    └─regtest
        │  admin.macaroon
        │  tapd.db
        │  tapd.db-shm
        │  tapd.db-wal
        │  tapd.db.1732241876644264200.backup
        │
        └─proofs
            └─8fa4a45ee9ff15ab9db321a30539f506645fd648fbe783b4801aa7a699e88fae
                    02a97b948cee54bd2f6d76c093db03b29e72efb1aa7f378a45297d8d471b71e6c8-796f3920cc47ed2922a28a6e7082d0c4-0.assetproof
                    02b284c17dce34fde55503766138b5eaaddb113d5f5df1aa4435ac7eb4fc0398d5-b9c74deac17ca03922d76c7cb861d845-1.assetproof
                    02ef295a8452c822cc936059b037e1d983462a26bdff12a552d54dbf4516b2f68e-b9c74deac17ca03922d76c7cb861d845-0.assetproof

data.zip

@guggero
Copy link
Member

guggero commented Nov 22, 2024

Thanks a lot for the super detailed information! Will reproduce and hopefully come up with a fix.

guggero added a commit that referenced this issue Nov 22, 2024
Reproduces the error reported in #1208.
We explicitly first reproduce the exact error with an itest.
We'll then fix the problem and update the test in the following commits.
@guggero
Copy link
Member

guggero commented Nov 22, 2024

Found the problem and created a fix: #1213. Thanks for reporting this!

@dstadulis dstadulis moved this from 🆕 New to 🏗 In progress in Taproot-Assets Project Board Nov 23, 2024
@dstadulis dstadulis added this to the v0.5 (v0.4.2 rename) milestone Nov 23, 2024
guggero added a commit that referenced this issue Nov 26, 2024
Reproduces the error reported in #1208.
We explicitly first reproduce the exact error with an itest.
We'll then fix the problem and update the test in the following commits.
guggero added a commit that referenced this issue Nov 27, 2024
Reproduces the error reported in #1208.
We explicitly first reproduce the exact error with an itest.
We'll then fix the problem and update the test in the following commits.
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Taproot-Assets Project Board Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants