@ceramicnetwork/blockchain-utils-validation 2.0.10 → 2.0.12-rc.0
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/README.md +23 -23
- package/lib/blockchains/tezos.d.ts.map +1 -1
- package/lib/blockchains/tezos.js +0 -1
- package/lib/blockchains/tezos.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Utils for validation of linked blockchain accounts
|
|
2
|
-

|
|
3
|
-
[](https://lbesson.mit-license.org/)
|
|
4
|
-
[](https://discord.gg/6VRZpGP)
|
|
5
|
-
[](https://twitter.com/ceramicnetwork)
|
|
6
|
-
|
|
7
|
-
> This package contains utility functions to validate links of blockchain accounts linked a DID.
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
```shell
|
|
11
|
-
npm install @ceramicnetwork/blockchain-utils-validation
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
15
|
-
|
|
16
|
-
See the [Ceramic developer site](https://developers.ceramic.network/) for more details about how to use this package.
|
|
17
|
-
|
|
18
|
-
## Contributing
|
|
19
|
-
We are happy to accept small and large contributions. Make sure to check out the [Ceramic specifications](https://github.com/ceramicnetwork/
|
|
20
|
-
|
|
21
|
-
## License
|
|
22
|
-
|
|
23
|
-
Apache-2.0 or MIT
|
|
1
|
+
# Utils for validation of linked blockchain accounts
|
|
2
|
+

|
|
3
|
+
[](https://lbesson.mit-license.org/)
|
|
4
|
+
[](https://discord.gg/6VRZpGP)
|
|
5
|
+
[](https://twitter.com/ceramicnetwork)
|
|
6
|
+
|
|
7
|
+
> This package contains utility functions to validate links of blockchain accounts linked a DID.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
```shell
|
|
11
|
+
npm install @ceramicnetwork/blockchain-utils-validation
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
See the [Ceramic developer site](https://developers.ceramic.network/) for more details about how to use this package.
|
|
17
|
+
|
|
18
|
+
## Contributing
|
|
19
|
+
We are happy to accept small and large contributions. Make sure to check out the [Ceramic specifications](https://github.com/ceramicnetwork/ceramic/blob/main/SPECIFICATION.md) for details of how the protocol works.
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
Apache-2.0 or MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tezos.d.ts","sourceRoot":"","sources":["../../src/blockchains/tezos.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAS,MAAM,0CAA0C,CAAA;AAK3E,eAAO,MAAM,uBAAuB,OAAyD,CAAA;AAC7F,eAAO,MAAM,8BAA8B,OAE1C,CAAA;
|
|
1
|
+
{"version":3,"file":"tezos.d.ts","sourceRoot":"","sources":["../../src/blockchains/tezos.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAS,MAAM,0CAA0C,CAAA;AAK3E,eAAO,MAAM,uBAAuB,OAAyD,CAAA;AAC7F,eAAO,MAAM,8BAA8B,OAE1C,CAAA;AAmDD,wBAAsB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAkB9E;AAED,eAAO,MAAM,OAAO,EAAE,iBAGrB,CAAA"}
|
package/lib/blockchains/tezos.js
CHANGED
|
@@ -7,7 +7,6 @@ import { normalizeAccountId } from '@ceramicnetwork/common';
|
|
|
7
7
|
export const ADDRESS_NOT_FOUND_ERROR = new Error(`Address not found on the Tezos blockchain`);
|
|
8
8
|
export const PUBLIC_KEY_NOT_PUBLISHED_ERROR = new Error(`Public key not published to the Tezos blockchain`);
|
|
9
9
|
const { TEZOS_NAMESPACE, TEZOS_CHAIN_REF } = tezos;
|
|
10
|
-
const FAKE_API_ENDPOINT = 'https://fake-api.example.com';
|
|
11
10
|
function encodeMessage(text) {
|
|
12
11
|
const michelinePrefix = '05';
|
|
13
12
|
const stringPrefix = '01';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tezos.js","sourceRoot":"","sources":["../../src/blockchains/tezos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,OAAO,EAAa,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,KAAK,MAAM,aAAa,CAAA;AAC/B,OAAO,KAAK,WAAW,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE3D,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;AAC7F,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,KAAK,CACrD,kDAAkD,CACnD,CAAA;AAID,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,GAAG,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"tezos.js","sourceRoot":"","sources":["../../src/blockchains/tezos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,OAAO,EAAa,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,KAAK,MAAM,aAAa,CAAA;AAC/B,OAAO,KAAK,WAAW,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE3D,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;AAC7F,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,KAAK,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AC,OAAO,CAAC,CAAA;IAExC,IAAI;QACF,MAAM,EAAE,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAC/C,MAAM,YAAY,GAAY,MAAM,eAAe,CAAC,GAAG,EAAE,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;QAE7E,OAAO,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;KACnC;IAAC,OAAO,OAAO,EAAE;QAChB,OAAO,IAAI,CAAA;KACZ;AACH,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAsB;IACxC,SAAS,EAAE,eAAe;IAC1B,YAAY;CACb,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceramicnetwork/blockchain-utils-validation",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12-rc.0",
|
|
4
4
|
"description": "Blockchain utils for validation of linked blockchain accounts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ceramic",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"clean": "npx rimraf ./lib"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ceramicnetwork/blockchain-utils-linking": "^2.0.
|
|
34
|
-
"@ceramicnetwork/common": "^2.
|
|
33
|
+
"@ceramicnetwork/blockchain-utils-linking": "^2.0.11-rc.0",
|
|
34
|
+
"@ceramicnetwork/common": "^2.5.1-rc.0",
|
|
35
35
|
"@ethersproject/contracts": "^5.5.0",
|
|
36
36
|
"@ethersproject/providers": "^5.5.1",
|
|
37
37
|
"@ethersproject/wallet": "^5.5.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"ganache-core": "^2.13.2",
|
|
61
61
|
"near-api-js": "^0.44.2"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "6d28a09bb87ea378bc8dd34349e8438783cb9c20"
|
|
64
64
|
}
|