ldk-java
3 months agoRestore android builds to Debian bullseye v0.0.121.0
Matt Corallo [Sat, 27 Jan 2024 00:29:44 +0000 (00:29 +0000)]
Restore android builds to Debian bullseye

There was never a reason to upgrade, and while it doesn't matter,
I'm not upgrading locally yet.

3 months agoFix Java CI determinism validation to ignore C# output
Matt Corallo [Fri, 26 Jan 2024 21:36:03 +0000 (21:36 +0000)]
Fix Java CI determinism validation to ignore C# output

3 months agoUpload CI-built release artifacts to enable better debugging
Matt Corallo [Fri, 26 Jan 2024 19:59:57 +0000 (19:59 +0000)]
Upload CI-built release artifacts to enable better debugging

3 months agoUpdate CI references to LDK 0.0.121 branches
Matt Corallo [Tue, 23 Jan 2024 23:58:35 +0000 (23:58 +0000)]
Update CI references to LDK 0.0.121 branches

3 months ago[C#] Update tests to LDK 0.0.121 API
Matt Corallo [Wed, 24 Jan 2024 03:10:52 +0000 (03:10 +0000)]
[C#] Update tests to LDK 0.0.121 API

3 months ago[C#] Update auto-generated C# bindings
Matt Corallo [Wed, 24 Jan 2024 03:32:37 +0000 (03:32 +0000)]
[C#] Update auto-generated C# bindings

3 months ago[TS] Update tests for LDK 0.0.121 API
Matt Corallo [Wed, 24 Jan 2024 01:40:31 +0000 (01:40 +0000)]
[TS] Update tests for LDK 0.0.121 API

3 months ago[TS] Update auto-generated bindings
Matt Corallo [Wed, 24 Jan 2024 00:20:52 +0000 (00:20 +0000)]
[TS] Update auto-generated bindings

3 months ago[Java] Update batteries and tests to LDK 0.0.121
Matt Corallo [Tue, 23 Jan 2024 23:54:08 +0000 (23:54 +0000)]
[Java] Update batteries and tests to LDK 0.0.121

3 months ago[Java] Update auto-generated Java bindings to LDK 0.0.121
Matt Corallo [Tue, 23 Jan 2024 23:53:18 +0000 (23:53 +0000)]
[Java] Update auto-generated Java bindings to LDK 0.0.121

3 months agoDrop old manual implementations of the `Tx{In,Out}` getters
Matt Corallo [Tue, 23 Jan 2024 23:52:11 +0000 (23:52 +0000)]
Drop old manual implementations of the `Tx{In,Out}` getters

...as these are now provided directly upstream.

3 months agoAdd manual implementation of the new `WitnessVersion` struct
Matt Corallo [Tue, 23 Jan 2024 23:51:51 +0000 (23:51 +0000)]
Add manual implementation of the new `WitnessVersion` struct

3 months ago[TS] Add one additional call function semantic
Matt Corallo [Wed, 24 Jan 2024 01:31:39 +0000 (01:31 +0000)]
[TS] Add one additional call function semantic

3 months ago[C#] Free array buffers passed to C# after we've decoded them
Matt Corallo [Wed, 24 Jan 2024 03:17:10 +0000 (03:17 +0000)]
[C#] Free array buffers passed to C# after we've decoded them

3 months ago[C#] Use an instance of the callback delegate, not the fn itself
Matt Corallo [Tue, 23 Jan 2024 21:19:51 +0000 (21:19 +0000)]
[C#] Use an instance of the callback delegate, not the fn itself

When passing the callback delegate to C from C# during static init,
it appears (but only on Windows) this actually creates a C# class
instance for the delegate and passes that. However, that class
instance is eventually GC'd and our callbacks will start failing.

Instead, we create a static instance of of the delegate and pass
that to C.

3 months ago[C#] Check int lengths at compile time
Matt Corallo [Tue, 23 Jan 2024 21:17:20 +0000 (21:17 +0000)]
[C#] Check int lengths at compile time

...cause I was using the wrong headers trying to do debug builds
and it took much too long to debug.

3 months ago[Java] Fix libcode.version argument to not reference C#
Matt Corallo [Mon, 29 Jan 2024 05:24:51 +0000 (05:24 +0000)]
[Java] Fix libcode.version argument to not reference C#

This caused the generated shared library to export no symbols.

3 months ago[Java] Re-introduce glibc versioning checks, but only up to 2.34
Matt Corallo [Mon, 20 Nov 2023 23:05:58 +0000 (23:05 +0000)]
[Java] Re-introduce glibc versioning checks, but only up to 2.34

5 months agoMerge pull request #145 from TheBlueMatt/main
Matt Corallo [Fri, 17 Nov 2023 01:56:29 +0000 (01:56 +0000)]
Merge pull request #145 from TheBlueMatt/main

Switch C# builds to use `dotnet` on Fedora

5 months ago[C#] Upload the release zip as a CI artifact v0.0.118.0-alpha1
Matt Corallo [Thu, 16 Nov 2023 20:10:34 +0000 (20:10 +0000)]
[C#] Upload the release zip as a CI artifact

5 months agoTreat Fedora like Linux...because they think they're so special 🙄
Matt Corallo [Thu, 16 Nov 2023 04:33:04 +0000 (04:33 +0000)]
Treat Fedora like Linux...because they think they're so special ðŸ™„

5 months ago[C#] Update auto-generated bindings
Matt Corallo [Thu, 16 Nov 2023 19:23:34 +0000 (19:23 +0000)]
[C#] Update auto-generated bindings

5 months ago[C#] Add -lntdll to windows builds as rustc relies on it
Matt Corallo [Thu, 16 Nov 2023 04:22:00 +0000 (04:22 +0000)]
[C#] Add -lntdll to windows builds as rustc relies on it

5 months ago[C#] Fix compile warnings which have become errors in newer clang
Matt Corallo [Thu, 16 Nov 2023 04:21:13 +0000 (04:21 +0000)]
[C#] Fix compile warnings which have become errors in newer clang

5 months ago[C#] Switch to net6.0 for the "target", though unclear if it does much
Matt Corallo [Thu, 16 Nov 2023 23:42:34 +0000 (23:42 +0000)]
[C#] Switch to net6.0 for the "target", though unclear if it does much

5 months ago[C#] Switch to `dotnet` for releases
Matt Corallo [Thu, 16 Nov 2023 03:41:09 +0000 (03:41 +0000)]
[C#] Switch to `dotnet` for releases

Apparently some tooling doesn't like mono-compiled libraries, so
we just use `dotnet` for releases instead.

5 months ago[C#] Set the "build id" to a dummy value to improve determinism
Matt Corallo [Thu, 16 Nov 2023 22:21:36 +0000 (22:21 +0000)]
[C#] Set the "build id" to a dummy value to improve determinism

5 months ago[C#] Use faketime explicitly when compiling
Matt Corallo [Thu, 16 Nov 2023 21:36:10 +0000 (21:36 +0000)]
[C#] Use faketime explicitly when compiling

As targeting windows has a timestamp in the resulting dll, which we
need to be deterministic.

5 months agoMerge pull request #144 from TheBlueMatt/main
Matt Corallo [Sat, 11 Nov 2023 03:48:18 +0000 (03:48 +0000)]
Merge pull request #144 from TheBlueMatt/main

Update README to remove stale build instructions, mention C#

5 months agoUpdate README to remove stale build instructions, mention C#
Matt Corallo [Sat, 11 Nov 2023 03:47:39 +0000 (03:47 +0000)]
Update README to remove stale build instructions, mention C#

5 months agoMerge pull request #143 from TheBlueMatt/main
Matt Corallo [Sat, 11 Nov 2023 03:41:31 +0000 (03:41 +0000)]
Merge pull request #143 from TheBlueMatt/main

[C#] Set license URL to the deprecated marker, fix file path

5 months ago[C#] Set license URL to the deprecated marker, fix file path
Matt Corallo [Sat, 11 Nov 2023 03:27:57 +0000 (03:27 +0000)]
[C#] Set license URL to the deprecated marker, fix file path

Apparently this is required when using a LICENSE file for nuget.org

5 months agoMerge pull request #142 from TheBlueMatt/main
Matt Corallo [Sat, 11 Nov 2023 03:24:39 +0000 (03:24 +0000)]
Merge pull request #142 from TheBlueMatt/main

Initial 0.0.118.0-alpha0 C# Release

5 months ago[C#] Add CI testing for C#
Matt Corallo [Fri, 10 Nov 2023 01:30:32 +0000 (01:30 +0000)]
[C#] Add CI testing for C#

5 months ago[C#] Update build commands to match Java, add win and release bins
Matt Corallo [Thu, 9 Nov 2023 21:34:19 +0000 (21:34 +0000)]
[C#] Update build commands to match Java, add win and release bins

Also fixes a mono-csc argument error

5 months ago[C#] Add packaging artifacts to build a .nuget zip
Matt Corallo [Thu, 9 Nov 2023 17:53:23 +0000 (17:53 +0000)]
[C#] Add packaging artifacts to build a .nuget zip

5 months ago[C#] Add some initial C# tests
Matt Corallo [Tue, 7 Nov 2023 23:26:33 +0000 (23:26 +0000)]
[C#] Add some initial C# tests

5 months ago[C#] Update auto-generated C# bindings
Matt Corallo [Tue, 7 Nov 2023 23:33:37 +0000 (23:33 +0000)]
[C#] Update auto-generated C# bindings

5 months ago[C#] Drop reference to `assert` which makes building on Win hard
Matt Corallo [Thu, 9 Nov 2023 23:25:27 +0000 (23:25 +0000)]
[C#] Drop reference to `assert` which makes building on Win hard

5 months ago[C#] Remove version file which should not have been checked in
Matt Corallo [Thu, 9 Nov 2023 21:06:30 +0000 (21:06 +0000)]
[C#] Remove version file which should not have been checked in

5 months ago[C#] Add `-unsafe` to mono-csc and build C library
Matt Corallo [Tue, 7 Nov 2023 23:27:38 +0000 (23:27 +0000)]
[C#] Add `-unsafe` to mono-csc and build C library

5 months ago[C#] Drop marshalling generation
Matt Corallo [Tue, 7 Nov 2023 23:25:37 +0000 (23:25 +0000)]
[C#] Drop marshalling generation

Given we now do array/string conversion using the TypeScript logic
we no longer need to use the C# marshalling nonsense, which we
remove the remnants of here.

5 months ago[C#] Move C# side to a TypeScript-based array/string conversion
Matt Corallo [Tue, 7 Nov 2023 23:22:44 +0000 (23:22 +0000)]
[C#] Move C# side to a TypeScript-based array/string conversion

Using the marshallers properly will be a ton of additional work,
and its not clear we can do it in the C -> C# direction anyway.
Instead, we can trivially just use the TypeScript conversion logic
which converts everything through pointers anyway.

We'd previously done this on the C side of things, but here we do
it on the C# side as well.

5 months ago[C#] Rewrite trait impl based on typescript, not Java
Matt Corallo [Tue, 7 Nov 2023 18:30:10 +0000 (18:30 +0000)]
[C#] Rewrite trait impl based on typescript, not Java

C# doesn't let us pass arbitrary C# objects over the FFI as a
pointer, at least not easily, so instead we need something that
looks much more like what we do for TypeScript.

Here we rewrite the trait handling in C# based on the TypeScript
code and instead store weak pointers so we can reference trait
implementation instances by a single `long`.

5 months ago[C#] Move dont-use-reserved-words handling to a util method
Matt Corallo [Mon, 6 Nov 2023 22:34:46 +0000 (22:34 +0000)]
[C#] Move dont-use-reserved-words handling to a util method

5 months ago[C#] Correct a few things after converting C array handling to the TS one
Matt Corallo [Mon, 6 Nov 2023 22:34:29 +0000 (22:34 +0000)]
[C#] Correct a few things after converting C array handling to the TS one

5 months agoMerge pull request #141 from TheBlueMatt/main v0.0.118.0
Matt Corallo [Mon, 30 Oct 2023 23:22:13 +0000 (23:22 +0000)]
Merge pull request #141 from TheBlueMatt/main

LDK 0.0.118

5 months ago[Java] Check determinism of the leaktracking Linux bin as well
Matt Corallo [Mon, 30 Oct 2023 17:04:11 +0000 (17:04 +0000)]
[Java] Check determinism of the leaktracking Linux bin as well

6 months ago[Java] Give up on javadoc entirely as we just cannot require HTML
Matt Corallo [Sat, 28 Oct 2023 16:29:11 +0000 (16:29 +0000)]
[Java] Give up on javadoc entirely as we just cannot require HTML

6 months ago[Java] Drop legacy glibc support in release builds
Matt Corallo [Fri, 27 Oct 2023 16:19:37 +0000 (16:19 +0000)]
[Java] Drop legacy glibc support in release builds

6 months agoUpdate CI references to LDK 0.0.118
Matt Corallo [Tue, 24 Oct 2023 21:05:54 +0000 (21:05 +0000)]
Update CI references to LDK 0.0.118

6 months ago[TS] Update tests to LDK 0.0.118
Matt Corallo [Tue, 24 Oct 2023 21:04:51 +0000 (21:04 +0000)]
[TS] Update tests to LDK 0.0.118

6 months ago[TS] Update auto-generated bindings to LDK 0.0.118
Matt Corallo [Tue, 24 Oct 2023 21:04:32 +0000 (21:04 +0000)]
[TS] Update auto-generated bindings to LDK 0.0.118

6 months ago[Java] Update tests to LDK 0.0.118
Matt Corallo [Tue, 24 Oct 2023 17:48:45 +0000 (17:48 +0000)]
[Java] Update tests to LDK 0.0.118

6 months ago[Java] Build an `OnionMessenger` in CMC, connect ChanMan for offers
Matt Corallo [Tue, 24 Oct 2023 17:43:01 +0000 (17:43 +0000)]
[Java] Build an `OnionMessenger` in CMC, connect ChanMan for offers

6 months ago[Java] Update auto-generated bindings to LDK 0.0.118
Matt Corallo [Tue, 24 Oct 2023 17:41:55 +0000 (17:41 +0000)]
[Java] Update auto-generated bindings to LDK 0.0.118

6 months ago[TS + C#] Correct indentation in enum variant-fetching C code
Matt Corallo [Mon, 16 Oct 2023 02:46:09 +0000 (02:46 +0000)]
[TS + C#] Correct indentation in enum variant-fetching C code

6 months agoCorrect unitary enum C type variable name
Matt Corallo [Mon, 16 Oct 2023 02:40:00 +0000 (02:40 +0000)]
Correct unitary enum C type variable name

6 months agoMerge pull request #140 from TheBlueMatt/main
Matt Corallo [Tue, 10 Oct 2023 03:59:46 +0000 (03:59 +0000)]
Merge pull request #140 from TheBlueMatt/main

Add missing cargo env load for CI

6 months agoAdd missing cargo env load for CI
Matt Corallo [Tue, 10 Oct 2023 03:57:42 +0000 (03:57 +0000)]
Add missing cargo env load for CI

The 0.0.117 release determinism tests ended up using a version
different from what was merged by a CI update, which is re-added
here.

6 months agoMerge pull request #139 from TheBlueMatt/main
Matt Corallo [Tue, 10 Oct 2023 03:56:58 +0000 (03:56 +0000)]
Merge pull request #139 from TheBlueMatt/main

LDK 0.0.117

6 months agoPin memchr to meet MSRVs during builds
Matt Corallo [Fri, 6 Oct 2023 23:14:44 +0000 (23:14 +0000)]
Pin memchr to meet MSRVs during builds

6 months agoSimplify and make less scary the current status listing
Matt Corallo [Fri, 6 Oct 2023 00:36:19 +0000 (00:36 +0000)]
Simplify and make less scary the current status listing

Fixes #137.

6 months agoUpdate CI references to 0.0.117
Matt Corallo [Wed, 4 Oct 2023 03:11:14 +0000 (03:11 +0000)]
Update CI references to 0.0.117

6 months ago[TS] Update tests and node-net for new LDK 0.0.117 API
Matt Corallo [Fri, 6 Oct 2023 17:55:17 +0000 (17:55 +0000)]
[TS] Update tests and node-net for new LDK 0.0.117 API

6 months ago[TS] Update auto-generated bindings to 0.0.117
Matt Corallo [Wed, 4 Oct 2023 03:07:07 +0000 (03:07 +0000)]
[TS] Update auto-generated bindings to 0.0.117

6 months ago[TS] Correct trait construction with multiple supertraits
Matt Corallo [Fri, 6 Oct 2023 17:54:22 +0000 (17:54 +0000)]
[TS] Correct trait construction with multiple supertraits

6 months ago[TS] Handle from-hu string array conversions
Matt Corallo [Fri, 6 Oct 2023 17:53:30 +0000 (17:53 +0000)]
[TS] Handle from-hu string array conversions

6 months ago[TS] Don't null-check array conversions that aren't nullable
Matt Corallo [Fri, 6 Oct 2023 17:52:57 +0000 (17:52 +0000)]
[TS] Don't null-check array conversions that aren't nullable

These can generate a warning in calling methods that actually don't
allow null.

6 months ago[Java] Test random strings in invoice description to tests strings
Matt Corallo [Mon, 2 Oct 2023 17:25:41 +0000 (17:25 +0000)]
[Java] Test random strings in invoice description to tests strings

6 months ago[Java] Add a new HOPT form with a one level keys wrapper
Matt Corallo [Sun, 1 Oct 2023 22:35:16 +0000 (22:35 +0000)]
[Java] Add a new HOPT form with a one level keys wrapper

We had a user report this was broken, but it appears to be working
fine in this case here.

6 months ago[Java] Update batteries and tests to LDK 0.0.117
Matt Corallo [Sun, 1 Oct 2023 18:44:55 +0000 (18:44 +0000)]
[Java] Update batteries and tests to LDK 0.0.117

6 months ago[Java] Update auto-generated bindings to 0.0.117
Matt Corallo [Sun, 1 Oct 2023 18:43:50 +0000 (18:43 +0000)]
[Java] Update auto-generated bindings to 0.0.117

6 months ago[Java] Properly convert strings to/from Modified UTF-8
Matt Corallo [Mon, 2 Oct 2023 16:43:48 +0000 (16:43 +0000)]
[Java] Properly convert strings to/from Modified UTF-8

Fixes #136

6 months agoUpdate TransactionOutputs type aliasing rules in genbindings.sh
Matt Corallo [Sun, 1 Oct 2023 18:44:24 +0000 (18:44 +0000)]
Update TransactionOutputs type aliasing rules in genbindings.sh

6 months agoUpdate type listing for LDK 0.0.117 bindings and support doubles
Matt Corallo [Sun, 1 Oct 2023 18:41:49 +0000 (18:41 +0000)]
Update type listing for LDK 0.0.117 bindings and support doubles

7 months ago[C#] Drop java-specific crap and upgrade mono to something sane
Matt Corallo [Thu, 7 Sep 2023 16:20:54 +0000 (16:20 +0000)]
[C#] Drop java-specific crap and upgrade mono to something sane

7 months ago[C#] Make check_arr_len generic across array types
Matt Corallo [Thu, 7 Sep 2023 16:20:31 +0000 (16:20 +0000)]
[C#] Make check_arr_len generic across array types

7 months ago[C#] Update auto-generated files
Matt Corallo [Thu, 7 Sep 2023 16:20:15 +0000 (16:20 +0000)]
[C#] Update auto-generated files

7 months ago[C#] Add marshaling logic for array C# -> C conversion
Matt Corallo [Tue, 5 Sep 2023 03:17:09 +0000 (03:17 +0000)]
[C#] Add marshaling logic for array C# -> C conversion

7 months ago[C#] Use TypeScript Array/String layouts
Matt Corallo [Tue, 5 Sep 2023 03:00:37 +0000 (03:00 +0000)]
[C#] Use TypeScript Array/String layouts

C# doesn't have a way to pass arrays with a length, so we simply
re-use the TypeScript Array/String passing, which will be usable
with a CustomMarshaler on the C# side.

7 months ago[C#] Add support for TxIn, int64_t, and int16_t[]
Matt Corallo [Tue, 5 Sep 2023 00:14:36 +0000 (00:14 +0000)]
[C#] Add support for TxIn, int64_t, and int16_t[]

These were added at various points upstream and were never added to
C#

7 months ago[C#] Add missing handling of traits with supertraits of supertraits
Matt Corallo [Tue, 5 Sep 2023 00:13:34 +0000 (00:13 +0000)]
[C#] Add missing handling of traits with supertraits of supertraits

In 831ad69f1f65d26c224fe18003f1694806effa5a support was added for
handling traits with supertraits of supertraits, but the full patch
was not applied to the C# bindings, which is finished here.

8 months agoMerge pull request #135 from TheBlueMatt/main v0.0.116.0
Matt Corallo [Mon, 31 Jul 2023 23:46:10 +0000 (23:46 +0000)]
Merge pull request #135 from TheBlueMatt/main

0.0.116

8 months agoSwitch to playwright nightly to fix FF on Debian 12
Matt Corallo [Mon, 31 Jul 2023 18:02:20 +0000 (18:02 +0000)]
Switch to playwright nightly to fix FF on Debian 12

It appears when playwright officially added support for Debian 12
(https://github.com/microsoft/playwright/issues/23532) they also
started throwing an error when trying to run unsupported browsers
on it (which Firefox was in the latest release). This broke our CI
(even though Firefox ran just fine on Debian 12 for the past year).

Here we simply switch to playwright nightly, which we'll just stick
with for a while.

8 months agoPin quote and proc-macro2 in bindings builds in CI to meet MSRV
Matt Corallo [Mon, 31 Jul 2023 16:38:15 +0000 (16:38 +0000)]
Pin quote and proc-macro2 in bindings builds in CI to meet MSRV

8 months agoUpdate CI references to 0.0.116
Matt Corallo [Sun, 30 Jul 2023 04:51:49 +0000 (04:51 +0000)]
Update CI references to 0.0.116

8 months ago[TS] Update tests to 0.0.116 API
Matt Corallo [Sun, 30 Jul 2023 04:48:17 +0000 (04:48 +0000)]
[TS] Update tests to 0.0.116 API

8 months ago[TS] Update auto-generated bindings to 0.0.116
Matt Corallo [Fri, 28 Jul 2023 06:33:04 +0000 (06:33 +0000)]
[TS] Update auto-generated bindings to 0.0.116

9 months ago[TS] Add support for one additional call semantic which is now used
Matt Corallo [Fri, 28 Jul 2023 06:36:17 +0000 (06:36 +0000)]
[TS] Add support for one additional call semantic which is now used

9 months ago[Java] Update test and manual constructor to 0.0.116 API
Matt Corallo [Thu, 27 Jul 2023 20:37:42 +0000 (20:37 +0000)]
[Java] Update test and manual constructor to 0.0.116 API

9 months ago[Java] Update auto-generated Java bindings for 0.0.116
Matt Corallo [Thu, 27 Jul 2023 20:35:59 +0000 (20:35 +0000)]
[Java] Update auto-generated Java bindings for 0.0.116

9 months agoAdd handling for signed int64 type
Matt Corallo [Thu, 27 Jul 2023 20:34:49 +0000 (20:34 +0000)]
Add handling for signed int64 type

9 months agoAdd handling for manual `TxIn` and stop trying to clone `Witness`
Matt Corallo [Thu, 27 Jul 2023 20:34:12 +0000 (20:34 +0000)]
Add handling for manual `TxIn` and stop trying to clone `Witness`

10 months agoMerge pull request #134 from TheBlueMatt/main v0.0.115.1
Matt Corallo [Mon, 5 Jun 2023 02:36:54 +0000 (02:36 +0000)]
Merge pull request #134 from TheBlueMatt/main

0.0.115.1

10 months ago[TS] Don't check determinism on the WASM file which is now in bins
Matt Corallo [Sun, 4 Jun 2023 17:00:27 +0000 (17:00 +0000)]
[TS] Don't check determinism on the WASM file which is now in bins

10 months agoDrop upstream clang check as there isn't any reason anymore
Matt Corallo [Sun, 4 Jun 2023 00:44:21 +0000 (00:44 +0000)]
Drop upstream clang check as there isn't any reason anymore

10 months agoDon't pass lto arguments to Apple clang (which barfs on them)
Matt Corallo [Sun, 4 Jun 2023 02:00:14 +0000 (02:00 +0000)]
Don't pass lto arguments to Apple clang (which barfs on them)

10 months agoInstall `rust-src` on macOS since its now required for C bindings
Matt Corallo [Sat, 3 Jun 2023 17:52:59 +0000 (17:52 +0000)]
Install `rust-src` on macOS since its now required for C bindings

10 months agoChange set of MacOS builders in CI as Github dropped 10.15
Matt Corallo [Sat, 3 Jun 2023 02:17:30 +0000 (02:17 +0000)]
Change set of MacOS builders in CI as Github dropped 10.15