Arbitrary token mint
mint new tokens with arbitrary supply to given recipient.
New token mint
- Derive, and reveal mint authority public key.
- Derive, and reveal new tokenId
- Calculate, and reveal new token's coin.
- Calculate, and reveal coin's tokenId commitment.
Public Input | Description |
---|---|
minting authority public key y-coordinate | |
minting authority public key x-coordinate | |
token | derived tokenId |
coin commitment as field element | |
x coordinate of supply point commitment | |
y coordinate of supply point commitment | |
commitment of tokenId as field element |
Witnesses | Description |
---|---|
minting authority secret key | |
value | token minted supply value |
token recipient public key x coordinate | |
token recipient public key y coordinate | |
sn | coin serial number |
spendHook | contract related contract |
data | input data for spendHook contract |
blinding term for burn value commitment | |
blinding term for tokenId commitment |