4 "github.com/vapor/blockchain/query"
5 "github.com/vapor/protocol/bc"
9 //UTXOPreFix is StandardUTXOKey prefix
11 //SUTXOPrefix is ContractUTXOKey prefix
15 // StandardUTXOKey makes an account unspent outputs key to store
16 func StandardUTXOKey(id bc.Hash) []byte {
18 return []byte(UTXOPreFix + name)
21 // ContractUTXOKey makes a smart contract unspent outputs key to store
22 func ContractUTXOKey(id bc.Hash) []byte {
24 return []byte(SUTXOPrefix + name)
27 //Annotated init an annotated account object
28 func Annotated(a *Account) *query.AnnotatedAccount {
29 return &query.AnnotatedAccount{
35 DeriveRule: a.DeriveRule,