Skip to content
Snippets Groups Projects
Commit 7ba947b4 authored by Sasha Ilieva's avatar Sasha Ilieva
Browse files

Add init

parent 6d0d0874
Branches
Tags
1 merge request!88908 account recovery ability to add contacts to trusted contacts list for account recovery
......@@ -41,6 +41,7 @@ import {
} from "../constants/statuses";
import generateQrCode from "../utilities/generateQrCode";
import {
initSecrets,
generateRecoveryKey,
divideSecretToShares,
combineSecret
......@@ -546,6 +547,7 @@ const connection = Penpal.connectToParent({
collaboraUrl.charAt(collaboraUrl.length - 1) === "/"
? collaboraUrl
: collaboraUrl + "/";
initSecrets();
},
...penpalMethods,
createIdentity(pinCode) {
......
......@@ -463,7 +463,7 @@
// //////////////////
var secrets = {
init: function(bits, rngType = "nodeCryptoRandomBytes") {
init: function(bits, rngType) {
console.log("INIT", { rngType });
var logs = [],
exps = [],
......
import { encryptMessage } from "./signingUtilities.js";
import secrets from "../lib/secrets";
/** Initialize
*/
export const initSecrets = (bits, rngType) => secrets.init(bits, rngType);
/**
* Function generates a random bits length string, and output it in hexadecimal format
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment