MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / constructor

Method constructor

app/core/SecureKeychain.js:41–48  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

39 isAuthenticating = false;
40
41 constructor(code) {
42 if (!SecureKeychain.instance) {
43 privates.set(this, { code });
44 SecureKeychain.instance = this;
45 }
46
47 return SecureKeychain.instance;
48 }
49
50 encryptPassword(password) {
51 return encryptor.encrypt(privates.get(this).code, { password });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected