Giter Club home page Giter Club logo

nano-docs's People

Contributors

angristan avatar argakiig avatar bananodroid avatar bitdesert avatar clemahieu avatar codesoap avatar cryptocode avatar darrenalex avatar ethunxxx avatar gak avatar git-sgmoore avatar giteska avatar guilhermelawless avatar guywhoknowstheguy avatar jerzystanislawski avatar jserv avatar matm avatar meltingice avatar qwahzi avatar rickinano avatar roconda avatar schenkty avatar sergiysw avatar shryder avatar skynxt avatar srayman avatar tarmo888 avatar thsfs avatar wezrule avatar zhyatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nano-docs's Issues

RPC command formatting and cleanup

The current setup for RPC commands needs some cleanup including:

  • Adjusting command titles to be the action used
  • Better formatting of request/response details
  • More consistent formatting across the board, including version callouts

Suggestions for how best to do the formatting of request/response details are welcome. A possible approach was included for the account_balance, account_block_count and account_info calls using tables for keys, version, format, etc.

Once we get the suggested formatting down additional cleanup efforts on the remaining calls can be done more consistently and this ticket will be used to help track that work.

Mention v20 upgrades can take a few minutes

nanocurrency/nano-node#2283 is modifying all accounts to use the representative account instead of the representative block. This has been found to take a few minutes on some systems.

The account_info RPC should mark rep_block as deprecated and the representative shown by default when it eventually gets removed, RPC 2.0?

Add frontier confirmation modes

To cover changes in nanocurrency/nano-node#2175

Auto mode (default): If not Principal Representative, start frontier confirmation process every 15 minutes; if Principal Representative, start frontier confirmation process every 3 minutes

Always: Start frontier confirmation process every 3 minutes

Disabled: Do not start frontier confirmation process

Add more information about using docker and an exposed RPC address

The node prints this message when "::ffff:0.0.0.0" is set as address an control is enabled: WARNING: control-level RPCs are enabled on non-local address ::ffff:0.0.0.0, potentially allowing wallet access outside local computer

We should add more information on this in the documentation and include the link in the printed message.

If not using docker:

  • A non-local address exposes the RPC
  • A firewall is necessary to properly manage exposure
  • Recommended to use a proxy, V22 will bring management using API-keys but should be used with SSL or a proxy

If using docker:

  • A non-local address is the default and required for other applications to use the RPC
  • The setting by itself does not expose the RPC to outside the local machine, this depends on how the run command is created
  • We have a warning against redirecting other addresses than localhost to the RPC port
  • Docker overrides ufw - even if rules are defined in ufw to only allow certain IPs through the RPC port, docker overrides this unless a special configuration is used.

Recommend json_block true

@zhyatt
This is available since v19, can we start recommending it now by using it in the documentation examples? The formatted output is much easier to read.

What about the doc translation?

Hello,

I asked quite a while ago about the eventuality of translating the documentation. I was answered to wait for the release of the new version of the official website, which is now online.

Any plans on the way to let people translate the doc, now ? I'm quite eager to.

Expanding the info regarding Nano seed and key derivation

The documentation should be updated at some point regarding the key derivation. I think it's correct info, just missing a few points.
I think it should be written by someone who really knows this, I just found out by trial and error.

For example from here: https://docs.nano.org/integration-guides/the-basics/#seed
PrivK[i] = blake2b(outLen = 32, input = seed || i)

That's true but should be noted that seed is not the same as the BIP39 seed which is 128 in length.

From here: https://docs.nano.org/integration-guides/key-management/
Derived Private Key for 44'/165'/0'

Yes, that's also true but should be noted that type of derivation is not the same as the one mentioned above using blake2b. It results in different private keys!
Should also be mentioned that the 24-word mnemonic can be derived from a Nano 64 length seed using either

BIP39:
mnemonic = bip39.entropyToMnemonic('seed')

or using nanocurrency-web-js like so:
mnemonic = wallet.generate('seed').mnemonic

Furthermore, the 64 nano seed can also be derived from a 24-word mnemonic by:
seed = bip39.mnemonicToEntropy(mnemonic)

Maybe also mention how to get the private key using both derivation methods (from either nanocurrency-web-js or nanocurrency-js

Default Nano (nanocurrency-js, index 0):
privKey = nano.deriveSecretKey(seed, 0)
Should be the same as blake2b(outLen = 32, input = seed || 0) but haven't tested

Ledger key (nanocurrency-web-js, index 0, seed is 64 char (also called entropy), nanowallet.seed is the 128 char BIP39 seed):
nanowallet = wallet.generate(seed)
accounts = nanowallet.accounts(nanowallet.seed, 0, 0)
privKey = accounts[0].privateKey
This should be the same as BIP39 derivation from 44'/165'/0'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.