func (in *TXInput) UsesKey(pubKeyHash []byte) bool {
	lockingHash, _ := utils.HashPubKey(in.PubKey)
	return bytes.Compare(lockingHash, pubKeyHash) == 0
}
UsesKey checks whether the address initiated the transaction
package structures
import (
	"bytes"
	"encoding/binary"
	"fmt"
	"strings"
)
import "github.com/gelembjuk/democoin/lib/utils"
type TXInput struct {
	Txid      []byte
	Vout      int
	Signature []byte
	PubKey    []byte  
}