Giter Club home page Giter Club logo

Comments (2)

jcnelson avatar jcnelson commented on September 25, 2024

This will be possible in certain cases, provided that (1) you didn't set your private keys directly with e.g. import_wallet, and (2) you aren't using a multisig ownership or payment address (which requires multiple independent private keys). The multisig support hasn't been deployed yet, but will be in a few weeks.

In the mean time, you can decrypt the wallet and extract the bare information (multisig or not) with the following script. I'll add this into the CLI for the next release.

#!/usr/bin/python

import blockstack_client
import sys
import json
from getpass import getpass

if len(sys.argv) != 2:
    print >> sys.stderr, "Usage: %s /path/to/wallet.json" % (sys.argv[0])
    sys.exit(1)

wallet_path = sys.argv[1]
password = getpass("Wallet password: ")

with open(wallet_path, "r") as f:
    wallet_data = f.read()

wallet_data = json.loads(wallet_data)

ret = blockstack_client.wallet.decrypt_wallet( wallet_data, password )
print json.dumps(ret, indent=4, sort_keys=True)

sys.exit(0)

from stacks.js.

jcnelson avatar jcnelson commented on September 25, 2024

In 0.14.0, we've added a blockstack wallet command that will print out the base58check key information stored in ~/.blockstack/wallet.json.

from stacks.js.

Related Issues (20)

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.