New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@peerbit/crypto

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/crypto - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

1

lib/esm/key.d.ts

@@ -17,2 +17,3 @@ import { PeerId } from "@libp2p/interface/peer-id";

export declare abstract class PublicSignKey implements Key {
private _bytes;
get bytes(): Uint8Array;

@@ -19,0 +20,0 @@ hashcode(): string;

3

lib/esm/key.js

@@ -23,4 +23,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

export class PublicSignKey {
_bytes;
get bytes() {
return serialize(this);
return this._bytes || this._bytes || serialize(this);
}

@@ -27,0 +28,0 @@ hashcode() {

{
"name": "@peerbit/crypto",
"version": "2.1.4",
"version": "2.1.5",
"description": "Crypto fn",

@@ -46,7 +46,7 @@ "type": "module",

"dependencies": {
"@dao-xyz/borsh": "^5.1.8",
"@dao-xyz/borsh": "^5.2.1",
"@ethersproject/wallet": "^5.7.0",
"@libp2p/crypto": "^3.0.3",
"@libp2p/peer-id": "^4.0.3",
"@peerbit/cache": "^2.0.4",
"@peerbit/cache": "^2.0.5",
"@peerbit/uint8arrays": "3.0.1",

@@ -56,3 +56,3 @@ "@stablelib/sha256": "^1.0.1",

},
"gitHead": "2539f936bbe572f34a297bc8275fcd059105fc2a"
"gitHead": "180a8c4e6ab6f713134c949d2d7ce9fc5648a4ce"
}

@@ -1,2 +0,2 @@

import { field, serialize } from "@dao-xyz/borsh";
import { BinaryWriter, field, serialize, serializer } from "@dao-xyz/borsh";
import { sha256Base64Sync } from "./hash.js";

@@ -32,4 +32,5 @@ import { PeerId } from "@libp2p/interface/peer-id";

export abstract class PublicSignKey implements Key {
private _bytes: Uint8Array;
get bytes(): Uint8Array {
return serialize(this);
return this._bytes || this._bytes || serialize(this);
}

@@ -36,0 +37,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc