Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found nonce but error broadcasting transaction "bad-goosig-disabled" #131

Open
samsondav opened this issue Mar 29, 2021 · 5 comments
Open

Comments

@samsondav
Copy link

I am following the instructions listed here:

https://handshake.org/claim/

And I have a nonce found in the tree:

Attempting to create proof.
This may take a bit.
Decrypting nonce...
Found nonce!
Rebuilding tree...
Finding merkle leaf for reward 0...

2 keys found in your subtree:
  <REDACTED>
  <REDACTED> (current)

Creating proof from leaf XXXXX:Y...
Signing proof XXXXX:Y...

It generates the following hex:

Base64 (pass this to $ hsd-rpc sendrawairdrop):
jMgAABJLlRrbd/10fc3MkPh32Y8OQCcysnP2bUhR+6XzakHKLJGuK3kgyCOEfJ8XPT1IJtvZZL9zaTC5x6QxqQIqfhSnqy3guOtwuMWse1KDXTwQOFWvi3wPGAvhzUKWWmRf86KAuflDBw39LegAii8bo6VeRLyUNRuWelkjyeeTyQNMOC4NT3Y8dfhc1r5DbS+8rtr48NKitrrYlvTZboT5Mm44l/9ifLxdRj3KDzLXUZgMu5T6JHVlSUzEaYE6pfVYSA0JC1hIwCaURuRmwo8bUMcVd+i5HXHvU/xOb7i7fQdrrmp7cK+273cJiMLxPuS62m5BEQU4uOARuu811MWFMVysjgXjuM4HQ0HlLzgMsozEoGgzkBqw2PnICoiMjDSL9wvvRzShE+/Wy55m3Il/4h93+YgX7PdFW1ZqvoSbdzgdtEsW4dWyqA+Lbiokokbycf9CEwhbwgjMU4gI5pvn2sFSykwzqfWIIGHdY0P5cFMLLNZvmkQxJD8vUUWZ5zZdi8LIifSZrsLzEaU1poEjfs+1Um+MsjuMfG3KnEh/Fjs8dqmjO79obCuLAcRAKxKCBJjGPUcPfR/q2aYU5UgH72V8xZS28j0PS8GKjBXjbt1Xk/QAoX0BItMh27cO5C5rhrnHbR2NfFQ6cz7cc5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zhceTxrVaxQRIs1Z8YbtD7CeQA=

But when I try to transmit, my local node gives the following errors:

