Skip to content

Commit 526cf48

Browse files
committed
Update auto-generated bindings
1 parent ecd28c5 commit 526cf48

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

lightning-c-bindings/include/lightning.h

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,27 @@ typedef struct LDKStr {
467467
bool chars_is_owned;
468468
} LDKStr;
469469

470+
/**
471+
* Represents a scalar value between zero and the secp256k1 curve order, in big endian.
472+
*/
473+
typedef struct LDKBigEndianScalar {
474+
/**
475+
* The bytes of the scalar value.
476+
*/
477+
uint8_t big_endian_bytes[32];
478+
} LDKBigEndianScalar;
479+
480+
/**
481+
* Arbitrary 32 bytes, which could represent one of a few different things. You probably want to
482+
* look up the corresponding function in rust-lightning's docs.
483+
*/
484+
typedef struct LDKThirtyTwoBytes {
485+
/**
486+
* The thirty-two bytes
487+
*/
488+
uint8_t data[32];
489+
} LDKThirtyTwoBytes;
490+
470491
/**
471492
* Represents an error returned from the bech32 library during validation of some bech32 data
472493
*/
@@ -2437,17 +2458,6 @@ typedef struct LDKCResult_RouteLightningErrorZ {
24372458
bool result_ok;
24382459
} LDKCResult_RouteLightningErrorZ;
24392460

2440-
/**
2441-
* Arbitrary 32 bytes, which could represent one of a few different things. You probably want to
2442-
* look up the corresponding function in rust-lightning's docs.
2443-
*/
2444-
typedef struct LDKThirtyTwoBytes {
2445-
/**
2446-
* The thirty-two bytes
2447-
*/
2448-
uint8_t data[32];
2449-
} LDKThirtyTwoBytes;
2450-
24512461
/**
24522462
* Some information provided on receipt of payment depends on whether the payment received is a
24532463
* spontaneous payment or a \"conventional\" lightning payment that's paying an invoice.
@@ -6407,16 +6417,6 @@ typedef struct LDKCResult_SecretKeyNoneZ {
64076417
bool result_ok;
64086418
} LDKCResult_SecretKeyNoneZ;
64096419

6410-
/**
6411-
* Represents a scalar value between zero and the secp256k1 curve order, in big endian.
6412-
*/
6413-
typedef struct LDKBigEndianScalar {
6414-
/**
6415-
* The bytes of the scalar value.
6416-
*/
6417-
uint8_t big_endian_bytes[32];
6418-
} LDKBigEndianScalar;
6419-
64206420
/**
64216421
* An enum which can either contain a crate::c_types::BigEndianScalar or not
64226422
*/
@@ -13896,6 +13896,11 @@ struct LDKStr _ldk_get_compiled_version(void);
1389613896

1389713897
struct LDKStr _ldk_c_bindings_get_compiled_version(void);
1389813898

13899+
/**
13900+
* Convenience function for constructing a new BigEndianScalar
13901+
*/
13902+
struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
13903+
1389913904
/**
1390013905
* Creates a new Bech32Error which has the same data as `orig`
1390113906
*/

0 commit comments

Comments
 (0)