package key import ( "fmt" ) const ( blockKey = "block-" blockHashKey = "block-hash-" blockHeightKey = "block-height-" blockTxSetKey = "block-tx-set-" interchainMetaKey = "interchain-meta-" receiptKey = "receipt-" transactionKey = "tx-" transactionMetaKey = "tx-meta-" chainMetaKey = "chain-meta" accountKey = "account-" codeKey = "code-" journalKey = "journal-" ) func CompositeKey(prefix string, value interface{}) []byte { return append([]byte(prefix), []byte(fmt.Sprintf("%v", value))...) }