Question about MintCapability granting in LibraCoin

Hi,

In your LibraCoin module implementation, you grant a single MintCapability to the association account during genesis creation (see here).

Is it possible to recreate the behavior? By possibly executing a function only once during module publishing?

Thanks again

This grant_mint_capability is private so people shouldn’t be able to call into it in a regular transaction. That’s one of the privileges we have when we are in the genesis creation mode.

The technique suggested in Any notion of global variables? should work for enforcing the uniqueness of a resource without relying on genesis.

Roger :slight_smile: