Why Nostr? What is Njump?
2022-08-07 19:47:16
in reply to

more-speech-86159 on Nostr: As the saying goes, "don't roll your own crypto". Best go with a well-known, ...

As the saying goes, "don't roll your own crypto". Best go with a well-known, well-tested library.

AFAIK all the cryptography you need is in the secp256k1 library. There are implementations (or bindings) for most languages.

For Java, you can have a look at how bitcoinj[1] does it. A perhaps more up-to-date and better maintained project is Sparrow Wallet, which has its crypto bindings in a subproject called drongo[2].

[1]: https://github.com/bitcoinj/bitcoinj
[2]: https://github.com/sparrowwallet/drongo

>---------------
>Thanks. What's that 2 for in line 584. It was in the javascript too.
Author Public Key
npub13sj090ma7vaw5rc9wpsky9mrg0e58zwetjjkjmd6rsnk3zrltphspy4uh9