aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-10-12 00:39:45 -0700
committerAdam Soltys <[email protected]>2020-10-12 00:39:45 -0700
commita90d6cc97470696ade30f237b050b8b329858a17 (patch)
treed2b0144a6076d799aa779a731f61e7c9c864f6a7 /lib
parentd7e5d530bd37f611beb1884c0587593fb9fb5880 (diff)
downloadcoinos-server-a90d6cc97470696ade30f237b050b8b329858a17.tar.gz
coinos-server-a90d6cc97470696ade30f237b050b8b329858a17.zip
javascript address generation
Diffstat (limited to 'lib')
-rw-r--r--lib/register.js28
1 files changed, 0 insertions, 28 deletions
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",