Coder Social home page Coder Social logo

address-factory's People

Contributors

6102bitcoin avatar futurepaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

6102bitcoin

address-factory's Issues

Should address-factory.json be portable between machines?

For instance, it stores the config dir right now (not really necessary just the lazy thing). If you move it from Linux to Mac that config dir will be incorrect. How do we want to handle portable address-factory.json. Should we have an export flag?

Bug: Editing paths in wizard

When a user is entering the path in the wizard they can't use autocompletion or ls to browse to the file. They also can't go back and edit part of the path. For example if the user enters the path as /home/files/example.json and the user wants to go back and edit this to be /home/coldcard-files/example.json they have to delete the string from the trailing end (they can't go left with the cursor).

Solution: The fix already made to allow the dragging of files into the terminal helps this immensely. I don't know if there is a better way long term to allow the user to select files using a pop-up file select menu. For terminal users it feels like it's annoying to have to remember a path or use a separate terminal / file explorer to do this.

Suggestion: Persistent Files / Paths

Maybe we could make a .addressfactory directory in the home folder which is where the address-generator.json files are stored. This way they would be easy to keep track of, and could be called from various versions of the software.

Running a second time

When I run the first time and import the coldcard json it works fine. When I run a second time immediately after and enter n (no changes) the following happens:

โœ” Do you want to make any changes? ยท no
Checking address
Derived: REDACTED
Expected: REDACTED
Skipping addresses...
Error: table entries already exists

Caused by:
Error code 1: SQL error or missing database

I think we need to include the time in the name TO THE >SECOND<

This is a great alt-chat

Suggestion: Importing address-factory.json

User may have never moved the address-factory.json file that was generated when initialising. In this case, they don't know where the address-factory.json file is.

Suggestion:

  • [] Look in the root directory of program for any address-factory.json files and present to the user for selection
  • [] Have a folder of address-factory.json files rather than storing in the root of the program

Bug: JSON Path with commas fails

When setting up a new address factory the user is prompted for the path to the .json file

If a user drags a file into the terminal the path is specified like this /home/....json which causes the script to end with Error: No such file or directory (os error 2).

Solution: Remove leading and trailing ' from the entered path?

Suggestion: address-factory.json filename

Currently a new address factory always gets named address-factory.json and is saved in the root directory of the program files.

Suggestions:

  • Prefix with date of creation (as used when generating the signed_addresses.db)
  • Let user specify name of address-factory and add as a suffix (before .json)
  • Let user specify whether to save file in root of program, in same directory as imported .json or on another location (complex to implement)

E.g. 2021-02-22_address-factory_coldcardtest.json

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.