swarm-pubsub 0.1.2 → 0.1.3

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.
package/dist/index.js CHANGED
@@ -1954,9 +1954,7 @@ function Lr(e, t) {
1954
1954
  }
1955
1955
  function Rr(e, t) {
1956
1956
  let n = new Uint8Array(wr);
1957
- n[0] = e[64] - 27, n.set(e.subarray(0, 64), 1);
1958
- let r = Un.recoverPublicKey(n, Ir(t), { prehash: !1 });
1959
- return dr(Un.Point.fromBytes(r).toBytes(!1).subarray(1)).slice(-20);
1957
+ return n[0] = e[64] - 27, n.set(e.subarray(0, 64), 1), dr(Un.Signature.fromBytes(n, "recovered").recoverPublicKey(Ir(t)).toBytes(!1).subarray(1)).slice(-20);
1960
1958
  }
1961
1959
  function zr(e) {
1962
1960
  Ar.fill(0, 0, Math.min(kr, e.length + Dr)), Ar.set(e);
package/dist/node.js CHANGED
@@ -3323,9 +3323,7 @@ function ii(e, t) {
3323
3323
  }
3324
3324
  function ai(e, t) {
3325
3325
  let n = new Uint8Array(Gr);
3326
- n[0] = e[64] - 27, n.set(e.subarray(0, 64), 1);
3327
- let r = ur.recoverPublicKey(n, ri(t), { prehash: !1 });
3328
- return Mr(ur.Point.fromBytes(r).toBytes(!1).subarray(1)).slice(-20);
3326
+ return n[0] = e[64] - 27, n.set(e.subarray(0, 64), 1), Mr(ur.Signature.fromBytes(n, "recovered").recoverPublicKey(ri(t)).toBytes(!1).subarray(1)).slice(-20);
3329
3327
  }
3330
3328
  function oi(e) {
3331
3329
  Zr.fill(0, 0, Math.min(Xr, e.length + Jr)), Zr.set(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swarm-pubsub",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Swarm pubsub for browsers and Node.js: connect to a broker node over libp2p, no local Bee node required",
5
5
  "keywords": [
6
6
  "swarm",