@dxos/hypercore 0.1.53-main.972e6e3 → 0.1.53-main.acf3e0d

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