Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Runes 2.0 proposal
Currently Runes have a specific Mint mechanism where anyone can mint a certain amount of runes for some specified period.
As Runes has gained huge popularity as the native token standard for BTC, there is a suggestion to improve the existing standard by allowing the specification of Minter Bitcoin address in Etching inscription.
To preserve the original compact structure of Runestone we can use
Runestone.Edict
for additional mintings.Etching.minter
can makeEdict { id, Amount: minAmount, Output: outputIndex }
and place a transaction output at outputIndex with the output script set to the target address, to which minting should happen. To only allow this minting forEtching.minter
we must add a condition to accept a transaction: at least one of the inputs in the transaction must use the previous output that belongs toEtching.minter
.Potential solution to allow Minter address change:
We can set
Runestone.Mint
and makeEdict { id, Amount: 0, Output: outputIndex, }
with 0 amount whereoutputIndex
will correspond to output with a script set to the corresponding script of the new Minter address.Global adjustments
There can be other suggestions on how to efficiently add this targeted minting mechanism by Minter and how to perform minting transaction validation.
Small adjustments can be easily reflected at the official Ord indexer, libraries and wallets that support Runes.
Main use case
The main use case to support such minting is to enable Runes stablecoins where the total supply of coins cannot be known in advance.