lightninglabs / taproot-assets

A layer 1 daemon, for the Taproot Assets Protocol specification, written in Go (golang)
MIT License
439 stars 106 forks source link

[feature]: Support asset script reuse during minting #966

Open gijswijs opened 6 days ago

gijswijs commented 6 days ago

Currenlty the mintin process does not allow for explicitly creating multiple assets from different asset IDs with the same script key. During MarkBatchConfirmed we use the script key as the unique identifier for the asset. We should add the actual 32-byte asset ID into that query to support asset script reuse over different Asset IDs.

https://github.com/lightninglabs/taproot-assets/blob/1083cf1dd0cc32ab70fbda1e758ffec87435636b/tapdb/asset_minting.go#L1617