pitiunited on Nostr: I'm trying to make use of this Go library to decode lightning invoices. When I run ...
I'm trying to make use of this Go library
https://github.com/nbd-wtf/ln-decodepay to decode lightning invoices.
When I run "go run ." it gives me the following errors:
github.com/lightningnetwork/lnd/keychain
../../go/pkg/mod/github.com/lightningnetwork/lnd@v0.18.3-beta.rc3/keychain/btcwallet.go:451:9: not enough return values
have ([]byte)
want ([]byte, error)
../../go/pkg/mod/github.com/lightningnetwork/lnd@v0.18.3-beta.rc3/keychain/signer.go:88:9: not enough return values
have ([]byte)
want ([]byte, error)
I'm following the example from the repo. What could be the issue?
CC
fiatjaf (npub180c…h6w6)Published at
2024-10-02 13:52:16Event JSON
{
"id": "038d01c07b32932dc616d07c50333637f18a9771515a9955c73294b5361443ae",
"pubkey": "f1f9b0996d4ff1bf75e79e4cc8577c89eb633e68415c7faf74cf17a07bf80bd8",
"created_at": 1727877136,
"kind": 1,
"tags": [
[
"t",
"asknostr"
],
[
"client",
"Swarmstr"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "I'm trying to make use of this Go library https://github.com/nbd-wtf/ln-decodepay to decode lightning invoices. \n\nWhen I run \"go run .\" it gives me the following errors:\n\ngithub.com/lightningnetwork/lnd/keychain\n../../go/pkg/mod/github.com/lightningnetwork/lnd@v0.18.3-beta.rc3/keychain/btcwallet.go:451:9: not enough return values\n\thave ([]byte)\n\twant ([]byte, error)\n../../go/pkg/mod/github.com/lightningnetwork/lnd@v0.18.3-beta.rc3/keychain/signer.go:88:9: not enough return values\n\thave ([]byte)\n\twant ([]byte, error)\n\nI'm following the example from the repo. What could be the issue?\n\nCC nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6",
"sig": "e4466963feb5f74815e1fc238b6954ebc38ae40b541deb72497ae4f410603415f683c5c13bae7a8dd18053345327187fdf79bbf8dd3664b04804e00ff3bd79a5"
}