arbundles
Advanced tools
Comparing version 0.6.19 to 0.6.20
{ | ||
"name": "arbundles", | ||
"version": "0.6.19", | ||
"version": "0.6.20", | ||
"description": "Arweave bundling library", | ||
@@ -51,2 +51,4 @@ "author": "Josh Benaron <joshbenaron@gmail.com>", | ||
"ts-jest": "~27.0.2", | ||
"ts-node": "^10.8.1", | ||
"tslib": "^2.4.0", | ||
"tsutils": "~3.21.0", | ||
@@ -56,2 +58,3 @@ "typescript": "~4.3.2" | ||
"dependencies": { | ||
"@noble/ed25519": "^1.6.1", | ||
"@randlabs/myalgo-connect": "^1.1.2", | ||
@@ -69,9 +72,6 @@ "@solana/wallet-adapter-base": "^0.9.2", | ||
"multistream": "^4.1.0", | ||
"noble-ed25519": "^1.2.6", | ||
"process": "^0.11.10", | ||
"secp256k1": "^4.0.2", | ||
"tmp-promise": "^3.0.2", | ||
"ts-node": "^10.5.0", | ||
"tslib": "^2.3.0" | ||
"tmp-promise": "^3.0.2" | ||
} | ||
} |
@@ -47,2 +47,3 @@ /// <reference types="node" /> | ||
sign(signer: Signer): Promise<Buffer>; | ||
setSignature(signature: Buffer): Promise<void>; | ||
isSigned(): boolean; | ||
@@ -49,0 +50,0 @@ /** |
@@ -36,2 +36,3 @@ "use strict"; | ||
const crypto = __importStar(require("crypto")); | ||
const arweave_1 = __importDefault(require("arweave")); | ||
exports.MIN_BINARY_SIZE = 80; | ||
@@ -166,2 +167,6 @@ class DataItem { | ||
} | ||
async setSignature(signature) { | ||
this.binary.set(signature, 2); | ||
this._id = buffer_1.Buffer.from(await arweave_1.default.crypto.hash(signature)); | ||
} | ||
isSigned() { | ||
@@ -168,0 +173,0 @@ var _a, _b; |
@@ -25,3 +25,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ed25519 = __importStar(require("noble-ed25519")); | ||
const ed25519 = __importStar(require("@noble/ed25519")); | ||
const base64url_1 = __importDefault(require("base64url")); | ||
@@ -28,0 +28,0 @@ const constants_1 = require("../../constants"); |
@@ -26,3 +26,3 @@ "use strict"; | ||
const base64url_1 = __importDefault(require("base64url")); | ||
const ed25519 = __importStar(require("noble-ed25519")); | ||
const ed25519 = __importStar(require("@noble/ed25519")); | ||
const constants_1 = require("../../constants"); | ||
@@ -29,0 +29,0 @@ class Curve25519 { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
216570
16
3138
22
+ Added@noble/ed25519@^1.6.1
+ Added@noble/ed25519@1.7.3(transitive)
- Removednoble-ed25519@^1.2.6
- Removedts-node@^10.5.0
- Removedtslib@^2.3.0
- Removed@cspotcode/source-map-support@0.8.1(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/sourcemap-codec@1.4.15(transitive)
- Removed@jridgewell/trace-mapping@0.3.9(transitive)
- Removed@tsconfig/node10@1.0.11(transitive)
- Removed@tsconfig/node12@1.0.11(transitive)
- Removed@tsconfig/node14@1.0.3(transitive)
- Removed@tsconfig/node16@1.0.4(transitive)
- Removedacorn@8.12.1(transitive)
- Removedacorn-walk@8.3.3(transitive)
- Removedarg@4.1.3(transitive)
- Removedcreate-require@1.1.1(transitive)
- Removeddiff@4.0.2(transitive)
- Removedmake-error@1.3.6(transitive)
- Removednoble-ed25519@1.2.6(transitive)
- Removedts-node@10.9.2(transitive)
- Removedtypescript@5.5.3(transitive)
- Removedv8-compile-cache-lib@3.0.1(transitive)
- Removedyn@3.1.1(transitive)