From 947e93aeed268d9d00965b2b995e10ca3eb21c5b Mon Sep 17 00:00:00 2001 From: eduv09 Date: Tue, 26 Mar 2024 13:32:50 +0000 Subject: [PATCH] feat(bungee-hermes): viewProof & ethereum strategy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Views have new attribute viewProof * This attribute has the roots of all state proofs and transaction proofs in the view * Added new endpoint to verify integrity of view proofs * Created strategy for bungee-hermes to support the ethereum-connector * Created new test for the strategy-ethereum, and altered the API test to test the new viewProof endpoint * Updated documentation to reflect new changes. * Fixes in Fabric Strategy, stateProofs and error handling Co-authored-by: André Augusto Co-authored-by: Rafael Belchior Signed-off-by: eduv09 --- .../cactus-plugin-bungee-hermes/README.md | 2 +- .../src/main/json/openapi.json | 2 +- yarn.lock | 49 ++++++++++++++----- 3 files changed, 38 insertions(+), 15 deletions(-) diff --git a/packages/cactus-plugin-bungee-hermes/README.md b/packages/cactus-plugin-bungee-hermes/README.md index 2ada98ce32..8c05a4e0cc 100644 --- a/packages/cactus-plugin-bungee-hermes/README.md +++ b/packages/cactus-plugin-bungee-hermes/README.md @@ -226,4 +226,4 @@ We welcome contributions to Hyperledger Cactus in many forms, and there’s alwa Please review [CONTRIBUTING.md](https://github.com/hyperledger/cactus/blob/main/CONTRIBUTING.md "CONTRIBUTING.md") to get started. ## License -This distribution is published under the Apache License Version 2.0 found in the [LICENSE ](https://github.com/hyperledger/cactus/blob/main/LICENSE "LICENSE ")file. \ No newline at end of file +This distribution is published under the Apache License Version 2.0 found in the [LICENSE ](https://github.com/hyperledger/cactus/blob/main/LICENSE "LICENSE ")file. diff --git a/packages/cactus-plugin-bungee-hermes/src/main/json/openapi.json b/packages/cactus-plugin-bungee-hermes/src/main/json/openapi.json index 4320b2fb1c..8ed51ef921 100644 --- a/packages/cactus-plugin-bungee-hermes/src/main/json/openapi.json +++ b/packages/cactus-plugin-bungee-hermes/src/main/json/openapi.json @@ -448,4 +448,4 @@ } } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index ab8a1d4af1..badb6f6a69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -35443,6 +35443,42 @@ __metadata: languageName: node linkType: hard +"merge@npm:^1.2.0": + version: 1.2.1 + resolution: "merge@npm:1.2.1" + checksum: 10/2298c4fdcf64561f320b92338681f7ffcafafb579a6e294066ae3e7bd10ae25df363903d2f028072733b9f79a1f75d2b999aef98ad5d73de13641da39cda0913 + languageName: node + linkType: hard + +"merkle-patricia-tree@npm:^2.1.2, merkle-patricia-tree@npm:^2.3.2": + version: 2.3.2 + resolution: "merkle-patricia-tree@npm:2.3.2" + dependencies: + async: "npm:^1.4.2" + ethereumjs-util: "npm:^5.0.0" + level-ws: "npm:0.0.0" + levelup: "npm:^1.2.1" + memdown: "npm:^1.0.0" + readable-stream: "npm:^2.0.0" + rlp: "npm:^2.0.0" + semaphore: "npm:>=1.0.1" + checksum: 10/4188bd5b163719bd9c5da45ba356fac753a0f0ac0b9990923b5f064852e083334abd5e4d838dcd35ee50d884dad5c52adbd103387c89d20be3ec47b51784946a + languageName: node + linkType: hard + +"merkletreejs@npm:0.3.11": + version: 0.3.11 + resolution: "merkletreejs@npm:0.3.11" + dependencies: + bignumber.js: "npm:^9.0.1" + buffer-reverse: "npm:^1.0.1" + crypto-js: "npm:^4.2.0" + treeify: "npm:^1.1.0" + web3-utils: "npm:^1.3.4" + checksum: 10/a93520ef768648d1e4ebd175182bd3d304270b8eb0700df5be99395fb3ad8805407bdaf3231d13b1649e87de799aa06d71c616db047ad039025764eb23b02244 + languageName: node + linkType: hard + "methods@npm:^1.1.2, methods@npm:~1.1.2": version: 1.1.2 resolution: "methods@npm:1.1.2" @@ -50561,19 +50597,6 @@ __metadata: languageName: node linkType: hard -"web3-utils@npm:^4.0.3, web3-utils@npm:^4.2.3": - version: 4.2.3 - resolution: "web3-utils@npm:4.2.3" - dependencies: - ethereum-cryptography: "npm:^2.0.0" - eventemitter3: "npm:^5.0.1" - web3-errors: "npm:^1.1.4" - web3-types: "npm:^1.6.0" - web3-validator: "npm:^2.0.5" - checksum: 10/2a1a696ddd8f4318048913fd75af0f11599fa03ff731aeed72d1c7bc6577c99317bdc3529844e7ff1a74b18ec99a5e08f5695537f0d56f44e707477014ea2a11 - languageName: node - linkType: hard - "web3-utils@npm:^4.0.7": version: 4.0.7 resolution: "web3-utils@npm:4.0.7"