Code Monkey home page Code Monkey logo

neo-paper's Introduction

Overview

This is a paper wallet for the Neo Smart Economy. neo-paper is the introductory work for neo-burner.

This work is largely inspired by, and structurally based on, the work of Austin Griffith for Ethereum. Thank you for your fantastic work, informative videos, and creative problem solving.

See Austin Griffith's Work:

Burner Wallet

Paper Wallet

neo-paper

Welcome to the first official paper wallet for the Neo Smart Economy!

Intro

neo-paper provides a system to generate paper wallets to seed neo-burner with private keys. The goal is also to be able to ease the ability to generate printable batches of wallets for events, merchants, etc.

Features

Public QR has optional URL along with the Public Address encoded into the QR image.

Private QR has BIP-39 mnemonic seed, WIF, and hex private key encoded into the QR image.

This has only been tested on Ubuntu 18.04 so far!

Port Module to Neo Smart Economy Status Summary

This section shows which modules have been ported from AG's ethereum version to work in the Neo Smart Economy.

generate.js HAS been ported.

create.js HAS been ported.

index.js HAS been ported.

airdrop.js HAS NOT been ported.

report.js HAS NOT been ported, but is functional. This just prints a list of accounts from the JSON file.

Install

Please note the easy-pdf-merge package requires java be installed on your system.

git clone https://github.com/uvemtal/neo-paper
cd neo-paper
yarn

Run

See below.

Generate Accounts

This section HAS been ported to Neo Smart Economy. NOTE! Make sure you generate at least 2 accounts in order for index process to work!

node generate.js 2

(This will output an accounts.json file with the JSON format [{address,pk,_address,_privateKey,_publicKey,_scriptHash, _WIF}])

The format maintains compatibility with AG's work to ease integration and includes basic neon-js style for forward compatibility with Neo Smart Economy.

TODO: add NEP-6

Edit Design and Copy

Edit template.html to make changes and replace front.png, back.png, inside-left.png, and inside-right.png to update images.

You can also set a global background with the background.png and a quick edit to template.html.

Create Wallets from Accounts

This section HAS been ported to Neo Smart Economy. The current implementation only generates a private key QR image. only a PNG of the private key is created. Full PDF completion is still being developed and tested.

First, get your template.html looking right if you want to customize the appearance.

Make sure to generate at least 2 accounts for this command to work!

node index.js

(this will output wallets.pdf)

Print Wallets

lp wallets.pdf

You can print out private.png or public.svg if you are in a pinch.

Finally... print, fold, cut, and glue your way to freedom!

Air Dropping

This section HAS NOT been ported to Neo Smart Economy.

Learn More

A Note on html-pdf

This build does not accept HTML from random sources. You control your own template.html. This means https://www.npmjs.com/advisories/1095 is not relevant at this moment. If you plan to use this source on a public facing system where unsanitized html is used you should rethink using html-pdf.

neo-paper's People

Contributors

uvmetal avatar

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.