Git Product home page Git Product logo

gowallet's Introduction

gowallet

golang wallet tools

build

go build -o gowallet main.go

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gowallet_linux main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gowallet_win main.go

running

generate private

create private key

./gowallet genPrivateKey
0xC49926C4124cEe1cbA0Ea94Ea31a6c12318df947:0x63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9
./gowallet genPrivateKey -n 10 # Create 10 private keys
xxxxx
..

get public key from private key

./gowallet getPublicKey -k 0x63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9
0x046005c86a6718f66221713a77073c41291cc3abbfcd03aa4955e9b2b50dbf7f9b6672dad0d46ade61e382f79888a73ea7899d9419becf1d6c9ec2087c1188fa18

get address from private key

./gowallet getAddress -k 0x63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9
0xC49926C4124cEe1cbA0Ea94Ea31a6c12318df947

generate mnemonic

create mnemonic

./gowallet genMnemonic
tag volcano eight thank tide danger coast health above argue embrace heavy
./gowallet genMnemonic -s 24
xxx xx xxx ..

get seed from mnemonic

./gowallet getSeed -m "tag volcano eight thank tide danger coast health above argue embrace heavy"
efea201152e37883bdabf10b28fdac9c146f80d2e161a544a7079d2ecc4e65948a0d74e47e924f26bf35aaee72b24eb210386bcb1deda70ded202a2b7d1a8c2e

get path from mnemonic

./gowallet getPath -m "tag volcano eight thank tide danger coast health above argue embrace heavy" -p "m/44'/60'/0'/0/0"
0xC49926C4124cEe1cbA0Ea94Ea31a6c12318df947:0x63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9

get path from seed

./gowallet getPath -s "efea201152e37883bdabf10b28fdac9c146f80d2e161a544a7079d2ecc4e65948a0d74e47e924f26bf35aaee72b24eb210386bcb1deda70ded202a2b7d1a8c2e" -p "m/44'/60'/0'/0/0"
0xC49926C4124cEe1cbA0Ea94Ea31a6c12318df947:0x63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9

gowallet's People

Contributors

spark8899 avatar

Watchers

 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.