From 2b039b2e9f93b2058fd6a0795f24e6c42cc01948 Mon Sep 17 00:00:00 2001 From: Angus Champion de Crespigny Date: Sun, 24 Jun 2018 15:04:33 -0400 Subject: [PATCH] Changed capitalization of cwtchPeer (again) and updated LoadCwtchPeer to use the interface --- peer/cwtch_peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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