Tests compile

This commit is contained in:
Ethan Frey
2017-11-02 18:45:37 -05:00
parent 4173d1031e
commit 2d4544d6ce
2 changed files with 42 additions and 37 deletions

View File

@ -12,6 +12,11 @@ type Info struct {
PubKey crypto.PubKey `json:"pubkey"`
}
// Address is a helper function to calculate the address from the pubkey
func (i Info) Address() []byte {
return i.PubKey.Address()
}
func (i Info) bytes() []byte {
return wire.BinaryBytes(i)
}