Mint contract
Minting a coin
- Calculate, and set coin as instance.
- Calculate coin's value commitment, and set it as instance.
- Calculate coin's tokenId commitment, and set is as instance.
Public Input | Description |
---|---|
coin commitment as field element | |
x coordinate of value point commitment | |
y coordinate of value point commitment | |
commitment of tokenId as field element |
Witnesses | Description |
---|---|
coin public key x coordinate | |
coin public key y coordinate | |
value | burn value |
token | tokenId |
sn | coin serial number |
spendHook | contract related contract |
data | data read during spendHook execution |
blinding term for burn value commitment | |
blinding term for tokenId commitment |