Author Topic: !!! Stupid Questions Thread !!!  (Read 154305 times)

0 Members and 1 Guest are viewing this topic.

jakub

  • Guest
Re: !!! Stupid Questions Thread !!!
« Reply #825 on: January 22, 2016, 04:41:17 pm »
There's a simple reason I enforce wss: browser's don't let you connect to a non-secure (ws) url from a secure domain (https). So if you're using the hosted wallet on openledger, you can only use wss apis. If you're running the GUI locally, you can use wss or ws.

I wanted to tell [member=12639]valzav[/member] to exclude the ws apis from the openledger build but forgot to mention it.

So is there a way to connect the OpenLedger GUI with a locally run witness node?
If so, what parameters should I use for the witness node?

I've tried:
Code: [Select]
witness_node --rpc-tls-endpoint 127.0.0.1:8089hoping this one would be compatible with "wss" but it does not work.

Only if you get a TLS certificate and run a proxy server for incoming traffic that proxies the ws server of the witness node. Not sure the witness can really run a wss socket, for OpenLedger valzav uses a nginx proxy.

[member=120]xeroc[/member]
So this effectively means that, unless you want to employ a TLS certificate and run a proxy server, this part of the documentation applies only to the light wallet GUI, not the hosted GUI, correct?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12915
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: !!! Stupid Questions Thread !!!
« Reply #826 on: January 22, 2016, 05:06:29 pm »
The testnet run an unencrypted ws:// websocket and thus there is no certificate and no encryption of data transmission between the client and the hosted wallet ...
if I wanted to have it encrypted, I would need to get an SSL certificate ..

the setup of openledger however uses an unecryted communication to the witness BUT only proxies by the webserver ..
essentially, in OL, the witness only listens to localhost on some port .. and the webserver `nginx` proxies the communication through SSL
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: !!! Stupid Questions Thread !!!
« Reply #827 on: January 22, 2016, 05:13:17 pm »
if I wanted to have it encrypted, I would need to get an SSL certificate ..

Hint: https://gethttpsforfree.com/
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline Thom

Re: !!! Stupid Questions Thread !!!
« Reply #828 on: January 22, 2016, 07:01:54 pm »
I proxy the wss using nginx and a self signed cert. I posted the details of that here on the forum somewhere. The OL wallet connects to my local node with an encrypted connection. The ability to change that connection appears to have been removed now.

I was surprised when that happened. It's not an unreasonable restriction however. I presume (I have yet to try it) the light wallet diverges from the OL wallet in this regard, at least I hope it does. Otherwise the wss connection url has to be hardcoded and that doesn't seem like a good idea for the light wallet.

Once the light wallet is customized and ready to be deployed for a specific organization (for example, OL), THEN the connection could be hardcoded to a clustered server URL address for that organization.
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: https://bitsharestalk.org/index.php/topic,23902.0.html

jakub

  • Guest
Re: !!! Stupid Questions Thread !!!
« Reply #829 on: January 22, 2016, 09:06:21 pm »
You can manually delete the other active key from the "wallet.json" file

Is it possible to remove a private key from the "wallet.json" file?
If so, how is it done?

What about this one ^ ?
Does anybody know?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12915
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: !!! Stupid Questions Thread !!!
« Reply #830 on: January 23, 2016, 11:38:16 am »
You can manually delete the other active key from the "wallet.json" file

Is it possible to remove a private key from the "wallet.json" file?
If so, how is it done?

What about this one ^ ?
Does anybody know?

my apologies, I though I answered that question already ..
Actually thinking it through, you cannot delete any of your keys from the wallet IF they have been generated through a brain key .. then you would need to delete the brain key to not be able to rederive the private keys ..

the wallet for the cli-wallet is just a json file. You can open it up and actually "read" what it contains .. the parameters are mostly self-explaining.
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

jakub

  • Guest
Re: !!! Stupid Questions Thread !!!
« Reply #831 on: January 23, 2016, 11:57:46 am »
the wallet for the cli-wallet is just a json file. You can open it up and actually "read" what it contains .. the parameters are mostly self-explaining.

This is a fragment of the my wallet.json file in testnet:

Code: [Select]
"chain_id": "39f5e2ede1f8bc1a3a54a7914414e3779e33193f1f5693510e73cb7a87617447",
  "my_accounts": [{
      "id": "1.2.41",
      ...
    },{
      "id": "1.2.51",
     ....
    }
  ],
  "cipher_keys": "f54eb8fcc7867c141f9fb6943dada2bbd...a6f755b277f048eabdb31db1b4a6",

The only entry that looks sensitive is the cipher_keys entry.
Are cipher_keys the place where all the private keys (i.e. the ones stored in this wallet) are kept?

If so, they are encoded with the wallet password, aren't they?
So if anybody gets hold of my cipher_keys but does not know the wallet password, I'm still safe, right?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12915
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: !!! Stupid Questions Thread !!!
« Reply #832 on: January 23, 2016, 12:58:31 pm »
It seems I was wrong ..
The cli-wallet obviously packs them all together into a single value in the file ..
that then means that you cannot simply remove private keys from the file ..

Not sure what the motivation behind this is/was and I have no idea how to interpret the cipher_keys but I guess it's another json object serialized and encrypted with your password .. but I can't say for sure.

As a result, removing individual keys is going to be even more difficult to realize :(
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

jakub

  • Guest
Re: !!! Stupid Questions Thread !!!
« Reply #833 on: January 23, 2016, 09:37:50 pm »
As a result, removing individual keys is going to be even more difficult to realize :(

There is always this work-around available: you can create a new wallet.json file and import all keys from the previous wallet except the ones you wanted to remove.
Thanks, xeroc, for your help.

Offline Watercolorist

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: !!! Stupid Questions Thread !!!
« Reply #834 on: January 26, 2016, 03:41:12 am »
Is there a newbie tutorial or information page or a video for how to use the BitShares 2.0 wallet?

I just started with BitShares but cannot find a guide for how to use the wallet.  I've searched here, on YouTube, googled, and the Help link in the wallet, but so far I've come up empty.

As a nOOb, there's so much I don't understand and I'm trying to get up to speed, but I need most just simple information on how to use the BitShares 2.0 wallet.

Thanks in advance.


Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12915
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: !!! Stupid Questions Thread !!!
« Reply #836 on: January 26, 2016, 11:48:03 am »
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline Watercolorist

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: !!! Stupid Questions Thread !!!
« Reply #837 on: January 26, 2016, 05:41:49 pm »
Thanks so much.  Very helpful.  :)

Offline Akado

  • Hero Member
  • *****
  • Posts: 2752
    • View Profile
  • BitShares: akado
Re: !!! Stupid Questions Thread !!!
« Reply #838 on: January 26, 2016, 09:50:54 pm »
When can we expect Moonstone? Last time I talked with the team around October if I'm not mistaken, I was told 2 months. Any news other than the beyond bitcoin show Taulant gave?
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline Watercolorist

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: !!! Stupid Questions Thread !!!
« Reply #839 on: January 28, 2016, 06:20:33 pm »
My "stupid question" number two:  Now that I have 40K BTS on my BitShares 2.0, what do I do with them?