Documentation ¶
Index ¶
- Constants
- func CreateAuditTokenKey(txID string, index uint64) (string, error)
- func CreateCompositeKey(objectType string, attributes []string) (string, error)
- func CreateDeletedTokenKey(txID string, index uint64) (string, error)
- func CreateExtendedFabTokenKey(id string, typ string, txID string, index uint64) (string, error)
- func CreateFabTokenKey(txID string, index uint64) (string, error)
- func CreateIssueActionMetadataKey(hash string) (string, error)
- func CreateIssuedHistoryTokenKey(txID string, index uint64) (string, error)
- func CreateSNKey(sn string) (string, error)
- func CreateSetupBundleKey() (string, error)
- func CreateSetupKey() (string, error)
- func CreateTokenKey(txID string, index uint64) (string, error)
- func CreateTokenMineKey(txID string, index uint64) (string, error)
- func CreateTokenRequestKey(txID string) (string, error)
- func CreateTransferActionMetadataKey(subKey string) (string, error)
- func GetTokenIdFromExtendedKey(key string) (*token.ID, error)
- func GetTokenIdFromKey(key string) (*token.ID, error)
- func GetTransferMetadataSubKey(k string) (string, error)
- func SplitCompositeKey(compositeKey string) (string, []string, error)
- func ValidateCompositeKeyAttribute(str string) error
Constants ¶
View Source
const ( MaxUnicodeRuneValue = utf8.MaxRune // U+10FFFF - maximum (and unallocated) code point CompositeKeyNamespace = "\x00" TokenKeyPrefix = "ztoken" FabTokenKeyPrefix = "token" DeletedTokenKeyPrefix = "deltoken" FabTokenExtendedKeyPrefix = "etoken" AuditTokenKeyPrefix = "audittoken" TokenMineKeyPrefix = "mine" TokenSetupKeyPrefix = "setup" IssuedHistoryTokenKeyPrefix = "issued" TokenNamespace = "tns" Info = "info" IDs = "ids" TokenRequestKeyPrefix = "token_request" SerialNumber = "sn" IssueActionMetadata = "iam" TransferActionMetadata = "tam" TokenRequestMetadata = "trmd" )
Variables ¶
This section is empty.
Functions ¶
func CreateCompositeKey ¶
CreateCompositeKey and its related functions and consts copied from core/chaincode/shim/chaincode.go
func CreateSNKey ¶
func CreateSetupBundleKey ¶
func CreateSetupKey ¶
func CreateTokenKey ¶
CreateTokenKey Creates a rwset key for an individual output in a token transaction, as a function of the token owner, transaction ID, and index of the output
func CreateTokenRequestKey ¶
func CreateTransferActionMetadataKey ¶
CreateTransferActionMetadataKey returns the transfer action metadata key built from the passed transaction id, subkey, and index. Index is used to make sure the key is unique with the respect to the token request this key appears.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.