[error] (node) Verification failure: bad-goosig-disabled (code=invalid score=0 hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b)
    at Mempool.insertAirdrop (/Users/sam/code/handshake/hsd-2.3.0/hsd/lib/mempool/mempool.js:1272:15)
    at Mempool._addAirdrop (/Users/sam/code/handshake/hsd-2.3.0/hsd/lib/mempool/mempool.js:1234:16)
    at Mempool.addAirdrop (/Users/sam/code/handshake/hsd-2.3.0/hsd/lib/mempool/mempool.js:1215:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async FullNode.sendAirdrop (/Users/sam/code/handshake/hsd-2.3.0/hsd/lib/node/fullnode.js:412:7)
    at async FullNode.relayAirdrop (/Users/sam/code/handshake/hsd-2.3.0/hsd/lib/node/fullnode.js:433:7)
[warning] (node) Verification failed for proof: 4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.
[warning] (node) Attempting to broadcast anyway...
[warning] (net) Received reject (54.184.104.94:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.
[warning] (net) Received reject (139.162.183.168:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.
[warning] (net) Received reject (45.79.134.225:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.
[warning] (net) Received reject (64.227.15.172:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.
[warning] (net) Received reject (165.22.151.242:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.
[warning] (net) Received reject (47.240.14.207:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.
[warning] (net) Received reject (160.16.237.116:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.
[warning] (net) Received reject (172.104.214.189:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=4abd5d62bfc7ac9fe83c4a3a34707a6d6ecfb6d2bd6f75da77c16dee9c700b6b.

What have I done wrong?

I am using:

  • hsd-2.3.0
  • hs-airdrop-0.10.0
  • hs-client-0.0.9
@samsondav
Copy link
Author

I was able to fix this with some help from devs in the telegram group. Apparently Goosig was disabled on day 395.

I had to recreate my airdrop base64 with the --bare option like so:

./bin/hs-airdrop --bare ~/.ssh/id_rsa hs1XXX

This time it worked. It is noted that this exposes your raw public key.

@pinheadmz
Copy link
Member

Thanks for the update! I'm going to reopen this as a reminder we need to update the docs :-)

@pinheadmz pinheadmz reopened this Mar 29, 2021
@strager
Copy link

strager commented Apr 3, 2021

@samsondav's workaround worked for me!

Here's what was in hsd's logs before using --bare:

[error] (node) Verification failure: bad-goosig-disabled (code=invalid score=0 hash=088f2f8e902147c4d755bc89f0ff2c3918e462dea401ecd44abded9c8074563f)
    at Mempool.insertAirdrop (/Users/strager/Projects/handshake/hsd-2.4.0/hsd/lib/mempool/mempool.js:1290:15)
    at Mempool._addAirdrop (/Users/strager/Projects/handshake/hsd-2.4.0/hsd/lib/mempool/mempool.js:1252:16)
    at Mempool.addAirdrop (/Users/strager/Projects/handshake/hsd-2.4.0/hsd/lib/mempool/mempool.js:1233:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
    at async FullNode.sendAirdrop (/Users/strager/Projects/handshake/hsd-2.4.0/hsd/lib/node/fullnode.js:425:7)
    at async FullNode.relayAirdrop (/Users/strager/Projects/handshake/hsd-2.4.0/hsd/lib/node/fullnode.js:446:7)
[warning] (node) Verification failed for proof: 088f2f8e902147c4d755bc89f0ff2c3918e462dea401ecd44abded9c8074563f.
[warning] (node) Attempting to broadcast anyway...
[warning] (net) Received reject (160.16.237.116:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=088f2f8e902147c4d755bc89f0ff2c3918e462dea401ecd44abded9c8074563f.
[warning] (net) Received reject (165.22.151.242:12038): msg=AIRDROP code=invalid reason=bad-goosig-disabled hash=088f2f8e902147c4d755bc89f0ff2c3918e462dea401ecd44abded9c8074563f.

after using --bare:

[info] (wallet) Incoming transaction for 1 wallets in WalletDB (3e2191a769dc4f2acd0daacf433df21f2adb1e48d33b41b2b5b631989cea5880).
[info] (wallet) Added transaction to wallet in WalletDB: primary (0).
[info] (wallet) Connected WalletDB block 0000000000000002c931808dbcfa058239091332fb4e0b8aeb356eb2ba3f2d95 (tx=1).

@tunnckoCore
Copy link

tunnckoCore commented Aug 21, 2021

Nope. Even with --bare, plus I'm not using the ssh, I use the pgp keys.

With or without --bare i'm getting the same base64 string, but different hash when sendrawairdrop.

My node is fully synced.

edit: but hey, yea, i have this same thing

[info] (wallet) Incoming transaction for 1 wallets in WalletDB (cbc44ceaaa98c7c1e25e69f16be6bf176f765780e5430eca12267a7c7c350c18).
[info] (wallet) Added transaction to wallet in WalletDB: primary (0).
[info] (wallet) Connected WalletDB block 00000000000000015d7ee21eb94317e5f4cc9407496e4462143b67c44c32f311 (tx=1).
[info] (chain) Block 00000000000000015d7ee21eb94317e5f4cc9407496e4462143b67c44c32f311 (81905) added to chain (size=95055 txs=38 time=366.895134).

edit2: yep it propagated and they came 🎉

@jurikarta
Copy link

Good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants