make typescript bindings rely on wasm type codec methods
[ldk-java] / lab / minimal.h
1 typedef struct LDKPublicKey {
2    uint8_t compressed_form[33];
3 } LDKPublicKey;
4
5 typedef struct LDKMessageSendEvent_LDKSendAcceptChannel_Body {
6    struct LDKPublicKey node_id;
7 } LDKMessageSendEvent_LDKSendAcceptChannel_Body;
8
9 typedef struct LDKChannelKeys {
10    void *this_arg;
11    /**
12     * Gets the per-commitment point for a specific commitment number
13     *
14     * Note that the commitment number starts at (1 << 48) - 1 and counts backwards.
15     */
16    struct LDKPublicKey (*get_per_commitment_point)(const void *this_arg, uint64_t idx);
17    void (*free)(void *this_arg);
18 } LDKChannelKeys;
19
20 void ChannelDetails_set_remote_network_id(struct LDKPublicKey remote_public_key);