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

failed to encrypt: salt must be 32 bytes on nak bunker #30

Open
nanikamado opened this issue Aug 19, 2024 · 1 comment
Open

failed to encrypt: salt must be 32 bytes on nak bunker #30

nanikamado opened this issue Aug 19, 2024 · 1 comment

Comments

@nanikamado
Copy link

I started nak bunker --sec 1 relay.damus.io, logged in to coracle.social using the bunker URL, and tried to send a NIP-17 DM, but couldn't.

The log was like this:

- got request from 'ec41458f7bdde8190818c41307f467096b99bb0182bb3982702e5d6cf45f44d0': {
    "id": "5376369500923434",
    "method": "nip44_encrypt",
    "params": [
      "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
      "{\"content\":\"test1\",\"kind\":14,\"created_at\":1724083587,\"tags\":[[\"p\",\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"wss://nostr.fmt.wiz.biz/\",\"one\"]],\"pubkey\":\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"id\":\"8dbaf3f55a59236f638745009f1a5ae483ef95176f4331c02f56338197e69e26\"}"
    ]
  }
~ responding with {
    "id": "5376369500923434",
    "error": "failed to encrypt: salt must be 32 bytes"
  }
* sent response through wss://relay.damus.io

Is this a problem with nak or coracle?

@fiatjaf
Copy link
Owner

fiatjaf commented Aug 19, 2024

Probably nak. I had never tested the nip44 integration. Thank you for reporting.

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

No branches or pull requests

2 participants