lnsocket

A minimal C library for connecting to the lightning network
git clone git://jb55.com/lnsocket
Log | Files | Refs | Submodules | README | LICENSE

commit 603bc30e1b191b21433752320d67337a3bbcc545
parent 65a30e34c772b2ae59ba128d5a86d69251a8ae71
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 18 Mar 2022 17:10:13 -0700

readme updates

Diffstat:
MREADME.md | 27++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)

diff --git a/README.md b/README.md @@ -39,30 +39,30 @@ This will build `lnsocket.a`, `libsodium.a` and `libsecp256k1.a` under This will build `lnsocket.js` and `lnsocket.wasm` in `target/js` so that you can connect to the lightning network from your browser via websockets. See -`examples/websockets.js`[^1] for a demo. +[examples/websockets.js](examples/websockets.js) for a demo. ### NodeJS $ npm install --save lnsocket -See `examples/node.js`[^2] +See [examples/node.js](examples/node.js) ### Go -There is a Go version of lnsocket written using lnd's brontide[^6]. +There is a Go version of lnsocket written using lnd's brontide[^3]. You can import it via: import "github.com/jb55/lnsocket/go" -It is currently used in fiatjaf's makeinvoice go library[^7] if you want an +It is currently used in fiatjaf's makeinvoice go library[^4] if you want an example of its usage. ## C Examples -* See `test.c`[^3] for a ping/pong example +* See [test.c](test.c) for a ping/pong example -* See `lnrpc.c`[^4] for an RPC example +* See [lnrpc.c](lnrpc.c) for an RPC example ## Contributing @@ -72,14 +72,11 @@ Send patches to `jb55@jb55.com` $ git config sendemail.to 'William Casarin <jb55@jb55.com>' $ git send-email --annotate HEAD^ -See git-send-email.io[^4] for configuring your mailer +See git-send-email.io[^1] for configuring your mailer -You can open a PR on github[^5] as well +You can open a PR on github[^2] as well -[^1]: examples/websockets.js -[^2]: examples/node.js -[^3]: test.c -[^4]: https://git-send-email.io/ -[^5]: https://github.com/jb55/lnsocket -[^6]: https://github.com/lightningnetwork/lnd/tree/master/brontide -[^7]: https://github.com/fiatjaf/makeinvoice/blob/d523b35084af04883f94323dc11a50c2a99d253d/makeinvoice.go#L366 +[^1]: https://git-send-email.io/ +[^2]: https://github.com/jb55/lnsocket +[^3]: https://github.com/lightningnetwork/lnd/tree/master/brontide +[^4]: https://github.com/fiatjaf/makeinvoice/blob/d523b35084af04883f94323dc11a50c2a99d253d/makeinvoice.go#L366