API changed to use Pubkey only. Reflected that change in the rest of the api

This commit is contained in:
obscuren
2015-02-05 15:00:59 -08:00
parent 6b5f25802e
commit e40c1c62ce
6 changed files with 7 additions and 6 deletions

View File

@ -118,7 +118,7 @@ func (self *Whisper) GetIdentity(key *ecdsa.PublicKey) *ecdsa.PrivateKey {
func (self *Whisper) Watch(opts Filter) int {
return self.filters.Install(filter.Generic{
Str1: string(crypto.FromECDSA(opts.To)),
Str1: string(crypto.FromECDSAPub(opts.To)),
Str2: string(crypto.FromECDSAPub(opts.From)),
Data: bytesToMap(opts.Topics),
Fn: func(data interface{}) {