# Offline Script for Counterwallet

**URL:** <https://forums.counterparty.io/t/offline-script-for-counterwallet/277>\
**Category:** Counterparty\
**Created:** [May 9, 2014, 12:50pm UTC](https://forums.counterparty.io/t/offline-script-for-counterwallet/277 "2014-05-09T12:50:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![porqupine](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@porqupine](https://forums.counterparty.io/u/porqupine)\
**Post date:** [May 9, 2014, 12:50pm UTC](https://forums.counterparty.io/t/offline-script-for-counterwallet/277/1 "2014-05-09T12:50:55Z")

</div>

[https://github.com/porqup1ne/CounterWalletHelper](https://github.com/porqup1ne/CounterWalletHelper)  
  
Script for BIP32, using jmcorgan’s bip32utils: [https://github.com/jmcorgan/bip32utils](https://github.com/jmcorgan/bip32utils), wallet generation using 12 word mnemonics Counterwallet: [https://counterwallet.co/](https://counterwallet.co/)  
  
  
For a wallet use:  
`<br />wallet<br /><br />--pass-phrase<br />--search-depth<br />--show-private <br />--old<br />`  
For recovery use:  
`<br />recover<br /><br />--known-phrase <br />--known-address <br />--search-depth <br />--insertion-index <br />--old<br />`  
  
  
Recovery only does single word insertion at an index at the moment, that is until I figure out a good way to make the ecdsa faster, currently 1626\*12 can be done in a number of hours (missing word, unknown location), So two missing words with known locations (1626\*\*2) would take somewhat over a week, and a missing word with an unknown phrase ordering (even a comparatively small number like 11!\*1626, would take far too long).

---

<div class="post-metadata">

**Author:** ![porqupine](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@porqupine](https://forums.counterparty.io/u/porqupine)\
**Post date:** [May 10, 2014, 3:06pm UTC](https://forums.counterparty.io/t/offline-script-for-counterwallet/277/2 "2014-05-10T15:06:51Z")

</div>

updated for the new wallet as well, use `--old ` for your old wallet.
