- public void set_commitment_seed(InMemoryChannelKeys this_ptr, byte[] val) {
- bindings.InMemoryChannelKeys_set_commitment_seed(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ public static InMemoryChannelKeys constructor_new(byte[] funding_key, byte[] revocation_base_key, byte[] payment_key, byte[] delayed_payment_base_key, byte[] htlc_base_key, byte[] commitment_seed, long channel_value_satoshis, TwoTuple<Long, Long> key_derivation_params) {
+ long ret = bindings.InMemoryChannelKeys_new(funding_key, revocation_base_key, payment_key, delayed_payment_base_key, htlc_base_key, commitment_seed, channel_value_satoshis, bindings.C2Tuple_u64u64Z_new(key_derivation_params.a, key_derivation_params.b));
+ InMemoryChannelKeys ret_hu_conv = new InMemoryChannelKeys(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;