@peerbit/crypto
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -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; |
@@ -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
169756
3538
Updated@dao-xyz/borsh@^5.2.1
Updated@peerbit/cache@^2.0.5