fungibility of taproot assets minted within one asset group but in multiple batches #727
Replies: 1 comment 1 reply
-
Thank you for asking your question as a discussion, I'm sure other people will find it (and hopefully this answer) useful.
That is correct. A piece of data that is added to the hash that becomes the
It is true that the fungibility described above is not yet fully implemented in our RPCs. For example address based sends is currently only possible with a single |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm not sure if this is really an issue with taproot-assets, or if I have misunderstood something.
I am trying to understand how to issue an asset in multiple batches, so that the total circulating supply is increased every time that I call the MintAsset API endpoint.
So far I have only managed to perform multiple mints so that I end up with multiple
asset_id
s, all grouped by the samegroup_key
. I have not found a way to issue assets over multiple batches, while preserving the sameasset_id
over all mints. Is there any way to do this? If there is, please let me know, in which case the remainder of my question is irrelevant.My understanding is that we can use the
group_key
to get the circulating supply and hot wallet balance for a group, and we can conceptually think of the group of assets to be "the asset". But if there is no way to perform multiple mints of the same asset while preserving the sameasset_id
, then I think this creates some problems with fungibility:When sending an asset, I have to decide which
asset_id
/batch to send from. If I have minted 1000 units of an asset, and then an additional 1000 units of the same asset in the same group but in a different batch, I can't just send 1100 units in one go.When generating an asset address to receive these, this is done by passing an
asset_id
to NewAddr. Suppose I have minted an asset over two batches. I now wish to transfer some of this asset. I generate an asset address using the firstasset_id
. Can I now transfer any assets minted by the second batch to that address? If not, then the assets minted between the two batches are not really fungible.Does this problem really exist? Or have I misunderstood something regarding assets, asset groups, and minting? I would very much appreciate it if someone could explain this to me.
P.S. By the way, I have to say I'm really impressed overall with the Taproot Assets Protocol and with all of the Lightning Labs projects. Thank you all for your effort, it really adds a lot value to the Bitcoin ecosystem.
Beta Was this translation helpful? Give feedback.
All reactions