@@ -42,9 +42,9 @@ KeysInterface manual_keysif(KeysInterface underlying_if) {
4242 @ Override public byte [] get_shutdown_pubkey () { return underlying_if .get_shutdown_pubkey (); }
4343
4444 @ Override
45- public ChannelKeys get_channel_keys (boolean inbound , long channel_value_satoshis ) {
46- ChannelKeys underlying_ck = underlying_if .get_channel_keys (inbound , channel_value_satoshis );
47- ChannelKeys . ChannelKeysInterface cki = new ChannelKeys . ChannelKeysInterface () {
45+ public Sign get_channel_signer (boolean inbound , long channel_value_satoshis ) {
46+ Sign underlying_ck = underlying_if .get_channel_signer (inbound , channel_value_satoshis );
47+ Sign . SignInterface si = new Sign . SignInterface () {
4848 @ Override
4949 public byte [] get_per_commitment_point (long idx ) {
5050 return underlying_ck .get_per_commitment_point (idx );
@@ -56,8 +56,8 @@ public byte[] release_commitment_secret(long idx) {
5656 }
5757
5858 @ Override
59- public TwoTuple < Long , Long > key_derivation_params () {
60- return new TwoTuple < Long , Long >(( long ) 0 , ( long ) 1 ) ;
59+ public byte [] channel_keys_id () {
60+ return new byte [ 32 ] ;
6161 }
6262
6363 @ Override
@@ -100,8 +100,8 @@ public byte[] write() {
100100 return underlying_ck .write ();
101101 }
102102 };
103- ChannelKeys resp = ChannelKeys .new_impl (cki , underlying_ck .get_pubkeys ());
104- must_free_objs .add (new WeakReference <>(cki ));
103+ Sign resp = Sign .new_impl (si , underlying_ck .get_pubkeys ());
104+ must_free_objs .add (new WeakReference <>(si ));
105105 must_free_objs .add (new WeakReference <>(resp ));
106106 must_free_objs .add (new WeakReference <>(underlying_ck ));
107107 return resp ;
@@ -113,7 +113,7 @@ public byte[] get_secure_random_bytes() {
113113 }
114114
115115 @ Override
116- public Result_ChannelKeysDecodeErrorZ read_chan_signer (byte [] reader ) {
116+ public Result_SignDecodeErrorZ read_chan_signer (byte [] reader ) {
117117 return underlying_if .read_chan_signer (reader );
118118 }
119119 });
@@ -228,7 +228,7 @@ public Result_NoneChannelMonitorUpdateErrZ update_persisted_channel(OutPoint id,
228228 for (byte i = 0 ; i < 32 ; i ++) {
229229 key_seed [i ] = (byte ) (i ^ seed );
230230 }
231- KeysManager keys = KeysManager .constructor_new (key_seed , LDKNetwork . LDKNetwork_Bitcoin , System .currentTimeMillis () / 1000 , (int ) (System .currentTimeMillis () * 1000 ));
231+ KeysManager keys = KeysManager .constructor_new (key_seed , System .currentTimeMillis () / 1000 , (int ) (System .currentTimeMillis () * 1000 ));
232232 if (use_km_wrapper ) {
233233 this .keys_interface = manual_keysif (keys .as_KeysInterface ());
234234 } else {
0 commit comments