@dxos/hypercore 0.1.53-main.acf3e0d → 0.1.53-main.af8f93b

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.
@@ -11284,8 +11284,9 @@ var import_hypercore2 = __toESM(require_hypercore());
11284
11284
  import assert from "@dxos/node-std/assert";
11285
11285
  import { callbackify } from "@dxos/node-std/util";
11286
11286
  import { verifySignature } from "@dxos/crypto";
11287
+ import { arrayToBuffer } from "@dxos/util";
11287
11288
  var createCodecEncoding = (codec, opts) => ({
11288
- encode: (obj) => Buffer.from(codec.encode(obj, opts)),
11289
+ encode: (obj) => arrayToBuffer(codec.encode(obj, opts)),
11289
11290
  decode: (buffer) => codec.decode(buffer, opts)
11290
11291
  });
11291
11292
  var createCrypto = (signer, publicKey) => {
@@ -11298,7 +11299,7 @@ var createCrypto = (signer, publicKey) => {
11298
11299
  cb(err, null);
11299
11300
  return;
11300
11301
  }
11301
- cb(null, Buffer.from(result));
11302
+ cb(null, arrayToBuffer(result));
11302
11303
  });
11303
11304
  },
11304
11305
  verify: async (message, signature, key, cb) => {