@0xcert/merkle
Advanced tools
Comparing version 0.0.0-alpha1 to 0.0.0-alpha3
@@ -5,4 +5,4 @@ { | ||
{ | ||
"version": "0.0.0-alpha1", | ||
"tag": "@0xcert/merkle_v0.0.0-alpha1", | ||
"version": "0.0.0-alpha3", | ||
"tag": "@0xcert/merkle_v0.0.0-alpha3", | ||
"date": "Thu, 22 Nov 2018 00:51:03 GMT", | ||
@@ -9,0 +9,0 @@ "comments": {} |
@@ -5,3 +5,3 @@ # Change Log - @0xcert/merkle | ||
## 0.0.0-alpha1 | ||
## 0.0.0-alpha3 | ||
Thu, 22 Nov 2018 00:51:03 GMT | ||
@@ -8,0 +8,0 @@ |
@@ -12,7 +12,7 @@ "use strict"; | ||
const spec_1 = require("@hayspec/spec"); | ||
const crypto_1 = require("@0xcert/crypto"); | ||
const utils_1 = require("@0xcert/utils"); | ||
const __1 = require("../../.."); | ||
const spec = new spec_1.Spec(); | ||
spec.before((ctx) => __awaiter(this, void 0, void 0, function* () { | ||
ctx.set('merkle', new __1.Merkle({ hasher: crypto_1.sha256 })); | ||
ctx.set('merkle', new __1.Merkle({ hasher: (v) => utils_1.sha(256, v) })); | ||
})); | ||
@@ -19,0 +19,0 @@ spec.test('exposes 0 from empty array', (ctx) => __awaiter(this, void 0, void 0, function* () { |
@@ -12,7 +12,7 @@ "use strict"; | ||
const spec_1 = require("@hayspec/spec"); | ||
const crypto_1 = require("@0xcert/crypto"); | ||
const utils_1 = require("@0xcert/utils"); | ||
const __1 = require("../../.."); | ||
const spec = new spec_1.Spec(); | ||
spec.before((ctx) => __awaiter(this, void 0, void 0, function* () { | ||
ctx.set('merkle', new __1.Merkle({ hasher: crypto_1.sha256 })); | ||
ctx.set('merkle', new __1.Merkle({ hasher: (v) => utils_1.sha(256, v) })); | ||
})); | ||
@@ -19,0 +19,0 @@ spec.test('recreate from from empty array', (ctx) => __awaiter(this, void 0, void 0, function* () { |
@@ -12,7 +12,7 @@ "use strict"; | ||
const spec_1 = require("@hayspec/spec"); | ||
const crypto_1 = require("@0xcert/crypto"); | ||
const utils_1 = require("@0xcert/utils"); | ||
const __1 = require("../../.."); | ||
const spec = new spec_1.Spec(); | ||
spec.before((ctx) => __awaiter(this, void 0, void 0, function* () { | ||
ctx.set('merkle', new __1.Merkle({ hasher: crypto_1.sha256 })); | ||
ctx.set('merkle', new __1.Merkle({ hasher: (v) => utils_1.sha(256, v) })); | ||
})); | ||
@@ -19,0 +19,0 @@ spec.test('empty array', (ctx) => __awaiter(this, void 0, void 0, function* () { |
{ | ||
"files": {}, | ||
"files": { | ||
"packages/0xcert-merkle/CHANGELOG.json": "c834037b3ac868766044b38984d26819079773ce", | ||
"packages/0xcert-merkle/CHANGELOG.md": "0a9e01de51537048f3bf3f0d916dd2bc66e1c5d4", | ||
"packages/0xcert-merkle/README.md": "f6e5733c5260faa8370cd755dae8f5af2f38a3fc", | ||
"packages/0xcert-merkle/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-merkle/package.json": "894089b25d613c3d9f45b9eced934c85cb51fdda", | ||
"packages/0xcert-merkle/src/core/merkle.ts": "9a3f42523d73242de94a6bd4bce7c2247914e7a8", | ||
"packages/0xcert-merkle/src/index.ts": "d6e89de6faec0b508d09239bf458d7a8a26e4775", | ||
"packages/0xcert-merkle/src/tests/core/merkle/disclose-instance-method.test.ts": "5f930e26e52b08f0cdf6d750c4288cd59d15d865", | ||
"packages/0xcert-merkle/src/tests/core/merkle/imprint-instance-method.test.ts": "d59e677941bd7ebf859f678703f898847ebbd006", | ||
"packages/0xcert-merkle/src/tests/core/merkle/notarize-instance-method.test.ts": "da4907dfa39d983a39023d7109a1370573179d60", | ||
"packages/0xcert-merkle/src/tests/index.test.ts": "38e3a7ceb14cfb723716f33ecfdcb201b2c20df5", | ||
"packages/0xcert-merkle/tsconfig.json": "4aeac3c20e45b7e477e82012eb7788f7dbb11bf3", | ||
"common/config/rush/npm-shrinkwrap.json": "9dea1ec1c34d5bcf4df825f8250513472c8f14f2" | ||
}, | ||
"arguments": "npx hayspec test " | ||
} |
{ | ||
"name": "@0xcert/merkle", | ||
"version": "0.0.0-alpha1", | ||
"version": "0.0.0-alpha3", | ||
"description": "Merkle tree management tool.", | ||
@@ -8,3 +8,4 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"build": "npx tsc", | ||
"clean": "rm -Rf ./dist", | ||
"build": "npm run clean && npx tsc", | ||
"test": "npx hayspec test" | ||
@@ -22,3 +23,3 @@ }, | ||
"devDependencies": { | ||
"@0xcert/crypto": "0.0.0-alpha1", | ||
"@0xcert/utils": "0.0.0-alpha3", | ||
"@hayspec/cli": "^0.7.6", | ||
@@ -25,0 +26,0 @@ "@hayspec/spec": "^0.7.6", |
@@ -59,7 +59,7 @@ | ||
```js | ||
import { sha256 } from '@0xcert/crypto'; | ||
import { sha } from '@0xcert/utils'; | ||
import { Merkle } from '@0xcert/merkle'; | ||
const merkle = new Merkle({ | ||
hasher: (v) => sha256(v), | ||
hasher: (v) => sha(256, v), | ||
}); | ||
@@ -66,0 +66,0 @@ const values = ['A', 'B', 'C', 'D', 'E']; |
import { Spec } from '@hayspec/spec'; | ||
import { sha256 } from '@0xcert/crypto'; | ||
import { sha } from '@0xcert/utils'; | ||
import { Merkle } from '../../..'; | ||
@@ -12,3 +12,3 @@ | ||
spec.before(async (ctx) => { | ||
ctx.set('merkle', new Merkle({ hasher: sha256 })); | ||
ctx.set('merkle', new Merkle({ hasher: (v) => sha(256, v) })); | ||
}); | ||
@@ -15,0 +15,0 @@ |
import { Spec } from '@hayspec/spec'; | ||
import { sha256 } from '@0xcert/crypto'; | ||
import { sha } from '@0xcert/utils'; | ||
import { Merkle } from '../../..'; | ||
@@ -12,3 +12,3 @@ | ||
spec.before(async (ctx) => { | ||
ctx.set('merkle', new Merkle({ hasher: sha256 })); | ||
ctx.set('merkle', new Merkle({ hasher: (v) => sha(256, v) })); | ||
}); | ||
@@ -15,0 +15,0 @@ |
import { Spec } from '@hayspec/spec'; | ||
import { sha256 } from '@0xcert/crypto'; | ||
import { sha } from '@0xcert/utils'; | ||
import { Merkle } from '../../..'; | ||
@@ -12,3 +12,3 @@ | ||
spec.before(async (ctx) => { | ||
ctx.set('merkle', new Merkle({ hasher: sha256 })); | ||
ctx.set('merkle', new Merkle({ hasher: (v) => sha(256, v) })); | ||
}); | ||
@@ -15,0 +15,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40310
32
654