@ceramicnetwork/blockchain-utils-validation 1.1.4-rc.0 → 1.3.0-rc.1
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,60 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.3.0-rc.1](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/blockchain-utils-validation@1.3.0-rc.0...@ceramicnetwork/blockchain-utils-validation@1.3.0-rc.1) (2021-09-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ceramicnetwork/blockchain-utils-validation
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.3.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/blockchain-utils-validation@1.2.0...@ceramicnetwork/blockchain-utils-validation@1.3.0-rc.0) (2021-09-17)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* add eslint-disable line ([#1611](https://github.com/ceramicnetwork/js-ceramic/issues/1611)) ([3c81e0d](https://github.com/ceramicnetwork/js-ceramic/commit/3c81e0dcd9ee082eb45f467353566d5000721a92))
|
|
20
|
+
* Fix tests by using node environment for jest ([#1212](https://github.com/ceramicnetwork/js-ceramic/issues/1212)) ([aff01c6](https://github.com/ceramicnetwork/js-ceramic/commit/aff01c6e3a8476825dd8b27201579b38943e7fca))
|
|
21
|
+
* Fix tests by using node environment for jest ([#1212](https://github.com/ceramicnetwork/js-ceramic/issues/1212)) ([0f04006](https://github.com/ceramicnetwork/js-ceramic/commit/0f04006098f9028c6750c9920c4b3af758b71235))
|
|
22
|
+
* **blockchain-utils-linking:** Pin @ethersproject/providers to previous version ([#1094](https://github.com/ceramicnetwork/js-ceramic/issues/1094)) ([89fcebe](https://github.com/ceramicnetwork/js-ceramic/commit/89fcebe17f72dd7362fb8cad9c88040c177991f6))
|
|
23
|
+
* **blockchain-utils-linking:** Pin version of @glif/local-managed-provider to unbreak test ([#1183](https://github.com/ceramicnetwork/js-ceramic/issues/1183)) ([b5ae20f](https://github.com/ceramicnetwork/js-ceramic/commit/b5ae20f6e1641ae767a7720c448133f22f4a7f0a))
|
|
24
|
+
* **blockchain-utils-validation:** add missing dep ([6e6af5d](https://github.com/ceramicnetwork/js-ceramic/commit/6e6af5d86341d93cc305b5908c7ecd0c52455126))
|
|
25
|
+
* **common, logger:** Clean up dependencies ([#1164](https://github.com/ceramicnetwork/js-ceramic/issues/1164)) ([191ad31](https://github.com/ceramicnetwork/js-ceramic/commit/191ad310b87ac9aba97bb84b122908337f35aa11))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* caip10 ethereum+eos integration test ([#1668](https://github.com/ceramicnetwork/js-ceramic/issues/1668)) ([4267d8b](https://github.com/ceramicnetwork/js-ceramic/commit/4267d8b31fca38a163bb009198a49e1de22b2a58)), closes [#1678](https://github.com/ceramicnetwork/js-ceramic/issues/1678)
|
|
31
|
+
* **tezos-blockchain-link:** initial support for linking and validating DIDs to Tezos wallets ([#1555](https://github.com/ceramicnetwork/js-ceramic/issues/1555)) ([baa6c35](https://github.com/ceramicnetwork/js-ceramic/commit/baa6c35a6a72f69380597cd260f14bc227c4fd66))
|
|
32
|
+
* **tezos-blockchain-link:** linking and validating DIDs to Tezos wallets ([#1601](https://github.com/ceramicnetwork/js-ceramic/issues/1601)) ([b40709e](https://github.com/ceramicnetwork/js-ceramic/commit/b40709e465bdbf0c934ff5d51921fb7e5eb8cb18))
|
|
33
|
+
* **tile-doctype:** Update Tile API ([#1180](https://github.com/ceramicnetwork/js-ceramic/issues/1180)) ([90973ee](https://github.com/ceramicnetwork/js-ceramic/commit/90973ee32352e260cb040e687720095b145b4702))
|
|
34
|
+
* support near protocol ([#881](https://github.com/ceramicnetwork/js-ceramic/issues/881)) ([d50f36e](https://github.com/ceramicnetwork/js-ceramic/commit/d50f36e0ecc24d26ae90a7ee4bedbe1ee006f0f7)), closes [#880](https://github.com/ceramicnetwork/js-ceramic/issues/880)
|
|
35
|
+
* upgrade 3id did resolver ([#1108](https://github.com/ceramicnetwork/js-ceramic/issues/1108)) ([24ef6d4](https://github.com/ceramicnetwork/js-ceramic/commit/24ef6d45c6ce1dae828447ffdaa9e57f3f5e9b00))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [1.2.0](/compare/@ceramicnetwork/blockchain-utils-validation@1.2.0-rc.0...@ceramicnetwork/blockchain-utils-validation@1.2.0) (2021-09-16)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @ceramicnetwork/blockchain-utils-validation
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [1.2.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/blockchain-utils-validation@1.1.4-rc.0...@ceramicnetwork/blockchain-utils-validation@1.2.0-rc.0) (2021-09-13)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* caip10 ethereum+eos integration test ([#1668](https://github.com/ceramicnetwork/js-ceramic/issues/1668)) ([4267d8b](https://github.com/ceramicnetwork/js-ceramic/commit/4267d8b31fca38a163bb009198a49e1de22b2a58)), closes [#1678](https://github.com/ceramicnetwork/js-ceramic/issues/1678)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
6
60
|
## [1.1.4-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/blockchain-utils-validation@1.1.3...@ceramicnetwork/blockchain-utils-validation@1.1.4-rc.0) (2021-09-08)
|
|
7
61
|
|
|
8
62
|
**Note:** Version bump only for package @ceramicnetwork/blockchain-utils-validation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polkadot.d.ts","sourceRoot":"","sources":["../../src/blockchains/polkadot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"polkadot.d.ts","sourceRoot":"","sources":["../../src/blockchains/polkadot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAkBzD,QAAA,MAAM,OAAO,EAAE,iBAGd,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const caip_1 = require("caip");
|
|
4
7
|
const util_crypto_1 = require("@polkadot/util-crypto");
|
|
8
|
+
const uint8arrays_1 = __importDefault(require("uint8arrays"));
|
|
5
9
|
const namespace = 'polkadot';
|
|
10
|
+
const stringHex = (str) => `0x${uint8arrays_1.default.toString(uint8arrays_1.default.fromString(str), 'base16')}`;
|
|
6
11
|
async function validateLink(proof) {
|
|
7
12
|
const address = new caip_1.AccountID(proof.account).address;
|
|
8
|
-
const
|
|
13
|
+
const message = stringHex(proof.message);
|
|
14
|
+
const res = await util_crypto_1.signatureVerify(message, proof.signature, address);
|
|
9
15
|
return res.isValid ? proof : null;
|
|
10
16
|
}
|
|
11
17
|
const Handler = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polkadot.js","sourceRoot":"","sources":["../../src/blockchains/polkadot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"polkadot.js","sourceRoot":"","sources":["../../src/blockchains/polkadot.ts"],"names":[],"mappings":";;;;;AACA,+BAAgC;AAChC,uDAAuD;AAEvD,8DAAsC;AAEtC,MAAM,SAAS,GAAG,UAAU,CAAA;AAE5B,MAAM,SAAS,GAAG,CAAC,GAAW,EAAU,EAAE,CACxC,KAAK,qBAAW,CAAC,QAAQ,CAAC,qBAAW,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAA;AAEpE,KAAK,UAAU,YAAY,CAAC,KAAgB;IAC1C,MAAM,OAAO,GAAG,IAAI,gBAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAA;IACpD,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,GAAG,GAAG,MAAM,6BAAe,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACpE,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;AACnC,CAAC;AAED,MAAM,OAAO,GAAsB;IACjC,SAAS;IACT,YAAY;CACb,CAAA;AAED,kBAAe,OAAO,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceramicnetwork/blockchain-utils-validation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-rc.1",
|
|
4
4
|
"description": "Blockchain utils for validation of linked blockchain accounts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ceramic",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"clean": "rm -rf ./lib"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ceramicnetwork/blockchain-utils-linking": "^1.1
|
|
27
|
+
"@ceramicnetwork/blockchain-utils-linking": "^1.2.1-rc.1",
|
|
28
28
|
"@ethersproject/contracts": "^5.4.1",
|
|
29
29
|
"@ethersproject/providers": "^5.4.5",
|
|
30
30
|
"@ethersproject/wallet": "^5.4.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"ganache-core": "^2.13.1",
|
|
53
53
|
"near-api-js": "^0.36.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "ed94265f21ce8d11c4656b89f1046bca676fbbea"
|
|
56
56
|
}
|