particle4dev / dicoapp-e

SPV lightweight GUI wallet with barterDEX swap capabilities
MIT License
1 stars 11 forks source link

implement login page #2

Closed particle4dev closed 6 years ago

particle4dev commented 6 years ago

Title: implement the login page

Business/User Value: As a user, I want to login

Acceptance Criteria

DEV NOTES

DESIGN Notes

screen shot 2018-08-18 at 07 07 55

---other items that you may add to a story---

NEEDS PM None

NEEDS DESIGN None

/label ~"story"

particle4dev commented 6 years ago

We have to start marketmaker application before we can call the API https://github.com/particle4dev/dicoapp-e/issues/10

particle4dev commented 6 years ago

electrum

This method enables a coin by connecting to the specified electrumx server.

const paramsKMD = {
  'userpass': userpass,
  'method': 'electrum',
  'coin': 'KMD',
  'ipaddr': 'electrum1.cipig.net',
  'port': 10001
};
{
  ipaddr: "electrum1.cipig.net"
  port: 10000
  result: "success"
  status: "already there"
}
OR
{
  ipaddr: "electrum2.cipig.net"
  port: 10000
  result: "success"
}

https://docs.komodoplatform.com/barterDEX/barterDEX-API.html#electrum https://github.com/chainmakers/dicoapp/blob/glxt/.desktop/modules/marketmaker/index.js#L706

particle4dev commented 6 years ago

balance

const balanceparams = {
  'userpass': (await this.Userdata.findOne({
    key: "userpass"
  })).userpass,
  'method': 'balance',
  'coin': coin,
  'address': (await this.Userdata.findOne({
    coin: coin
  })).smartaddress.toString()
};

https://docs.komodoplatform.com/barterDEX/barterDEX-API.html#balance https://github.com/chainmakers/dicoapp/blob/glxt/.desktop/modules/marketmaker/index.js#L604

particle4dev commented 6 years ago

What is the BarterDEX passphrase? ` A mnemonic phrase, mnemonic recovery phrase or mnemonic seed is a list of words which store all the information needed to recover a cryptocurrency wallet. A wallet will typically generate a mnemonic backup phrase and instruct the user to write it down on paper. If the user's computer breaks or their hard drive becomes corrupted, they can download the same wallet again and use the paper backup to get their bitcoins back.

In the case of BarterDEX, your passphrase is linked to your smart addresses. You can import the passphrase into BarterDEX or Agama and access your funds. Anybody who discovers the phrase can spend your coins. It is of utmost importance that you keep it safe. Mnemonic phrases are a superior way of backing up and storing cryptocurrencies so all good wallets use them. `

https://komodoplatform.atlassian.net/wiki/spaces/KPSD/pages/9797644/What+is+the+BarterDEX+passphrase https://en.bitcoin.it/wiki/Seed_phrase

particle4dev commented 6 years ago
const setparams = {
  'userpass': '1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f',
  'userhome': `${process.env.HOME}`,
  'method': 'passphrase',
  'passphrase': passphrase,
  'gui': 'dICOApp',
  // 'netid':
  // 'seednode':
};

https://github.com/chainmakers/dicoapp/blob/glxt/.desktop/modules/marketmaker/index.js#L641 https://docs.komodoplatform.com/barterDEX/barterDEX-API.html#setpassphrase

This method helps the GUI build to take input of the passphrase and generate userpass. This is the second API to run in BarterDEX. On the first call it will display the userpass value at the top of output.

particle4dev commented 6 years ago

sweetalert https://github.com/t4t5/sweetalert