From 36f463eb7debf7c53b07894028dc9f30979bf273 Mon Sep 17 00:00:00 2001
From: Jono Wenger <jono@elixxir.io>
Date: Wed, 19 Oct 2022 15:24:02 -0700
Subject: [PATCH] Export ConstructIdentity to javascript

---
 creds/password_test.go | 1 +
 main.go                | 1 +
 2 files changed, 2 insertions(+)

diff --git a/creds/password_test.go b/creds/password_test.go
index 822746e8..ff9c71c5 100644
--- a/creds/password_test.go
+++ b/creds/password_test.go
@@ -78,6 +78,7 @@ func Test_changeExternalPassword(t *testing.T) {
 // Tests that verifyPassword returns true for a valid password and false for an
 // invalid password
 func Test_verifyPassword(t *testing.T) {
+	utils.GetLocalStorage().Clear()
 	externalPassword := "myPassword"
 
 	if _, err := getOrInit(externalPassword); err != nil {
diff --git a/main.go b/main.go
index 06bbe723..5da0d86b 100644
--- a/main.go
+++ b/main.go
@@ -57,6 +57,7 @@ func main() {
 	// wasm/channels.go
 	js.Global().Set("GenerateChannelIdentity",
 		js.FuncOf(wasm.GenerateChannelIdentity))
+	js.Global().Set("ConstructIdentity", js.FuncOf(wasm.ConstructIdentity))
 	js.Global().Set("ImportPrivateIdentity",
 		js.FuncOf(wasm.ImportPrivateIdentity))
 	js.Global().Set("GetPublicChannelIdentity",
-- 
GitLab