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

Function init

app/core/SecureKeychain.js:61–71  ·  view source on GitHub ↗
(salt)

Source from the content-addressed store, hash-verified

59
60export default {
61 init(salt) {
62 instance = new SecureKeychain(salt);
63
64 if (Device.isAndroid && Keychain.SECURITY_LEVEL?.SECURE_HARDWARE)
65 MetaMetrics.getInstance().trackEvent(
66 MetaMetricsEvents.ANDROID_HARDWARE_KEYSTORE,
67 );
68
69 Object.freeze(instance);
70 return instance;
71 },
72
73 getInstance() {
74 return instance;

Callers

nothing calls this directly

Calls 2

trackEventMethod · 0.65
getInstanceMethod · 0.45

Tested by

no test coverage detected