<p>It seems that you have entered a valid mnemonic, but it cannot decrypt the nlocktime.zip file. It could be that the mnemonic you entered is not the one associated with the wallet (which can be used to decrypt the nlocktime.zip).</p>

<p>I replicated your error by using another mnemonic in one of the examples (<code>garecovery/examples/example_2of2.sh</code>):</p>

<pre><code>$ garecovery-cli --network=testnet --mnemonic-file garecovery/tests/test_data/mnemonic_2.txt 2of2 --nlocktime-file garecovery/tests/test_data/compressed_1.zip
Traceback (most recent call last):
  File "/tmp/recovery/venv/bin/garecovery-cli", line 7, in &lt;module&gt;
    sys.exit(recoverycli.main(sys.argv))
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/garecovery/recoverycli.py", line 86, in main
    recovery = get_recovery(clargs.args, mnemonic, seed)
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/garecovery/recoverycli.py", line 61, in get_recovery
    return TwoOfTwo(mnemonic, seed, options.nlocktime_file)
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/garecovery/two_of_two.py", line 25, in __init__
    zipdata = gacommon._unzip(self.compressed_zip, chaincode)
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/gaservices/utils/gacommon.py", line 35, in _unzip
    all_data.extend(_unzip(_fernet_decrypt(key, encrypted), key))
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/gaservices/utils/gacommon.py", line 11, in _fernet_decrypt
    assert wally.hmac_sha256(key[:16], data[:-32]) == data[-32:]
AssertionError
</code></pre>

<p>For sure, the error message will have to be improved.</p>

<p>If you need further assistance and you feel you may reveal too much information about your situation, please send an email to info@greenaddress.it.</p>

CC BY-SA 4.0
2020-02-28T08:18:09.970Z
2020-02-28T08:18:09.970Z
leocomandini
<p>I'm encountering an unforeseen problem with 2o2 Recovery procedure. 
I followed all the instruction at <a href="https://github.com/greenaddress/garecovery" rel="nofollow noreferrer">https://github.com/greenaddress/garecovery</a>, I've correctly installed Ubuntu for Windows, I've correctly run through all the steps until:</p>

<pre><code>$ garecovery-cli 2of2 --nlocktime-file /path/to/downloaded/nlocktimes.zip -o garecovery.csv
</code></pre>

<p>I've passed the correct <code>nlocktimes.zip</code>, I've entered the right mnemonic, but the output I see is the following:</p>

<pre><code>Traceback (most recent call last):
  File "/home/rene/.local/bin/garecovery-cli", line 7, in &lt;module&gt;
    sys.exit(recoverycli.main(sys.argv))
  File "/home/rene/.local/lib/python2.7/site-packages/garecovery/recoverycli.py", line 86, in main
    recovery = get_recovery(clargs.args, mnemonic, seed)
  File "/home/rene/.local/lib/python2.7/site-packages/garecovery/recoverycli.py", line 61, in get_recovery
    return TwoOfTwo(mnemonic, seed, options.nlocktime_file)
  File "/home/rene/.local/lib/python2.7/site-packages/garecovery/two_of_two.py", line 25, in __init__
    zipdata = gacommon._unzip(self.compressed_zip, chaincode)
  File "/home/rene/.local/lib/python2.7/site-packages/gaservices/utils/gacommon.py", line 35, in _unzip
    all_data.extend(_unzip(_fernet_decrypt(key, encrypted), key))
  File "/home/rene/.local/lib/python2.7/site-packages/gaservices/utils/gacommon.py", line 11, in _fernet_decrypt
    assert wally.hmac_sha256(key[:16], data[:-32]) == data[-32:]
AssertionError
</code></pre>

<p>Can anybody help me?<br>
Many thanks in advance for any suggestions.</p>

<green-address>
Problem with Greenaddress 2of2 Recovery
Rene
# Problem with Greenaddress 2of2 Recovery

(Asked by: username_0 on 2020-02-27)

I'm encountering an unforeseen problem with 2o2 Recovery procedure.
I followed all the instruction at <https://github.com/greenaddress/garecovery>, I've correctly installed Ubuntu for Windows, I've correctly run through all the steps until:

```
$ garecovery-cli 2of2 --nlocktime-file /path/to/downloaded/nlocktimes.zip -o garecovery.csv

```

I've passed the correct `nlocktimes.zip`, I've entered the right mnemonic, but the output I see is the following:

```
Traceback (most recent call last):
  File "/home/username_0/.local/bin/garecovery-cli", line 7, in <module>
    sys.exit(recoverycli.main(sys.argv))
  File "/home/username_0/.local/lib/python2.7/site-packages/garecovery/recoverycli.py", line 86, in main
    recovery = get_recovery(clargs.args, mnemonic, seed)
  File "/home/username_0/.local/lib/python2.7/site-packages/garecovery/recoverycli.py", line 61, in get_recovery
    return TwoOfTwo(mnemonic, seed, options.nlocktime_file)
  File "/home/username_0/.local/lib/python2.7/site-packages/garecovery/two_of_two.py", line 25, in __init__
    zipdata = gacommon._unzip(self.compressed_zip, chaincode)
  File "/home/username_0/.local/lib/python2.7/site-packages/gaservices/utils/gacommon.py", line 35, in _unzip
    all_data.extend(_unzip(_fernet_decrypt(key, encrypted), key))
  File "/home/username_0/.local/lib/python2.7/site-packages/gaservices/utils/gacommon.py", line 11, in _fernet_decrypt
    assert wally.hmac_sha256(key[:16], data[:-32]) == data[-32:]
AssertionError

```

Can anybody help me?  
Many thanks in advance for any suggestions.

**Tags:** green-address


---

## 1 answers

### Answer by username_1 on 2020-02-28. Score: 1

It seems that you have entered a valid mnemonic, but it cannot decrypt the nlocktime.zip file. It could be that the mnemonic you entered is not the one associated with the wallet (which can be used to decrypt the nlocktime.zip).

I replicated your error by using another mnemonic in one of the examples (`garecovery/examples/example_2of2.sh`):

```
$ garecovery-cli --network=testnet --mnemonic-file garecovery/tests/test_data/mnemonic_2.txt 2of2 --nlocktime-file garecovery/tests/test_data/compressed_1.zip
Traceback (most recent call last):
  File "/tmp/recovery/venv/bin/garecovery-cli", line 7, in <module>
    sys.exit(recoverycli.main(sys.argv))
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/garecovery/recoverycli.py", line 86, in main
    recovery = get_recovery(clargs.args, mnemonic, seed)
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/garecovery/recoverycli.py", line 61, in get_recovery
    return TwoOfTwo(mnemonic, seed, options.nlocktime_file)
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/garecovery/two_of_two.py", line 25, in __init__
    zipdata = gacommon._unzip(self.compressed_zip, chaincode)
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/gaservices/utils/gacommon.py", line 35, in _unzip
    all_data.extend(_unzip(_fernet_decrypt(key, encrypted), key))
  File "/tmp/recovery/venv/local/lib/python2.7/site-packages/gaservices/utils/gacommon.py", line 11, in _fernet_decrypt
    assert wally.hmac_sha256(key[:16], data[:-32]) == data[-32:]
AssertionError

```

For sure, the error message will have to be improved.

If you need further assistance and you feel you may reveal too much information about your situation, please send an email to info@greenaddress.it.


---

