smoldot 2.0.7 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,7 +120,6 @@ export interface ConnectionConfig {
120
120
  onMultistreamHandshakeInfo: (info: {
121
121
  handshake: 'webrtc';
122
122
  localTlsCertificateSha256: Uint8Array;
123
- remoteTlsCertificateSha256: Uint8Array;
124
123
  }) => void;
125
124
  /**
126
125
  * Callback called when the connection transitions to the `Reset` state.
@@ -106,7 +106,6 @@ export interface Instance {
106
106
  connectionMultiStreamSetHandshakeInfo: (connectionId: number, info: {
107
107
  handshake: 'webrtc';
108
108
  localTlsCertificateSha256: Uint8Array;
109
- remoteTlsCertificateSha256: Uint8Array;
110
109
  }) => void;
111
110
  connectionReset: (connectionId: number, message: string) => void;
112
111
  streamWritableBytes: (connectionId: number, numExtra: number, streamId?: number) => void;
@@ -404,10 +404,9 @@ export function startLocalInstance(config, wasmModule, eventCallback) {
404
404
  connectionMultiStreamSetHandshakeInfo: (connectionId, info) => {
405
405
  if (!state.instance)
406
406
  return;
407
- const handshakeTy = new Uint8Array(1 + info.localTlsCertificateSha256.length + info.remoteTlsCertificateSha256.length);
407
+ const handshakeTy = new Uint8Array(1 + info.localTlsCertificateSha256.length);
408
408
  buffer.writeUInt8(handshakeTy, 0, 0);
409
409
  handshakeTy.set(info.localTlsCertificateSha256, 1);
410
- handshakeTy.set(info.remoteTlsCertificateSha256, 1 + info.localTlsCertificateSha256.length);
411
410
  state.bufferIndices[0] = handshakeTy;
412
411
  state.instance.exports.connection_multi_stream_set_handshake_info(connectionId, 0);
413
412
  delete state.bufferIndices[0];
@@ -373,7 +373,6 @@ function connect(config) {
373
373
  config.onMultistreamHandshakeInfo({
374
374
  handshake: 'webrtc',
375
375
  localTlsCertificateSha256,
376
- remoteTlsCertificateSha256,
377
376
  });
378
377
  }));
379
378
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoldot",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "Light client that connects to Polkadot and Substrate-based blockchains",
5
5
  "contributors": [
6
6
  "Parity Technologies <admin@parity.io>",