diff --git a/peer/cwtch_peer.go b/peer/cwtch_peer.go index 03eb857..49f3624 100644 --- a/peer/cwtch_peer.go +++ b/peer/cwtch_peer.go @@ -166,8 +166,8 @@ func (cp *cwtchPeer) Save(profilefile string) error { return err } -// LoadCwtchPeer loads an existing CwtchPeer from a file. -func LoadCwtchPeer(profilefile string, password string) (*cwtchPeer, error) { +// LoadCwtchPeer loads an existing cwtchPeer from a file. +func LoadCwtchPeer(profilefile string, password string) (CwtchPeerInterface, error) { encryptedbytes, _ := ioutil.ReadFile(profilefile) //get the salt