Documentation ¶
Index ¶
- Constants
- func Coinbase() factom.FAAddress
- func ComputeChainID(tokenID string, issuerChainID *factom.Bytes32) factom.Bytes32
- func NameIDs(tokenID string, issuerChainID *factom.Bytes32) []factom.Bytes
- func ParseTokenIssuer(nameIDs []factom.Bytes) (string, factom.Bytes32)
- func ValidNameIDs(nameIDs []factom.Bytes) bool
- type Issuance
- type Type
Constants ¶
View Source
const MaxPrecision = 18
Variables ¶
This section is empty.
Functions ¶
func ComputeChainID ¶
ComputeChainID returns the ChainID for a given tokenID and issuerChainID.
func ParseTokenIssuer ¶
ParseTokenIssuer returns the tokenID and identityChainID for a given set of nameIDs.
The caller must ensure that ValidNameIDs(nameIDs) returns true or else TokenIssuer will return garbage data or may panic.
func ValidNameIDs ¶
ValidNameIDs returns true if the nameIDs match the pattern for a valid token chain.
Types ¶
type Issuance ¶
type Issuance struct { Type Type `json:"type"` Supply int64 `json:"supply"` Precision uint `json:"precision,omitempty"` Symbol string `json:"symbol,omitempty"` Metadata json.RawMessage `json:"metadata,omitempty"` Entry factom.Entry `json:"-"` }
func (*Issuance) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.