From a90d6cc97470696ade30f237b050b8b329858a17 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 12 Oct 2020 00:39:45 -0700 Subject: javascript address generation --- lib/register.js | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'lib') diff --git a/lib/register.js b/lib/register.js index 7502c626..23e20a72 100644 --- a/lib/register.js +++ b/lib/register.js @@ -12,34 +12,6 @@ register = async (user, ip, requireChallenge) => { user.password = await bcrypt.hash(user.password, 1); } - if (config.bitcoin) { - if (config.bitcoin.walletpass) - await bc.walletPassphrase(config.bitcoin.walletpass, 300); - - user.address = await bc.getNewAddress("", "bech32"); - addresses[user.address] = user.username; - } - - if (config.liquid) { - if (config.liquid.walletpass) - await lq.walletPassphrase(config.liquid.walletpass, 300); - - user.confidential = await lq.getNewAddress(); - user.liquid = (await lq.getAddressInfo(user.confidential)).unconfidential; - addresses[user.liquid] = user.username; - } - - if ( - requireChallenge && - (!challenge[ip] || - user.response.toLowerCase() !== challenge[ip].toLowerCase()) - ) { - l.info("failed challenge", ip, user.response, challenge[ip]); - throw new Error("Failed challenge"); - } - - delete challenge[ip]; - let countries = { CA: "CAD", US: "USD", -- cgit v1.2.3