Identity load and save params, invitation check

This commit is contained in:
ycc
2022-11-28 20:48:42 +01:00
parent f4ebb5cab1
commit b464a855ae
6 changed files with 46 additions and 14 deletions

View File

@ -16,7 +16,7 @@ func TestEndToEnd(t *testing.T) {
// Create my own identity
//
fmt.Println("Trying to load identity from file.")
Me, err := client.LoadIdentity("id.enc")
Me, err := client.LoadIdentity("id.enc", "Test")
if err != nil {
fmt.Println("Failed : creating New identity...")
///////////////////////////
@ -65,10 +65,10 @@ func TestEndToEnd(t *testing.T) {
// Finalize the contact with the invitation response //
///////////////////////////////////////////////////////
Me.FinalizeInvitation(&ReceivedContact)
/*err = Me.Save("id.enc")
err = Me.Save()
if err != nil {
fmt.Println(err.Error())
}*/
}
a, _ = json.Marshal(Me)
ioutil.WriteFile("id.json", a, 0644)