Skip to content

Commit

Permalink
Merge pull request #13 from vault12/BETA-1163
Browse files Browse the repository at this point in the history
save commKey as string in cryptoStorage
  • Loading branch information
lomchik committed Jul 27, 2021
2 parents 390ac0d + ca1b10d commit 71074d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "glow.ts",
"version": "0.2.2",
"version": "1.0.0",
"displayName": "Glow.ts",
"description": "Client library for interacting with Zax Cryptographic Relay Servers",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/keyring/keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ export class KeyRing {

async setCommFromSeed(seed: Uint8Array): Promise<void> {
this.commKey = new Keys(await this.nacl.crypto_box_keypair_from_seed(seed));
await this.storage.save(KeyRing.commKeyTag, this.commKey);
await this.storage.save(KeyRing.commKeyTag, this.commKey.toString());
}

async setCommFromSecKey(rawSecretKey: Uint8Array): Promise<void> {
this.commKey = new Keys(await this.nacl.crypto_box_keypair_from_raw_sk(rawSecretKey));
await this.storage.save(KeyRing.commKeyTag, this.commKey);
await this.storage.save(KeyRing.commKeyTag, this.commKey.toString());
}

async addGuest(guestTag: string, publicKey: Base64): Promise<string> {
Expand Down

0 comments on commit 71074d1

Please sign in to comment.