OSDN Git Service

Wallet store interface (#217)
[bytom/vapor.git] / account / indexer.go
index dd96a7e..7e8b3de 100644 (file)
@@ -2,28 +2,8 @@ package account
 
 import (
        "github.com/vapor/blockchain/query"
-       "github.com/vapor/protocol/bc"
 )
 
-const (
-       //UTXOPreFix is StandardUTXOKey prefix
-       UTXOPreFix = "ACU:"
-       //SUTXOPrefix is ContractUTXOKey prefix
-       SUTXOPrefix = "SCU:"
-)
-
-// StandardUTXOKey makes an account unspent outputs key to store
-func StandardUTXOKey(id bc.Hash) []byte {
-       name := id.String()
-       return []byte(UTXOPreFix + name)
-}
-
-// ContractUTXOKey makes a smart contract unspent outputs key to store
-func ContractUTXOKey(id bc.Hash) []byte {
-       name := id.String()
-       return []byte(SUTXOPrefix + name)
-}
-
 //Annotated init an annotated account object
 func Annotated(a *Account) *query.AnnotatedAccount {
        return &query.AnnotatedAccount{