Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColoredTokenManager ¶
type ColoredTokenManager struct {
// contains filtered or unexported fields
}
ColoredTokenManager manipulates colored tokens
func (*ColoredTokenManager) MintColoredTokens ¶
func (coloredTokenmanager *ColoredTokenManager) MintColoredTokens(keyPair *ed25519.KeyPair, amount uint64) (colored.Color, error)
MintColoredTokens converts a specified amount of balance of iota tokens available to ed25519.KeyPair into a new color. Returns error if it fails.
func (*ColoredTokenManager) MustMintColoredTokens ¶
func (coloredTokenmanager *ColoredTokenManager) MustMintColoredTokens(keyPair *ed25519.KeyPair, amount uint64) colored.Color
MustMintColoredTokens converts a specified amount of balance of iota tokens available to ed25519.KeyPair into a new color. Fails test on error.
Click to show internal directories.
Click to hide internal directories.