From 39c34054450497833249f68eba647676535032c1 Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Sun, 8 Nov 2026 10:38:55 +0200 Subject: [PATCH 01/10] Unicity Trust Base v2: weighted BFT quorum (unequal votes), seals judged by the entry of their own epoch, release pins, cache and file store, GetTrustBase fetch loop, X-SDK-Version header (API-breaking, 4.0.0) Signed trust-base entries (tag 39000) and bundles (tag 39015). Entries and seals use the BFT Core quorum with unequal votes: stake-weighted members, threshold floor(2W/3)+1 of the total weight W. Seals are verified against the entry of their own epoch; release pins for mainnet and testnet2; trust-base cache with a file store; GetTrustBase fetch loop and HTTP source; X-SDK-Version header. API-breaking (release version 4.0.0): RootTrustBase and VerificationPolicy removed, NetworkId.TESTNET removed, TESTNET2 added, beginOperation(PartitionViewPolicy). Unchanged: the token format, the proof and certificate wire formats and existing tokens. A seal with more than 256 signatures is refused at decode, and CBOR text must be valid UTF-8. See the PR description. --- README.md | 26 +- build.gradle.kts | 36 +- docs/api-reference.md | 17 +- .../sdk/StateTransitionClient.java | 6 +- .../sdk/api/HttpTrustBaseSource.java | 179 ++ .../sdk/api/JsonRpcAggregatorClient.java | 26 +- .../org/unicitylabs/sdk/api/NetworkId.java | 11 +- .../sdk/api/NonInclusionVerifier.java | 30 +- .../sdk/api/bft/RootTrustBase.java | 350 --- .../unicitylabs/sdk/api/bft/UnicitySeal.java | 4 +- .../trustbase/CacheContendedException.java | 14 + .../api/bft/trustbase/CacheDiagnostic.java | 76 + .../bft/trustbase/CacheRejectedException.java | 30 + .../sdk/api/bft/trustbase/CacheRejection.java | 15 + .../sdk/api/bft/trustbase/FlushResult.java | 65 + .../trustbase/HistoryConflictedException.java | 31 + .../bft/trustbase/MemoryTrustBaseStore.java | 65 + .../sdk/api/bft/trustbase/ReleasePin.java | 234 ++ .../trustbase/ReleasePinInvalidException.java | 24 + .../sdk/api/bft/trustbase/ReleasePins.java | 77 + .../bft/trustbase/TrustBaseAppendOutcome.java | 9 + .../TrustBaseBeforeGenesisException.java | 14 + .../api/bft/trustbase/TrustBaseBundle.java | 205 ++ .../trustbase/TrustBaseBundleException.java | 14 + .../bft/trustbase/TrustBaseBundleLimits.java | 54 + .../api/bft/trustbase/TrustBaseCacheKey.java | 84 + .../trustbase/TrustBaseChainException.java | 14 + .../trustbase/TrustBaseConflictDetails.java | 101 + .../trustbase/TrustBaseConflictException.java | 49 + .../trustbase/TrustBaseEncodingException.java | 14 + .../sdk/api/bft/trustbase/TrustBaseEntry.java | 673 ++++++ .../api/bft/trustbase/TrustBaseException.java | 24 + .../bft/trustbase/TrustBaseGapException.java | 41 + .../api/bft/trustbase/TrustBaseHistory.java | 238 ++ .../bft/trustbase/TrustBaseHistoryView.java | 68 + .../trustbase/TrustBaseInvalidException.java | 14 + .../api/bft/trustbase/TrustBaseMember.java | 71 + .../trustbase/TrustBaseNetworkException.java | 14 + .../TrustBasePinMismatchException.java | 18 + .../sdk/api/bft/trustbase/TrustBaseRange.java | 256 +++ .../bft/trustbase/TrustBaseRangeLimits.java | 43 + .../api/bft/trustbase/TrustBaseRequest.java | 102 + .../trustbase/TrustBaseResponseException.java | 14 + .../bft/trustbase/TrustBaseResponseWire.java | 199 ++ .../api/bft/trustbase/TrustBaseSession.java | 737 +++++++ .../trustbase/TrustBaseSessionOptions.java | 77 + .../TrustBaseSignatureException.java | 14 + .../api/bft/trustbase/TrustBaseSource.java | 26 + .../api/bft/trustbase/TrustBaseStatus.java | 49 + .../sdk/api/bft/trustbase/TrustBaseStore.java | 80 + .../trustbase/TrustBaseStoreException.java | 53 + .../trustbase/TrustBaseUpdateException.java | 152 ++ .../bft/trustbase/TrustBaseUpdateOptions.java | 142 ++ .../bft/trustbase/TrustBaseUpdateTarget.java | 61 + .../api/bft/trustbase/TrustBaseUpdater.java | 363 ++++ .../trustbase/UnknownNetworkException.java | 14 + .../trustbase/file/FileTrustBaseStore.java | 292 +++ .../bft/verification/AuthorityIdentity.java | 48 +- .../bft/verification/CertificateChecks.java | 13 +- .../verification/NoTrustBaseEntryResult.java | 69 + .../OperationUnicityCertificateVerifier.java | 72 +- .../bft/verification/SealAuthenticator.java | 9 +- .../api/bft/verification/SealQuorumRule.java | 27 + .../verification/SealVerificationSession.java | 177 +- .../verification/TrustBaseEntryResult.java | 48 + .../UnicityCertificateFailure.java | 15 +- .../UnicityCertificateVerification.java | 40 +- .../UnicityCertificateVerifier.java | 44 +- .../bft/verification/VerificationPolicy.java | 18 - ...ySealQuorumSignaturesVerificationRule.java | 99 +- .../rule/UnicitySealTrustBaseEntryRule.java | 76 + .../sdk/api/jsonrpc/JsonRpcHttpTransport.java | 35 +- .../sdk/api/jsonrpc/SdkVersionHeader.java | 71 + .../sdk/consolidation/ProofConsolidator.java | 9 +- .../sdk/consolidation/TokenProofClient.java | 11 +- .../sdk/serializer/cbor/CborDeserializer.java | 66 +- .../transaction/CertifiedMintTransaction.java | 4 +- .../CertifiedTransferTransaction.java | 4 +- .../sdk/transaction/MintTransaction.java | 4 +- .../sdk/transaction/TransferTransaction.java | 4 +- ...tifiedMintTransactionVerificationRule.java | 4 +- .../InclusionProofVerificationRule.java | 6 +- .../verification/VerificationContext.java | 16 +- .../sdk/util/InclusionProofUtils.java | 12 +- src/main/resources/release-pins/manifest.json | 30 + .../unicity-trustbase.mainnet.cbor | Bin 0 -> 460 bytes .../unicity-trustbase.testnet2.cbor | Bin 0 -> 460 bytes .../unicitylabs/sdk/TestAggregatorClient.java | 10 +- .../sdk/api/HttpTrustBaseSourceTest.java | 158 ++ .../sdk/api/InclusionProofTest.java | 12 +- .../unicitylabs/sdk/api/NetworkIdTest.java | 20 + .../sdk/api/NonInclusionCertificateTest.java | 2 +- .../sdk/api/NonInclusionCorpusTest.java | 38 +- .../unicitylabs/sdk/api/RealSealsTest.java | 154 ++ .../sdk/api/SdkVersionHeaderWireTest.java | 102 + .../sdk/api/bft/BlockingTrustBase.java | 28 +- .../api/bft/OfflineWalletFutureEpochTest.java | 167 ++ .../sdk/api/bft/OperationVerifierTest.java | 116 +- .../bft/PartitionViewAuthenticatorTest.java | 4 +- .../sdk/api/bft/RootTrustBaseTest.java | 104 - .../bft/RootTrustBaseUnsignedJsonTest.java | 104 - .../sdk/api/bft/RootTrustBaseUtils.java | 29 - .../sdk/api/bft/SealSignatureBoundTest.java | 185 ++ .../sdk/api/bft/SealVerificationLowSTest.java | 2 +- .../unicitylabs/sdk/api/bft/TestChain.java | 50 +- .../sdk/api/bft/TrustBaseTestUtils.java | 70 + .../api/bft/UnicityCertificateBodyTest.java | 5 +- .../sdk/api/bft/UnicityCertificateUtils.java | 2 +- .../api/bft/trustbase/ReleasePinsTest.java | 184 ++ .../bft/trustbase/TrustBaseBundleTest.java | 160 ++ .../trustbase/TrustBaseEntryLimitsTest.java | 293 +++ .../trustbase/TrustBaseEntryVectorsTest.java | 84 + .../trustbase/TrustBaseHistoryRulesTest.java | 313 +++ .../TrustBaseHistoryVectorsTest.java | 130 ++ .../trustbase/TrustBaseRangeVectorsTest.java | 169 ++ .../bft/trustbase/TrustBaseSessionTest.java | 376 ++++ .../TrustBaseSessionVectorsTest.java | 430 ++++ .../api/bft/trustbase/TrustBaseTestChain.java | 90 + .../bft/trustbase/TrustBaseUpdaterTest.java | 418 ++++ .../api/bft/trustbase/TrustBaseVectors.java | 36 + .../api/bft/trustbase/UtbCacheFixtures.java | 55 + .../trustbase/file/FileStoreSessionTest.java | 137 ++ .../file/FileTrustBaseStoreTest.java | 317 +++ .../SealVerificationSessionTest.java | 59 +- .../consolidation/ConsolidationGuardTest.java | 27 +- .../sdk/consolidation/CorpusSupport.java | 7 +- .../PeerTransportTimeoutTest.java | 8 +- .../consolidation/TokenProofClientTest.java | 3 +- .../UcConsolidationCorpusTest.java | 12 +- .../SignatureRecoveryVectorsTest.java | 8 +- .../org/unicitylabs/sdk/e2e/TokenE2ETest.java | 5 +- .../sdk/examples/ApiReferenceExamples.java | 27 +- .../examples/ApiReferenceExamplesTest.java | 6 +- .../sdk/examples/WaitingExamples.java | 10 +- .../CertificationDataBindingTest.java | 4 +- .../TokenIssuanceVerifierServiceTest.java | 4 +- .../payment/NestedTokenOperationTest.java | 4 +- .../functional/payment/SplitBuilderTest.java | 6 +- .../payment/SplitInflationExploitTest.java | 4 +- .../functional/payment/TokenSplitTest.java | 4 +- .../sdk/integration/AggregatorStack.java | 7 +- .../RequestDeadlineIntegrationTest.java | 6 +- .../serializer/cbor/CborUtbBoundsTest.java | 66 + .../vectors/gettrustbase/vectors.json | 329 +++ .../resources/vectors/real-seals/README.md | 17 + .../real-seals/mainnet.non-inclusion.hex | 1 + .../vectors/real-seals/mainnet.stateid.hex | 1 + .../real-seals/testnet2.non-inclusion.hex | 1 + .../vectors/real-seals/testnet2.stateid.hex | 1 + .../real-seals/unicity-trustbase.mainnet.cbor | Bin 0 -> 460 bytes .../unicity-trustbase.testnet2.cbor | Bin 0 -> 460 bytes .../resources/vectors/trust-base-v2/README.md | 16 + .../trust-base-v2/max-entry/v1/max-entry.json | 16 + .../vectors/trust-base-v2/vectors.json | 400 ++++ .../vectors/utb-cache/v1/vectors.json | 1922 +++++++++++++++++ 155 files changed, 13107 insertions(+), 1168 deletions(-) create mode 100644 src/main/java/org/unicitylabs/sdk/api/HttpTrustBaseSource.java delete mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/RootTrustBase.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheContendedException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheDiagnostic.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheRejectedException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheRejection.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/FlushResult.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/HistoryConflictedException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/MemoryTrustBaseStore.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePin.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinInvalidException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePins.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseAppendOutcome.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBeforeGenesisException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundle.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleLimits.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseCacheKey.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseChainException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseConflictDetails.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseConflictException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEncodingException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntry.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseGapException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistory.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryView.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseInvalidException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseMember.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseNetworkException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBasePinMismatchException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRange.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRangeLimits.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRequest.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseResponseException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseResponseWire.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSession.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionOptions.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSignatureException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSource.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStatus.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStore.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStoreException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateOptions.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateTarget.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/UnknownNetworkException.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileTrustBaseStore.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryResult.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/verification/SealQuorumRule.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/verification/TrustBaseEntryResult.java delete mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/verification/VerificationPolicy.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/verification/rule/UnicitySealTrustBaseEntryRule.java create mode 100644 src/main/java/org/unicitylabs/sdk/api/jsonrpc/SdkVersionHeader.java create mode 100644 src/main/resources/release-pins/manifest.json create mode 100644 src/main/resources/release-pins/unicity-trustbase.mainnet.cbor create mode 100644 src/main/resources/release-pins/unicity-trustbase.testnet2.cbor create mode 100644 src/test/java/org/unicitylabs/sdk/api/HttpTrustBaseSourceTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/RealSealsTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/SdkVersionHeaderWireTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/OfflineWalletFutureEpochTest.java delete mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseTest.java delete mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseUnsignedJsonTest.java delete mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseUtils.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/SealSignatureBoundTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinsTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntryLimitsTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntryVectorsTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryRulesTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryVectorsTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRangeVectorsTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionVectorsTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseTestChain.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseVectors.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/UtbCacheFixtures.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileStoreSessionTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileTrustBaseStoreTest.java create mode 100644 src/test/java/org/unicitylabs/sdk/serializer/cbor/CborUtbBoundsTest.java create mode 100644 src/test/resources/vectors/gettrustbase/vectors.json create mode 100644 src/test/resources/vectors/real-seals/README.md create mode 100644 src/test/resources/vectors/real-seals/mainnet.non-inclusion.hex create mode 100644 src/test/resources/vectors/real-seals/mainnet.stateid.hex create mode 100644 src/test/resources/vectors/real-seals/testnet2.non-inclusion.hex create mode 100644 src/test/resources/vectors/real-seals/testnet2.stateid.hex create mode 100644 src/test/resources/vectors/real-seals/unicity-trustbase.mainnet.cbor create mode 100644 src/test/resources/vectors/real-seals/unicity-trustbase.testnet2.cbor create mode 100644 src/test/resources/vectors/trust-base-v2/README.md create mode 100644 src/test/resources/vectors/trust-base-v2/max-entry/v1/max-entry.json create mode 100644 src/test/resources/vectors/trust-base-v2/vectors.json create mode 100644 src/test/resources/vectors/utb-cache/v1/vectors.json diff --git a/README.md b/README.md index 9c56d981..f0b7cf5c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation 'org.unicitylabs:java-state-transition-sdk:3.0-SNAPSHOT' + implementation 'org.unicitylabs:java-state-transition-sdk:4.0.0' implementation 'com.google.guava:guava:33.0.0-jre' } ``` @@ -58,38 +58,46 @@ Mainnet is live. Start with testnet2; for production, use the mainnet gateway an | Network | Gateway | Network ID | Trust base | | --- | --- | --- | --- | -| Mainnet | `https://gateway.mainnet.unicity.network` | `1` | [JSON](https://raw.githubusercontent.com/unicitynetwork/unicity-ids/main/bft-trustbase.mainnet.json) | -| Testnet2 | `https://gateway.testnet2.unicity.network` | `4` | [JSON](https://raw.githubusercontent.com/unicitynetwork/unicity-ids/main/bft-trustbase.testnet2.json) | +| Mainnet | `https://gateway.mainnet.unicity.network` | `1` | genesis pinned in this SDK (`ReleasePins`); open it with `TrustBaseSession.openPublic` | +| Testnet2 | `https://gateway.testnet2.unicity.network` | `4` | genesis pinned in this SDK (`ReleasePins`); open it with `TrustBaseSession.openPublic` | Pass your gateway API key as the second argument to `JsonRpcAggregatorClient`. The public testnet2 key is `sk_ddc3cfcc001e4a28ac3fad7407f99590`. Use your own mainnet key obtained from [Sphere](https://sphere.unicity.network/) and keep it secure. ### First connection -Download the testnet2 trust base above as `bft-trustbase.testnet2.json` in your working directory. Add this class to your application and run it: +Put the complete trust-base bundle of your network (a CBOR file, tag 39015, from the genesis entry to the tip) in your working directory as `trust-base-bundle.cbor`, and pin the entry id of its genesis entry (hex) in `GENESIS_PIN`. Add this class to your application and run it: ```java import java.nio.file.Files; import java.nio.file.Path; import org.unicitylabs.sdk.StateTransitionClient; import org.unicitylabs.sdk.api.JsonRpcAggregatorClient; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundle; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundleLimits; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.util.HexConverter; public class Connect { + // entry id of the genesis entry of your network, from a source you trust + static final String GENESIS_PIN = "..."; + public static void main(String[] args) throws Exception { var aggregator = new JsonRpcAggregatorClient( "https://gateway.testnet2.unicity.network", "sk_ddc3cfcc001e4a28ac3fad7407f99590"); // Public testnet2 key var client = new StateTransitionClient(aggregator); - var trustBase = RootTrustBase.fromJson( - Files.readString(Path.of("bft-trustbase.testnet2.json"))); + var bundle = TrustBaseBundle.decode( + Files.readAllBytes(Path.of("trust-base-bundle.cbor")), + new TrustBaseBundleLimits(1 << 20, 64)); + var trustBase = TrustBaseHistory.fromBundle(bundle, HexConverter.decode(GENESIS_PIN)); - System.out.println("Network ID: " + trustBase.getNetworkId().getId()); + System.out.println("Network ID: " + trustBase.getNetworkId().get().getId()); System.out.println("Latest round: " + aggregator.getLatestBlockNumber().get()); } } ``` -The trust base identifies the Consensus Layer (BFT Core) instance. Pin a trusted copy in your application for production. Use `trustBase.getNetworkId()` when creating tokens so they match your gateway; testnet2 is network ID `4` (`NetworkId.TESTNET` is `2`). +The trust base history identifies the Consensus Layer (BFT Core) instance: pin the genesis entry id in your application for production, and every later entry must be signed by a quorum of its predecessor. The single-record JSON trust base is no longer read, and there is no compatibility wrapper. Use `trustBase.getNetworkId().get()` when creating tokens so they match your gateway; testnet2 is network ID `4`, `NetworkId.TESTNET2` (mainnet is `NetworkId.MAINNET`, `1`). The old testnet, network 2, has no constant any more. The example waits for the result with `.get()`. In asynchronous applications, compose the returned futures; on Android, keep blocking calls off the UI thread. diff --git a/build.gradle.kts b/build.gradle.kts index 7f17e70d..ba6ac642 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,12 +7,13 @@ plugins { } group = "org.unicitylabs" -// Use version property if provided, otherwise use default. hasProperty("version") is always true +// Use version property if provided, otherwise use the default 4.0.0 (the version all three SDKs ship as; releases pass +// -Pversion=4.0.0). hasProperty("version") is always true // because Gradle defines it, so check for the "unspecified" it holds when -Pversion was not passed. version = project.property("version") ?.takeIf { it.toString() != "unspecified" } ?.toString() - ?: "3.0-SNAPSHOT" + ?: "4.0.0" repositories { mavenCentral() @@ -83,6 +84,37 @@ java { withJavadocJar() } +// The SDK version, generated from the Gradle project version so the X-SDK-Version header can never drift from the artifact. +val generateSdkVersion by tasks.registering { + val outputDir = layout.buildDirectory.dir("generated/sdk-version") + val sdkVersion = project.version.toString() + inputs.property("version", sdkVersion) + outputs.dir(outputDir) + doLast { + val file = outputDir.get().file("org/unicitylabs/sdk/SdkVersion.java").asFile + file.parentFile.mkdirs() + file.writeText( + """ + package org.unicitylabs.sdk; + + /** The version of this SDK, generated from the Gradle project version. */ + public final class SdkVersion { + + /** The SDK version. */ + public static final String VERSION = "$sdkVersion"; + + private SdkVersion() { + } + } + """.trimIndent() + "\n" + ) + } +} + +sourceSets.main { + java.srcDir(generateSdkVersion) +} + checkstyle { configFile = file("config/checkstyle/checkstyle.xml") // TODO: Clean up test checkstyle and enable it diff --git a/docs/api-reference.md b/docs/api-reference.md index a5730bfc..209450e2 100644 --- a/docs/api-reference.md +++ b/docs/api-reference.md @@ -43,13 +43,15 @@ var aggregator = new JsonRpcAggregatorClient( return new StateTransitionClient(aggregator); ``` -**Trust base.** The trust base identifies the network, its validators and quorum. Download the file for your network (links in the README), keep a trusted copy with the application, and load it: +**Trust base.** The trust base is a history of signed entries (Unicity Trust Base v2, CBOR tag 39000), one per epoch of the network's validators. It starts at a genesis entry whose entry id you pin, and every later entry must carry a quorum of signatures of its predecessor. Load a complete bundle (CBOR tag 39015, from genesis to tip) together with the pinned genesis entry id: ```java -return RootTrustBase.fromJson(Files.readString(Path.of("bft-trustbase.testnet2.json"))); +var bundle = TrustBaseBundle.decode(Files.readAllBytes(Path.of("trust-base-bundle.cbor")), + new TrustBaseBundleLimits(1 << 20, 64)); +return TrustBaseHistory.fromBundle(bundle, genesisPin); ``` -`trustBase.getNetworkId()` is the network ID to use when minting. +`trustBase.getNetworkId()` is the network ID to use when minting (empty while the history holds no entry). Every seal is verified against the entry of its own epoch; a seal of an epoch the history does not hold fails with the typed `NoTrustBaseEntryResult` (`NoTrustBaseEntryResult.find(result)`), which a later update step can cure. There is no JSON trust base any more. **Verification context.** `VerificationContext` bundles what token verification needs: the trust base, a `PredicateVerifierService` (`PredicateVerifierService.create()` handles the built-in predicates), a `MintJustificationVerifierService` (empty unless you use token splits, see [Payments and splits](#payments-and-splits)) and a `TokenIssuanceVerifierService`. @@ -118,7 +120,7 @@ Store the private key securely; whoever holds it controls the tokens locked to i A mint creates a token with a new ID. Build a `MintTransaction`, submit its certification data, wait for the inclusion proof, and build the verified `Token`. ```java -MintTransaction mint = MintTransaction.builder(context.getTrustBase().getNetworkId(), owner) +MintTransaction mint = MintTransaction.builder(context.getTrustBase().getNetworkId().get(), owner) .tokenType(new TokenType("my-token-type".getBytes(StandardCharsets.UTF_8))) .data(payload) .build(); @@ -376,11 +378,12 @@ return Token.fromCbor(HexConverter.decode(hex)); **Pending operations.** Serialization is also how an application survives a crash. Before submitting a mint, a transfer or a split, persist the exact transaction (`toCbor()`), the `CertificationData` of a transfer, and for a split its inputs (recipients, payment data, output salts, state mask and deadline). After a crash, deserialize them and submit again; never rebuild. Examples: [Crash recovery](#crash-recovery), [Recovering a transfer](#recovering-a-transfer) and [Payments and splits](#payments-and-splits). -JSON is used for the trust base: `RootTrustBase.fromJson(json)` and `trustBase.toJson()`. +The trust base serializes as a bundle: `trustBase.toBundle()` and `TrustBaseBundle.decode(bytes, limits)`. ```java -String json = trustBase.toJson(); -return RootTrustBase.fromJson(json).getNetworkId().toString(); +byte[] bundle = trustBase.toBundle(); +return TrustBaseBundle.decode(bundle, new TrustBaseBundleLimits(1 << 20, 64)) + .getNetworkId().toString(); ``` ## 7. Waiting for Inclusion Proofs diff --git a/src/main/java/org/unicitylabs/sdk/StateTransitionClient.java b/src/main/java/org/unicitylabs/sdk/StateTransitionClient.java index 606877bb..9f88c4ff 100644 --- a/src/main/java/org/unicitylabs/sdk/StateTransitionClient.java +++ b/src/main/java/org/unicitylabs/sdk/StateTransitionClient.java @@ -20,7 +20,7 @@ import org.unicitylabs.sdk.api.StatusAwareAggregatorClient; import org.unicitylabs.sdk.api.SubmitOutcome; import org.unicitylabs.sdk.api.WaitOptions; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.jsonrpc.JsonRpcDataException; import org.unicitylabs.sdk.api.jsonrpc.JsonRpcNetworkException; import org.unicitylabs.sdk.api.jsonrpc.JsonRpcResponseException; @@ -258,7 +258,7 @@ public CompletableFuture resubmitCertificationRequest( * {@code maxResubmits} is negative */ public CompletableFuture submitAndWait(Transaction transaction, - CertificationData certificationData, int maxResubmits, RootTrustBase trustBase, + CertificationData certificationData, int maxResubmits, TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, WaitOptions options) { Objects.requireNonNull(options, "options cannot be null"); if (maxResubmits < 0) { @@ -293,7 +293,7 @@ private static void adopt(OperationContext operation, CompletableFuture child } private void attempt(Transaction transaction, CertificationData data, int resubmitsLeft, - RootTrustBase trustBase, PredicateVerifierService verifier, WaitOptions options, + TrustBaseHistoryView trustBase, PredicateVerifierService verifier, WaitOptions options, OperationContext operation, CompletableFuture result) { if (result.isDone()) { return; diff --git a/src/main/java/org/unicitylabs/sdk/api/HttpTrustBaseSource.java b/src/main/java/org/unicitylabs/sdk/api/HttpTrustBaseSource.java new file mode 100644 index 00000000..9de7be1a --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/HttpTrustBaseSource.java @@ -0,0 +1,179 @@ +package org.unicitylabs.sdk.api; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.URI; +import java.net.URISyntaxException; +import java.time.Duration; +import java.util.Locale; +import java.util.Objects; +import java.util.concurrent.CancellationException; +import java.util.concurrent.CompletableFuture; +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseRequest; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseSource; +import org.unicitylabs.sdk.api.jsonrpc.JsonRpcHttpTransport; +import org.unicitylabs.sdk.api.jsonrpc.SdkVersionHeader; +import org.unicitylabs.sdk.util.HexConverter; + +/** + * The aggregator's trust base endpoint, {@code GET + * /api/v1/trustbases?from=E&maxEntries=N[&snapshotEnd=E&snapshotEntryId=0x..]} on its origin + * (whatever path the JSON-RPC URL has): the only delivery that exists. The body is the tag-39015 + * response, size-capped; nothing in it is trusted (see {@link TrustBaseSource}). + * + *

The same rules as the JSON-RPC calls apply: redirects are never followed, an API key is sent + * as a bearer token only over HTTPS unless insecure transport was allowed explicitly, and the + * {@code X-SDK-Version} header follows the {@link SdkVersionHeader} setting. + */ +public final class HttpTrustBaseSource implements TrustBaseSource { + + /** Largest response body read: a full page (1 MiB) plus slack. */ + public static final int MAX_RESPONSE_BYTES = (1 << 20) + 1024; + + /** Default budget of one request. */ + public static final Duration DEFAULT_CALL_TIMEOUT = Duration.ofSeconds(30); + + private static final String PATH = "/api/v1/trustbases"; + + private final HttpUrl endpoint; + private final String apiKey; + private final OkHttpClient httpClient; + private final SdkVersionHeader sdkVersionHeader; + + /** + * Create a source of an aggregator's trust bases. + * + * @param aggregatorUrl the aggregator's (JSON-RPC) URL; only its origin is used + * @param apiKey api key, may be null + * @param allowInsecureTransport allow an API key over plain HTTP + * @param httpClient OkHttp client to use, or null for the SDK default + * @param sdkVersionHeader what to send in the {@code X-SDK-Version} header + */ + public HttpTrustBaseSource(String aggregatorUrl, String apiKey, boolean allowInsecureTransport, + OkHttpClient httpClient, SdkVersionHeader sdkVersionHeader) { + Objects.requireNonNull(aggregatorUrl, "aggregatorUrl cannot be null"); + this.sdkVersionHeader = Objects.requireNonNull(sdkVersionHeader, + "sdkVersionHeader cannot be null"); + HttpUrl parsed = HttpUrl.parse(aggregatorUrl); + if (parsed == null) { + throw new IllegalArgumentException("Invalid aggregator URL."); + } + if (apiKey != null && !allowInsecureTransport && !isHttps(aggregatorUrl)) { + throw new IllegalArgumentException( + "An API key is only sent over HTTPS; pass allowInsecureTransport to override."); + } + this.endpoint = parsed.newBuilder().encodedPath(PATH).query(null).fragment(null).build(); + this.apiKey = apiKey; + // Redirects are never followed, so the credentials are never replayed to another host. + this.httpClient = (httpClient == null ? JsonRpcHttpTransport.defaultHttpClient() : httpClient) + .newBuilder() + .followRedirects(false) + .followSslRedirects(false) + .callTimeout(DEFAULT_CALL_TIMEOUT) + .build(); + } + + /** + * Create a source with the default client and SDK version header. + * + * @param aggregatorUrl the aggregator's (JSON-RPC) URL; only its origin is used + * @param apiKey api key, may be null + */ + public HttpTrustBaseSource(String aggregatorUrl, String apiKey) { + this(aggregatorUrl, apiKey, false, null, SdkVersionHeader.sdkDefault()); + } + + private static boolean isHttps(String url) { + try { + String scheme = new URI(url).getScheme(); + return scheme != null && scheme.toLowerCase(Locale.ROOT).equals("https"); + } catch (URISyntaxException e) { + return false; + } + } + + @Override + public CompletableFuture getTrustBasePage(TrustBaseRequest request) { + Objects.requireNonNull(request, "request cannot be null"); + HttpUrl.Builder url = this.endpoint.newBuilder() + .addQueryParameter("from", Long.toUnsignedString(request.getFromEpoch())) + .addQueryParameter("maxEntries", Integer.toString(request.getMaxEntries())); + TrustBaseRequest.Snapshot snapshot = request.getSnapshot(); + if (snapshot != null) { + url.addQueryParameter("snapshotEnd", Long.toUnsignedString(snapshot.getEnd())) + .addQueryParameter("snapshotEntryId", "0x" + HexConverter.encode(snapshot.getEntryId())); + } + Request.Builder builder = new Request.Builder().url(url.build()).get() + .header("Accept", "application/cbor"); + if (this.sdkVersionHeader.value() != null) { + builder.header(SdkVersionHeader.NAME, this.sdkVersionHeader.value()); + } + if (this.apiKey != null) { + builder.header("Authorization", "Bearer " + this.apiKey); + } + + CompletableFuture future = new CompletableFuture<>(); + Call call = this.httpClient.newCall(builder.build()); + future.whenComplete((result, error) -> { + if (future.isCancelled()) { + call.cancel(); + } + }); + call.enqueue(new Callback() { + @Override + public void onFailure(Call call, IOException e) { + if (call.isCanceled()) { + CancellationException cancelled = new CancellationException("Request cancelled."); + cancelled.initCause(e); + future.completeExceptionally(cancelled); + } else { + future.completeExceptionally(e); + } + } + + @Override + public void onResponse(Call call, Response response) { + try (ResponseBody body = response.body()) { + // A redirect or any other non-success status is a refusal, not a page. + if (!response.isSuccessful()) { + future.completeExceptionally( + new IOException("HTTP " + response.code() + " from the trust base endpoint")); + return; + } + future.complete(readBounded(body)); + } catch (Exception e) { + future.completeExceptionally(e); + } + } + }); + return future; + } + + private static byte[] readBounded(ResponseBody body) throws IOException { + if (body == null) { + return new byte[0]; + } + try (InputStream in = body.byteStream()) { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + byte[] buffer = new byte[8192]; + long total = 0; + int read; + while ((read = in.read(buffer)) != -1) { + total += read; + if (total > MAX_RESPONSE_BYTES) { + throw new IOException("The trust base response exceeds the size cap."); + } + out.write(buffer, 0, read); + } + return out.toByteArray(); + } + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/JsonRpcAggregatorClient.java b/src/main/java/org/unicitylabs/sdk/api/JsonRpcAggregatorClient.java index 12812741..017ead4c 100644 --- a/src/main/java/org/unicitylabs/sdk/api/JsonRpcAggregatorClient.java +++ b/src/main/java/org/unicitylabs/sdk/api/JsonRpcAggregatorClient.java @@ -9,6 +9,7 @@ import org.unicitylabs.sdk.api.jsonrpc.JsonRpcHttpTransport; import org.unicitylabs.sdk.api.jsonrpc.JsonRpcNetworkException; import org.unicitylabs.sdk.api.jsonrpc.JsonRpcResponseException; +import org.unicitylabs.sdk.api.jsonrpc.SdkVersionHeader; import org.unicitylabs.sdk.internal.LongPoll; import org.unicitylabs.sdk.internal.OperationContext; import org.unicitylabs.sdk.serializer.UnicityObjectMapper; @@ -101,6 +102,25 @@ public JsonRpcAggregatorClient(String url, String apiKey, boolean allowInsecureT */ public JsonRpcAggregatorClient(String url, String apiKey, boolean allowInsecureTransport, OkHttpClient httpClient) { + this(url, apiKey, allowInsecureTransport, httpClient, SdkVersionHeader.sdkDefault()); + } + + /** + * Create aggregator client with an explicit setting of the {@code X-SDK-Version} header, sent on + * every HTTP call of the client. + * + * @param url destination url + * @param apiKey api key, may be null + * @param allowInsecureTransport when {@code true}, permit sending the api key over a non-https + * url (intended for local development and testing only) + * @param httpClient OkHttp client to share, null for the SDK's default one + * @param sdkVersionHeader the header setting: default, a custom value or disabled + * + * @throws IllegalArgumentException if an api key is supplied for a non-https url and + * {@code allowInsecureTransport} is {@code false} + */ + public JsonRpcAggregatorClient(String url, String apiKey, boolean allowInsecureTransport, + OkHttpClient httpClient, SdkVersionHeader sdkVersionHeader) { Objects.requireNonNull(url, "url cannot be null"); if (apiKey != null && !allowInsecureTransport && !JsonRpcAggregatorClient.isHttps(url)) { @@ -108,9 +128,9 @@ public JsonRpcAggregatorClient(String url, String apiKey, boolean allowInsecureT "API key must not be sent over plaintext HTTP; use an https url."); } - this.transport = httpClient == null - ? new JsonRpcHttpTransport(url) - : new JsonRpcHttpTransport(url, httpClient); + this.transport = new JsonRpcHttpTransport(url, + httpClient == null ? JsonRpcHttpTransport.defaultHttpClient() : httpClient, + JsonRpcHttpTransport.DEFAULT_MAX_RESPONSE_BYTES, sdkVersionHeader); this.apiKey = apiKey; } diff --git a/src/main/java/org/unicitylabs/sdk/api/NetworkId.java b/src/main/java/org/unicitylabs/sdk/api/NetworkId.java index 9b01d125..eb5e3553 100644 --- a/src/main/java/org/unicitylabs/sdk/api/NetworkId.java +++ b/src/main/java/org/unicitylabs/sdk/api/NetworkId.java @@ -3,12 +3,15 @@ /** * Unicity network identifier ({@code α}). Used to scope token ids and other * network-bound values so they cannot be replayed across networks. + * + *

The named networks are the live ones: MAINNET 1, TESTNET2 4 and the LOCAL development network + * 3. Network 2, the old testnet, was removed and has no constant: 2 is an ordinary unnamed id. */ public final class NetworkId { public static final NetworkId MAINNET = new NetworkId(1, "MAINNET"); - public static final NetworkId TESTNET = new NetworkId(2, "TESTNET"); public static final NetworkId LOCAL = new NetworkId(3, "LOCAL"); + public static final NetworkId TESTNET2 = new NetworkId(4, "TESTNET2"); private final int id; private final String name; @@ -41,12 +44,12 @@ public static NetworkId fromId(short id) { if (value == MAINNET.id) { return MAINNET; } - if (value == TESTNET.id) { - return TESTNET; - } if (value == LOCAL.id) { return LOCAL; } + if (value == TESTNET2.id) { + return TESTNET2; + } return new NetworkId(value); } diff --git a/src/main/java/org/unicitylabs/sdk/api/NonInclusionVerifier.java b/src/main/java/org/unicitylabs/sdk/api/NonInclusionVerifier.java index 7046d906..85a4ca06 100644 --- a/src/main/java/org/unicitylabs/sdk/api/NonInclusionVerifier.java +++ b/src/main/java/org/unicitylabs/sdk/api/NonInclusionVerifier.java @@ -4,7 +4,7 @@ import java.util.Objects; import org.unicitylabs.sdk.api.NonInclusionVerificationException.Reason; import org.unicitylabs.sdk.api.bft.InputRecord; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.api.bft.UnicityCertificate; import org.unicitylabs.sdk.api.bft.UnicitySeal; @@ -13,7 +13,6 @@ import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.serializer.cbor.CborSerializationException; import org.unicitylabs.sdk.util.UnsignedLongs; import org.unicitylabs.sdk.util.verification.VerificationStatus; @@ -67,10 +66,10 @@ private NonInclusionVerifier() { * @return the outcome with its authenticated snapshot * @throws NonInclusionVerificationException if the proof is rejected; no snapshot is attached */ - public static NonInclusionOutcome verify(RootTrustBase trustBase, NonInclusionProof proof, + public static NonInclusionOutcome verify(TrustBaseHistoryView trustBase, NonInclusionProof proof, NonInclusionContext context) { return verify(new UnicityCertificateVerifier() - .beginOperation(VerificationPolicy.STRICT, PartitionViewPolicy.none()), + .beginOperation(PartitionViewPolicy.none()), trustBase, proof, context); } @@ -93,7 +92,7 @@ public static NonInclusionOutcome verify(RootTrustBase trustBase, NonInclusionPr * @throws NonInclusionVerificationException if the proof is rejected or bound to another state */ public static NonInclusionOutcome verify(UnicityCertificateVerifier verifier, - RootTrustBase trustBase, NonInclusionProof proof, StateId target, + TrustBaseHistoryView trustBase, NonInclusionProof proof, StateId target, NonInclusionContext context) { Objects.requireNonNull(target, "target cannot be null"); Objects.requireNonNull(proof, "proof cannot be null"); @@ -115,32 +114,19 @@ public static NonInclusionOutcome verify(UnicityCertificateVerifier verifier, * metadata for this check. * * @param verifier the verifier of the operation, obtained from - * {@link UnicityCertificateVerifier#beginOperation} with {@link VerificationPolicy#STRICT}; - * the plain verifier and any operation verifier of the legacy quorum policy apply no - * epoch check and are refused - * @param trustBase the authority + * {@link UnicityCertificateVerifier#beginOperation} + * @param trustBase the trust-base history the seal is placed in * @param proof the unverified proof, bound to the queried state * @param context what the caller trusts about the shard * @return the outcome with its authenticated snapshot - * @throws IllegalArgumentException if the plain (legacy) verifier is passed * @throws NonInclusionVerificationException if the proof is rejected; no snapshot is attached */ public static NonInclusionOutcome verify(UnicityCertificateVerifier verifier, - RootTrustBase trustBase, NonInclusionProof proof, NonInclusionContext context) { + TrustBaseHistoryView trustBase, NonInclusionProof proof, NonInclusionContext context) { Objects.requireNonNull(verifier, "verifier cannot be null"); Objects.requireNonNull(trustBase, "trustBase cannot be null"); Objects.requireNonNull(proof, "proof cannot be null"); Objects.requireNonNull(context, "context cannot be null"); - if (verifier.getClass() == UnicityCertificateVerifier.class) { - throw new IllegalArgumentException( - "The plain verifier applies the legacy quorum policy; use beginOperation(STRICT, ...)."); - } - if (verifier instanceof OperationUnicityCertificateVerifier - && ((OperationUnicityCertificateVerifier) verifier).getPolicy() != VerificationPolicy.STRICT) { - throw new IllegalArgumentException( - "The operation verifier applies the legacy quorum policy; use beginOperation(STRICT, ...)."); - } - NonInclusionProof.Decoded decoded; try { decoded = proof.decode(); @@ -195,7 +181,7 @@ public static NonInclusionOutcome verify(UnicityCertificateVerifier verifier, * seal hash, network, epoch interval and quorum), and the authority’s end. */ private static void authenticateCertificate(UnicityCertificateVerifier verifier, - RootTrustBase trustBase, UnicityCertificate uc, NonInclusionContext context) { + TrustBaseHistoryView trustBase, UnicityCertificate uc, NonInclusionContext context) { ShardId shard = uc.getShardTreeCertificate().getShard(); if (!shard.equals(context.getShard())) { throw invalid("the certificate is not of the context's shard"); diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/RootTrustBase.java b/src/main/java/org/unicitylabs/sdk/api/bft/RootTrustBase.java deleted file mode 100644 index 26fdf87f..00000000 --- a/src/main/java/org/unicitylabs/sdk/api/bft/RootTrustBase.java +++ /dev/null @@ -1,350 +0,0 @@ -package org.unicitylabs.sdk.api.bft; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import java.math.BigInteger; -import java.util.Arrays; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.stream.Collectors; -import org.unicitylabs.sdk.api.NetworkId; -import org.unicitylabs.sdk.serializer.UnicityObjectMapper; -import org.unicitylabs.sdk.serializer.json.JsonSerializationException; -import org.unicitylabs.sdk.serializer.json.UnsignedLongJson; -import org.unicitylabs.sdk.util.HexConverter; -import org.unicitylabs.sdk.util.UnsignedLongs; - -/** - * Root trust base information. - */ -public class RootTrustBase { - - private static final long VERSION = 1; - - private final NetworkId networkId; - private final long epoch; - private final long epochStartRound; - private final Map rootNodes; - private final long quorumThreshold; - private final byte[] stateHash; - private final byte[] changeRecordHash; - private final byte[] previousEntryHash; - private final Map signatures; - - @JsonCreator - RootTrustBase( - @JsonProperty("version") - @JsonDeserialize(using = UnsignedLongJson.Deserializer.class) long version, - @JsonProperty("networkId") NetworkId networkId, - @JsonProperty("epoch") - @JsonDeserialize(using = UnsignedLongJson.Deserializer.class) long epoch, - @JsonProperty("epochStartRound") - @JsonDeserialize(using = UnsignedLongJson.Deserializer.class) long epochStartRound, - @JsonProperty("rootNodes") List rootNodes, - @JsonProperty("quorumThreshold") - @JsonDeserialize(using = UnsignedLongJson.Deserializer.class) long quorumThreshold, - @JsonProperty("stateHash") byte[] stateHash, - @JsonProperty("changeRecordHash") byte[] changeRecordHash, - @JsonProperty("previousEntryHash") byte[] previousEntryHash, - @JsonProperty("signatures") Map signatures - ) { - if (version != RootTrustBase.VERSION) { - throw new IllegalArgumentException( - String.format("Unsupported RootTrustBase version: %s", UnsignedLongs.toDecimal(version))); - } - - Objects.requireNonNull(rootNodes, "rootNodes cannot be null"); - - Map nodes = new LinkedHashMap<>(); - Set signingKeys = new HashSet<>(); - for (NodeInfo node : rootNodes) { - Objects.requireNonNull(node, "Trust base node cannot be null"); - if (nodes.putIfAbsent(node.getNodeId(), node) != null) { - throw new IllegalArgumentException( - String.format("Duplicate trust base node id: %s", node.getNodeId())); - } - if (!signingKeys.add(HexConverter.encode(node.getSigningKey()))) { - throw new IllegalArgumentException("Duplicate trust base signing key."); - } - } - - if (nodes.isEmpty()) { - throw new IllegalArgumentException("Trust base must contain at least one root node."); - } - - if (quorumThreshold == 0 || UnsignedLongs.compare(quorumThreshold, nodes.size()) > 0) { - throw new IllegalArgumentException( - "Trust base quorum threshold must be between 1 and the root node count."); - } - - this.networkId = networkId; - this.epoch = epoch; - this.epochStartRound = epochStartRound; - this.rootNodes = nodes; - this.quorumThreshold = quorumThreshold; - this.stateHash = Arrays.copyOf(stateHash, stateHash.length); - this.changeRecordHash = changeRecordHash == null - ? null - : Arrays.copyOf(changeRecordHash, changeRecordHash.length); - this.previousEntryHash = previousEntryHash == null - ? null - : Arrays.copyOf(previousEntryHash, previousEntryHash.length); - this.signatures = signatures.entrySet().stream() - .collect(Collectors.toMap( - Map.Entry::getKey, - e -> Arrays.copyOf(e.getValue(), e.getValue().length) - )); - } - - /** - * Get version. - * - * @return version - */ - @JsonSerialize(using = UnsignedLongJson.Serializer.class) - public long getVersion() { - return RootTrustBase.VERSION; - } - - /** - * Get network id. - * - * @return network id - */ - public NetworkId getNetworkId() { - return this.networkId; - } - - /** - * Get current epoch as unsigned 64-bit bits (2^63 or above reads as a negative {@code long}). - * See {@link #getEpochUnsigned()}. - * - * @return epoch bits - */ - @JsonSerialize(using = UnsignedLongJson.Serializer.class) - public long getEpoch() { - return this.epoch; - } - - /** - * Get epoch start round as unsigned 64-bit bits. See {@link #getEpochStartRoundUnsigned()}. - * - * @return epoch start round bits - */ - @JsonSerialize(using = UnsignedLongJson.Serializer.class) - public long getEpochStartRound() { - return this.epochStartRound; - } - - /** - * Get current epoch as a non-negative integer. - * - * @return epoch - */ - @JsonIgnore - public BigInteger getEpochUnsigned() { - return UnsignedLongs.toBigInteger(this.epoch); - } - - /** - * Get epoch start round as a non-negative integer. - * - * @return epoch start round - */ - @JsonIgnore - public BigInteger getEpochStartRoundUnsigned() { - return UnsignedLongs.toBigInteger(this.epochStartRound); - } - - /** - * Get root nodes. - * - * @return root nodes - */ - public Set getRootNodes() { - return Set.copyOf(this.rootNodes.values()); - } - - /** - * Get root node by node id. - * - * @param nodeId node id - * @return node info, or {@code null} when no node with the given id exists - */ - public NodeInfo getRootNode(String nodeId) { - return this.rootNodes.get(nodeId); - } - - /** - * Get quorum threshold. - * - * @return quorum threshold - */ - @JsonSerialize(using = UnsignedLongJson.Serializer.class) - public long getQuorumThreshold() { - return this.quorumThreshold; - } - - /** - * Get state hash. - * - * @return state hash - */ - public byte[] getStateHash() { - return Arrays.copyOf(this.stateHash, this.stateHash.length); - } - - /** - * Get change record hash. - * - * @return change record hash - */ - public byte[] getChangeRecordHash() { - return this.changeRecordHash == null - ? null - : Arrays.copyOf(this.changeRecordHash, this.changeRecordHash.length); - } - - /** - * Get previous entry hash. - * - * @return previous entry hash - */ - public byte[] getPreviousEntryHash() { - return this.previousEntryHash == null - ? null - : Arrays.copyOf(this.previousEntryHash, this.previousEntryHash.length); - } - - /** - * Get signatures. - * - * @return signatures - */ - public Map getSignatures() { - return Map.copyOf( - this.signatures.entrySet().stream() - .collect(Collectors.toMap( - Map.Entry::getKey, - e -> Arrays.copyOf(e.getValue(), e.getValue().length) - )) - ); - } - - /** - * Create a root trust base from JSON string. - * - * @param input JSON string - * @return root trust base - */ - public static RootTrustBase fromJson(String input) { - try { - return UnicityObjectMapper.JSON.readValue(input, RootTrustBase.class); - } catch (JsonProcessingException e) { - throw new JsonSerializationException(RootTrustBase.class, e); - } - } - - /** - * Convert root trust base to JSON string. - * - * @return JSON string - */ - public String toJson() { - try { - return UnicityObjectMapper.JSON.writeValueAsString(this); - } catch (JsonProcessingException e) { - throw new JsonSerializationException(RootTrustBase.class, e); - } - } - - /** - * Node information. - */ - public static class NodeInfo { - - private final String nodeId; - private final byte[] signingKey; - private final long stakedAmount; - - @JsonCreator - NodeInfo( - @JsonProperty("nodeId") String nodeId, - @JsonProperty("sigKey") byte[] signingKey, - @JsonProperty("stake") - @JsonDeserialize(using = UnsignedLongJson.Deserializer.class) long stakedAmount - ) { - Objects.requireNonNull(nodeId, "Node id cannot be null"); - Objects.requireNonNull(signingKey, "Node signing key cannot be null"); - if (stakedAmount == 0) { - throw new IllegalArgumentException("Each trust base root node must have positive stake."); - } - - this.nodeId = nodeId; - this.signingKey = Arrays.copyOf(signingKey, signingKey.length); - this.stakedAmount = stakedAmount; - } - - /** - * Get node ID. - * - * @return node ID - */ - public String getNodeId() { - return this.nodeId; - } - - /** - * Get signing key. - * - * @return signing key - */ - @JsonProperty("sigKey") - public byte[] getSigningKey() { - return Arrays.copyOf(this.signingKey, this.signingKey.length); - } - - /** - * Get the staked amount as unsigned 64-bit bits. See {@link #getStakedAmountUnsigned()}. - * - * @return staked amount bits - */ - @JsonProperty("stake") - @JsonSerialize(using = UnsignedLongJson.Serializer.class) - public long getStakedAmount() { - return this.stakedAmount; - } - - /** - * Get the staked amount as a non-negative integer. - * - * @return staked amount - */ - @JsonIgnore - public BigInteger getStakedAmountUnsigned() { - return UnsignedLongs.toBigInteger(this.stakedAmount); - } - - @Override - public boolean equals(Object o) { - if (!(o instanceof NodeInfo)) { - return false; - } - NodeInfo nodeInfo = (NodeInfo) o; - return Objects.equals(this.nodeId, nodeInfo.nodeId); - } - - @Override - public int hashCode() { - return Objects.hash(nodeId); - } - } -} \ No newline at end of file diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/UnicitySeal.java b/src/main/java/org/unicitylabs/sdk/api/bft/UnicitySeal.java index 8352de75..974410d1 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/UnicitySeal.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/UnicitySeal.java @@ -24,6 +24,8 @@ */ public class UnicitySeal { public static final long CBOR_TAG = 39005; + /** Most signatures a seal may carry (owner §49): a native resource ceiling, counted whoever signed. */ + public static final int MAX_WITNESSES = 256; private static final int VERSION = 1; private final NetworkId networkId; @@ -296,7 +298,7 @@ public static UnicitySeal fromCbor(byte[] bytes) { // a seal that arrives over the wire carries its signature map; the null form exists only for // the seal hash, which is computed over the seal without signatures Map witnesses = new LinkedHashMap<>(); - for (CborMap.Entry entry : CborDeserializer.decodeMap(data.get(7))) { + for (CborMap.Entry entry : CborDeserializer.decodeMapAtMost(data.get(7), MAX_WITNESSES)) { String signer = CborDeserializer.decodeTextString(entry.getKey()); if (witnesses.put(signer, CborDeserializer.decodeByteString(entry.getValue())) != null) { throw new CborSerializationException("Duplicate signer id in seal signatures."); diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheContendedException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheContendedException.java new file mode 100644 index 00000000..0fa0dcd8 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheContendedException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** The compare-and-swap lost the race on every attempt; retry later. */ +public class CacheContendedException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public CacheContendedException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheDiagnostic.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheDiagnostic.java new file mode 100644 index 00000000..c774f7a9 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheDiagnostic.java @@ -0,0 +1,76 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** A non-fatal observation of open or flush; the application decides how to present it. */ +public final class CacheDiagnostic { + + private final CacheRejection rejection; + private final Throwable cause; + + private CacheDiagnostic(CacheRejection rejection, Throwable cause) { + this.rejection = rejection; + this.cause = cause; + } + + /** + * The cache was rejected and the embedded history used. + * + * @param rejection why + * @return the diagnostic + */ + public static CacheDiagnostic rejected(CacheRejection rejection) { + return new CacheDiagnostic(rejection, null); + } + + /** + * The cache could not be read; the embedded history is used. + * + * @param cause the failure + * @return the diagnostic + */ + public static CacheDiagnostic unavailable(Throwable cause) { + return new CacheDiagnostic(null, cause); + } + + /** + * Tell whether the cache was rejected (as opposed to unreadable). + * + * @return true for a rejection + */ + public boolean isRejection() { + return this.rejection != null; + } + + /** + * Get why the cache was rejected. + * + * @return the reason, or null when the cache was unreadable + */ + public CacheRejection getRejection() { + return this.rejection; + } + + /** + * Get the failure that made the cache unreadable. + * + * @return the failure, or null for a rejection + */ + public Throwable getCause() { + return this.cause; + } + + @Override + public boolean equals(Object o) { + return o instanceof CacheDiagnostic && ((CacheDiagnostic) o).rejection == this.rejection + && ((CacheDiagnostic) o).cause == this.cause; + } + + @Override + public int hashCode() { + return java.util.Objects.hash(this.rejection, this.cause); + } + + @Override + public String toString() { + return this.rejection != null ? "CacheRejected:" + this.rejection : "CacheUnavailable"; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheRejectedException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheRejectedException.java new file mode 100644 index 00000000..8c6cf446 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheRejectedException.java @@ -0,0 +1,30 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** + * The stored cache is a valid history that must not be overwritten (over the budget, or an + * authenticated chain diverging at or before the checkpoint): nothing is written; the application + * decides. + */ +public class CacheRejectedException extends TrustBaseException { + + private final CacheRejection reason; + + /** + * Create the exception. + * + * @param reason why the cache is kept + */ + public CacheRejectedException(CacheRejection reason) { + super("Cache rejected: " + reason + "."); + this.reason = reason; + } + + /** + * Get why the cache is kept. + * + * @return the reason + */ + public CacheRejection getReason() { + return this.reason; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheRejection.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheRejection.java new file mode 100644 index 00000000..b250f4e5 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/CacheRejection.java @@ -0,0 +1,15 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** Why a cache was not used. */ +public enum CacheRejection { + /** Not a complete canonical bundle that verifies strictly from its genesis. */ + MALFORMED, + /** A bundle of another network. */ + WRONG_NETWORK, + /** A bundle of another genesis. */ + WRONG_GENESIS, + /** Diverges from, or does not reach, the release checkpoint. */ + PIN_MISMATCH, + /** Larger than the read budget. */ + OVERSIZE +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/FlushResult.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/FlushResult.java new file mode 100644 index 00000000..7dec7c88 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/FlushResult.java @@ -0,0 +1,65 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Collections; +import java.util.List; + +/** The outcome of {@link TrustBaseSession#flush}. A failed save does not undo the verified in-memory history. */ +public final class FlushResult { + + private final boolean saved; + private final boolean wrote; + private final List diagnostics; + private final Throwable error; + + private FlushResult(boolean saved, boolean wrote, List diagnostics, + Throwable error) { + this.saved = saved; + this.wrote = wrote; + this.diagnostics = Collections.unmodifiableList(diagnostics); + this.error = error; + } + + static FlushResult saved(boolean wrote, List diagnostics) { + return new FlushResult(true, wrote, diagnostics, null); + } + + static FlushResult pending(Throwable error) { + return new FlushResult(false, false, Collections.emptyList(), error); + } + + /** + * Tell whether the store holds the session's complete history. + * + * @return true if saved; false if the session stays dirty (and verified) and may retry + */ + public boolean isSaved() { + return this.saved; + } + + /** + * Tell whether bytes were written. + * + * @return false when the store already had everything, or nothing here was unsaved + */ + public boolean isWrote() { + return this.wrote; + } + + /** + * Get a damaged cache the flush found and replaced, reported before the replacement. + * + * @return the diagnostics + */ + public List getDiagnostics() { + return this.diagnostics; + } + + /** + * Get why nothing was saved. + * + * @return the failure, or null when saved + */ + public Throwable getError() { + return this.error; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/HistoryConflictedException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/HistoryConflictedException.java new file mode 100644 index 00000000..631b5a34 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/HistoryConflictedException.java @@ -0,0 +1,31 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** + * The session is conflicted by an authenticated fork after the release checkpoint: every append, + * refresh and verification fails, and nothing is written. The evidence is + * {@link #getConflict()}. The latch belongs to the live session only. + */ +public class HistoryConflictedException extends TrustBaseException { + + private final TrustBaseConflictException conflict; + + /** + * Create the exception. + * + * @param conflict the fork that closed the session, with its evidence + */ + public HistoryConflictedException(TrustBaseConflictException conflict) { + super("The history is conflicted at epoch " + Long.toUnsignedString(conflict.getEpoch()) + ".", + conflict); + this.conflict = conflict; + } + + /** + * Get the fork that closed the session. + * + * @return the conflict, with its evidence + */ + public TrustBaseConflictException getConflict() { + return this.conflict; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/MemoryTrustBaseStore.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/MemoryTrustBaseStore.java new file mode 100644 index 00000000..3d59ca78 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/MemoryTrustBaseStore.java @@ -0,0 +1,65 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + +/** The reference store: a map in memory, copying on the way in and out, with the same contract as any other. */ +public final class MemoryTrustBaseStore implements TrustBaseStore { + + private final Map values = new HashMap<>(); + + /** + * Put bytes under a key regardless of the revision (a competing writer, in tests). + * + * @param key the key + * @param bytes the bytes, copied + */ + public synchronized void put(String key, byte[] bytes) { + this.values.put(key, Arrays.copyOf(bytes, bytes.length)); + } + + /** + * Get a copy of the bytes under a key. + * + * @param key the key + * @return the bytes, or null when absent + */ + public synchronized byte[] get(String key) { + byte[] held = this.values.get(key); + return held == null ? null : Arrays.copyOf(held, held.length); + } + + @Override + public synchronized CompletableFuture> read(String key, int maxBytes) { + Objects.requireNonNull(key, "key cannot be null"); + byte[] held = this.values.get(key); + if (held == null) { + return CompletableFuture.completedFuture(Optional.empty()); + } + if (held.length > maxBytes) { + return CompletableFuture.failedFuture(new TrustBaseStoreException( + TrustBaseStoreException.Reason.OVERSIZE, + held.length + " bytes exceed the budget of " + maxBytes + ".")); + } + return CompletableFuture.completedFuture(Optional.of( + new Stored(Arrays.copyOf(held, held.length), TrustBaseCacheKey.revision(held)))); + } + + @Override + public synchronized CompletableFuture compareAndSwap(String key, + String expectedRevision, byte[] bytes) { + Objects.requireNonNull(key, "key cannot be null"); + Objects.requireNonNull(bytes, "bytes cannot be null"); + byte[] held = this.values.get(key); + String current = held == null ? null : TrustBaseCacheKey.revision(held); + if (!Objects.equals(current, expectedRevision)) { + return CompletableFuture.completedFuture(CasOutcome.CHANGED); + } + this.values.put(key, Arrays.copyOf(bytes, bytes.length)); + return CompletableFuture.completedFuture(CasOutcome.WRITTEN); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePin.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePin.java new file mode 100644 index 00000000..1edf3e25 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePin.java @@ -0,0 +1,234 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Arrays; +import java.util.Objects; +import org.unicitylabs.sdk.api.NetworkId; + +/** + * A release pin: the complete trust base history of a network from its genesis to exactly the + * pinned tip, and the identities that bind it. It comes from the authenticated software release + * (or, for a private network, from the application's own configuration), never from a digest shipped + * beside an untrusted download. Holds copies. + */ +public final class ReleasePin { + + /** Budget of an embedded bundle, a cache and merged bundles: 16 MiB, 4,096 entries, 128 KiB each. */ + public static final TrustBaseBundleLimits DEFAULT_LIMITS = + new TrustBaseBundleLimits(16 * 1024 * 1024, 4096, TrustBaseEntry.MAX_ENTRY_BYTES); + + private final NetworkId networkId; + private final long genesisEpoch; + private final byte[] genesisEntryId; + private final long pinnedEpoch; + private final byte[] pinnedEntryId; + private final byte[] bundle; + private final byte[] bundleSha256; + + /** + * Create a pin. + * + * @param networkId the network + * @param genesisEpoch epoch of the genesis entry (unsigned) + * @param genesisEntryId identity of the genesis entry + * @param pinnedEpoch epoch of the release tip, the checkpoint (unsigned) + * @param pinnedEntryId identity of the release tip + * @param bundle the complete history, genesis to exactly the tip, as a tag-39015 bundle + * @param bundleSha256 SHA-256 of {@code bundle} + */ + public ReleasePin(NetworkId networkId, long genesisEpoch, byte[] genesisEntryId, + long pinnedEpoch, byte[] pinnedEntryId, byte[] bundle, byte[] bundleSha256) { + this.networkId = Objects.requireNonNull(networkId, "networkId cannot be null"); + this.genesisEpoch = genesisEpoch; + this.genesisEntryId = copy(genesisEntryId); + this.pinnedEpoch = pinnedEpoch; + this.pinnedEntryId = copy(pinnedEntryId); + this.bundle = copy(bundle); + this.bundleSha256 = copy(bundleSha256); + } + + private static byte[] copy(byte[] bytes) { + Objects.requireNonNull(bytes, "bytes cannot be null"); + return Arrays.copyOf(bytes, bytes.length); + } + + /** + * A pin derived from a complete tag-39015 bundle (genesis to tip) alone: the network, both epochs + * and both identities are read from the bundle and the digest is computed. For a local or private + * network whose own deployment is the source of trust; the bundle is still verified strictly, + * link by link, when a session opens. + * + * @param bundle the complete bundle + * @return the pin + * @throws ReleasePinInvalidException if the bundle is not a complete GetTrustBase response (a + * continuation, a status other than OK), does not start at a genesis entry, is empty, is over + * the default budget or is malformed + */ + public static ReleasePin fromBundle(byte[] bundle) { + Objects.requireNonNull(bundle, "bundle cannot be null"); + TrustBaseBundle parsed; + try { + parsed = TrustBaseBundle.decode(bundle, DEFAULT_LIMITS); + parsed.getEntries().get(0).verifyGenesis(); + } catch (TrustBaseException e) { + throw new ReleasePinInvalidException("The bundle is not a complete GetTrustBase response " + + "starting at a genesis entry.", e); + } + TrustBaseEntry first = parsed.getEntries().get(0); + TrustBaseEntry last = parsed.getTip(); + return new ReleasePin(parsed.getNetworkId(), first.getEpoch(), first.entryId(), last.getEpoch(), + last.entryId(), bundle, TrustBaseCacheKey.sha256(bundle)); + } + + /** + * Verify the pin and build the history it embeds: digest, structure, every predecessor signature, + * both identities and both epochs. + * + * @param limits budget of the embedded bundle + * @return the verified pin + * @throws ReleasePinInvalidException if anything about the pin does not hold + */ + public VerifiedReleasePin verify(TrustBaseBundleLimits limits) { + try { + if (!Arrays.equals(TrustBaseCacheKey.sha256(this.bundle), this.bundleSha256)) { + throw new ReleasePinInvalidException("The bundle digest differs from the pin."); + } + TrustBaseBundle decoded = TrustBaseBundle.decode(this.bundle, limits); + TrustBaseHistory history = TrustBaseHistory.fromBundle(decoded, this.genesisEntryId); + if (!history.getNetworkId().get().equals(this.networkId)) { + throw new ReleasePinInvalidException("The embedded bundle is of another network."); + } + TrustBaseEntry genesis = history.getEntries().get(0); + if (genesis.getEpoch() != this.genesisEpoch) { + throw new ReleasePinInvalidException("The genesis epoch differs from the pin."); + } + TrustBaseEntry tip = history.getTip().get(); + if (tip.getEpoch() != this.pinnedEpoch + || !Arrays.equals(tip.entryId(), this.pinnedEntryId)) { + throw new ReleasePinInvalidException("The tip differs from the pin."); + } + return new VerifiedReleasePin(this, history); + } catch (ReleasePinInvalidException e) { + throw e; + } catch (TrustBaseException e) { + throw new ReleasePinInvalidException("The embedded bundle does not verify: " + + e.getMessage(), e); + } + } + + /** + * Get the network. + * + * @return the network + */ + public NetworkId getNetworkId() { + return this.networkId; + } + + /** + * Get the epoch of the genesis entry. + * + * @return the epoch (unsigned) + */ + public long getGenesisEpoch() { + return this.genesisEpoch; + } + + /** + * Get the identity of the genesis entry. + * + * @return a copy + */ + public byte[] getGenesisEntryId() { + return copy(this.genesisEntryId); + } + + /** + * Get the epoch of the release tip, the checkpoint. + * + * @return the epoch (unsigned) + */ + public long getPinnedEpoch() { + return this.pinnedEpoch; + } + + /** + * Get the identity of the release tip. + * + * @return a copy + */ + public byte[] getPinnedEntryId() { + return copy(this.pinnedEntryId); + } + + /** + * Get the embedded bundle. + * + * @return a copy + */ + public byte[] getBundle() { + return copy(this.bundle); + } + + /** + * Get the SHA-256 of the bundle. + * + * @return a copy + */ + public byte[] getBundleSha256() { + return copy(this.bundleSha256); + } + + /** A pin that has been verified, with a fresh history holding its entries. */ + public static final class VerifiedReleasePin { + + private final ReleasePin pin; + private final TrustBaseHistory history; + + private VerifiedReleasePin(ReleasePin pin, TrustBaseHistory history) { + this.pin = pin; + this.history = history; + } + + /** + * Get the pin. + * + * @return the pin + */ + public ReleasePin getPin() { + return this.pin; + } + + /** + * Get the history the pin embeds. + * + * @return a fresh history; the caller owns it + */ + public TrustBaseHistory getHistory() { + return this.history; + } + + /** + * The entry id of the checkpoint at an epoch. + * + * @param epoch the epoch (unsigned) + * @return the entry id, or null outside the pinned history + */ + public byte[] idAt(long epoch) { + return this.history.entryForEpoch(epoch).map(TrustBaseEntry::entryId).orElse(null); + } + + /** + * Whether a candidate continues this pin: the same network and genesis, containing this + * checkpoint at this epoch, at an equal or later pinned epoch. + * + * @param candidate the verified candidate + * @return true if the candidate extends this pin + */ + public boolean isExtendedBy(VerifiedReleasePin candidate) { + byte[] id = candidate.idAt(this.pin.pinnedEpoch); + return candidate.pin.networkId.equals(this.pin.networkId) + && Arrays.equals(candidate.pin.genesisEntryId, this.pin.genesisEntryId) + && id != null && Arrays.equals(id, this.pin.pinnedEntryId); + } + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinInvalidException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinInvalidException.java new file mode 100644 index 00000000..c6786dd5 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinInvalidException.java @@ -0,0 +1,24 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** The embedded pin is invalid. Fatal: never rescued by a cache or a remote source. */ +public class ReleasePinInvalidException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public ReleasePinInvalidException(String message) { + super(message); + } + + /** + * Create the exception with its cause. + * + * @param message what failed + * @param cause underlying failure + */ + public ReleasePinInvalidException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePins.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePins.java new file mode 100644 index 00000000..ed3b9e2b --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePins.java @@ -0,0 +1,77 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.util.HexConverter; + +/** + * The release table of this SDK build, one row per public network: the approved genesis bundles of + * unicity-ids (PR 11, source commit recorded in {@code release-pins/manifest.json}) with their + * digests, EntryIDs and epochs. The assets are resources of the library, byte-identical to the + * ones the JavaScript and Rust SDKs ship (the manifest has the same sha256). Nothing is fetched and + * nothing is trusted from beside a download: the table comes with the authenticated release. + * + *

The rows are not verified here; a session verifies the row it uses (digest, the full chain + * from the pinned genesis, both identities) when it opens, and a failure is fatal + * ({@link ReleasePinInvalidException}). The manifest is regenerated from the bundles by + * {@code ReleasePinsTest} (set {@code UTB_RELEASE_PINS_UPDATE=1}), which fails on any difference. + * A future pin must extend the previous checkpoint. + */ +public final class ReleasePins { + + private static final String DIRECTORY = "/release-pins/"; + + /** The rows of the built-in table. */ + public static final List ROWS = load(); + + private ReleasePins() { + } + + private static List load() { + JsonNode manifest = parse(read("manifest.json")); + if (manifest.path("version").asInt() != 1) { + throw new IllegalStateException("Unsupported release pin manifest version."); + } + List rows = new ArrayList<>(); + for (JsonNode row : manifest.get("networks")) { + rows.add(new ReleasePin(NetworkId.fromId((short) row.get("networkId").asInt()), + Long.parseUnsignedLong(row.get("genesisEpoch").asText()), + HexConverter.decode(row.get("genesisEntryId").asText()), + Long.parseUnsignedLong(row.get("pinnedEpoch").asText()), + HexConverter.decode(row.get("pinnedEntryId").asText()), + read(row.get("bundle").asText()), HexConverter.decode(row.get("bundleSha256").asText()))); + } + return Collections.unmodifiableList(rows); + } + + private static JsonNode parse(byte[] bytes) { + try { + return new ObjectMapper().readTree(bytes); + } catch (IOException e) { + throw new IllegalStateException("The release pin manifest is not JSON.", e); + } + } + + private static byte[] read(String name) { + try (InputStream in = ReleasePins.class.getResourceAsStream(DIRECTORY + name)) { + if (in == null) { + throw new IllegalStateException("Missing release asset " + name + "."); + } + java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream(); + byte[] buffer = new byte[8192]; + int read; + while ((read = in.read(buffer)) != -1) { + out.write(buffer, 0, read); + } + return out.toByteArray(); + } catch (IOException e) { + throw new IllegalStateException("Cannot read release asset " + name + ".", e); + } + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseAppendOutcome.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseAppendOutcome.java new file mode 100644 index 00000000..789d71c5 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseAppendOutcome.java @@ -0,0 +1,9 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** What {@link TrustBaseHistory#append} did with an entry that passed. */ +public enum TrustBaseAppendOutcome { + /** The entry was added. */ + APPENDED, + /** The entry was already held: nothing changed. */ + ALREADY_HELD +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBeforeGenesisException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBeforeGenesisException.java new file mode 100644 index 00000000..be43f8cf --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBeforeGenesisException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** An entry is of an epoch before the genesis epoch of the history. */ +public class TrustBaseBeforeGenesisException extends TrustBaseChainException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseBeforeGenesisException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundle.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundle.java new file mode 100644 index 00000000..0305865c --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundle.java @@ -0,0 +1,205 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.util.UnsignedLongs; + +/** + * A complete Unicity Trust Base release bundle: the GetTrustBase response (CBOR tag 39015) with + * status OK, starting at the genesis entry, ending at the release tip, with no continuation + * cursor. The reference is bft-core {@code gettrustbase.DecodeBundle}. + * + *

Wire form: tag 39015 over {@code [1, networkId, 0, fromEpoch, effectiveEnd, endEntryId, + * [entry...], null]}, each entry a complete tag-39000 {@link TrustBaseEntry}, consecutive and + * ascending from the genesis, each linked to its predecessor by entry id. A one-entry bundle holds + * a genesis entry only. + * + *

Decoding checks the structure and the links, not the signatures: the history that installs + * the bundle authenticates every entry after the genesis, and the genesis against a pinned entry + * id. + */ +public final class TrustBaseBundle { + + private final NetworkId networkId; + private final List entries; + private final List raw; + + private TrustBaseBundle(NetworkId networkId, List entries, List raw) { + this.networkId = networkId; + this.entries = Collections.unmodifiableList(new ArrayList<>(entries)); + this.raw = raw; + } + + /** + * Get the network. + * + * @return network id + */ + public NetworkId getNetworkId() { + return this.networkId; + } + + /** + * Get the entries, ascending from the genesis. + * + * @return immutable list + */ + public List getEntries() { + return this.entries; + } + + /** + * Get the canonical bytes of each entry, ascending from the genesis. + * + * @return copies + */ + public List getRaw() { + List copy = new ArrayList<>(this.raw.size()); + for (byte[] bytes : this.raw) { + copy.add(Arrays.copyOf(bytes, bytes.length)); + } + return copy; + } + + /** + * Get the release tip. + * + * @return the last entry + */ + public TrustBaseEntry getTip() { + return this.entries.get(this.entries.size() - 1); + } + + /** + * Strictly decode a complete bundle. + * + * @param bytes tagged bundle + * @param limits size budget, checked before allocation + * @return the bundle + * @throws TrustBaseEncodingException if the bytes (or an entry) are not the deterministic + * encoding, or exceed the budget + * @throws TrustBaseInvalidException if an embedded entry fails a structure rule + * @throws TrustBaseBundleException if the response is not a complete, linked history from a + * genesis entry + */ + public static TrustBaseBundle decode(byte[] bytes, TrustBaseBundleLimits limits) { + Objects.requireNonNull(bytes, "bytes cannot be null"); + Objects.requireNonNull(limits, "limits cannot be null"); + if (bytes.length > limits.getMaxBytes()) { + throw new TrustBaseEncodingException( + bytes.length + " bytes exceed the budget of " + limits.getMaxBytes() + "."); + } + + TrustBaseResponseWire.Fields header = TrustBaseResponseWire.parse(bytes, limits.getMaxEntries()); + if (header.getStatus() != TrustBaseResponseWire.STATUS_OK) { + throw new TrustBaseBundleException( + "Status " + Long.toUnsignedString(header.getStatus()) + ": not a complete bundle."); + } + if (header.getNextEpoch() != null) { + throw new TrustBaseBundleException("A continuation cursor: not a complete bundle."); + } + List rawEntries = header.getEntries(); + if (rawEntries.isEmpty()) { + throw new TrustBaseBundleException("An OK response without entries."); + } + byte[] endEntryId = header.getEndEntryId(); + if (endEntryId == null) { + throw new TrustBaseBundleException("No end entry id."); + } + + List entries = new ArrayList<>(rawEntries.size()); + byte[] previousId = null; + for (int index = 0; index < rawEntries.size(); index++) { + byte[] rawEntry = rawEntries.get(index); + if (rawEntry.length > limits.getMaxEntryBytes()) { + throw new TrustBaseEncodingException("Entry " + index + " of " + rawEntry.length + " bytes."); + } + TrustBaseEntry entry = TrustBaseEntry.decode(rawEntry); + if (entry.getNetworkId().getId() != header.getNetwork()) { + throw new TrustBaseBundleException("Entry " + index + " of network " + + entry.getNetworkId().getId() + " in a bundle for " + header.getNetwork() + "."); + } + if (index == 0) { + if (!entry.isGenesis()) { + throw new TrustBaseBundleException("Epoch " + UnsignedLongs.toDecimal(entry.getEpoch()) + + " is not a genesis entry (a partial range)."); + } + if (entry.getEpoch() != header.getFromEpoch()) { + throw new TrustBaseBundleException("First entry is epoch " + + UnsignedLongs.toDecimal(entry.getEpoch()) + ", the bundle starts at " + + UnsignedLongs.toDecimal(header.getFromEpoch()) + "."); + } + } else { + TrustBaseEntry previous = entries.get(index - 1); + if (entry.getEpoch() != previous.getEpoch() + 1) { + throw new TrustBaseBundleException("Epoch " + UnsignedLongs.toDecimal(entry.getEpoch()) + + " does not follow " + UnsignedLongs.toDecimal(previous.getEpoch()) + "."); + } + if (!Arrays.equals(entry.getPreviousEntryId(), previousId)) { + throw new TrustBaseBundleException("Epoch " + UnsignedLongs.toDecimal(entry.getEpoch()) + + " does not link to its predecessor."); + } + } + previousId = entry.entryId(); + entries.add(entry); + } + + TrustBaseEntry tip = entries.get(entries.size() - 1); + if (tip.getEpoch() != header.getEffectiveEnd()) { + throw new TrustBaseBundleException("The bundle ends at epoch " + + UnsignedLongs.toDecimal(tip.getEpoch()) + ", its header says " + + UnsignedLongs.toDecimal(header.getEffectiveEnd()) + "."); + } + if (!Arrays.equals(endEntryId, previousId)) { + throw new TrustBaseBundleException("The end entry id differs from the last entry."); + } + return new TrustBaseBundle(entries.get(0).getNetworkId(), entries, rawEntries); + } + + /** + * Encode entries as a complete bundle (status OK, no cursor, end entry id of the last entry). + * The inverse of {@link #decode}: a decoded bundle re-encodes to the same bytes. The entries are + * not authenticated here; a bundle that does not link is not produced. + * + * @param entries consecutive entries ascending from the genesis, at least one + * @return tagged bundle + * @throws TrustBaseBundleException if the list is empty or the entries do not form one linked + * chain of one network + */ + public static byte[] encode(List entries) { + Objects.requireNonNull(entries, "entries cannot be null"); + if (entries.isEmpty()) { + throw new TrustBaseBundleException("A bundle needs at least one entry."); + } + + byte[] previousId = null; + List raw = new ArrayList<>(entries.size()); + for (int index = 0; index < entries.size(); index++) { + TrustBaseEntry entry = entries.get(index); + if (index == 0) { + if (!entry.isGenesis()) { + throw new TrustBaseBundleException("Entry 0 does not continue the chain."); + } + } else if (entry.getEpoch() != entries.get(index - 1).getEpoch() + 1) { + throw new TrustBaseBundleException("Entry " + index + " does not continue the chain."); + } + if (previousId != null && !Arrays.equals(entry.getPreviousEntryId(), previousId)) { + throw new TrustBaseBundleException("Entry " + index + " does not link to its predecessor."); + } + if (entry.getNetworkId().getId() != entries.get(0).getNetworkId().getId()) { + throw new TrustBaseBundleException("Entry " + index + " is of another network."); + } + previousId = entry.entryId(); + raw.add(entry.encode()); + } + + TrustBaseEntry tip = entries.get(entries.size() - 1); + return TrustBaseResponseWire.encode(new TrustBaseResponseWire.Fields(tip.getEpoch(), + previousId, raw, entries.get(0).getEpoch(), tip.getNetworkId().getId(), null, + TrustBaseResponseWire.STATUS_OK)); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleException.java new file mode 100644 index 00000000..3e168f56 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** A GetTrustBase response is not a complete, linked history from a genesis entry (status, cursor, range, links, end identity). */ +public class TrustBaseBundleException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseBundleException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleLimits.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleLimits.java new file mode 100644 index 00000000..a9353d03 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleLimits.java @@ -0,0 +1,54 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** + * Budget of a bundle decode; a release supplies it, there is no fixed history length. + * {@code maxBytes} is checked before anything is read; {@code maxEntries} from the array header + * before any entry is read. + */ +public final class TrustBaseBundleLimits { + + private final int maxBytes; + private final int maxEntries; + private final int maxEntryBytes; + + /** + * Create a budget with the default per-entry bound ({@link TrustBaseEntry#MAX_ENTRY_BYTES}). + * + * @param maxBytes most bytes of the whole bundle + * @param maxEntries most entries + */ + public TrustBaseBundleLimits(int maxBytes, int maxEntries) { + this(maxBytes, maxEntries, TrustBaseEntry.MAX_ENTRY_BYTES); + } + + /** + * Create a budget. + * + * @param maxBytes most bytes of the whole bundle + * @param maxEntries most entries + * @param maxEntryBytes most bytes of one entry + */ + public TrustBaseBundleLimits(int maxBytes, int maxEntries, int maxEntryBytes) { + if (maxBytes <= 0 || maxEntries <= 0 || maxEntryBytes <= 0) { + throw new IllegalArgumentException("Limits must be positive."); + } + this.maxBytes = maxBytes; + this.maxEntries = maxEntries; + this.maxEntryBytes = maxEntryBytes; + } + + /** Get the byte budget of the whole bundle. */ + public int getMaxBytes() { + return this.maxBytes; + } + + /** Get the entry-count budget. */ + public int getMaxEntries() { + return this.maxEntries; + } + + /** Get the byte budget of one entry. */ + public int getMaxEntryBytes() { + return this.maxEntryBytes; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseCacheKey.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseCacheKey.java new file mode 100644 index 00000000..b0ab0791 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseCacheKey.java @@ -0,0 +1,84 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.Arrays; +import java.util.Objects; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.util.HexConverter; + +/** The key and the revision token of the trust base cache. */ +public final class TrustBaseCacheKey { + + /** The trust namespace of the built-in release table. A private or test authority uses another. */ + public static final String PUBLIC_NAMESPACE = "public"; + /** The fixed namespace of a local test network opened from its own bundle. */ + public static final String LOCAL_NAMESPACE = "local"; + /** The most bytes of a namespace. */ + public static final int MAX_NAMESPACE_BYTES = 64; + + private TrustBaseCacheKey() { + } + + /** + * The key a session stores under: layout version, network, authenticated genesis entry id and + * trust namespace. Never the endpoint, the current tip or the SDK version, so a pin bump finds the + * old cache. The application adds its own user scope. + * + * @param network the network + * @param genesisEntryId entry id of the genesis + * @param namespace {@link #PUBLIC_NAMESPACE} or an explicit custom one + * @return the key + */ + public static String of(NetworkId network, byte[] genesisEntryId, String namespace) { + Objects.requireNonNull(network, "network cannot be null"); + Objects.requireNonNull(namespace, "namespace cannot be null"); + return "utb/v1/" + network.getId() + "/" + HexConverter.encode(genesisEntryId) + "/" + + namespace; + } + + /** + * Whether a namespace may name a private or test authority. + * + * @param namespace the namespace + * @return true for 1 to 64 bytes, no slash, and not the public namespace + */ + public static boolean isValidPrivateNamespace(String namespace) { + int length = namespace.getBytes(StandardCharsets.UTF_8).length; + return length >= 1 && length <= MAX_NAMESPACE_BYTES && !namespace.contains("/") + && !PUBLIC_NAMESPACE.equals(namespace); + } + + /** + * The revision token of stored bytes: the lowercase hex SHA-256. + * + * @param bytes the stored bytes + * @return the revision + */ + public static String revision(byte[] bytes) { + return HexConverter.encode(sha256(bytes)); + } + + /** + * The SHA-256 of bytes. + * + * @param bytes the bytes + * @return the digest + */ + public static byte[] sha256Of(byte[] bytes) { + return sha256(bytes); + } + + static byte[] sha256(byte[] bytes) { + try { + return MessageDigest.getInstance("SHA-256").digest(bytes); + } catch (NoSuchAlgorithmException e) { + throw new IllegalStateException(e); + } + } + + static boolean same(byte[] a, byte[] b) { + return Arrays.equals(a, b); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseChainException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseChainException.java new file mode 100644 index 00000000..dc4ca31c --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseChainException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** An entry does not extend its predecessor (network, epoch, start round, predecessor id). */ +public class TrustBaseChainException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseChainException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseConflictDetails.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseConflictDetails.java new file mode 100644 index 00000000..103e0a84 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseConflictDetails.java @@ -0,0 +1,101 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Arrays; + +/** What is known about two different entries of one epoch: bounded, identities and optionally the entries. */ +public final class TrustBaseConflictDetails { + + private final boolean authenticated; + private final long epoch; + private final byte[] heldEntry; + private final byte[] heldEntryId; + private final int network; + private final byte[] offeredEntry; + private final byte[] offeredEntryId; + + /** + * Create the details. + * + * @param authenticated whether the offered entry is signed by a quorum of its predecessor + * @param epoch epoch of both entries, unsigned + * @param heldEntry the held entry bytes, or null + * @param heldEntryId id of the held entry + * @param network network id of the offered entry + * @param offeredEntry the offered entry bytes, or null + * @param offeredEntryId id of the offered entry + */ + public TrustBaseConflictDetails(boolean authenticated, long epoch, byte[] heldEntry, + byte[] heldEntryId, int network, byte[] offeredEntry, byte[] offeredEntryId) { + this.authenticated = authenticated; + this.epoch = epoch; + this.heldEntry = heldEntry == null ? null : Arrays.copyOf(heldEntry, heldEntry.length); + this.heldEntryId = Arrays.copyOf(heldEntryId, heldEntryId.length); + this.network = network; + this.offeredEntry = offeredEntry == null ? null : Arrays.copyOf(offeredEntry, offeredEntry.length); + this.offeredEntryId = Arrays.copyOf(offeredEntryId, offeredEntryId.length); + } + + /** + * Tell whether the offered entry was authenticated by a quorum of its predecessor. + * + * @return true if authenticated; false if only its identity differs + */ + public boolean isAuthenticated() { + return this.authenticated; + } + + /** + * Get the epoch. + * + * @return epoch, unsigned bits + */ + public long getEpoch() { + return this.epoch; + } + + /** + * Get the held entry bytes. + * + * @return copy, or null when not kept + */ + public byte[] getHeldEntry() { + return this.heldEntry == null ? null : Arrays.copyOf(this.heldEntry, this.heldEntry.length); + } + + /** + * Get the id of the held entry. + * + * @return copy + */ + public byte[] getHeldEntryId() { + return Arrays.copyOf(this.heldEntryId, this.heldEntryId.length); + } + + /** + * Get the network id. + * + * @return network id + */ + public int getNetwork() { + return this.network; + } + + /** + * Get the offered entry bytes. + * + * @return copy, or null when not kept + */ + public byte[] getOfferedEntry() { + return this.offeredEntry == null ? null + : Arrays.copyOf(this.offeredEntry, this.offeredEntry.length); + } + + /** + * Get the id of the offered entry. + * + * @return copy + */ + public byte[] getOfferedEntryId() { + return Arrays.copyOf(this.offeredEntryId, this.offeredEntryId.length); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseConflictException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseConflictException.java new file mode 100644 index 00000000..f4caded9 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseConflictException.java @@ -0,0 +1,49 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import org.unicitylabs.sdk.util.UnsignedLongs; + +/** A different entry is offered for an epoch the history already holds. */ +public class TrustBaseConflictException extends TrustBaseException { + + private final long epoch; + private final TrustBaseConflictDetails details; + + /** + * Create the exception. + * + * @param epoch the epoch, unsigned + * @param details bounded evidence, may be null + */ + public TrustBaseConflictException(long epoch, TrustBaseConflictDetails details) { + super("A different entry is held for epoch " + UnsignedLongs.toDecimal(epoch) + "."); + this.epoch = epoch; + this.details = details; + } + + /** + * Get the epoch. + * + * @return epoch, unsigned bits + */ + public long getEpoch() { + return this.epoch; + } + + /** + * Get the evidence. + * + * @return details, or null + */ + public TrustBaseConflictDetails getDetails() { + return this.details; + } + + /** + * Tell whether the offered entry is signed by a quorum of its predecessor. + * + * @return true if the evidence says it is authenticated + */ + public boolean isAuthenticated() { + return this.details != null && this.details.isAuthenticated(); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEncodingException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEncodingException.java new file mode 100644 index 00000000..b2af3760 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEncodingException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** The bytes are not a well-formed deterministic encoding (wrong tag, version or arity, bad bounds, trailing bytes, a second byte form). */ +public class TrustBaseEncodingException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseEncodingException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntry.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntry.java new file mode 100644 index 00000000..251b8d20 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntry.java @@ -0,0 +1,673 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.bouncycastle.jce.ECNamedCurveTable; +import org.bouncycastle.jce.spec.ECParameterSpec; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.crypto.hash.DataHash; +import org.unicitylabs.sdk.crypto.hash.DataHasher; +import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; +import org.unicitylabs.sdk.crypto.secp256k1.Signature; +import org.unicitylabs.sdk.crypto.secp256k1.SigningService; +import org.unicitylabs.sdk.serializer.cbor.CborDeserializer; +import org.unicitylabs.sdk.serializer.cbor.CborSerializer; +import org.unicitylabs.sdk.serializer.cbor.CborSerializationException; +import org.unicitylabs.sdk.util.HexConverter; +import org.unicitylabs.sdk.util.UnsignedLongs; + +/** + * Signed Unicity Trust Base entry, record version 2 (CBOR tag 39000), the reference being + * bft-go-base {@code types.RootTrustBaseV2}. + * + *

Wire form: tag 39000 over the 10-element array {@code [2, networkId, epoch, epochStartRound, + * [[nodeId, sigKey, weight]...], quorumThreshold, stateHash|null, changeRecordHash|null, + * previousEntryId, {nodeId: signature}|null]}. + * + *

Decoding is strict and has exactly one byte form per entry: at most {@link #MAX_ENTRY_BYTES} + * bytes, exact tag, version and arity, at most {@link #MAX_MEMBERS} members and + * {@link #MAX_ENTRY_SIGNATURES} signatures (checked from the array and map headers, before any + * element is read), no trailing bytes, strict UTF-8, an absent hash is null (never an empty byte + * string), and the input must equal the deterministic encoding of what was decoded. The identity + * is {@code entryId = SHA-256(sigBytes)}, where sigBytes is the entry with the signature field + * encoded as CBOR null, so two valid signature sets over the same entry give the same identity. + * Epochs, rounds and weights are unsigned 64-bit numbers carried as {@code long} bit patterns. + * This class checks structure; the signatures of a successor are checked by + * {@link #verifySuccessor(TrustBaseEntry)} and the history that appends the entry. + */ +public final class TrustBaseEntry { + + /** The CBOR tag of an entry. */ + public static final long CBOR_TAG = 39000L; + /** The record version. */ + public static final long VERSION = 2L; + /** Length of an entry id and of the hashes when present. */ + public static final int ID_LENGTH = 32; + /** Largest encoded entry (owner §49: 128 KiB). */ + public static final int MAX_ENTRY_BYTES = 128 * 1024; + /** Most members of an entry. */ + public static final int MAX_MEMBERS = 256; + /** Most signatures an entry carries or a quorum check is given, however small the entry is. */ + public static final int MAX_ENTRY_SIGNATURES = 256; + /** Longest node id, in UTF-8 bytes. */ + public static final int MAX_NODE_ID_BYTES = 128; + /** One member's weight bound, so that the sum over {@link #MAX_MEMBERS} cannot overflow. */ + public static final long MAX_WEIGHT = 1L << 40; + /** Length of a compressed secp256k1 signing key. */ + public static final int SIGNING_KEY_LENGTH = 33; + + private static final int FIELD_COUNT = 10; + private static final ECParameterSpec CURVE = ECNamedCurveTable.getParameterSpec("secp256k1"); + + private final int network; + private final long epoch; + private final long epochStartRound; + private final List members; + private final Map memberIndex; + private final long quorumThreshold; + private final byte[] stateHash; + private final byte[] changeRecordHash; + private final byte[] previousEntryId; + private final Map signatures; + + /** + * Create an entry from its fields. Nothing is validated here: {@link #decode(byte[])} and + * {@link #validate()} check the structure. + * + * @param network network id, 0 to 65535 (1 to 65535 in a valid entry) + * @param epoch epoch, unsigned + * @param epochStartRound first round of the epoch, unsigned + * @param members the members, in node id byte order (copied) + * @param quorumThreshold quorum threshold, unsigned + * @param stateHash state hash or null (copied) + * @param changeRecordHash change record hash or null (copied) + * @param previousEntryId predecessor entry id, 32 zero bytes for a genesis (copied) + * @param signatures predecessor members' signatures over {@link #sigBytes()} by node id, null + * for a genesis (copied) + */ + public TrustBaseEntry(int network, long epoch, long epochStartRound, + List members, long quorumThreshold, byte[] stateHash, + byte[] changeRecordHash, byte[] previousEntryId, Map signatures) { + this.network = network; + this.epoch = epoch; + this.epochStartRound = epochStartRound; + this.members = List.copyOf(Objects.requireNonNull(members, "members cannot be null")); + Map index = new HashMap<>(); + for (TrustBaseMember member : this.members) { + index.putIfAbsent(member.getNodeId(), member); + } + this.memberIndex = index; + this.quorumThreshold = quorumThreshold; + this.stateHash = copy(stateHash); + this.changeRecordHash = copy(changeRecordHash); + this.previousEntryId = Arrays.copyOf( + Objects.requireNonNull(previousEntryId, "previousEntryId cannot be null"), + previousEntryId.length); + this.signatures = signatures == null ? null : sortedCopy(signatures); + } + + private static byte[] copy(byte[] bytes) { + return bytes == null ? null : Arrays.copyOf(bytes, bytes.length); + } + + private static Map sortedCopy(Map source) { + List> list = new ArrayList<>(source.entrySet()); + list.sort((a, b) -> compareBytes(utf8(a.getKey()), utf8(b.getKey()))); + Map result = new LinkedHashMap<>(); + for (Map.Entry entry : list) { + result.put(entry.getKey(), copy(entry.getValue())); + } + return Collections.unmodifiableMap(result); + } + + private static byte[] utf8(String text) { + return text.getBytes(StandardCharsets.UTF_8); + } + + /** + * Compare byte arrays as unsigned bytes, then by length. + * + * @param a first + * @param b second + * @return negative, zero or positive + */ + static int compareBytes(byte[] a, byte[] b) { + int length = Math.min(a.length, b.length); + for (int i = 0; i < length; i++) { + int diff = Byte.toUnsignedInt(a[i]) - Byte.toUnsignedInt(b[i]); + if (diff != 0) { + return diff; + } + } + return a.length - b.length; + } + + /** + * Get the network of the entry. + * + * @return network id (1 to 65535 on an entry that passed {@link #validate()}) + */ + public NetworkId getNetworkId() { + return NetworkId.fromId((short) this.network); + } + + /** + * Get the epoch. + * + * @return epoch, unsigned bits + */ + public long getEpoch() { + return this.epoch; + } + + /** + * Get the first round of the epoch. + * + * @return start round, unsigned bits + */ + public long getEpochStartRound() { + return this.epochStartRound; + } + + /** + * Get the members, sorted by node id bytes. + * + * @return immutable list + */ + public List getMembers() { + return this.members; + } + + /** + * Find a member by node id. + * + * @param nodeId node id + * @return the member, or null if the id names none + */ + public TrustBaseMember findMember(String nodeId) { + return this.memberIndex.get(nodeId); + } + + /** + * Get the quorum threshold. + * + * @return threshold, unsigned bits + */ + public long getQuorumThreshold() { + return this.quorumThreshold; + } + + /** + * Get the state hash. + * + * @return copy, or null when absent + */ + public byte[] getStateHash() { + return copy(this.stateHash); + } + + /** + * Get the change record hash. + * + * @return copy, or null when absent + */ + public byte[] getChangeRecordHash() { + return copy(this.changeRecordHash); + } + + /** + * Get the predecessor's entry id. + * + * @return copy; 32 zero bytes for the genesis entry + */ + public byte[] getPreviousEntryId() { + return copy(this.previousEntryId); + } + + /** + * Get the predecessor members' signatures over {@link #sigBytes()}. + * + * @return immutable map by node id in node id byte order (values are copies), null for the + * genesis entry + */ + public Map getSignatures() { + if (this.signatures == null) { + return null; + } + return sortedCopy(this.signatures); + } + + /** + * Get the total voting weight of the members (valid entries only: it cannot overflow there). + * + * @return total weight + */ + public long getTotalWeight() { + long total = 0; + for (TrustBaseMember member : this.members) { + total += member.getWeight(); + } + return total; + } + + /** + * Decode and structurally validate a tagged version-2 entry. + * + * @param bytes tagged entry + * @return the entry + * @throws TrustBaseEncodingException if the bytes are not the deterministic encoding of a + * version-2 entry + * @throws TrustBaseInvalidException if a structure rule fails + */ + public static TrustBaseEntry decode(byte[] bytes) { + Objects.requireNonNull(bytes, "bytes cannot be null"); + if (bytes.length > MAX_ENTRY_BYTES) { + throw new TrustBaseEncodingException("The entry exceeds the size bound."); + } + + TrustBaseEntry entry; + try { + entry = parse(bytes); + } catch (TrustBaseException e) { + throw e; + } catch (RuntimeException e) { + throw new TrustBaseEncodingException(String.valueOf(e.getMessage())); + } + + // One byte form per entry: the input must be what this decoder would write back. + if (!Arrays.equals(entry.encode(), bytes)) { + throw new TrustBaseEncodingException("Not the deterministic encoding."); + } + + entry.validate(); + return entry; + } + + private static TrustBaseEntry parse(byte[] bytes) { + CborDeserializer.CborTag tagged = CborDeserializer.decodeTag(bytes); + if (tagged.getTag() != CBOR_TAG) { + throw new TrustBaseEncodingException( + "Tag " + Long.toUnsignedString(tagged.getTag()) + ", expected " + CBOR_TAG + "."); + } + + List fields = CborDeserializer.decodeArrayAtMost(tagged.getData(), FIELD_COUNT); + if (fields.size() != FIELD_COUNT) { + throw new TrustBaseEncodingException( + "Expected " + FIELD_COUNT + " fields, got " + fields.size() + "."); + } + + long version = CborDeserializer.decodeUnsignedInteger(fields.get(0)).asLong(); + if (version != VERSION) { + throw new TrustBaseEncodingException( + "Version " + Long.toUnsignedString(version) + ", expected " + VERSION + "."); + } + + long network = CborDeserializer.decodeUnsignedInteger(fields.get(1)).asLong(); + // 0 fits the wire type and is a structure error (validate), as in the Go and Rust references; + // only a value above 16 bits is a bad encoding. + if (UnsignedLongs.compare(network, 0xFFFFL) > 0) { + throw new TrustBaseEncodingException( + "Network identifier " + Long.toUnsignedString(network) + " above 65535."); + } + + List memberItems; + try { + memberItems = CborDeserializer.decodeArrayAtMost(fields.get(4), MAX_MEMBERS); + } catch (CborSerializationException e) { + throw new TrustBaseEncodingException("Too many members or a malformed member list."); + } + List members = new ArrayList<>(memberItems.size()); + for (byte[] item : memberItems) { + List member = CborDeserializer.decodeArray(item, 3); + members.add(new TrustBaseMember( + CborDeserializer.decodeTextString(member.get(0)), + CborDeserializer.decodeByteString(member.get(1)), + CborDeserializer.decodeUnsignedInteger(member.get(2)).asLong())); + } + + Map signatures = null; + Set pairs = CborDeserializer.decodeNullable(fields.get(9), + item -> CborDeserializer.decodeMapAtMost(item, MAX_ENTRY_SIGNATURES)); + if (pairs != null) { + signatures = new HashMap<>(); + for (CborSerializer.CborMap.Entry pair : pairs) { + signatures.put(CborDeserializer.decodeTextString(pair.getKey()), + CborDeserializer.decodeByteString(pair.getValue())); + } + } + + return new TrustBaseEntry( + (int) network, + CborDeserializer.decodeUnsignedInteger(fields.get(2)).asLong(), + CborDeserializer.decodeUnsignedInteger(fields.get(3)).asLong(), + members, + CborDeserializer.decodeUnsignedInteger(fields.get(5)).asLong(), + hash(fields.get(6)), + hash(fields.get(7)), + CborDeserializer.decodeByteString(fields.get(8)), + signatures); + } + + // An absent hash is null, never an empty byte string: that would be a second byte form (and a + // second entry id) of the same entry. + private static byte[] hash(byte[] data) { + return CborDeserializer.decodeNullable(data, item -> { + byte[] value = CborDeserializer.decodeByteString(item); + if (value.length == 0) { + throw new TrustBaseEncodingException("An absent hash is null, not an empty byte string."); + } + return value; + }); + } + + /** + * Get the tagged deterministic encoding, signatures included. + * + * @return bytes + */ + public byte[] encode() { + return this.encodeWithSignatures(this.signatures); + } + + /** + * Get the bytes the predecessor's members sign: the entry with the signature field encoded as + * CBOR null. + * + * @return bytes + */ + public byte[] sigBytes() { + return this.encodeWithSignatures(null); + } + + /** + * Get the entry id, SHA-256 of {@link #sigBytes()}: independent of the signatures, what a + * successor links to and a pin names. + * + * @return 32 bytes + */ + public byte[] entryId() { + return new DataHasher(HashAlgorithm.SHA256).update(this.sigBytes()).digest().getData(); + } + + /** + * Tell whether the entry has no predecessor (32 zero bytes). + * + * @return true for a genesis entry + */ + public boolean isGenesis() { + for (byte b : this.previousEntryId) { + if (b != 0) { + return false; + } + } + return true; + } + + private byte[] encodeWithSignatures(Map withSignatures) { + byte[][] memberItems = new byte[this.members.size()][]; + for (int i = 0; i < memberItems.length; i++) { + TrustBaseMember member = this.members.get(i); + memberItems[i] = CborSerializer.encodeArray( + CborSerializer.encodeTextString(member.getNodeId()), + CborSerializer.encodeByteString(member.getSigKey()), + CborSerializer.encodeUnsignedInteger(member.getWeight())); + } + + byte[] signatureField = CborSerializer.encodeNull(); + if (withSignatures != null) { + Set pairs = new HashSet<>(); + for (Map.Entry signature : withSignatures.entrySet()) { + pairs.add(new CborSerializer.CborMap.Entry( + CborSerializer.encodeTextString(signature.getKey()), + CborSerializer.encodeByteString(signature.getValue()))); + } + signatureField = CborSerializer.encodeMap(new CborSerializer.CborMap(pairs)); + } + + return CborSerializer.encodeTag(CBOR_TAG, CborSerializer.encodeArray( + CborSerializer.encodeUnsignedInteger(VERSION), + CborSerializer.encodeUnsignedInteger(this.network), + CborSerializer.encodeUnsignedInteger(this.epoch), + CborSerializer.encodeUnsignedInteger(this.epochStartRound), + CborSerializer.encodeArray(memberItems), + CborSerializer.encodeUnsignedInteger(this.quorumThreshold), + CborSerializer.encodeNullable(this.stateHash, CborSerializer::encodeByteString), + CborSerializer.encodeNullable(this.changeRecordHash, CborSerializer::encodeByteString), + CborSerializer.encodeByteString(this.previousEntryId), + signatureField)); + } + + /** + * Check the entry's structure, not its signatures: network and epoch at least 1, the member list + * (sorted by node id bytes, unique, valid compressed keys, positive bounded weights, bounded + * count), the exact quorum threshold, hash lengths, and the genesis (zero predecessor, null + * signatures) versus non-genesis (32-byte predecessor, non-empty signature map of at most + * {@link #MAX_ENTRY_SIGNATURES}) shape. + * + * @throws TrustBaseInvalidException if a rule fails + */ + public void validate() { + if (this.network <= 0 || this.network > 0xFFFF) { + throw new TrustBaseInvalidException("Network identifier is zero or above 65535."); + } + if (this.epoch == 0) { + throw new TrustBaseInvalidException("Epoch is zero."); + } + + int count = this.members.size(); + if (count == 0 || count > MAX_MEMBERS) { + throw new TrustBaseInvalidException(count + " members (1.." + MAX_MEMBERS + ")."); + } + + long total = 0; + Map keys = new HashMap<>(); + byte[] previousId = null; + for (TrustBaseMember member : this.members) { + byte[] id = utf8(member.getNodeId()); + if (id.length == 0 || id.length > MAX_NODE_ID_BYTES) { + throw new TrustBaseInvalidException( + "Node id of " + id.length + " bytes (1.." + MAX_NODE_ID_BYTES + ")."); + } + if (previousId != null && compareBytes(previousId, id) >= 0) { + throw new TrustBaseInvalidException( + "Members are not strictly sorted by node id at \"" + member.getNodeId() + "\"."); + } + previousId = id; + + long weight = member.getWeight(); + if (weight == 0 || UnsignedLongs.compare(weight, MAX_WEIGHT) > 0) { + throw new TrustBaseInvalidException("Member \"" + member.getNodeId() + "\": weight " + + Long.toUnsignedString(weight) + " outside 1.." + MAX_WEIGHT + "."); + } + + byte[] key = member.getSigKey(); + if (!isCompressedSecp256k1Key(key)) { + throw new TrustBaseInvalidException( + "Member \"" + member.getNodeId() + "\": not a compressed secp256k1 key."); + } + // A compressed key has one encoding per point, so a byte comparison finds a repeated key: + // one key holder must not count for several members. + String other = keys.put(HexConverter.encode(key), member.getNodeId()); + if (other != null) { + throw new TrustBaseInvalidException( + "Members \"" + other + "\" and \"" + member.getNodeId() + "\" share a signing key."); + } + + total += weight; + } + + long threshold = (total * 2) / 3 + 1; + if (this.quorumThreshold != threshold) { + throw new TrustBaseInvalidException("Quorum threshold " + + Long.toUnsignedString(this.quorumThreshold) + ", expected " + threshold + + " for total weight " + total + "."); + } + + if (this.stateHash != null && this.stateHash.length != ID_LENGTH) { + throw new TrustBaseInvalidException( + "stateHash is " + this.stateHash.length + " bytes (null or " + ID_LENGTH + ")."); + } + if (this.changeRecordHash != null && this.changeRecordHash.length != ID_LENGTH) { + throw new TrustBaseInvalidException("changeRecordHash is " + this.changeRecordHash.length + + " bytes (null or " + ID_LENGTH + ")."); + } + + if (this.previousEntryId.length != ID_LENGTH) { + throw new TrustBaseInvalidException( + "Previous entry id is " + this.previousEntryId.length + " bytes."); + } + if (this.isGenesis()) { + if (this.signatures != null) { + throw new TrustBaseInvalidException("The genesis entry carries signatures."); + } + } else if (this.signatures == null || this.signatures.isEmpty()) { + throw new TrustBaseInvalidException("A non-genesis entry has no signatures."); + } else if (this.signatures.size() > MAX_ENTRY_SIGNATURES) { + throw new TrustBaseInvalidException( + this.signatures.size() + " signatures (at most " + MAX_ENTRY_SIGNATURES + ")."); + } + } + + /** + * Check that this entry is a structurally valid genesis entry (zero predecessor, null + * signatures). A genesis is authenticated by a pin on its entry id, never by signatures; the + * history compares the pin. + * + * @throws TrustBaseInvalidException if the entry is not a genesis entry + */ + public void verifyGenesis() { + this.validate(); + if (!this.isGenesis()) { + throw new TrustBaseInvalidException("Not a genesis entry."); + } + } + + /** + * Check the signatures of this entry's members over {@code data}, strictly: at most + * {@link #MAX_ENTRY_SIGNATURES} are supplied, every supplied signature must be from a member and + * valid (a supplied extra that is unknown or invalid fails the whole check even if the rest reach + * quorum), and the weight of the signers must reach the threshold. + * + * @param data signed bytes + * @param signaturesByNodeId signatures by node id + * @throws TrustBaseSignatureException if a signature fails or the quorum is not reached + */ + public void verifyQuorumSignatures(byte[] data, Map signaturesByNodeId) { + Objects.requireNonNull(signaturesByNodeId, "signatures cannot be null"); + if (signaturesByNodeId.size() > MAX_ENTRY_SIGNATURES) { + throw new TrustBaseSignatureException("Too many signatures."); + } + + long signed = 0; + for (Map.Entry signature : signaturesByNodeId.entrySet()) { + signed += this.verifySignature(data, signature.getValue(), signature.getKey()); + } + if (UnsignedLongs.compare(signed, this.quorumThreshold) < 0) { + throw new TrustBaseSignatureException("Quorum not reached, signed weight " + signed + + ", threshold " + Long.toUnsignedString(this.quorumThreshold) + "."); + } + } + + /** + * Verify one member's signature and return the member's weight. The signature must be a + * canonical recoverable signature over SHA-256 of {@code data}: exactly 65 bytes + * ({@code r || s || recovery}), recovery id 0..3, low-S, recovering to the member's key. The + * 64-byte compact form is not accepted. This is the rule of the seal verifier, applied to + * entries. + * + * @param data signed bytes + * @param signature 65-byte signature + * @param nodeId signer + * @return the signer's weight + * @throws TrustBaseSignatureException if the signer is not a member or the signature is not valid + */ + public long verifySignature(byte[] data, byte[] signature, String nodeId) { + TrustBaseMember member = this.memberIndex.get(nodeId); + if (member == null) { + throw new TrustBaseSignatureException("Signer \"" + nodeId + "\" is not a member."); + } + + Signature decoded; + try { + decoded = Signature.decode(signature); + } catch (IllegalArgumentException e) { + throw new TrustBaseSignatureException("Signer \"" + nodeId + "\": " + e.getMessage()); + } + + DataHash hash = new DataHasher(HashAlgorithm.SHA256).update(data).digest(); + if (!SigningService.verifyWithPublicKey(hash, decoded, member.getSigKey())) { + throw new TrustBaseSignatureException( + "Signer \"" + nodeId + "\": the signature is not valid."); + } + + return member.getWeight(); + } + + /** + * Check that this entry extends {@code previous}: not a genesis, same network, epoch previous + + * 1, a later start round, the predecessor id equal to the entry id of {@code previous}, and a + * strict quorum of {@code previous}' members signing {@link #sigBytes()}. + * + * @param previous the predecessor + * @throws TrustBaseChainException if the entry does not extend the predecessor + * @throws TrustBaseSignatureException if the predecessor's members did not sign it + */ + public void verifySuccessor(TrustBaseEntry previous) { + Objects.requireNonNull(previous, "previous cannot be null"); + if (this.isGenesis()) { + throw new TrustBaseChainException("A genesis entry has no predecessor."); + } + if (this.network != previous.network) { + throw new TrustBaseChainException( + "Network " + this.network + ", predecessor " + previous.network + "."); + } + if (this.epoch != previous.epoch + 1 || UnsignedLongs.compare(previous.epoch, -1L) == 0) { + throw new TrustBaseChainException("Epoch " + Long.toUnsignedString(this.epoch) + + ", predecessor " + Long.toUnsignedString(previous.epoch) + "."); + } + if (UnsignedLongs.compare(this.epochStartRound, previous.epochStartRound) <= 0) { + throw new TrustBaseChainException("Epoch start " + Long.toUnsignedString(this.epochStartRound) + + ", predecessor " + Long.toUnsignedString(previous.epochStartRound) + "."); + } + if (!Arrays.equals(this.previousEntryId, previous.entryId())) { + throw new TrustBaseChainException("Previous entry id does not match."); + } + + // A decoded non-genesis entry always carries a non-empty signature map (validate). + previous.verifyQuorumSignatures(this.sigBytes(), + this.signatures == null ? Map.of() : this.signatures); + } + + private static boolean isCompressedSecp256k1Key(byte[] key) { + if (key.length != SIGNING_KEY_LENGTH || (key[0] != 0x02 && key[0] != 0x03)) { + return false; + } + try { + return !CURVE.getCurve().decodePoint(key).isInfinity(); + } catch (IllegalArgumentException | ArithmeticException e) { + return false; + } + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + return o instanceof TrustBaseEntry && Arrays.equals(this.encode(), ((TrustBaseEntry) o).encode()); + } + + @Override + public int hashCode() { + return Arrays.hashCode(this.encode()); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseException.java new file mode 100644 index 00000000..247128e3 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseException.java @@ -0,0 +1,24 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** Base of the failures of the trust-base entry and history layer. Unchecked and typed by subclass. */ +public class TrustBaseException extends RuntimeException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseException(String message) { + super(message); + } + + /** + * Create the exception with its cause. + * + * @param message what failed + * @param cause underlying failure + */ + public TrustBaseException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseGapException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseGapException.java new file mode 100644 index 00000000..d4508eca --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseGapException.java @@ -0,0 +1,41 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import org.unicitylabs.sdk.util.UnsignedLongs; + +/** An entry is more than one epoch ahead of the tip: the entries in between must be fetched first. */ +public class TrustBaseGapException extends TrustBaseException { + + private final long epoch; + private final long tipEpoch; + + /** + * Create the exception. + * + * @param epoch epoch of the offered entry, unsigned + * @param tipEpoch epoch of the held tip, unsigned + */ + public TrustBaseGapException(long epoch, long tipEpoch) { + super("Epoch " + UnsignedLongs.toDecimal(epoch) + " is ahead of the tip " + + UnsignedLongs.toDecimal(tipEpoch) + "."); + this.epoch = epoch; + this.tipEpoch = tipEpoch; + } + + /** + * Get the epoch of the offered entry. + * + * @return epoch, unsigned bits + */ + public long getEpoch() { + return this.epoch; + } + + /** + * Get the epoch of the held tip. + * + * @return epoch, unsigned bits + */ + public long getTipEpoch() { + return this.tipEpoch; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistory.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistory.java new file mode 100644 index 00000000..012b722d --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistory.java @@ -0,0 +1,238 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.OptionalLong; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.util.UnsignedLongs; + +/** + * The append-only Unicity Trust Base history a verifier holds: consecutive entries from a genesis + * entry pinned out of band by its entry id, each authenticated by a strict quorum of its + * predecessor's members. The reference is the shared vectors' history model (bft-go-base + * {@code types/root_trust_base_v2_vectors_test.go}) and bft-core {@code utbstore}. + * + *

{@link #append(TrustBaseEntry)} is the only way in, for the genesis and for every later + * entry, including those of a loaded bundle. An entry of a held epoch changes nothing: the same + * entry id is {@link TrustBaseAppendOutcome#ALREADY_HELD} (its signature set must still verify, so + * a bad witness is an error), a different one is a conflict. An entry more than one epoch ahead is + * a gap. Appends are serialised and every reader sees a consistent chain; no I/O happens under the + * lock. Epochs and rounds are unsigned 64-bit numbers carried as {@code long} bits. + */ +public final class TrustBaseHistory implements TrustBaseHistoryView { + + private final Object lock = new Object(); + private final List entries = new ArrayList<>(); + private final byte[] genesisPin; + + private TrustBaseHistory(byte[] genesisPin) { + this.genesisPin = genesisPin; + } + + /** + * An empty history bound to the genesis it will accept. + * + * @param genesisPin entry id of the genesis entry, from outside the history (a release pin); + * copied + * @return empty history + * @throws TrustBaseInvalidException if the pin is not a 32-byte entry id + */ + public static TrustBaseHistory create(byte[] genesisPin) { + Objects.requireNonNull(genesisPin, "genesisPin cannot be null"); + if (genesisPin.length != TrustBaseEntry.ID_LENGTH) { + throw new TrustBaseInvalidException("Genesis pin of " + genesisPin.length + " bytes."); + } + return new TrustBaseHistory(Arrays.copyOf(genesisPin, genesisPin.length)); + } + + /** + * Load a complete bundle through {@link #append}, like every later entry. + * + * @param bundle decoded bundle + * @param genesisPin entry id of the genesis entry + * @return history holding every entry of the bundle + * @throws TrustBaseChainException if the genesis is not the pinned one or an entry does not + * extend its predecessor + * @throws TrustBaseSignatureException if an entry is not signed by a quorum of its predecessor + */ + public static TrustBaseHistory fromBundle(TrustBaseBundle bundle, byte[] genesisPin) { + TrustBaseHistory history = create(genesisPin); + for (TrustBaseEntry entry : bundle.getEntries()) { + history.append(entry); + } + return history; + } + + /** + * Get a snapshot of the held entries. + * + * @return immutable list, ascending from the genesis + */ + @Override + public List getEntries() { + synchronized (this.lock) { + return List.copyOf(this.entries); + } + } + + /** + * Get the pinned entry id of the genesis. + * + * @return copy + */ + @Override + public byte[] getGenesisPin() { + return Arrays.copyOf(this.genesisPin, this.genesisPin.length); + } + + /** + * Tell whether no entry is held yet. + * + * @return true if empty + */ + public boolean isEmpty() { + synchronized (this.lock) { + return this.entries.isEmpty(); + } + } + + /** + * Get the network of the held entries. + * + * @return the network, empty when the history is empty + */ + @Override + public Optional getNetworkId() { + synchronized (this.lock) { + return this.entries.isEmpty() ? Optional.empty() + : Optional.of(this.entries.get(0).getNetworkId()); + } + } + + /** + * Get the latest held entry. + * + * @return the tip, empty when the history is empty + */ + @Override + public Optional getTip() { + synchronized (this.lock) { + return this.entries.isEmpty() ? Optional.empty() + : Optional.of(this.entries.get(this.entries.size() - 1)); + } + } + + /** + * Add an entry. + * + * @param entry decoded entry + * @return {@link TrustBaseAppendOutcome#APPENDED}, or + * {@link TrustBaseAppendOutcome#ALREADY_HELD} when the entry is already held + * @throws TrustBaseInvalidException if the first entry is not a genesis entry + * @throws TrustBaseChainException if the first entry is not the pinned genesis, or the entry does + * not extend the tip (or its held predecessor) + * @throws TrustBaseSignatureException if the predecessor's members did not sign it with a quorum + * @throws TrustBaseConflictException if a different entry is held for the epoch + * @throws TrustBaseGapException if the entry is more than one epoch ahead of the tip + */ + public TrustBaseAppendOutcome append(TrustBaseEntry entry) { + Objects.requireNonNull(entry, "entry cannot be null"); + synchronized (this.lock) { + if (this.entries.isEmpty()) { + entry.verifyGenesis(); + if (!Arrays.equals(entry.entryId(), this.genesisPin)) { + throw new TrustBaseChainException("The genesis is not the pinned identity."); + } + this.entries.add(entry); + return TrustBaseAppendOutcome.APPENDED; + } + + TrustBaseEntry first = this.entries.get(0); + TrustBaseEntry tip = this.entries.get(this.entries.size() - 1); + if (UnsignedLongs.compare(entry.getEpoch(), tip.getEpoch()) <= 0) { + if (UnsignedLongs.compare(entry.getEpoch(), first.getEpoch()) < 0) { + throw new TrustBaseBeforeGenesisException("Epoch " + + UnsignedLongs.toDecimal(entry.getEpoch()) + " is before the genesis epoch " + + UnsignedLongs.toDecimal(first.getEpoch()) + "."); + } + int index = (int) (entry.getEpoch() - first.getEpoch()); + byte[] heldId = this.entries.get(index).entryId(); + byte[] offeredId = entry.entryId(); + if (!Arrays.equals(heldId, offeredId)) { + // Different, but not authenticated: the caller that wants to know whether it is a fork + // verifies the entry against the predecessor. + throw new TrustBaseConflictException(entry.getEpoch(), new TrustBaseConflictDetails( + false, entry.getEpoch(), null, heldId, entry.getNetworkId().getId(), null, + offeredId)); + } + if (index > 0) { + entry.verifySuccessor(this.entries.get(index - 1)); + } + return TrustBaseAppendOutcome.ALREADY_HELD; + } + if (entry.getEpoch() != tip.getEpoch() + 1) { + throw new TrustBaseGapException(entry.getEpoch(), tip.getEpoch()); + } + entry.verifySuccessor(tip); + this.entries.add(entry); + return TrustBaseAppendOutcome.APPENDED; + } + } + + /** + * Get the held entry of an epoch. + * + * @param epoch epoch, unsigned bits + * @return the entry, empty when the epoch is before the genesis or after the tip (the caller may + * fetch and append) + */ + @Override + public Optional entryForEpoch(long epoch) { + synchronized (this.lock) { + if (this.entries.isEmpty()) { + return Optional.empty(); + } + TrustBaseEntry first = this.entries.get(0); + if (UnsignedLongs.compare(epoch, first.getEpoch()) < 0) { + return Optional.empty(); + } + long offset = epoch - first.getEpoch(); + if (UnsignedLongs.compare(offset, this.entries.size()) >= 0) { + return Optional.empty(); + } + return Optional.of(this.entries.get((int) offset)); + } + } + + /** + * Get the round at which the held successor of an epoch starts, which ends the epoch's interval. + * + * @param epoch epoch, unsigned bits + * @return start round of the entry for {@code epoch + 1}, empty when none is held (the epoch is + * open-ended as far as this history knows) + */ + @Override + public OptionalLong epochEndRound(long epoch) { + if (epoch == -1L) { + return OptionalLong.empty(); + } + return entryForEpoch(epoch + 1) + .map(entry -> OptionalLong.of(entry.getEpochStartRound())) + .orElse(OptionalLong.empty()); + } + + /** + * Get the held entries as one complete bundle (tag 39015), the form a cache stores. Round-trips + * through {@link TrustBaseBundle#decode}. + * + * @return tagged bundle + * @throws TrustBaseBundleException if the history is empty + */ + @Override + public byte[] toBundle() { + return TrustBaseBundle.encode(getEntries()); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryView.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryView.java new file mode 100644 index 00000000..09ff5a8b --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryView.java @@ -0,0 +1,68 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.List; +import java.util.Optional; +import java.util.OptionalLong; +import org.unicitylabs.sdk.api.NetworkId; + +/** + * The read-only face of a history, as verification uses it: the held entries from the pinned + * genesis, each seal being placed in the entry of its own epoch. Implemented by + * {@link TrustBaseHistory} and by the cache session (whose view fails once an authenticated fork + * closed the session). Each method answers from one consistent chain, and the chain only grows. + */ +public interface TrustBaseHistoryView { + + /** + * Get the network of the held entries. + * + * @return the network, empty while the view holds no entry + */ + Optional getNetworkId(); + + /** + * Get the latest held entry. + * + * @return the tip, empty while the view holds no entry + */ + Optional getTip(); + + /** + * Get a snapshot of the held entries. + * + * @return immutable list, ascending from the genesis + */ + List getEntries(); + + /** + * Get the held entry of an epoch. + * + * @param epoch epoch, unsigned bits + * @return the entry, empty when the epoch is before the genesis or after the tip + */ + Optional entryForEpoch(long epoch); + + /** + * Get the round at which the held successor of an epoch starts: the exclusive end of the epoch's + * interval (a round is in the epoch from its start round up to, not including, this round). + * + * @param epoch epoch, unsigned bits + * @return start round of the entry for {@code epoch + 1}, empty when none is held + */ + OptionalLong epochEndRound(long epoch); + + /** + * Export the held history as one complete bundle. + * + * @return the tag-39015 bundle + * @throws TrustBaseBundleException if the view holds no entry + */ + byte[] toBundle(); + + /** + * Get the pinned entry id of the genesis. + * + * @return copy + */ + byte[] getGenesisPin(); +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseInvalidException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseInvalidException.java new file mode 100644 index 00000000..26ac7c81 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseInvalidException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** The entry is well-formed but a structure rule fails (epoch, members, threshold, hashes, genesis shape). */ +public class TrustBaseInvalidException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseInvalidException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseMember.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseMember.java new file mode 100644 index 00000000..db2b32c2 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseMember.java @@ -0,0 +1,71 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Arrays; +import java.util.Objects; + +/** One member of a trust-base epoch: its node id, compressed secp256k1 signing key and voting weight. */ +public final class TrustBaseMember { + + private final String nodeId; + private final byte[] sigKey; + private final long weight; + + /** + * Create a member. + * + * @param nodeId node id (UTF-8, 1 to 128 bytes in a valid entry) + * @param sigKey 33-byte compressed signing key (copied) + * @param weight voting weight, an unsigned 64-bit number (1 to 2^40 in a valid entry) + */ + public TrustBaseMember(String nodeId, byte[] sigKey, long weight) { + this.nodeId = Objects.requireNonNull(nodeId, "nodeId cannot be null"); + this.sigKey = Arrays.copyOf(Objects.requireNonNull(sigKey, "sigKey cannot be null"), + sigKey.length); + this.weight = weight; + } + + /** + * Get the node id. + * + * @return node id + */ + public String getNodeId() { + return this.nodeId; + } + + /** + * Get the signing key. + * + * @return copy of the compressed key + */ + public byte[] getSigKey() { + return Arrays.copyOf(this.sigKey, this.sigKey.length); + } + + /** + * Get the voting weight (unsigned bits; at most 2^40 in a valid entry, so never negative there). + * + * @return weight + */ + public long getWeight() { + return this.weight; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TrustBaseMember)) { + return false; + } + TrustBaseMember other = (TrustBaseMember) o; + return this.weight == other.weight && this.nodeId.equals(other.nodeId) + && Arrays.equals(this.sigKey, other.sigKey); + } + + @Override + public int hashCode() { + return Objects.hash(this.nodeId, Arrays.hashCode(this.sigKey), this.weight); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseNetworkException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseNetworkException.java new file mode 100644 index 00000000..c3b29ee4 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseNetworkException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** An entry or response belongs to another network than the history it is offered to. */ +public class TrustBaseNetworkException extends TrustBaseChainException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseNetworkException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBasePinMismatchException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBasePinMismatchException.java new file mode 100644 index 00000000..1e7a59e8 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBasePinMismatchException.java @@ -0,0 +1,18 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** + * An entry, a cache or an override disagrees with the release checkpoint (at or before the pinned + * epoch), or a custom authority is not acceptable. The checkpoint selects authority; the session is + * not poisoned. + */ +public class TrustBasePinMismatchException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBasePinMismatchException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRange.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRange.java new file mode 100644 index 00000000..a142b8cf --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRange.java @@ -0,0 +1,256 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.serializer.cbor.CborDeserializer; + +/** + * One page of the GetTrustBase protocol: the tag-39015 response to a request for the entries from an epoch on. + * + *

A status other than OK carries no entries and no cursor. An OK page is a contiguous ascending + * run of entries of the response's network starting at {@code fromEpoch}, linked by entry id, ending + * at {@code effectiveEnd} when no cursor remains, or at the epoch before the cursor otherwise. The + * reference is bft-core {@code gettrustbase.DecodeResponse}. + * + *

Decoding checks structure and links only. Nothing here is authenticated: {@code effectiveEnd} + * and {@code endEntryId} are the source's claim, and every entry is authenticated by the history's + * {@code append} from the latest held entry. + */ +public final class TrustBaseRange { + + /** CBOR tag of the GetTrustBase response (and of a release bundle, which is the same object). */ + public static final long RESPONSE_TAG = 39015L; + /** Version of the GetTrustBase response. */ + public static final long RESPONSE_VERSION = 1L; + + private static final int FIELD_COUNT = 8; + + private final TrustBaseStatus status; + private final NetworkId networkId; + private final long fromEpoch; + private final long effectiveEnd; + private final byte[] endEntryId; + private final List entries; + private final Long nextEpoch; + + private TrustBaseRange(TrustBaseStatus status, NetworkId networkId, long fromEpoch, + long effectiveEnd, byte[] endEntryId, List entries, Long nextEpoch) { + this.status = status; + this.networkId = networkId; + this.fromEpoch = fromEpoch; + this.effectiveEnd = effectiveEnd; + this.endEntryId = endEntryId; + this.entries = Collections.unmodifiableList(entries); + this.nextEpoch = nextEpoch; + } + + /** + * Get the status. + * + * @return the status + */ + public TrustBaseStatus getStatus() { + return this.status; + } + + /** + * Get the network of the response (the one that was asked for). + * + * @return the network + */ + public NetworkId getNetworkId() { + return this.networkId; + } + + /** + * Get the first epoch of the page (advisory for a status other than OK). + * + * @return the epoch, an unsigned 64-bit value + */ + public long getFromEpoch() { + return this.fromEpoch; + } + + /** + * Get the source's last epoch (advisory for a status other than OK). + * + * @return the epoch, an unsigned 64-bit value + */ + public long getEffectiveEnd() { + return this.effectiveEnd; + } + + /** + * Get the identity of the entry at the effective end (absent or advisory for a status other than + * OK; unchecked on a cursor page that ends before it). + * + * @return a copy of the entry id, or null + */ + public byte[] getEndEntryId() { + return this.endEntryId == null ? null : Arrays.copyOf(this.endEntryId, this.endEntryId.length); + } + + /** + * Get the entries, structurally decoded and linked, signatures unchecked. Empty unless the status + * is OK. + * + * @return the entries + */ + public List getEntries() { + return this.entries; + } + + /** + * Get the epoch to ask for next, when the page does not reach the effective end. + * + * @return the epoch (unsigned), or null + */ + public Long getNextEpoch() { + return this.nextEpoch; + } + + /** + * Strictly decode one page. + * + * @param bytes tagged response + * @param limits size budget, checked before allocation + * @param expectedNetwork the network that was asked for; a response for another one is refused + * @return the page + * @throws TrustBaseEncodingException if the bytes (or an embedded entry) are not the deterministic + * encoding, or exceed the byte budget + * @throws TrustBaseResponseException if the page is inconsistent: network, status and cursor + * rules, entry count, start, order, links, end + */ + public static TrustBaseRange decode(byte[] bytes, TrustBaseRangeLimits limits, + NetworkId expectedNetwork) { + Objects.requireNonNull(bytes, "bytes cannot be null"); + Objects.requireNonNull(limits, "limits cannot be null"); + Objects.requireNonNull(expectedNetwork, "expectedNetwork cannot be null"); + if (bytes.length > limits.getMaxBytes()) { + throw new TrustBaseEncodingException("The response exceeds the byte budget."); + } + + // The entry budget is a response rule, not an encoding rule: read one more than allowed. + long version; + long networkValue; + long statusValue; + long fromEpoch; + long effectiveEnd; + byte[] endEntryId; + List items; + Long nextEpoch; + try { + CborDeserializer.CborTag tagged = CborDeserializer.decodeTag(bytes); + if (tagged.getTag() != RESPONSE_TAG) { + throw new TrustBaseEncodingException("Not a GetTrustBase response (tag)."); + } + List fields = CborDeserializer.decodeArrayAtMost(tagged.getData(), FIELD_COUNT); + if (fields.size() != FIELD_COUNT) { + throw new TrustBaseEncodingException("The response is not an 8-element array."); + } + version = CborDeserializer.decodeUnsignedInteger(fields.get(0)).asLong(); + networkValue = CborDeserializer.decodeUnsignedInteger(fields.get(1)).asLong(); + statusValue = CborDeserializer.decodeUnsignedInteger(fields.get(2)).asLong(); + fromEpoch = CborDeserializer.decodeUnsignedInteger(fields.get(3)).asLong(); + effectiveEnd = CborDeserializer.decodeUnsignedInteger(fields.get(4)).asLong(); + endEntryId = CborDeserializer.decodeNullable(fields.get(5), + CborDeserializer::decodeByteString); + items = CborDeserializer.decodeArrayAtMost(fields.get(6), limits.getMaxEntries() + 1); + nextEpoch = CborDeserializer.decodeNullable(fields.get(7), + item -> CborDeserializer.decodeUnsignedInteger(item).asLong()); + } catch (TrustBaseException e) { + throw e; + } catch (RuntimeException e) { + throw new TrustBaseEncodingException("Malformed GetTrustBase response: " + e.getMessage()); + } + + if (version != RESPONSE_VERSION) { + throw new TrustBaseEncodingException("The response version is not 1."); + } + if (Long.compareUnsigned(networkValue, 0xFFFFL) > 0 || networkValue == 0) { + throw new TrustBaseEncodingException("Invalid network id."); + } + NetworkId network = NetworkId.fromId((short) networkValue); + TrustBaseStatus status = TrustBaseStatus.fromWire(statusValue); + if (status == null) { + throw new TrustBaseEncodingException("The status is out of range."); + } + if (endEntryId != null && endEntryId.length != TrustBaseEntry.ID_LENGTH) { + throw new TrustBaseEncodingException("The end entry id is not 32 bytes."); + } + if (items.size() > limits.getMaxEntries()) { + throw new TrustBaseResponseException("The entry count exceeds the bound."); + } + if (!network.equals(expectedNetwork)) { + throw new TrustBaseResponseException("A response for another network."); + } + + if (status != TrustBaseStatus.OK) { + if (!items.isEmpty() || nextEpoch != null) { + throw new TrustBaseResponseException( + "A status other than OK carries entries or a cursor."); + } + return new TrustBaseRange(status, network, fromEpoch, effectiveEnd, endEntryId, + new ArrayList<>(), null); + } + if (items.isEmpty()) { + throw new TrustBaseResponseException("An OK response without entries."); + } + if (endEntryId == null) { + throw new TrustBaseResponseException("No end entry id."); + } + + List entries = new ArrayList<>(items.size()); + byte[] previousId = null; + TrustBaseEntry previous = null; + for (byte[] item : items) { + if (item.length > TrustBaseEntry.MAX_ENTRY_BYTES) { + throw new TrustBaseResponseException("An entry exceeds the size bound."); + } + TrustBaseEntry entry; + try { + entry = TrustBaseEntry.decode(item); + } catch (TrustBaseException e) { + throw new TrustBaseEncodingException("An embedded entry is not a version 2 entry."); + } + if (!entry.getNetworkId().equals(network)) { + throw new TrustBaseResponseException("An entry of another network."); + } + if (previous == null) { + if (entry.getEpoch() != fromEpoch) { + throw new TrustBaseResponseException("The first entry is not at the page's start epoch."); + } + } else { + if (previous.getEpoch() == -1L || entry.getEpoch() != previous.getEpoch() + 1) { + throw new TrustBaseResponseException("The entry epochs are not consecutive."); + } + if (!Arrays.equals(entry.getPreviousEntryId(), previousId)) { + throw new TrustBaseResponseException("An entry does not link to its predecessor."); + } + } + previousId = entry.entryId(); + previous = entry; + entries.add(entry); + } + + long last = previous.getEpoch(); + if (nextEpoch == null) { + if (last != effectiveEnd) { + throw new TrustBaseResponseException( + "The page ends before the effective end without a cursor."); + } + } else if (last == -1L || nextEpoch != last + 1 + || Long.compareUnsigned(nextEpoch, effectiveEnd) > 0) { + throw new TrustBaseResponseException("The cursor does not follow the last entry."); + } + if (last == effectiveEnd && !Arrays.equals(endEntryId, previousId)) { + throw new TrustBaseResponseException("The end entry id differs from the last entry."); + } + return new TrustBaseRange(status, network, fromEpoch, effectiveEnd, endEntryId, entries, + nextEpoch); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRangeLimits.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRangeLimits.java new file mode 100644 index 00000000..e8d3f00a --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRangeLimits.java @@ -0,0 +1,43 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** Budget of a page decode; the byte bound is checked before anything is read. */ +public final class TrustBaseRangeLimits { + + /** The page caps of the GetTrustBase protocol (bft-core {@code gettrustbase.PageLimits}): 1 MiB, 64 entries. */ + public static final TrustBaseRangeLimits PAGE = new TrustBaseRangeLimits(1 << 20, 64); + + private final int maxBytes; + private final int maxEntries; + + /** + * Create a budget. + * + * @param maxBytes most bytes of a response + * @param maxEntries most entries of a response + */ + public TrustBaseRangeLimits(int maxBytes, int maxEntries) { + if (maxBytes <= 0 || maxEntries <= 0) { + throw new IllegalArgumentException("The limits must be positive."); + } + this.maxBytes = maxBytes; + this.maxEntries = maxEntries; + } + + /** + * Get the byte bound. + * + * @return most bytes of a response + */ + public int getMaxBytes() { + return this.maxBytes; + } + + /** + * Get the entry bound. + * + * @return most entries of a response + */ + public int getMaxEntries() { + return this.maxEntries; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRequest.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRequest.java new file mode 100644 index 00000000..6bdb5be6 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRequest.java @@ -0,0 +1,102 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Arrays; +import java.util.Objects; +import org.unicitylabs.sdk.api.NetworkId; + +/** One GetTrustBase request (bft-core {@code gettrustbase.Request}, without the end epoch, which the SDK never sets). */ +public final class TrustBaseRequest { + + private final long fromEpoch; + private final int maxEntries; + private final NetworkId networkId; + private final Snapshot snapshot; + + /** + * Create a request. + * + * @param fromEpoch first epoch wanted (unsigned): the latest held epoch + 1, or the cursor of the previous page + * @param maxEntries most entries wanted in the response + * @param networkId the network + * @param snapshot the snapshot the first page announced, echoed on later pages; may be null + */ + public TrustBaseRequest(long fromEpoch, int maxEntries, NetworkId networkId, Snapshot snapshot) { + this.fromEpoch = fromEpoch; + this.maxEntries = maxEntries; + this.networkId = Objects.requireNonNull(networkId, "networkId cannot be null"); + this.snapshot = snapshot; + } + + /** + * Get the first epoch wanted. + * + * @return the epoch, an unsigned 64-bit value + */ + public long getFromEpoch() { + return this.fromEpoch; + } + + /** + * Get the most entries wanted. + * + * @return the bound + */ + public int getMaxEntries() { + return this.maxEntries; + } + + /** + * Get the network. + * + * @return the network + */ + public NetworkId getNetworkId() { + return this.networkId; + } + + /** + * Get the echoed snapshot. + * + * @return the snapshot, or null on a first page + */ + public Snapshot getSnapshot() { + return this.snapshot; + } + + /** The end epoch and its entry id that the first page of a paged range announced, echoed on every later page. */ + public static final class Snapshot { + + private final long end; + private final byte[] entryId; + + /** + * Create a snapshot. + * + * @param end the announced last epoch (unsigned) + * @param entryId identity of the entry at {@code end} + */ + public Snapshot(long end, byte[] entryId) { + this.end = end; + this.entryId = Arrays.copyOf(Objects.requireNonNull(entryId, "entryId cannot be null"), + entryId.length); + } + + /** + * Get the announced last epoch. + * + * @return the epoch, an unsigned 64-bit value + */ + public long getEnd() { + return this.end; + } + + /** + * Get the identity of the entry at the end epoch. + * + * @return a copy of the entry id + */ + public byte[] getEntryId() { + return Arrays.copyOf(this.entryId, this.entryId.length); + } + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseResponseException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseResponseException.java new file mode 100644 index 00000000..a54eff17 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseResponseException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** A well-formed GetTrustBase response that breaks a consistency rule: network, status and cursor, start, order, links or end. */ +public class TrustBaseResponseException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseResponseException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseResponseWire.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseResponseWire.java new file mode 100644 index 00000000..26f0e7f9 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseResponseWire.java @@ -0,0 +1,199 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import org.unicitylabs.sdk.serializer.cbor.CborDeserializer; +import org.unicitylabs.sdk.serializer.cbor.CborSerializationException; +import org.unicitylabs.sdk.serializer.cbor.CborSerializer; +import org.unicitylabs.sdk.util.UnsignedLongs; + +/** + * The envelope of a GetTrustBase response (and of a release bundle, which is the same object): + * {@code [1, network, status, fromEpoch, effectiveEnd, endEntryId|null, [entry...], + * nextEpoch|null]} under tag 39015, the entries embedded verbatim. Only the envelope is checked + * here; each user of the response applies its own rules to the contents. + */ +public final class TrustBaseResponseWire { + + /** CBOR tag of the response. */ + public static final long RESPONSE_TAG = 39015L; + /** Version of the response. */ + public static final long RESPONSE_VERSION = 1L; + /** Number of defined response statuses. */ + public static final long STATUS_COUNT = 8L; + /** Status of a response that carries entries. */ + public static final long STATUS_OK = 0L; + + private static final int FIELD_COUNT = 8; + + private TrustBaseResponseWire() { + } + + /** The fields of a response. Epochs, rounds and the status are unsigned bits. */ + public static final class Fields { + + private final long effectiveEnd; + private final byte[] endEntryId; + private final List entries; + private final long fromEpoch; + private final int network; + private final Long nextEpoch; + private final long status; + + /** + * Create the fields. + * + * @param effectiveEnd last epoch of the range, unsigned + * @param endEntryId id of the last entry, or null (copied) + * @param entries complete tagged entries (copied) + * @param fromEpoch first epoch of the range, unsigned + * @param network network id, 0 to 65535 + * @param nextEpoch continuation cursor, or null + * @param status response status, 0 to 7 + */ + public Fields(long effectiveEnd, byte[] endEntryId, List entries, long fromEpoch, + int network, Long nextEpoch, long status) { + this.effectiveEnd = effectiveEnd; + this.endEntryId = endEntryId == null ? null : Arrays.copyOf(endEntryId, endEntryId.length); + List copy = new ArrayList<>(entries.size()); + for (byte[] entry : entries) { + copy.add(Arrays.copyOf(entry, entry.length)); + } + this.entries = copy; + this.fromEpoch = fromEpoch; + this.network = network; + this.nextEpoch = nextEpoch; + this.status = status; + } + + /** Get the last epoch of the range, unsigned bits. */ + public long getEffectiveEnd() { + return this.effectiveEnd; + } + + /** Get the end entry id, or null (copy). */ + public byte[] getEndEntryId() { + return this.endEntryId == null ? null + : Arrays.copyOf(this.endEntryId, this.endEntryId.length); + } + + /** Get the embedded entries (copies). */ + public List getEntries() { + List copy = new ArrayList<>(this.entries.size()); + for (byte[] entry : this.entries) { + copy.add(Arrays.copyOf(entry, entry.length)); + } + return copy; + } + + /** Get the first epoch of the range, unsigned bits. */ + public long getFromEpoch() { + return this.fromEpoch; + } + + /** Get the network id of the header. */ + public int getNetwork() { + return this.network; + } + + /** Get the continuation cursor, or null. */ + public Long getNextEpoch() { + return this.nextEpoch; + } + + /** Get the status, unsigned bits. */ + public long getStatus() { + return this.status; + } + } + + /** + * Parse the envelope of a tagged response. + * + * @param bytes tagged response + * @param maxEntries most entries accepted, checked from the array header before any entry is read + * @return the fields + * @throws TrustBaseEncodingException if the bytes are not the deterministic envelope or exceed + * the entry budget + */ + public static Fields parse(byte[] bytes, int maxEntries) { + Objects.requireNonNull(bytes, "bytes cannot be null"); + try { + CborDeserializer.CborTag tagged = CborDeserializer.decodeTag(bytes); + if (tagged.getTag() != RESPONSE_TAG) { + throw new TrustBaseEncodingException( + "Tag " + Long.toUnsignedString(tagged.getTag()) + ", expected " + RESPONSE_TAG + "."); + } + + List fields = CborDeserializer.decodeArrayAtMost(tagged.getData(), FIELD_COUNT); + if (fields.size() != FIELD_COUNT) { + throw new TrustBaseEncodingException( + "Expected " + FIELD_COUNT + " fields, got " + fields.size() + "."); + } + + long version = uint(fields.get(0)); + if (version != RESPONSE_VERSION) { + throw new TrustBaseEncodingException( + "Version " + Long.toUnsignedString(version) + ", expected " + RESPONSE_VERSION + "."); + } + long network = uint(fields.get(1)); + // A header network of 0 is not refused here: no entry has network 0, so the entries cannot + // match it and the response is refused as such by its user. + if (UnsignedLongs.compare(network, 0xFFFFL) > 0) { + throw new TrustBaseEncodingException( + "Network identifier " + Long.toUnsignedString(network) + " above 65535."); + } + long status = uint(fields.get(2)); + if (UnsignedLongs.compare(status, STATUS_COUNT) >= 0) { + throw new TrustBaseEncodingException( + "Status " + Long.toUnsignedString(status) + " is not defined."); + } + byte[] endEntryId = CborDeserializer.decodeNullable(fields.get(5), + CborDeserializer::decodeByteString); + if (endEntryId != null && endEntryId.length != TrustBaseEntry.ID_LENGTH) { + throw new TrustBaseEncodingException("End id of " + endEntryId.length + " bytes."); + } + List entries; + try { + entries = CborDeserializer.decodeArrayAtMost(fields.get(6), maxEntries); + } catch (CborSerializationException e) { + if (e.getMessage() != null && e.getMessage().startsWith("Array of more than")) { + throw new TrustBaseEncodingException("More than " + maxEntries + " entries."); + } + throw e; + } + Long nextEpoch = CborDeserializer.decodeNullable(fields.get(7), TrustBaseResponseWire::uint); + return new Fields(uint(fields.get(4)), endEntryId, entries, uint(fields.get(3)), + (int) network, nextEpoch, status); + } catch (TrustBaseEncodingException e) { + throw e; + } catch (RuntimeException e) { + throw new TrustBaseEncodingException(String.valueOf(e.getMessage())); + } + } + + private static long uint(byte[] data) { + return CborDeserializer.decodeUnsignedInteger(data).asLong(); + } + + /** + * Encode a response, the entries embedded verbatim: the inverse of {@link #parse}. + * + * @param fields the fields; entries are complete tagged entries + * @return tagged response + */ + public static byte[] encode(Fields fields) { + byte[][] entries = fields.entries.toArray(new byte[0][]); + return CborSerializer.encodeTag(RESPONSE_TAG, CborSerializer.encodeArray( + CborSerializer.encodeUnsignedInteger(RESPONSE_VERSION), + CborSerializer.encodeUnsignedInteger(fields.network), + CborSerializer.encodeUnsignedInteger(fields.status), + CborSerializer.encodeUnsignedInteger(fields.fromEpoch), + CborSerializer.encodeUnsignedInteger(fields.effectiveEnd), + CborSerializer.encodeNullable(fields.endEntryId, CborSerializer::encodeByteString), + CborSerializer.encodeArray(entries), + CborSerializer.encodeNullable(fields.nextEpoch, CborSerializer::encodeUnsignedInteger))); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSession.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSession.java new file mode 100644 index 00000000..16fcb859 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSession.java @@ -0,0 +1,737 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.OptionalLong; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CompletionException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Executor; +import java.util.function.Supplier; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.ReleasePin.VerifiedReleasePin; + +/** + * A trust base history together with its release pin and its cache. It starts from the pinned + * release history, merges whatever compatible cache the store holds (strictly re-verified from the + * pinned genesis: nothing in a store is trusted for its name, age or revision), takes later entries + * through {@link #append} and {@link #refresh}, and saves one complete bundle by compare-and-swap. + * + *

Verification reads {@link #history()}, a read-only view. An authenticated fork after the + * release checkpoint closes the session: every later append, refresh and read of the view fails with + * {@link HistoryConflictedException} (the live session only; an untrusted store cannot make this + * survive deletion or a fresh process, so the application records the incident). A mismatch in the + * pinned prefix is refused without closing it. + * + *

All mutation runs one task at a time on the executor of the options; the store futures are + * awaited there, never on the caller's thread and never under a lock held by readers. Reads of the + * view see a consistent snapshot of the history at any time. + */ +public final class TrustBaseSession implements TrustBaseUpdateTarget { + + /** One write and at most three retries of a changed revision. */ + public static final int MAX_CAS_ATTEMPTS = 4; + + /** A session and what was found in the cache when it opened. */ + public static final class Opened { + + private final TrustBaseSession session; + private final List diagnostics; + + Opened(TrustBaseSession session, List diagnostics) { + this.session = session; + this.diagnostics = diagnostics; + } + + /** + * Get the session. + * + * @return the session + */ + public TrustBaseSession getSession() { + return this.session; + } + + /** + * Get what was found in the cache: a cache that is refused or unreadable leaves the embedded + * history in place. + * + * @return the diagnostics + */ + public List getDiagnostics() { + return this.diagnostics; + } + } + + private final Serial serial; + private final TrustBaseStore store; + private final String key; + private final TrustBaseBundleLimits limits; + private final long pinnedEpoch; + private final ReleasePin pin; + private volatile TrustBaseHistory history; + /** Guards the dirty flag against the history it describes: appends and the settling of a flush. */ + private final Object lock = new Object(); + /** Test hook: runs where a flush settles the dirty flag, before it does. */ + volatile Runnable settleHook; + private final TrustBaseHistoryView view; + private volatile boolean dirty; + private boolean repair; + private CacheRejection blocked; + private volatile TrustBaseConflictException conflict; + + private TrustBaseSession(Executor executor, TrustBaseStore store, String key, + TrustBaseBundleLimits limits, VerifiedReleasePin verified) { + this.serial = new Serial(executor); + this.store = store; + this.key = key; + this.limits = limits; + this.pin = verified.getPin(); + this.pinnedEpoch = this.pin.getPinnedEpoch(); + this.history = verified.getHistory(); + this.view = new View(); + } + + /** + * Open the session of a public network: the release table row, or an override that extends it. + * + * @param network the network + * @param override an explicit newer pin that extends the built-in one, or null + * @param store the store + * @param options the options + * @return future with the session and what was found in the cache. Fails with + * {@link UnknownNetworkException} if the network has no pin, + * {@link ReleasePinInvalidException} if the pin or the override is invalid (never rescued by + * the cache) or {@link TrustBasePinMismatchException} if the override does not extend the row + */ + public static CompletableFuture openPublic(NetworkId network, ReleasePin override, + TrustBaseStore store, TrustBaseSessionOptions options) { + Objects.requireNonNull(network, "network cannot be null"); + return run(options, () -> { + ReleasePin row = null; + for (ReleasePin candidate : options.getTable()) { + if (candidate.getNetworkId().equals(network)) { + row = candidate; + break; + } + } + if (row == null) { + throw new UnknownNetworkException("No release pin for network " + network.getId() + "."); + } + VerifiedReleasePin builtin = row.verify(options.getLimits()); + VerifiedReleasePin selected = builtin; + if (override != null) { + if (!override.getNetworkId().equals(network)) { + throw new TrustBasePinMismatchException("The override is of another network."); + } + VerifiedReleasePin replacement = override.verify(options.getLimits()); + if (!builtin.isExtendedBy(replacement)) { + throw new TrustBasePinMismatchException( + "The override does not extend the release pin of the network."); + } + selected = replacement; + } + return open(selected, TrustBaseCacheKey.PUBLIC_NAMESPACE, store, options); + }); + } + + /** + * Open the session of a private or test network under an explicit authority: its own pin and a + * namespace of its own. This chooses another authority; it does not switch any check off. + * + * @param namespace the trust namespace, 1 to 64 bytes, no {@code /}, and not {@code public} + * @param pin the pin, with the full embedded bundle + * @param store the store + * @param options the options + * @return future with the session and what was found in the cache. Fails with + * {@link TrustBasePinMismatchException} for a namespace that is not acceptable and + * {@link ReleasePinInvalidException} if the pin is invalid + */ + public static CompletableFuture openPrivate(String namespace, ReleasePin pin, + TrustBaseStore store, TrustBaseSessionOptions options) { + Objects.requireNonNull(namespace, "namespace cannot be null"); + Objects.requireNonNull(pin, "pin cannot be null"); + return run(options, () -> { + if (!TrustBaseCacheKey.isValidPrivateNamespace(namespace)) { + throw new TrustBasePinMismatchException("A private authority needs its own namespace."); + } + return open(pin.verify(options.getLimits()), namespace, store, options); + }); + } + + /** + * Open the session of a local test network from its own complete bundle, in the fixed namespace + * {@code local}, never shared with {@code public}. + * + * @param bundle the deployment's own complete bundle + * @param store the store + * @param options the options + * @return future with the session; see {@link #openPrivate} + */ + public static CompletableFuture openLocal(byte[] bundle, TrustBaseStore store, + TrustBaseSessionOptions options) { + Objects.requireNonNull(bundle, "bundle cannot be null"); + return run(options, () -> open(ReleasePin.fromBundle(bundle).verify(options.getLimits()), + TrustBaseCacheKey.LOCAL_NAMESPACE, store, options)); + } + + private static CompletableFuture run(TrustBaseSessionOptions options, + Supplier task) { + Objects.requireNonNull(options, "options cannot be null"); + CompletableFuture future = new CompletableFuture<>(); + options.getExecutor().execute(() -> { + try { + future.complete(task.get()); + } catch (Throwable e) { + future.completeExceptionally(e); + } + }); + return future; + } + + private static Opened open(VerifiedReleasePin verified, String namespace, TrustBaseStore store, + TrustBaseSessionOptions options) { + Objects.requireNonNull(store, "store cannot be null"); + ReleasePin pin = verified.getPin(); + String key = TrustBaseCacheKey.of(pin.getNetworkId(), pin.getGenesisEntryId(), namespace); + TrustBaseSession session = new TrustBaseSession(options.getExecutor(), store, key, + options.getLimits(), verified); + List diagnostics = new ArrayList<>(); + session.load(diagnostics); + return new Opened(session, diagnostics); + } + + /** Read the cache and merge it into the embedded history. Nothing is written. */ + private void load(List diagnostics) { + Optional stored; + try { + stored = await(this.store.read(this.key, this.limits.getMaxBytes())); + } catch (TrustBaseStoreException e) { + if (e.getReason() == TrustBaseStoreException.Reason.OVERSIZE) { + diagnostics.add(CacheDiagnostic.rejected(CacheRejection.OVERSIZE)); + this.blocked = CacheRejection.OVERSIZE; + } else { + diagnostics.add(CacheDiagnostic.unavailable(e)); + } + return; + } catch (RuntimeException e) { + diagnostics.add(CacheDiagnostic.unavailable(e)); + return; + } + if (!stored.isPresent()) { + return; + } + Loaded loaded = loadCache(stored.get().getBytes()); + if (loaded.rejection != null) { + diagnostics.add(CacheDiagnostic.rejected(loaded.rejection)); + if (loaded.rejection == CacheRejection.OVERSIZE + || loaded.rejection == CacheRejection.PIN_MISMATCH) { + this.blocked = loaded.rejection; + } else { + this.repair = true; + } + return; + } + TrustBaseHistory cache = loaded.history; + long embeddedTip = this.history.getTip().get().getEpoch(); + long cacheTip = cache.getTip().get().getEpoch(); + if (Long.compareUnsigned(cacheTip, embeddedTip) > 0) { + // A longer compatible cache extends the embedded history: its entries past the embedded tip + // are appended, so the embedded witnesses (the first held) stay and an older SDK never + // truncates the cache. + try { + for (TrustBaseEntry entry : cache.getEntries()) { + if (Long.compareUnsigned(entry.getEpoch(), embeddedTip) > 0) { + this.history.append(entry); + } + } + } catch (TrustBaseException e) { + // Verified in the cache's own chain, which agrees with the checkpoint, so the append only + // extends. Should it ever not, the embedded history stands and the cache is reported. + this.history = this.pin.verify(this.limits).getHistory(); + this.repair = true; + diagnostics.add(CacheDiagnostic.rejected(CacheRejection.MALFORMED)); + } + } else { + // a shorter prefix is extended from the embedded bundle + this.dirty = Long.compareUnsigned(cacheTip, embeddedTip) < 0; + } + } + + private static final class Loaded { + final TrustBaseHistory history; + final CacheRejection rejection; + + Loaded(TrustBaseHistory history, CacheRejection rejection) { + this.history = history; + this.rejection = rejection; + } + + static Loaded ok(TrustBaseHistory history) { + return new Loaded(history, null); + } + + static Loaded reject(CacheRejection rejection) { + return new Loaded(null, rejection); + } + } + + /** + * Strictly load cache bytes from the pinned genesis, then check them against the checkpoint. + * Staged: nothing is published here. Budgets are judged as budgets, before any decoding or + * signature work. + */ + private Loaded loadCache(byte[] bytes) { + if (bytes.length > this.limits.getMaxBytes()) { + return Loaded.reject(CacheRejection.OVERSIZE); + } + TrustBaseBundle bundle; + try { + TrustBaseResponseWire.Fields header = + TrustBaseResponseWire.parse(bytes, Integer.MAX_VALUE); + if (header.getEntries().size() > this.limits.getMaxEntries()) { + return Loaded.reject(CacheRejection.OVERSIZE); + } + for (byte[] entry : header.getEntries()) { + if (entry.length > this.limits.getMaxEntryBytes()) { + return Loaded.reject(CacheRejection.OVERSIZE); + } + } + if (header.getNetwork() != this.pin.getNetworkId().getId()) { + return Loaded.reject(CacheRejection.WRONG_NETWORK); + } + bundle = TrustBaseBundle.decode(bytes, this.limits); + } catch (TrustBaseException e) { + return Loaded.reject(CacheRejection.MALFORMED); + } + if (!bundle.getNetworkId().equals(this.pin.getNetworkId())) { + return Loaded.reject(CacheRejection.WRONG_NETWORK); + } + List entries = bundle.getEntries(); + if (!Arrays.equals(entries.get(0).entryId(), this.pin.getGenesisEntryId())) { + return Loaded.reject(CacheRejection.WRONG_GENESIS); + } + TrustBaseHistory staged = TrustBaseHistory.create(this.pin.getGenesisEntryId()); + try { + for (TrustBaseEntry entry : entries) { + staged.append(entry); + } + } catch (TrustBaseException e) { + return Loaded.reject(CacheRejection.MALFORMED); + } + // agree with the checkpoint over the overlap, and reach it when longer + long cacheTip = staged.getTip().get().getEpoch(); + long overlap = Long.compareUnsigned(cacheTip, this.pinnedEpoch) < 0 ? cacheTip + : this.pinnedEpoch; + Optional a = staged.entryForEpoch(overlap); + Optional b = this.history.entryForEpoch(overlap); + if (!a.isPresent() || !b.isPresent() || !Arrays.equals(a.get().entryId(), b.get().entryId())) { + return Loaded.reject(CacheRejection.PIN_MISMATCH); + } + return Loaded.ok(staged); + } + + private static T await(CompletableFuture future) { + try { + return future.get(); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new CompletionException(e); + } catch (ExecutionException e) { + Throwable cause = e.getCause(); + if (cause instanceof RuntimeException) { + throw (RuntimeException) cause; + } + throw new CompletionException(cause); + } + } + + // ---------------------------------------------------------------- the update target + + @Override + public Optional getNetworkId() { + return this.history.getNetworkId(); + } + + @Override + public Optional getTip() { + return this.history.getTip(); + } + + /** + * Add one entry, authenticated from the held entry before it. The calling thread runs the work: use + * {@link #appendAsync} to serialize with a flush in flight. + * + * @param entry the entry + * @return whether it was added or already held + * @throws HistoryConflictedException if the session is closed by a fork + * @throws TrustBaseConflictException if this entry is an authenticated fork after the checkpoint; + * the session is now closed + * @throws TrustBasePinMismatchException if it differs from the pinned prefix + * @throws TrustBaseException any other refusal of {@link TrustBaseHistory#append}: nothing latches + */ + @Override + public TrustBaseAppendOutcome append(TrustBaseEntry entry) { + synchronized (this.lock) { + return appendNow(entry); + } + } + + /** + * Add one entry on the session's executor, after every task already queued. + * + * @param entry the entry + * @return future with the outcome; fails as {@link #append} throws + */ + public CompletableFuture appendAsync(TrustBaseEntry entry) { + return this.serial.submit(() -> append(entry)); + } + + private TrustBaseAppendOutcome appendNow(TrustBaseEntry entry) { + Objects.requireNonNull(entry, "entry cannot be null"); + throwIfConflicted(); + Optional network = this.history.getNetworkId(); + if (network.isPresent() && !network.get().equals(entry.getNetworkId())) { + throw new TrustBaseNetworkException("Network " + entry.getNetworkId().getId() + + ", the history is of " + network.get().getId() + "."); + } + TrustBaseAppendOutcome outcome; + try { + outcome = this.history.append(entry); + } catch (TrustBaseConflictException e) { + throw classifyConflict(entry, e); + } + if (outcome == TrustBaseAppendOutcome.APPENDED) { + this.dirty = true; + } + return outcome; + } + + /** + * A different entry for a held epoch is not yet a fork: the pinned prefix is settled by the + * checkpoint, and after it the offered entry has to verify against the held predecessor before it + * counts as evidence. Only then the session closes. + */ + private RuntimeException classifyConflict(TrustBaseEntry entry, TrustBaseConflictException error) { + boolean pinned = Long.compareUnsigned(entry.getEpoch(), this.pinnedEpoch) <= 0; + Optional predecessor = this.history.entryForEpoch(entry.getEpoch() - 1); + Optional held = this.history.entryForEpoch(entry.getEpoch()); + if (!predecessor.isPresent() || !held.isPresent()) { + // The genesis epoch has no predecessor to verify against: the checkpoint settles it. + return pinned ? new TrustBasePinMismatchException("Epoch " + + Long.toUnsignedString(entry.getEpoch()) + " differs from the pinned history.") : error; + } + try { + entry.verifySuccessor(predecessor.get()); + } catch (TrustBaseException refusal) { + return refusal; + } + if (pinned) { + return new TrustBasePinMismatchException("Epoch " + Long.toUnsignedString(entry.getEpoch()) + + " differs from the pinned history."); + } + TrustBaseConflictException fork = new TrustBaseConflictException(entry.getEpoch(), + new TrustBaseConflictDetails(true, entry.getEpoch(), held.get().encode(), + held.get().entryId(), entry.getNetworkId().getId(), entry.encode(), entry.entryId())); + this.conflict = fork; + return fork; + } + + private void throwIfConflicted() { + TrustBaseConflictException fork = this.conflict; + if (fork != null) { + throw new HistoryConflictedException(fork); + } + } + + // ---------------------------------------------------------------- reading + + /** + * Get the read-only view that verification uses. Every read fails with + * {@link HistoryConflictedException} once an authenticated fork closed the session. + * + * @return the view + */ + public TrustBaseHistoryView history() { + return this.view; + } + + /** + * Export the held history as one complete bundle. Available on a conflicted session too. + * + * @return the tag-39015 bundle + */ + public byte[] exportBundle() { + return this.history.toBundle(); + } + + /** + * Get the authenticated fork that closed the session, with its evidence. + * + * @return the conflict, or null + */ + public TrustBaseConflictException getConflict() { + return this.conflict; + } + + /** + * Tell whether entries are held that the store does not have yet (a failed or not yet attempted + * save). + * + * @return true if dirty + */ + public boolean isDirty() { + return this.dirty; + } + + /** + * Get the store key. + * + * @return the key + */ + public String getKey() { + return this.key; + } + + private final class View implements TrustBaseHistoryView { + + private TrustBaseHistory live() { + throwIfConflicted(); + return TrustBaseSession.this.history; + } + + @Override + public Optional getNetworkId() { + return live().getNetworkId(); + } + + @Override + public Optional getTip() { + return live().getTip(); + } + + @Override + public List getEntries() { + return live().getEntries(); + } + + @Override + public Optional entryForEpoch(long epoch) { + return live().entryForEpoch(epoch); + } + + @Override + public OptionalLong epochEndRound(long epoch) { + return live().epochEndRound(epoch); + } + + @Override + public byte[] toBundle() { + return live().toBundle(); + } + + @Override + public byte[] getGenesisPin() { + return live().getGenesisPin(); + } + } + + // ---------------------------------------------------------------- saving and refreshing + + /** + * Save the held history if it is not saved yet. Writes one complete bundle by compare-and-swap: + * the stored bytes are reread and fully validated, a compatible longer suffix is imported, and a + * changed revision is retried at most {@link #MAX_CAS_ATTEMPTS} writes in all. + * + *

A clean session (nothing unsaved, no damaged or blocked cache to deal with) flushes without + * reading the store: {@code saved} then means nothing held here is unsaved, not that the store + * matches. A suffix another writer saved, or a fork in the store, is found when the session is + * opened again or when something here is saved. A damaged cache (or another network or genesis) is + * replaced only against its exact observed revision and reported in the result. A valid history + * over the budget, or an authenticated chain diverging at or before the checkpoint, is never + * overwritten. + * + * @return future with the result: saved (with the damaged cache it replaced, if any, and whether + * it wrote) or pending with the reason; the history stays dirty and verified and the + * application may retry + */ + public CompletableFuture flush() { + return this.serial.submit(this::flushNow); + } + + private FlushResult flushNow() { + if (this.conflict != null) { + return FlushResult.pending(new HistoryConflictedException(this.conflict)); + } + if (!this.dirty && !this.repair && this.blocked == null) { + // Nothing of ours to save, nothing to repair, nothing blocked: a clean flush does not touch + // the store (a reread is a full strict re-verification). + return FlushResult.saved(false, new ArrayList<>()); + } + List diagnostics = new ArrayList<>(); + for (int attempt = 0; attempt < MAX_CAS_ATTEMPTS; attempt++) { + Optional read; + try { + read = await(this.store.read(this.key, this.limits.getMaxBytes())); + } catch (RuntimeException e) { + return FlushResult.pending(e); + } + String expected = null; + byte[] diskTip = null; + if (read.isPresent()) { + expected = read.get().getRevision(); + Loaded loaded = loadCache(read.get().getBytes()); + if (loaded.rejection == null) { + // import what the store holds past the checkpoint; a fork latches + for (TrustBaseEntry entry : loaded.history.getEntries()) { + if (Long.compareUnsigned(entry.getEpoch(), this.pinnedEpoch) > 0) { + try { + append(entry); + } catch (HistoryConflictedException | TrustBaseConflictException e) { + return FlushResult.pending(e instanceof HistoryConflictedException ? e + : new HistoryConflictedException((TrustBaseConflictException) e)); + } catch (TrustBaseException e) { + return FlushResult.pending(new TrustBasePinMismatchException( + "The stored history disagrees with the checkpoint.")); + } + } + } + this.blocked = null; + diskTip = loaded.history.getTip().get().entryId(); + } else if (loaded.rejection == CacheRejection.OVERSIZE + || loaded.rejection == CacheRejection.PIN_MISMATCH) { + // a valid history over the budget, or an authenticated chain that diverges from the + // checkpoint, is evidence or a newer cache: never overwritten + this.blocked = loaded.rejection; + return FlushResult.pending(new CacheRejectedException(loaded.rejection)); + } else { + // damaged, or another network or genesis: replaced against exactly this revision, and + // reported in the result + this.blocked = null; + this.repair = true; + CacheDiagnostic diagnostic = CacheDiagnostic.rejected(loaded.rejection); + if (!diagnostics.contains(diagnostic)) { + diagnostics.add(diagnostic); + } + } + } else { + this.blocked = null; + } + byte[] ours = this.history.getTip().get().entryId(); + Runnable hook = this.settleHook; + if (hook != null) { + hook.run(); + } + if ((diskTip != null && Arrays.equals(diskTip, ours)) || (expected == null && !this.dirty)) { + // the store holds this history (other valid witnesses are not worth a rewrite), or there + // is nothing of ours to save + this.repair = false; + settle(ours); + return FlushResult.saved(false, diagnostics); + } + byte[] out = this.history.toBundle(); + try { + if (await(this.store.compareAndSwap(this.key, expected, out)) + == TrustBaseStore.CasOutcome.WRITTEN) { + // an append during the save keeps the history dirty + settle(ours); + this.repair = false; + return FlushResult.saved(true, diagnostics); + } + } catch (RuntimeException e) { + return FlushResult.pending(e); + } + } + return FlushResult.pending( + new CacheContendedException("The store changed during every save attempt.")); + } + + /** + * The store holds the history as it was at {@code saved} (its tip): the session is clean only if + * nothing was appended since, which a synchronous append from another thread may have done. + */ + private void settle(byte[] saved) { + synchronized (this.lock) { + this.dirty = !Arrays.equals(this.history.getTip().get().entryId(), saved); + } + } + + /** + * Fetch the entries after the held tip from the sources (see {@link TrustBaseUpdater}) and save + * the result. + * + * @param sources sources, tried in order + * @param options update options + * @return future with the entries appended; the save outcome is {@link #flush}'s. Fails with + * {@link HistoryConflictedException} if the session is closed by a fork, + * {@link TrustBaseConflictException} if a source served an authenticated fork and + * {@link TrustBaseUpdateException} if no source served the range (a valid prefix is still + * saved) + */ + public CompletableFuture refresh(List sources, + TrustBaseUpdateOptions options) { + return this.serial.submit(() -> { + throwIfConflicted(); + int appended; + try { + appended = TrustBaseUpdater.update(this, sources, options); + } catch (RuntimeException e) { + // A valid prefix stays held; saving it is still worth a try. + flushNow(); + throw e; + } + flushNow(); + return appended; + }); + } + + /** Runs submitted tasks one at a time, in order, on the executor. */ + private static final class Serial { + + private final Executor executor; + private final ArrayDeque queue = new ArrayDeque<>(); + private boolean running; + + Serial(Executor executor) { + this.executor = executor; + } + + CompletableFuture submit(Supplier task) { + CompletableFuture future = new CompletableFuture<>(); + Runnable job = () -> { + try { + future.complete(task.get()); + } catch (Throwable e) { + future.completeExceptionally(e); + } + }; + synchronized (this) { + this.queue.add(job); + if (this.running) { + return future; + } + this.running = true; + } + this.executor.execute(this::drain); + return future; + } + + private void drain() { + for (;;) { + Runnable job; + synchronized (this) { + job = this.queue.poll(); + if (job == null) { + this.running = false; + return; + } + } + job.run(); + } + } + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionOptions.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionOptions.java new file mode 100644 index 00000000..cfe8fd23 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionOptions.java @@ -0,0 +1,77 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.List; +import java.util.Objects; +import java.util.concurrent.Executor; + +/** Options of a {@link TrustBaseSession}: resource policy, the executor and the release table. */ +public final class TrustBaseSessionOptions { + + private final Executor executor; + private final TrustBaseBundleLimits limits; + private final List table; + + private TrustBaseSessionOptions(Executor executor, TrustBaseBundleLimits limits, + List table) { + this.executor = executor; + this.limits = limits; + this.table = table; + } + + /** + * Options with the default budget and the built-in release table. + * + * @param executor where the session's work runs, one task at a time per session: a bounded + * executor of the application, not the UI thread. A direct executor ({@code Runnable::run}) + * runs it on the calling thread + * @return the options + */ + public static TrustBaseSessionOptions of(Executor executor) { + return new TrustBaseSessionOptions(Objects.requireNonNull(executor, "executor cannot be null"), + ReleasePin.DEFAULT_LIMITS, ReleasePins.ROWS); + } + + /** + * Set the budget of every bundle the session loads or saves. + * + * @param limits the budget + * @return the changed options + */ + public TrustBaseSessionOptions withLimits(TrustBaseBundleLimits limits) { + return new TrustBaseSessionOptions(this.executor, + Objects.requireNonNull(limits, "limits cannot be null"), this.table); + } + + /** + * Replace the release table. For the release build and its tests, not for applications. + * + * @param table the rows + * @return the changed options + */ + public TrustBaseSessionOptions withTable(List table) { + return new TrustBaseSessionOptions(this.executor, this.limits, + List.copyOf(Objects.requireNonNull(table, "table cannot be null"))); + } + + Executor getExecutor() { + return this.executor; + } + + /** + * Get the budget. + * + * @return the budget + */ + public TrustBaseBundleLimits getLimits() { + return this.limits; + } + + /** + * Get the release table. + * + * @return the rows + */ + public List getTable() { + return this.table; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSignatureException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSignatureException.java new file mode 100644 index 00000000..fb61a417 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSignatureException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** A signature is not valid, a signer is not a member, or the quorum is not reached. */ +public class TrustBaseSignatureException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public TrustBaseSignatureException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSource.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSource.java new file mode 100644 index 00000000..7ed5d9f3 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSource.java @@ -0,0 +1,26 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.concurrent.CompletableFuture; + +/** + * Where newer Unicity Trust Base entries are fetched from: an aggregator's {@code GET + * /api/v1/trustbases}, a mirror, a test double. The transport is not ruled; nothing above this + * interface depends on it. + * + *

A source is untrusted: it returns the encoded GetTrustBase response (tag 39015) and the caller + * decodes it with the page limits and appends every entry through the history's {@code append}, + * which authenticates it from the latest held entry. An HTTP success or an advertised tip never + * authenticates anything. + */ +public interface TrustBaseSource { + + /** + * Fetch one page. + * + *

Cancelling the returned future cancels the request. + * + * @param request the request + * @return future with the encoded response (tag 39015), whatever its status + */ + CompletableFuture getTrustBasePage(TrustBaseRequest request); +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStatus.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStatus.java new file mode 100644 index 00000000..e818dd73 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStatus.java @@ -0,0 +1,49 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** Status of a GetTrustBase response. The numbers are the wire values (bft-core {@code gettrustbase.Status}). */ +public enum TrustBaseStatus { + /** The page carries entries. */ + OK(0), + /** The request was malformed. */ + INVALID_REQUEST(1), + /** The source serves another network. */ + WRONG_NETWORK(2), + /** The source has nothing from the requested epoch yet. */ + NOT_YET_AVAILABLE(3), + /** The source is on another history than the echoed snapshot. */ + HISTORY_MISMATCH(4), + /** The requested page size is below the source's minimum. */ + LIMIT_TOO_SMALL(5), + /** The source is busy; ask again. */ + BUSY(6), + /** The source cannot answer now; ask again. */ + UNAVAILABLE(7); + + private final int wire; + + TrustBaseStatus(int wire) { + this.wire = wire; + } + + /** + * Get the wire value. + * + * @return the wire value + */ + public int wire() { + return this.wire; + } + + /** + * Get the status of a wire value. + * + * @param value the unsigned wire value + * @return the status, or {@code null} for 8 and above + */ + public static TrustBaseStatus fromWire(long value) { + if (value < 0 || value >= values().length) { + return null; + } + return values()[(int) value]; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStore.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStore.java new file mode 100644 index 00000000..19eaa34f --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStore.java @@ -0,0 +1,80 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + +/** + * Where a session keeps its one complete bundle per key. The core ships only + * {@link MemoryTrustBaseStore}; the application picks a durable backend (the file adapter, a + * database). {@link #compareAndSwap} must be atomic across every thread and process that shares the + * key: a plain read-then-write does not qualify. + * + *

The futures must not depend on the executor of the session that calls them. + */ +public interface TrustBaseStore { + + /** The outcome of a compare-and-swap. */ + enum CasOutcome { + /** Replaced. */ + WRITTEN, + /** The stored revision is not the expected one; nothing changed. */ + CHANGED + } + + /** What a store holds under a key: the complete bundle bytes and the revision they were read at. */ + final class Stored { + + private final byte[] bytes; + private final String revision; + + /** + * Create a stored value. + * + * @param bytes the stored bundle + * @param revision the revision of exactly these bytes + */ + public Stored(byte[] bytes, String revision) { + this.bytes = bytes; + this.revision = revision; + } + + /** + * Get the stored bytes. + * + * @return the bytes + */ + public byte[] getBytes() { + return this.bytes; + } + + /** + * Get the revision: an opaque token bound to the read contents (a digest suffices). It is not + * authentication. + * + * @return the revision + */ + public String getRevision() { + return this.revision; + } + } + + /** + * A coherent snapshot of the key. + * + * @param key the key + * @param maxBytes budget, enforced before the value is allocated + * @return future with the value, or empty when absent. Fails with a + * {@link TrustBaseStoreException} (reason {@code OVERSIZE} when the value exceeds the budget) + */ + CompletableFuture> read(String key, int maxBytes); + + /** + * Replace the value only if it still is at {@code expectedRevision}. + * + * @param key the key + * @param expectedRevision the revision read before, or null for absent + * @param bytes the complete bundle to store + * @return future with the outcome. Fails with a {@link TrustBaseStoreException} on an I/O failure + */ + CompletableFuture compareAndSwap(String key, String expectedRevision, byte[] bytes); +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStoreException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStoreException.java new file mode 100644 index 00000000..5ee187bf --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseStoreException.java @@ -0,0 +1,53 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** A typed storage failure. A failed read can never authorize a replacement of what it could not read. */ +public class TrustBaseStoreException extends TrustBaseException { + + /** What failed. */ + public enum Reason { + /** The stored value exceeds the read budget (checked before allocating). */ + OVERSIZE, + /** Another process holds the store. */ + BUSY, + /** No permission. */ + PERMISSION, + /** Out of space or quota. */ + QUOTA, + /** Any other I/O failure. */ + IO + } + + private final Reason reason; + + /** + * Create the exception. + * + * @param reason what failed + * @param message details + */ + public TrustBaseStoreException(Reason reason, String message) { + super(message); + this.reason = reason; + } + + /** + * Create the exception with its cause. + * + * @param reason what failed + * @param message details + * @param cause underlying failure + */ + public TrustBaseStoreException(Reason reason, String message, Throwable cause) { + super(message, cause); + this.reason = reason; + } + + /** + * Get what failed. + * + * @return the reason + */ + public Reason getReason() { + return this.reason; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateException.java new file mode 100644 index 00000000..c13e28ba --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateException.java @@ -0,0 +1,152 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Collections; +import java.util.List; + +/** + * An update that did not end with "current". Entries appended before the failure are held + * ({@link #getAppended()}): the authenticated prefix is kept. + */ +public class TrustBaseUpdateException extends TrustBaseException { + + /** What ended the update. */ + public enum Failure { + /** The source list is empty. */ + NO_SOURCE, + /** The history is empty and no network was given. */ + NO_NETWORK, + /** No source served the range: every source failed, refused, or served an entry refused. */ + NONE_SERVED, + /** The update was cancelled. */ + CANCELLED + } + + /** Why one source did not serve. */ + public enum CauseKind { + /** The source could not deliver a response. */ + SOURCE, + /** The response was not a valid page. */ + PAGE, + /** The source answered with a status other than OK (and not "nothing newer"). */ + STATUS, + /** An OK page that does not continue the requested range or the frozen snapshot. */ + NOT_CONTINUING, + /** The source served an entry the history refuses. */ + REFUSED + } + + /** What one source did. */ + public static final class Cause { + private final int source; + private final CauseKind kind; + private final Throwable error; + private final TrustBaseStatus status; + + Cause(int source, CauseKind kind, Throwable error, TrustBaseStatus status) { + this.source = source; + this.kind = kind; + this.error = error; + this.status = status; + } + + /** + * Get the index in the source list. + * + * @return the index + */ + public int getSource() { + return this.source; + } + + /** + * Get the kind. + * + * @return the kind + */ + public CauseKind getKind() { + return this.kind; + } + + /** + * Get the failure behind the cause. + * + * @return the failure, or null for a status or a page that does not continue + */ + public Throwable getError() { + return this.error; + } + + /** + * Get the status of a {@link CauseKind#STATUS} cause. + * + * @return the status, or null + */ + public TrustBaseStatus getStatus() { + return this.status; + } + + @Override + public String toString() { + return "source " + this.source + ": " + this.kind + + (this.status != null ? " " + this.status : "") + + (this.error != null ? " (" + this.error + ")" : ""); + } + } + + private final Failure failure; + private final List causes; + private final int appended; + + TrustBaseUpdateException(Failure failure, List causes, int appended) { + super("Trust base update: " + describe(failure) + " (" + appended + " appended)" + + (causes.isEmpty() ? "" : "; " + causes)); + this.failure = failure; + this.causes = Collections.unmodifiableList(causes); + this.appended = appended; + for (Cause cause : causes) { + if (cause.error != null) { + this.addSuppressed(cause.error); + } + } + } + + private static String describe(Failure failure) { + switch (failure) { + case NO_SOURCE: + return "no source"; + case NO_NETWORK: + return "the history is empty and no network was given"; + case CANCELLED: + return "the update was cancelled"; + default: + return "no source served the range"; + } + } + + /** + * Get what ended the update. + * + * @return the failure + */ + public Failure getFailure() { + return this.failure; + } + + /** + * Get what each source did, in order. + * + * @return the causes + */ + public List getCauses() { + return this.causes; + } + + /** + * Get the entries appended before the failure; the authenticated prefix is kept. + * + * @return the count + */ + public int getAppended() { + return this.appended; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateOptions.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateOptions.java new file mode 100644 index 00000000..bf5910b4 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateOptions.java @@ -0,0 +1,142 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Objects; +import org.unicitylabs.sdk.api.NetworkId; + +/** Options of {@link TrustBaseUpdater#update}. */ +public final class TrustBaseUpdateOptions { + + private static final TrustBaseUpdateOptions DEFAULTS = new TrustBaseUpdateOptions(2, 200L, + TrustBaseRangeLimits.PAGE, null, 1L); + + private final int rounds; + private final long backoffMs; + private final TrustBaseRangeLimits limits; + private final NetworkId network; + private final long genesisEpoch; + + private TrustBaseUpdateOptions(int rounds, long backoffMs, TrustBaseRangeLimits limits, + NetworkId network, long genesisEpoch) { + this.rounds = rounds; + this.backoffMs = backoffMs; + this.limits = limits; + this.network = network; + this.genesisEpoch = genesisEpoch; + } + + /** + * The defaults: 2 passes over the sources, 200 ms between passes, the protocol page limits. + * + * @return the defaults + */ + public static TrustBaseUpdateOptions defaults() { + return DEFAULTS; + } + + /** + * Set the passes over the sources before giving up. + * + * @param rounds the passes, at least 1 + * @return the changed options + */ + public TrustBaseUpdateOptions withRounds(int rounds) { + if (rounds < 1) { + throw new IllegalArgumentException("At least one round."); + } + return new TrustBaseUpdateOptions(rounds, this.backoffMs, this.limits, this.network, + this.genesisEpoch); + } + + /** + * Set the pause between passes. + * + * @param backoffMs the pause in milliseconds, not negative + * @return the changed options + */ + public TrustBaseUpdateOptions withBackoffMs(long backoffMs) { + if (backoffMs < 0) { + throw new IllegalArgumentException("The backoff cannot be negative."); + } + return new TrustBaseUpdateOptions(this.rounds, backoffMs, this.limits, this.network, + this.genesisEpoch); + } + + /** + * Set the page budget of the response decode. + * + * @param limits the budget + * @return the changed options + */ + public TrustBaseUpdateOptions withLimits(TrustBaseRangeLimits limits) { + return new TrustBaseUpdateOptions(this.rounds, this.backoffMs, + Objects.requireNonNull(limits, "limits cannot be null"), this.network, this.genesisEpoch); + } + + /** + * Set the network, required while the target is still empty (it is the target's own network + * otherwise). + * + * @param network the network + * @return the changed options + */ + public TrustBaseUpdateOptions withNetwork(NetworkId network) { + return new TrustBaseUpdateOptions(this.rounds, this.backoffMs, this.limits, + Objects.requireNonNull(network, "network cannot be null"), this.genesisEpoch); + } + + /** + * Set the first epoch of the network, used only while the target is still empty. + * + * @param genesisEpoch the epoch (unsigned), default 1 + * @return the changed options + */ + public TrustBaseUpdateOptions withGenesisEpoch(long genesisEpoch) { + return new TrustBaseUpdateOptions(this.rounds, this.backoffMs, this.limits, this.network, + genesisEpoch); + } + + /** + * Get the passes over the sources. + * + * @return the passes + */ + public int getRounds() { + return this.rounds; + } + + /** + * Get the pause between passes. + * + * @return milliseconds + */ + public long getBackoffMs() { + return this.backoffMs; + } + + /** + * Get the page budget. + * + * @return the budget + */ + public TrustBaseRangeLimits getLimits() { + return this.limits; + } + + /** + * Get the network given for an empty target. + * + * @return the network, or null + */ + public NetworkId getNetwork() { + return this.network; + } + + /** + * Get the first epoch of the network. + * + * @return the epoch (unsigned) + */ + public long getGenesisEpoch() { + return this.genesisEpoch; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateTarget.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateTarget.java new file mode 100644 index 00000000..c62985da --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdateTarget.java @@ -0,0 +1,61 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.Objects; +import java.util.Optional; +import org.unicitylabs.sdk.api.NetworkId; + +/** + * What the updater extends: a {@link TrustBaseHistory}, or a session that adds its own rules (an + * authenticated fork closes it). + */ +public interface TrustBaseUpdateTarget { + + /** + * Get the network of the held entries. + * + * @return the network, empty while the target holds nothing + */ + Optional getNetworkId(); + + /** + * Get the latest held entry. + * + * @return the tip, empty while the target holds nothing + */ + Optional getTip(); + + /** + * Add an entry, authenticating it from the entries held. + * + * @param entry decoded entry + * @return whether the entry was added or already held + * @throws TrustBaseException if the target refuses the entry + */ + TrustBaseAppendOutcome append(TrustBaseEntry entry); + + /** + * View a history as an update target. + * + * @param history the history to extend in place + * @return the target + */ + static TrustBaseUpdateTarget of(TrustBaseHistory history) { + Objects.requireNonNull(history, "history cannot be null"); + return new TrustBaseUpdateTarget() { + @Override + public Optional getNetworkId() { + return history.getNetworkId(); + } + + @Override + public Optional getTip() { + return history.getTip(); + } + + @Override + public TrustBaseAppendOutcome append(TrustBaseEntry entry) { + return history.append(entry); + } + }; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java new file mode 100644 index 00000000..1dd68f88 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java @@ -0,0 +1,363 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.concurrent.CancellationException; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Executor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Predicate; +import java.util.function.Supplier; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseUpdateException.Cause; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseUpdateException.CauseKind; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseUpdateException.Failure; + +/** + * Catches a trust base up from untrusted sources. It follows bft-core {@code gettrustbase.Sync} + * and the JS and Rust SDKs: the entries after the held tip are fetched page by page and each is + * appended through the target's {@code append}, which authenticates it from the entry before it. + * The first page of a paged range freezes the end epoch and its entry id and every later page + * echoes them, so a source that lags or is on another history is skipped and the next source + * continues from the same cursor. An authenticated prefix is kept even when a later page fails. + * + *

Sources are untrusted. A source's tip is unauthenticated metadata: a lagging or hostile source + * cannot end an update as "current"; only when every source says there is nothing newer is the + * target taken as current, and that is a result (0 appended), not an error, and nothing in it is + * authenticated. Busy and unavailable are asked again on the next pass, other refusals are final for + * the call. + * + *

A call does not share its work with a concurrent call on the same target: the caller (the + * session, for a cache) serializes updates. The calls are blocking; {@link #updateAsync} runs one + * on a caller-supplied executor and cancelling its future cancels the request in flight and the + * pause between passes. + */ +public final class TrustBaseUpdater { + + private TrustBaseUpdater() { + } + + /** + * Fetch and append the entries after the held tip, blocking the calling thread. + * + * @param target what to extend + * @param sources sources, tried in order + * @param options options + * @return the number of entries appended. 0 means the target is current as far as every source + * says (all answered "nothing newer"); that is a result, not an error, and nothing in it is + * authenticated + * @throws TrustBaseUpdateException if no source served the range, there is no source or no + * network, or the update was cancelled; the entries appended before are held + * @throws TrustBaseConflictException if the target reports an authenticated fork, which is for + * the application and not for the next source + */ + public static int update(TrustBaseUpdateTarget target, List sources, + TrustBaseUpdateOptions options) { + return new Run(target, sources, options).run(); + } + + /** + * Run {@link #update} on an executor. + * + * @param target what to extend + * @param sources sources, tried in order + * @param options options + * @param executor where the blocking update runs; not the UI thread, not the common pool + * @return future with the number of entries appended. Cancelling it cancels the update + */ + public static CompletableFuture updateAsync(TrustBaseUpdateTarget target, + List sources, TrustBaseUpdateOptions options, + Executor executor) { + Objects.requireNonNull(executor, "executor cannot be null"); + Run run = new Run(target, sources, options); + CompletableFuture future = new CompletableFuture<>(); + future.whenComplete((result, error) -> { + if (future.isCancelled()) { + run.cancel(); + } + }); + executor.execute(() -> { + try { + future.complete(run.run()); + } catch (Throwable e) { + future.completeExceptionally(e); + } + }); + return future; + } + + /** + * Verify, and when the only thing missing is a trust base entry, update the target from the + * sources and verify once more. + * + *

{@code verify} is run first. A result that is not the typed no-entry failure is returned + * as it is: no fetch can help it. On the typed no-entry failure the target is updated (see + * {@link #update}); if that appended nothing, the first result stands, and otherwise + * {@code verify} runs once more and its result is returned, whatever it is. There is no loop: + * one update, one retry. + * + * @param target what {@code verify} reads; it is extended in place + * @param sources where newer entries come from + * @param options update options + * @param verify the verification, run against the target + * @param isMissingEntry whether a result is the typed no-entry failure + * @param the result type of the verification + * @return the result of the last verification + * @throws TrustBaseUpdateException if the update failed (as opposed to finding nothing newer) + * and the entries it did append do not make the verification possible + */ + public static R verifyWithUpdate(TrustBaseUpdateTarget target, + List sources, TrustBaseUpdateOptions options, Supplier verify, + Predicate isMissingEntry) { + Objects.requireNonNull(verify, "verify cannot be null"); + Objects.requireNonNull(isMissingEntry, "isMissingEntry cannot be null"); + R first = verify.get(); + if (!isMissingEntry.test(first)) { + return first; + } + int appended; + try { + appended = update(target, sources, options); + } catch (TrustBaseUpdateException e) { + // A later page may have failed after the entry that was needed arrived: the prefix is held, + // so verify again, and fail only if it still lacks the entry. + if (e.getAppended() > 0) { + R retried = verify.get(); + if (!isMissingEntry.test(retried)) { + return retried; + } + } + throw e; + } + return appended == 0 ? first : verify.get(); + } + + /** One update call: the cursor, the snapshot and the cancellation belong to it. */ + private static final class Run { + + private final TrustBaseUpdateTarget target; + private final List sources; + private final TrustBaseUpdateOptions options; + private final CountDownLatch cancelled = new CountDownLatch(1); + private final AtomicReference> inFlight = new AtomicReference<>(); + + Run(TrustBaseUpdateTarget target, List sources, + TrustBaseUpdateOptions options) { + this.target = Objects.requireNonNull(target, "target cannot be null"); + this.sources = List.copyOf(Objects.requireNonNull(sources, "sources cannot be null")); + this.options = Objects.requireNonNull(options, "options cannot be null"); + } + + void cancel() { + this.cancelled.countDown(); + CompletableFuture current = this.inFlight.get(); + if (current != null) { + current.cancel(true); + } + } + + private boolean isCancelled() { + return this.cancelled.getCount() == 0; + } + + private long nextFrom() { + Optional tip = this.target.getTip(); + if (!tip.isPresent()) { + return this.options.getGenesisEpoch(); + } + long epoch = tip.get().getEpoch(); + return epoch == -1L ? epoch : epoch + 1; // saturate at 2^64 - 1 + } + + int run() { + List causes = new ArrayList<>(); + int appended = 0; + if (this.sources.isEmpty()) { + throw new TrustBaseUpdateException(Failure.NO_SOURCE, causes, appended); + } + NetworkId network = this.target.getNetworkId().orElse(this.options.getNetwork()); + if (network == null) { + throw new TrustBaseUpdateException(Failure.NO_NETWORK, causes, appended); + } + TrustBaseRangeLimits limits = this.options.getLimits(); + boolean[] finallyRefused = new boolean[this.sources.size()]; + // The cursor and the frozen snapshot belong to the whole call, not to a source: the next + // source continues where the last stopped, and a source that only knows the older tip + // cannot end the call as "current" once any source announced a higher end. Both reset when + // an entry is refused. + long from = nextFrom(); + TrustBaseRequest.Snapshot snapshot = null; + + for (int round = 0; round < this.options.getRounds(); round++) { + if (round > 0 && this.pause(this.options.getBackoffMs())) { + throw new TrustBaseUpdateException(Failure.CANCELLED, causes, appended); + } + int current = 0; + for (int index = 0; index < this.sources.size(); index++) { + if (finallyRefused[index]) { + continue; + } + TrustBaseSource source = this.sources.get(index); + for (;;) { + if (this.isCancelled()) { + throw new TrustBaseUpdateException(Failure.CANCELLED, causes, appended); + } + // The target moved on by other means (a concurrent append): the frozen range no + // longer applies. + if (Long.compareUnsigned(this.nextFrom(), from) > 0) { + from = this.nextFrom(); + snapshot = null; + } + TrustBaseRequest request = + new TrustBaseRequest(from, limits.getMaxEntries(), network, snapshot); + + byte[] bytes; + try { + bytes = this.fetch(source, request); + } catch (CancellationException e) { + if (this.isCancelled()) { + throw new TrustBaseUpdateException(Failure.CANCELLED, causes, appended); + } + causes.add(new Cause(index, CauseKind.SOURCE, e, null)); + break; + } catch (Exception e) { + causes.add(new Cause(index, CauseKind.SOURCE, e, null)); + break; + } + TrustBaseRange page; + try { + page = TrustBaseRange.decode(bytes, limits, network); + } catch (TrustBaseException e) { + causes.add(new Cause(index, CauseKind.PAGE, e, null)); + break; + } + + // A source's tip is unauthenticated metadata: a lagging or hostile source must not + // end the update. Only when every source says there is nothing newer is the target + // taken as current. + if (page.getStatus() == TrustBaseStatus.NOT_YET_AVAILABLE && snapshot == null + && Long.compareUnsigned(page.getEffectiveEnd(), from) < 0) { + current++; + break; + } + // A source that refuses the echoed snapshot as another history may be the honest + // one: the snapshot came from whichever source answered the first page, and a + // hostile first page can announce a fake end. Drop it, start again from the tip and + // ask the same source once more without it; a mismatch without a snapshot is final, + // so this terminates. + if (page.getStatus() == TrustBaseStatus.HISTORY_MISMATCH && snapshot != null) { + causes.add(new Cause(index, CauseKind.STATUS, null, page.getStatus())); + snapshot = null; + from = this.nextFrom(); + continue; + } + if (page.getStatus() != TrustBaseStatus.OK) { + causes.add(new Cause(index, CauseKind.STATUS, null, page.getStatus())); + // Busy and unavailable may pass; the other refusals will not. + if (page.getStatus() != TrustBaseStatus.BUSY + && page.getStatus() != TrustBaseStatus.UNAVAILABLE) { + finallyRefused[index] = true; + } + break; + } + if (page.getFromEpoch() != from + || (snapshot != null && (page.getEffectiveEnd() != snapshot.getEnd() + || page.getEndEntryId() == null + || !Arrays.equals(page.getEndEntryId(), snapshot.getEntryId())))) { + causes.add(new Cause(index, CauseKind.NOT_CONTINUING, null, null)); + break; + } + + boolean refused = false; + for (TrustBaseEntry entry : page.getEntries()) { + try { + if (this.target.append(entry) == TrustBaseAppendOutcome.APPENDED) { + appended++; + } + } catch (TrustBaseConflictException e) { + if (e.isAuthenticated()) { + // Not a refusal of this source: an authenticated fork is for the application, + // not for the next source. + throw e; + } + causes.add(new Cause(index, CauseKind.REFUSED, e, null)); + refused = true; + snapshot = null; + from = this.nextFrom(); + break; + } catch (TrustBaseException e) { + // The source served an entry the target refuses: keep the authenticated prefix, + // drop the snapshot, try the next source. + causes.add(new Cause(index, CauseKind.REFUSED, e, null)); + refused = true; + snapshot = null; + from = this.nextFrom(); + break; + } + } + if (refused) { + break; + } + if (page.getNextEpoch() == null) { + return appended; + } + if (snapshot == null) { + byte[] end = page.getEndEntryId(); + snapshot = new TrustBaseRequest.Snapshot(page.getEffectiveEnd(), + end == null ? new byte[TrustBaseEntry.ID_LENGTH] : end); + } + from = page.getNextEpoch(); + } + } + if (current == this.sources.size()) { + return appended; + } + } + throw new TrustBaseUpdateException(Failure.NONE_SERVED, causes, appended); + } + + private byte[] fetch(TrustBaseSource source, TrustBaseRequest request) throws Exception { + CompletableFuture future = source.getTrustBasePage(request); + if (future == null) { + throw new IllegalStateException("The source returned no future."); + } + this.inFlight.set(future); + try { + if (this.isCancelled()) { + future.cancel(true); + } + return future.get(); + } catch (ExecutionException e) { + Throwable cause = e.getCause(); + if (cause instanceof CancellationException) { + throw (CancellationException) cause; + } + throw cause instanceof Exception ? (Exception) cause : e; + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + future.cancel(true); + this.cancelled.countDown(); + throw new CancellationException("Interrupted."); + } finally { + this.inFlight.set(null); + } + } + + /** Wait for the pause between passes. Returns true when cancelled during it. */ + private boolean pause(long ms) { + try { + return this.cancelled.await(ms, TimeUnit.MILLISECONDS); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + this.cancelled.countDown(); + return true; + } + } + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/UnknownNetworkException.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/UnknownNetworkException.java new file mode 100644 index 00000000..fe8cd6dd --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/UnknownNetworkException.java @@ -0,0 +1,14 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +/** The release table has no pin for the network. */ +public class UnknownNetworkException extends TrustBaseException { + + /** + * Create the exception. + * + * @param message what failed + */ + public UnknownNetworkException(String message) { + super(message); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileTrustBaseStore.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileTrustBaseStore.java new file mode 100644 index 00000000..dd00c744 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileTrustBaseStore.java @@ -0,0 +1,292 @@ +package org.unicitylabs.sdk.api.bft.trustbase.file; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.nio.ByteBuffer; +import java.nio.channels.FileChannel; +import java.nio.charset.StandardCharsets; +import java.nio.file.AccessDeniedException; +import java.nio.file.AtomicMoveNotSupportedException; +import java.nio.file.DirectoryStream; +import java.nio.file.FileAlreadyExistsException; +import java.nio.file.FileSystemException; +import java.nio.file.Files; +import java.nio.file.NoSuchFileException; +import java.nio.file.Path; +import java.nio.file.StandardCopyOption; +import java.nio.file.StandardOpenOption; +import java.util.Locale; +import java.util.Objects; +import java.util.Optional; +import java.util.UUID; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.Executor; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseCacheKey; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseStore; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseStoreException; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseStoreException.Reason; +import org.unicitylabs.sdk.util.HexConverter; + +/** + * The optional on-disk {@link TrustBaseStore}. It is not part of the core: nothing in the core + * refers to it, and an application selects it explicitly (it needs {@code java.nio.file}, so an + * Android application chooses a directory of its own and an executor that is not the UI thread). + * + *

One file per cache key in a caller-chosen directory, named exactly as the JavaScript and Rust + * adapters name it: {@code utb-.cbor}, with the exclusive lock the directory + * {@code utb-.lock}; the key is hashed, so a namespace never reaches the filesystem as + * a path component. This makes the Java adapter coordinate with theirs over one directory. + * + *

    + *
  • Reads are bounded (the size is judged before the bytes are read, and the read itself is + * bounded) and take no lock. Replacement is atomic (a same-directory temporary file, flushed, then + * an atomic move), so a reader sees the old or the new complete bytes. + *
  • A compare-and-swap takes the exclusive lock by creating the lock directory (atomic). + * Contention returns {@link Reason#BUSY} at once: it never waits. A lock left by a crash is + * never stolen: it is an application-visible maintenance condition (see + * {@link #lockPath}), not permission to write unlocked. + *
  • There is no non-atomic fallback: a file system that cannot move atomically is a store + * failure. A failure to flush the directory after the move is not reported as a failed write (the + * bytes are already replaced; the next flush finds the same tip and writes nothing). + *
+ * + *

All file work runs on the executor given at construction, never on the caller's thread; a + * task that has started finishes its write and releases its lock even if the returned future is + * cancelled. Portability: tested on the platform of the build; atomic replacement and directory + * flushing depend on the file system, and an unsupported combination is reported, not papered over. + */ +public final class FileTrustBaseStore implements TrustBaseStore { + + /** Largest stored value a compare-and-swap rereads under the lock. */ + static final long MAX_CAS_READ = 64L << 20; + + private final Path dir; + private final Executor executor; + /** Test hook: runs after the temporary file is complete and before it is moved into place. */ + volatile Runnable beforeMove; + /** Test hook: runs after the size of a stored file was judged and before it is read. */ + volatile Runnable afterSizeCheck; + + /** + * Create a store in a directory. + * + * @param dir the directory, created with its parents on the first write when missing + * @param executor where the file work runs: a bounded executor of the application + */ + public FileTrustBaseStore(Path dir, Executor executor) { + this.dir = Objects.requireNonNull(dir, "dir cannot be null"); + this.executor = Objects.requireNonNull(executor, "executor cannot be null"); + } + + private static String stem(String key) { + return "utb-" + HexConverter.encode( + TrustBaseCacheKey.sha256Of(key.getBytes(StandardCharsets.UTF_8))); + } + + /** + * The file holding a key. + * + * @param key the cache key + * @return the path, {@code utb-.cbor} in the directory + */ + public Path filePath(String key) { + return this.dir.resolve(stem(key) + ".cbor"); + } + + /** + * The lock directory of a key. If it exists while no writer is running (a crash), the application + * decides to remove it; the store never does. + * + * @param key the cache key + * @return the path, {@code utb-.lock} in the directory + */ + public Path lockPath(String key) { + return this.dir.resolve(stem(key) + ".lock"); + } + + @Override + public CompletableFuture> read(String key, int maxBytes) { + Objects.requireNonNull(key, "key cannot be null"); + return submit(() -> { + byte[] bytes = readFile(filePath(key), maxBytes); + return bytes == null ? Optional.empty() + : Optional.of(new Stored(bytes, TrustBaseCacheKey.revision(bytes))); + }); + } + + @Override + public CompletableFuture compareAndSwap(String key, String expectedRevision, + byte[] bytes) { + Objects.requireNonNull(key, "key cannot be null"); + Objects.requireNonNull(bytes, "bytes cannot be null"); + byte[] copy = bytes.clone(); + return submit(() -> { + Path lock = acquire(key); + try { + byte[] current = readFile(filePath(key), MAX_CAS_READ); + String revision = current == null ? null : TrustBaseCacheKey.revision(current); + if (!Objects.equals(revision, expectedRevision)) { + return CasOutcome.CHANGED; + } + writeAtomic(key, copy); + return CasOutcome.WRITTEN; + } finally { + try { + Files.deleteIfExists(lock); + } catch (IOException ignored) { + // the lock directory stays and the next writer sees Busy; never silently stolen + } + } + }); + } + + private CompletableFuture submit(IoTask task) { + CompletableFuture future = new CompletableFuture<>(); + try { + this.executor.execute(() -> { + if (future.isCancelled()) { + return; // cancelled before it started: nothing was done + } + try { + future.complete(task.run()); + } catch (TrustBaseStoreException e) { + future.completeExceptionally(e); + } catch (IOException e) { + future.completeExceptionally(map(e)); + } catch (RuntimeException e) { + future.completeExceptionally(e); + } + }); + } catch (RuntimeException e) { + future.completeExceptionally(e); + } + return future; + } + + private interface IoTask { + T run() throws IOException; + } + + private byte[] readFile(Path path, long max) throws IOException { + try (FileChannel channel = FileChannel.open(path, StandardOpenOption.READ)) { + if (channel.size() > max) { + throw new TrustBaseStoreException(Reason.OVERSIZE, "The stored value exceeds " + max + + " bytes."); + } + Runnable hook = this.afterSizeCheck; + if (hook != null) { + hook.run(); + } + // the file may grow after the check: the read itself is bounded too + ByteArrayOutputStream out = new ByteArrayOutputStream((int) Math.min(channel.size(), max)); + ByteBuffer buffer = ByteBuffer.allocate(8192); + long total = 0; + for (;;) { + ((java.nio.Buffer) buffer).clear(); // not ByteBuffer.clear(): absent before Java 9 + int read = channel.read(buffer); + if (read < 0) { + break; + } + total += read; + if (total > max) { + throw new TrustBaseStoreException(Reason.OVERSIZE, "The stored value exceeds " + max + + " bytes."); + } + out.write(buffer.array(), 0, read); + } + return out.toByteArray(); + } catch (NoSuchFileException e) { + return null; + } + } + + private Path acquire(String key) throws IOException { + Files.createDirectories(this.dir); + Path lock = lockPath(key); + try { + Files.createDirectory(lock); + } catch (FileAlreadyExistsException e) { + throw new TrustBaseStoreException(Reason.BUSY, "Another writer holds the store.", e); + } + return lock; + } + + /** Remove this key's temporary files left by a crashed writer, under the exclusive lock. */ + private void removeStaleTemps(String key) { + String prefix = stem(key) + ".tmp-"; + try (DirectoryStream files = Files.newDirectoryStream(this.dir, prefix + "*")) { + for (Path file : files) { + try { + Files.deleteIfExists(file); + } catch (IOException ignored) { + // best effort: an orphan is ignored by readers + } + } + } catch (IOException ignored) { + // best effort + } + } + + private void writeAtomic(String key, byte[] bytes) throws IOException { + removeStaleTemps(key); + Path target = filePath(key); + Path temp = this.dir.resolve(stem(key) + ".tmp-" + UUID.randomUUID()); + boolean moved = false; + try { + try (FileChannel channel = FileChannel.open(temp, StandardOpenOption.CREATE_NEW, + StandardOpenOption.WRITE)) { + ByteBuffer buffer = ByteBuffer.wrap(bytes); + while (buffer.hasRemaining()) { + channel.write(buffer); + } + channel.force(true); + } + Runnable hook = this.beforeMove; + if (hook != null) { + hook.run(); + } + try { + Files.move(temp, target, StandardCopyOption.ATOMIC_MOVE); + } catch (AtomicMoveNotSupportedException e) { + // no non-atomic fallback: the application chooses another directory + throw new TrustBaseStoreException(Reason.IO, + "The file system cannot replace a file atomically.", e); + } + moved = true; + } finally { + if (!moved) { + try { + Files.deleteIfExists(temp); + } catch (IOException ignored) { + // best effort + } + } + } + // Make the move durable where the platform allows a directory flush. The bytes are already + // replaced, so a failure here is not reported as a failed write. + try (FileChannel directory = FileChannel.open(this.dir, StandardOpenOption.READ)) { + directory.force(true); + } catch (IOException | RuntimeException ignored) { + // unsupported on this platform (for example Windows) + } + } + + /** The typed failure of an I/O error: permission, out of space or quota, anything else. */ + static TrustBaseStoreException map(IOException e) { + if (e instanceof AccessDeniedException) { + return new TrustBaseStoreException(Reason.PERMISSION, "Permission denied.", e); + } + String text = (e.getMessage() == null ? "" : e.getMessage()).toLowerCase(Locale.ROOT); + if (e instanceof FileSystemException && ((FileSystemException) e).getReason() != null) { + text += " " + ((FileSystemException) e).getReason().toLowerCase(Locale.ROOT); + } + if (text.contains("permission denied") || text.contains("operation not permitted")) { + return new TrustBaseStoreException(Reason.PERMISSION, "Permission denied.", e); + } + if (text.contains("no space left") || text.contains("disk quota") + || text.contains("not enough space") || text.contains("disk is full")) { + return new TrustBaseStoreException(Reason.QUOTA, "Out of space or quota.", e); + } + return new TrustBaseStoreException(Reason.IO, String.valueOf(e.getMessage()), e); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/AuthorityIdentity.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/AuthorityIdentity.java index e18dae93..cdc59382 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/AuthorityIdentity.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/AuthorityIdentity.java @@ -1,47 +1,37 @@ package org.unicitylabs.sdk.api.bft.verification; -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.hash.DataHasher; import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; import org.unicitylabs.sdk.serializer.cbor.CborSerializer; import org.unicitylabs.sdk.util.HexConverter; /** - * Canonical identity of everything a seal verdict depends on in a trust base: network, epoch, - * epoch start round, quorum threshold and every root node (id, signing key, stake). Two trust - * bases with equal identities judge every seal alike. A trust base is immutable, so the identity is - * built once per session. + * Canonical identities of what a seal verdict depends on. + * + *

The identity of one entry is its entry id: SHA-256 of the entry without its signatures, which + * commits to the network, the epoch, the start round, the threshold and every member with its key + * and weight. Two entries with the same id judge every seal alike. The identity of a view is its + * pinned genesis and its held tip: it changes when the history grows, which costs a cache miss, + * never a wrong hit. */ final class AuthorityIdentity { private AuthorityIdentity() { } - static String of(RootTrustBase trustBase) { - List nodes = new ArrayList<>(trustBase.getRootNodes()); - nodes.sort(Comparator.comparing(RootTrustBase.NodeInfo::getNodeId)); - byte[][] encodedNodes = new byte[nodes.size()][]; - for (int i = 0; i < encodedNodes.length; i++) { - RootTrustBase.NodeInfo node = nodes.get(i); - encodedNodes[i] = CborSerializer.encodeArray( - CborSerializer.encodeTextString(node.getNodeId()), - CborSerializer.encodeByteString(node.getSigningKey()), - CborSerializer.encodeUnsignedInteger(node.getStakedAmount()) - ); - } + static String ofEntry(TrustBaseEntry entry) { + return "entry:" + HexConverter.encode(entry.entryId()); + } + + static String ofView(TrustBaseHistoryView view) { + byte[] tip = view.getTip().map(TrustBaseEntry::entryId).orElse(new byte[0]); byte[] encoded = CborSerializer.encodeArray( - CborSerializer.encodeTextString("unicity-sdk/authority/v1"), - CborSerializer.encodeUnsignedInteger(trustBase.getVersion()), - CborSerializer.encodeUnsignedInteger(trustBase.getNetworkId().getId()), - CborSerializer.encodeUnsignedInteger(trustBase.getEpoch()), - CborSerializer.encodeUnsignedInteger(trustBase.getEpochStartRound()), - CborSerializer.encodeUnsignedInteger(trustBase.getQuorumThreshold()), - CborSerializer.encodeArray(encodedNodes) - ); + CborSerializer.encodeTextString("unicity-sdk/authority/v2"), + CborSerializer.encodeByteString(view.getGenesisPin()), + CborSerializer.encodeByteString(tip)); return "authority:" + HexConverter.encode( - new DataHasher(HashAlgorithm.SHA256).update(encoded).digest().getData()); + new DataHasher(HashAlgorithm.SHA256).update(encoded).digest().getData()); } } diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/CertificateChecks.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/CertificateChecks.java index 660d3e64..c07647b4 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/CertificateChecks.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/CertificateChecks.java @@ -4,16 +4,16 @@ import java.util.Collections; import java.util.List; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.UnicityCertificate; import org.unicitylabs.sdk.api.bft.verification.rule.UnicitySealHashMatchesWithRootHashRule; import org.unicitylabs.sdk.util.verification.VerificationResult; import org.unicitylabs.sdk.util.verification.VerificationStatus; /** - * The checks of a certificate that do not depend on the policy applied to its seal: network, + * The checks of a certificate that do not depend on the trust-base entry of its seal: network, * fixed partition, body structure, seal structure and the paths to the seal hash. Shared by the - * static legacy verification and the operation verifier so that both judge a body identically. + * static verification and the operation verifier so that both judge a body identically. */ final class CertificateChecks { @@ -54,9 +54,12 @@ private CertificateChecks() { * * @return the rule result */ - static VerificationResult network(RootTrustBase trustBase, + static VerificationResult network(TrustBaseHistoryView trustBase, UnicityCertificate certificate) { - boolean match = certificate.getUnicitySeal().getNetworkId().equals(trustBase.getNetworkId()); + // an empty history has no network to contradict: the seal is then placed (and found without an + // entry) by the seal session + boolean match = trustBase.getNetworkId() + .map(network -> network.equals(certificate.getUnicitySeal().getNetworkId())).orElse(true); return new VerificationResult<>(NETWORK_RULE, match ? VerificationStatus.OK : VerificationStatus.FAIL); } diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryResult.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryResult.java new file mode 100644 index 00000000..9d904aeb --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryResult.java @@ -0,0 +1,69 @@ +package org.unicitylabs.sdk.api.bft.verification; + +import org.unicitylabs.sdk.util.UnsignedLongs; +import org.unicitylabs.sdk.util.verification.VerificationResult; +import org.unicitylabs.sdk.util.verification.VerificationStatus; + +/** + * The typed "no entry for this epoch" failure: the held history has no entry for the epoch of a + * seal. The caller can obtain the missing entries (the update step of a later release), append + * them to the history, and verify again. It is a different failure from a bad signature or a seal + * outside its epoch: nothing is wrong with the proof as far as is known. + */ +public final class NoTrustBaseEntryResult extends TrustBaseEntryResult { + + private final long epoch; + private final Long heldTipEpoch; + + /** + * Create the result. + * + * @param epoch epoch of the seal, unsigned bits + * @param heldTipEpoch epoch of the held tip, null when the history is empty + */ + public NoTrustBaseEntryResult(long epoch, Long heldTipEpoch) { + super(VerificationStatus.FAIL, "No trust-base entry for epoch " + UnsignedLongs.toDecimal(epoch) + + " (held tip: " + (heldTipEpoch == null ? "none" : UnsignedLongs.toDecimal(heldTipEpoch)) + + ").", null, UnicityCertificateFailure.NO_TRUST_BASE_ENTRY); + this.epoch = epoch; + this.heldTipEpoch = heldTipEpoch; + } + + /** + * Get the epoch the seal needs. + * + * @return epoch, unsigned bits + */ + public long getEpoch() { + return this.epoch; + } + + /** + * Get the epoch of the held tip. + * + * @return epoch, unsigned bits, or null when the history is empty + */ + public Long getHeldTipEpoch() { + return this.heldTipEpoch; + } + + /** + * Find the typed no-entry failure anywhere in a verification trace. + * + * @param result any verification result + * @return the first no-entry failure in the trace, or null when the failure (if any) is of + * another kind + */ + public static NoTrustBaseEntryResult find(VerificationResult result) { + if (result instanceof NoTrustBaseEntryResult) { + return (NoTrustBaseEntryResult) result; + } + for (VerificationResult child : result.getResults()) { + NoTrustBaseEntryResult found = find(child); + if (found != null) { + return found; + } + } + return null; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/OperationUnicityCertificateVerifier.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/OperationUnicityCertificateVerifier.java index b67460b8..5290fba0 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/OperationUnicityCertificateVerifier.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/OperationUnicityCertificateVerifier.java @@ -6,9 +6,10 @@ import java.util.Map; import java.util.Objects; import java.util.concurrent.atomic.AtomicLong; +import java.util.function.Function; import org.unicitylabs.sdk.api.InclusionProof; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.UnicityCertificate; import org.unicitylabs.sdk.crypto.hash.DataHasher; import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; @@ -29,78 +30,76 @@ * *

Per call, in this order: the network of the seal, the fixed partition (before any memo, so a * hit can never carry another partition), the certificate body, seal structure and paths to the - * seal hash (memoized under the complete certificate bytes including the signature witnesses and - * the policy), the caller's pins, and finally the seal under the policy of the operation. Under - * {@link VerificationPolicy#STRICT} the seal is authenticated by the operation's - * {@link SealVerificationSession}; under {@link VerificationPolicy#LEGACY_QUORUM} it goes through - * the separate legacy quorum check. Only successes are retained. + * seal hash (memoized under the complete certificate bytes including the signature witnesses), the + * caller's pins, and finally the seal, authenticated by the operation's + * {@link SealVerificationSession} under the trust-base entry of its own epoch. Only successes are + * retained. */ public final class OperationUnicityCertificateVerifier extends UnicityCertificateVerifier { private static final int MAX_BODIES = 256; private static final int MAX_BODIES_IN_FLIGHT = 64; - private final VerificationPolicy policy; private final PartitionViewPolicy pins; + private final Function sessionFactory; private final SingleFlightMemo bodies = new SingleFlightMemo<>( MAX_BODIES, MAX_BODIES_IN_FLIGHT, CertificateChecks.Body::isOk); - private final Map sessions = new IdentityHashMap<>(); + private final Map sessions = new IdentityHashMap<>(); private final AtomicLong bodyChecks = new AtomicLong(); private final AtomicLong bodyHits = new AtomicLong(); private final AtomicLong encodes = new AtomicLong(); - private OperationUnicityCertificateVerifier(VerificationPolicy policy, PartitionViewPolicy pins) { - this.policy = policy; + private OperationUnicityCertificateVerifier(PartitionViewPolicy pins, + Function sessionFactory) { + this.sessionFactory = sessionFactory; this.pins = pins; // a pin set that is not consistent is an error of the configuration, found here pins.getIdentity(); } - static OperationUnicityCertificateVerifier start(VerificationPolicy policy, - PartitionViewPolicy pins) { - return new OperationUnicityCertificateVerifier(policy, pins); + static OperationUnicityCertificateVerifier start(PartitionViewPolicy pins, + Function sessionFactory) { + return new OperationUnicityCertificateVerifier(pins, sessionFactory); } /** - * An operation verifier is already scoped to its operation: asking for the same policy and pins - * returns it, another policy or other pins begin an independent operation that shares nothing, - * so a different policy never inherits memoized work. + * An operation verifier is already scoped to its operation: asking for the same pins returns it, + * other pins begin an independent operation that shares nothing, so a different pin set never + * inherits memoized work. */ @Override - public UnicityCertificateVerifier beginOperation(VerificationPolicy policy, - PartitionViewPolicy pins) { - Objects.requireNonNull(policy, "policy cannot be null"); + public UnicityCertificateVerifier beginOperation(PartitionViewPolicy pins) { PartitionViewPolicy requested = pins == null ? PartitionViewPolicy.none() : pins; - if (policy == this.policy && requested.getIdentity().equals(this.pins.getIdentity())) { + if (requested.getIdentity().equals(this.pins.getIdentity())) { return this; } - return new OperationUnicityCertificateVerifier(policy, requested); + return new OperationUnicityCertificateVerifier(requested, this.sessionFactory); } /** - * Verifies the certificate of an inclusion proof under the policy of the operation. Network and - * epoch/policy checks run on every call, memo hits included. + * Verifies the certificate of an inclusion proof. Network and the placement of the seal in the + * history run on every call, memo hits included. * * @param trustBase the authority * @param inclusionProof the proof * @return verification result */ @Override - public UnicityCertificateVerificationResult verify(RootTrustBase trustBase, + public UnicityCertificateVerificationResult verify(TrustBaseHistoryView trustBase, InclusionProof inclusionProof) { return verifyCertificate(trustBase, inclusionProof.getUnicityCertificate()); } /** - * Verifies a raw certificate under the policy of the operation, with the operation's seal - * session, body memo and pins. Used for strict evidence such as non-inclusion. + * Verifies a raw certificate with the operation's seal session, body memo and pins. Used for + * evidence such as non-inclusion. * * @param trustBase the authority * @param certificate the certificate * @return verification result */ @Override - public UnicityCertificateVerificationResult verifyCertificate(RootTrustBase trustBase, + public UnicityCertificateVerificationResult verifyCertificate(TrustBaseHistoryView trustBase, UnicityCertificate certificate) { List> results = new ArrayList<>(); @@ -134,9 +133,7 @@ public UnicityCertificateVerificationResult verifyCertificate(RootTrustBase trus } SealVerificationSession session = sessionFor(trustBase); - SealVerificationResult seal = policy == VerificationPolicy.STRICT - ? session.authenticate(certificate.getUnicitySeal()) - : session.verifyLegacyQuorum(certificate.getUnicitySeal()); + SealVerificationResult seal = session.authenticate(certificate.getUnicitySeal()); results.add(seal); if (seal.getStatus() != VerificationStatus.OK) { return UnicityCertificateVerificationResult.fail(seal.getFailure(), results); @@ -187,27 +184,18 @@ public UnicityCertificateVerificationResult verifyBody(UnicityCertificate certif * @param trustBase the authority; one session is built per distinct trust base object * @return seal session of the operation */ - public SealVerificationSession sessionFor(RootTrustBase trustBase) { + public SealVerificationSession sessionFor(TrustBaseHistoryView trustBase) { Objects.requireNonNull(trustBase, "trustBase cannot be null"); synchronized (sessions) { SealVerificationSession session = sessions.get(trustBase); if (session == null) { - session = SealVerificationSession.create(trustBase); + session = sessionFactory.apply(trustBase); sessions.put(trustBase, session); } return session; } } - /** - * Policy of the operation. - * - * @return policy - */ - public VerificationPolicy getPolicy() { - return policy; - } - /** * Pins of the operation. * @@ -239,7 +227,7 @@ private CertificateChecks.Body body(UnicityCertificate certificate) { encodes.incrementAndGet(); String key = HexConverter.encode(new DataHasher(HashAlgorithm.SHA256) .update(CborSerializer.encodeArray( - CborSerializer.encodeTextString(policy.name()), + CborSerializer.encodeTextString("body"), CborSerializer.encodeByteString(certificate.toCbor()))) .digest().getData()); SingleFlightMemo.Outcome outcome; diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealAuthenticator.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealAuthenticator.java index 558b7568..e2be7197 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealAuthenticator.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealAuthenticator.java @@ -5,7 +5,7 @@ import org.unicitylabs.sdk.util.verification.VerificationStatus; /** - * Strict authentication of a unicity seal under an authority the caller owns. + * Authentication of a unicity seal under a trust-base history the caller owns. * *

Strict means: the seal is structurally valid, its network, epoch and root chain round fit the * authority snapshot (the round is not before the start of the epoch) and the quorum of signatures @@ -24,10 +24,9 @@ public interface SealAuthenticator { String getIdentity(); /** - * Authenticates a seal. Always strict: an implementation never relaxes this check, whatever - * policy it was created or used with elsewhere. Legacy quorum-only checking of historical proofs - * is a separate, differently named operation (see - * {@link SealVerificationSession#verifyLegacyQuorum}) and its success never stands for this one. + * Authenticates a seal. Always strict: an implementation never relaxes this check. The seal is + * placed in the entry of its own epoch of the trust-base history, so a seal of an earlier epoch + * is judged by that epoch's entry and by no other; there is no quorum-only mode. * * @param seal the seal, possibly from an untrusted source * @return OK, or FAIL with the failing rule; malformed peer data never throws a generic diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealQuorumRule.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealQuorumRule.java new file mode 100644 index 00000000..a5117c1f --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealQuorumRule.java @@ -0,0 +1,27 @@ +package org.unicitylabs.sdk.api.bft.verification; + +import org.unicitylabs.sdk.api.bft.UnicitySeal; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.util.verification.VerificationResult; +import org.unicitylabs.sdk.util.verification.VerificationStatus; + +/** + * The quorum check a {@link SealVerificationSession} runs on every distinct miss of its memo: the + * signatures of a seal against the trust-base entry of the seal's epoch. The default is + * {@link org.unicitylabs.sdk.api.bft.verification.rule.UnicitySealQuorumSignaturesVerificationRule}. + * A custom rule is the extension point for an instrumented or hardware-backed check; the session + * still places the seal in the history and bounds the work around it. + */ +@FunctionalInterface +public interface SealQuorumRule { + + /** + * Check the seal's signatures against the entry. + * + * @param entry entry of the seal's epoch + * @param seal the seal, within the signature-count bound + * @return OK when the entry's weighted quorum signed, FAIL otherwise; never throws for malformed + * signature material + */ + VerificationResult verify(TrustBaseEntry entry, UnicitySeal seal); +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealVerificationSession.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealVerificationSession.java index c5fcd31c..18b851ba 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealVerificationSession.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/SealVerificationSession.java @@ -4,9 +4,11 @@ import java.util.Map; import java.util.Objects; import java.util.concurrent.atomic.AtomicLong; -import org.unicitylabs.sdk.api.bft.RootTrustBase; import org.unicitylabs.sdk.api.bft.UnicitySeal; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.verification.rule.UnicitySealQuorumSignaturesVerificationRule; +import org.unicitylabs.sdk.api.bft.verification.rule.UnicitySealTrustBaseEntryRule; import org.unicitylabs.sdk.crypto.hash.DataHasher; import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; import org.unicitylabs.sdk.internal.SingleFlightMemo; @@ -17,19 +19,20 @@ import org.unicitylabs.sdk.util.verification.VerificationStatus; /** - * Seal authentication under a snapshot of the caller's trust base, with a bounded memo of - * successful quorum checks and sharing of checks in flight. + * Seal authentication under a trust-base history, with a bounded memo of successful quorum checks + * and sharing of checks in flight. * - *

What is memoized is the signature verdict "this exact seal carries a quorum of valid - * signatures of this authority", a pure function of the complete seal bytes (signature witnesses - * included) and the authority content: the key binds exactly those, so altered witnesses or - * another authority cannot hit an entry, and one verification serves every policy. Everything that - * depends on the policy is evaluated on every call, memo hits included: the strict path checks the - * seal structure, network, exact epoch and the epoch start round before it looks at the memo, so a - * success of the legacy path can never admit a strict request. Only successes are retained; + *

Each seal is checked against the entry of its own epoch: structure, then its place in the + * history (network, the entry of its epoch, the round inside that epoch's interval), then the + * weighted quorum of that entry. Placement runs on every call, memo hits included, so a growing + * history or a conflicting session is seen by every verdict. What is memoized is the signature + * verdict "this exact seal carries a quorum of valid signatures of this entry", a pure function of + * the complete seal bytes (signature witnesses included) and the entry id: the key binds exactly + * those, so altered witnesses or another entry cannot hit an entry. Only successes are retained; * failures and failed in-flight checks are removed, the memo is bounded and evicts the oldest - * entry. The session owns exactly one quorum rule and no verified flag can be supplied from - * outside. + * entry. A seal of an epoch the history does not hold fails with the typed + * {@link NoTrustBaseEntryResult}. The session owns exactly one quorum rule and no verified flag + * can be supplied from outside. * *

Thread safe. Instances are scoped to one operation; they are not a process-wide cache. */ @@ -44,16 +47,16 @@ public final class SealVerificationSession implements SealAuthenticator { private static final String QUORUM_RULE = "UnicitySealQuorumSignaturesVerificationRule"; - private final RootTrustBase trustBase; - private final String identity; - private final boolean unitStake; + private final TrustBaseHistoryView trustBase; + private final SealQuorumRule quorumRule; private final int maxInFlight; private final SingleFlightMemo memo; private final AtomicLong inFlightJoins = new AtomicLong(); private final AtomicLong memoHits = new AtomicLong(); private final AtomicLong quorumChecks = new AtomicLong(); - private SealVerificationSession(RootTrustBase trustBase, int maxEntries, int maxInFlight) { + private SealVerificationSession(TrustBaseHistoryView trustBase, int maxEntries, int maxInFlight, + SealQuorumRule quorumRule) { if (maxEntries <= 0) { throw new IllegalArgumentException("maxEntries must be positive."); } @@ -61,63 +64,77 @@ private SealVerificationSession(RootTrustBase trustBase, int maxEntries, int max throw new IllegalArgumentException("maxInFlight must be positive."); } this.trustBase = Objects.requireNonNull(trustBase, "trustBase cannot be null"); + this.quorumRule = Objects.requireNonNull(quorumRule, "quorumRule cannot be null"); this.maxInFlight = maxInFlight; - // the trust base is immutable, so the authority identity is built once and every verdict and - // every memo key refers to it - this.identity = AuthorityIdentity.of(trustBase); - boolean unit = true; - for (RootTrustBase.NodeInfo node : trustBase.getRootNodes()) { - unit &= node.getStakedAmount() == 1; - } - this.unitStake = unit; this.memo = new SingleFlightMemo<>(maxEntries, maxInFlight, result -> result.getStatus() == VerificationStatus.OK); } /** - * Creates a session over the trust base. A trust base is immutable, so later changes of the - * caller's configuration cannot affect the session. + * Creates a session over the trust-base history. * - * @param trustBase the authority + * @param trustBase the authority: a view of the held history * @return new session with the default limits */ - public static SealVerificationSession create(RootTrustBase trustBase) { - return new SealVerificationSession(trustBase, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_IN_FLIGHT); + public static SealVerificationSession create(TrustBaseHistoryView trustBase) { + return new SealVerificationSession(trustBase, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_IN_FLIGHT, + UnicitySealQuorumSignaturesVerificationRule::verify); } /** * Creates a session with explicit limits. * - * @param trustBase the authority + * @param trustBase the authority: a view of the held history * @param maxEntries memo size, positive * @param maxInFlight most verifications in flight, positive * @return new session * @throws IllegalArgumentException if a limit is not positive */ - public static SealVerificationSession create(RootTrustBase trustBase, int maxEntries, + public static SealVerificationSession create(TrustBaseHistoryView trustBase, int maxEntries, int maxInFlight) { - return new SealVerificationSession(trustBase, maxEntries, maxInFlight); + return new SealVerificationSession(trustBase, maxEntries, maxInFlight, + UnicitySealQuorumSignaturesVerificationRule::verify); + } + + /** + * Creates a session with explicit limits and its own quorum check. + * + * @param trustBase the authority: a view of the held history + * @param maxEntries memo size, positive + * @param maxInFlight most verifications in flight, positive + * @param quorumRule the check that runs on every distinct miss of the memo + * @return new session + * @throws IllegalArgumentException if a limit is not positive + */ + public static SealVerificationSession create(TrustBaseHistoryView trustBase, int maxEntries, + int maxInFlight, SealQuorumRule quorumRule) { + return new SealVerificationSession(trustBase, maxEntries, maxInFlight, quorumRule); } /** * The authority this session authenticates against. * - * @return the trust base + * @return the trust-base view */ - public RootTrustBase getTrustBase() { + public TrustBaseHistoryView getTrustBase() { return trustBase; } + /** + * Identity of the anchored authority: the pinned genesis and the held tip. It changes when the + * history grows, which only costs a cache miss. + */ @Override public String getIdentity() { - return identity; + return AuthorityIdentity.ofView(trustBase); } /** * Native seal structural validation (bft-go-base {@code UnicitySeal.IsValid}), independent of any * trust base: hash present, root round at least 1, timestamp not before the genesis time, - * signatures present with a signer id and bytes each. Signer map entries are outside the signed - * payload, so this must hold before a success is returned or remembered. + * signatures present (at most {@link UnicitySeal#MAX_WITNESSES}) with a signer id and bytes each. + * Signer map entries are outside the signed payload, so this must hold before a success is + * returned or remembered. * * @param seal the seal * @return description of the violation, or null if the seal is structurally valid @@ -136,6 +153,10 @@ public static String checkSealStructure(UnicitySeal seal) { if (witnesses == null || witnesses.isEmpty()) { return "Seal has no signatures."; } + if (witnesses.size() > UnicitySeal.MAX_WITNESSES) { + return String.format("Seal has %d signatures, more than %d.", witnesses.size(), + UnicitySeal.MAX_WITNESSES); + } for (Map.Entry entry : witnesses.entrySet()) { if (entry.getKey().isEmpty()) { return "Seal has a signature without signer ID."; @@ -148,12 +169,11 @@ public static String checkSealStructure(UnicitySeal seal) { } /** - * Strict authentication: structure, network, epoch, epoch start round and quorum. The only - * authentication this session offers, whatever policy an operation applies to token proofs. The - * checks other than the quorum signatures run on every call; a quorum verdict memoized by the - * legacy path is reused, a legacy success never stands for the checks. The authority must weigh - * every node equally (stake 1), as the quorum rule counts signers; - * another authority is refused rather than judged by the wrong rule. + * Authentication: structure, the seal's place in the history (network, the entry of its epoch, + * the round inside that epoch) and the weighted quorum of that entry. A seal of an epoch the + * history does not hold fails with the typed {@link NoTrustBaseEntryResult} as a child of the + * result, and a wrong network, an epoch before the genesis, a round outside the interval or a + * bad quorum is final. * * @param seal the seal * @return OK, or FAIL with the failing rule and its typed reason @@ -161,25 +181,18 @@ public static String checkSealStructure(UnicitySeal seal) { @Override public SealVerificationResult authenticate(UnicitySeal seal) { Objects.requireNonNull(seal, "seal cannot be null"); - SealVerificationResult failure = checkAuthority(seal); - if (failure != null) { - return failure; + String structure = checkSealStructure(seal); + if (structure != null) { + return SealVerificationResult.fail("SealStructure", UnicityCertificateFailure.MALFORMED_SEAL, + structure, List.of()); } - return quorum(seal); - } - /** - * Legacy check for historical token proofs: quorum signatures only, no structure, epoch or round - * constraint (the network is checked with the certificate). Kept apart from - * {@link #authenticate}: it is not authentication, it must not be reported as such, and it - * shares nothing but the signature verdict with the strict path. - * - * @param seal the seal - * @return OK, or FAIL with the failing rule - */ - public SealVerificationResult verifyLegacyQuorum(UnicitySeal seal) { - Objects.requireNonNull(seal, "seal cannot be null"); - return quorum(seal); + TrustBaseEntryResult placed = UnicitySealTrustBaseEntryRule.verify(trustBase, seal); + if (placed.getEntry() == null) { + return SealVerificationResult.fail("SealAuthority", placed.getFailure(), + placed.getMessage(), List.of(placed)); + } + return quorum(placed.getEntry(), seal); } /** @@ -191,42 +204,19 @@ public SealVerificationStats getStats() { return new SealVerificationStats(inFlightJoins.get(), memoHits.get(), quorumChecks.get()); } - private SealVerificationResult checkAuthority(UnicitySeal seal) { - String structure = checkSealStructure(seal); - if (structure != null) { - return SealVerificationResult.fail("SealStructure", UnicityCertificateFailure.MALFORMED_SEAL, - structure, List.of()); - } - if (!seal.getNetworkId().equals(trustBase.getNetworkId())) { - return SealVerificationResult.fail("SealAuthority", UnicityCertificateFailure.NETWORK_MISMATCH, - String.format("Seal is of network %d, trust base is of network %d.", - seal.getNetworkId().getId(), trustBase.getNetworkId().getId()), List.of()); - } - if (seal.getEpoch() != trustBase.getEpoch()) { - return SealVerificationResult.fail("SealAuthority", UnicityCertificateFailure.EPOCH_MISMATCH, - String.format("Seal is of epoch %s, trust base is of epoch %s.", - seal.getEpochDecimal(), UnsignedLongs.toDecimal(trustBase.getEpoch())), List.of()); - } - if (UnsignedLongs.lessThan(seal.getRootChainRoundNumber(), trustBase.getEpochStartRound())) { - return SealVerificationResult.fail("SealAuthority", - UnicityCertificateFailure.BEFORE_EPOCH_START, - String.format("Seal round %s is before the start of epoch %s (round %s).", - seal.getRootChainRoundNumberDecimal(), UnsignedLongs.toDecimal(trustBase.getEpoch()), - UnsignedLongs.toDecimal(trustBase.getEpochStartRound())), List.of()); - } - if (!unitStake) { - return SealVerificationResult.fail("SealAuthority", - UnicityCertificateFailure.UNSUPPORTED_AUTHORITY, - "The quorum rule counts signers; a stake-weighted authority is not supported.", - List.of()); + private SealVerificationResult quorum(TrustBaseEntry entry, UnicitySeal seal) { + // Before the memo key is built (which encodes and hashes the whole seal) and before any + // signature work. + Map witnesses = seal.getWitnesses(); + if (witnesses != null && witnesses.size() > UnicitySeal.MAX_WITNESSES) { + return SealVerificationResult.fail("SealAuthority", UnicityCertificateFailure.MALFORMED_SEAL, + String.format("Seal has %d signatures, more than %d.", witnesses.size(), + UnicitySeal.MAX_WITNESSES), List.of()); } - return null; - } - private SealVerificationResult quorum(UnicitySeal seal) { String key = HexConverter.encode(new DataHasher(HashAlgorithm.SHA256) .update(CborSerializer.encodeArray( - CborSerializer.encodeTextString(identity), + CborSerializer.encodeTextString(AuthorityIdentity.ofEntry(entry)), CborSerializer.encodeByteString(seal.toCbor()))) .digest().getData()); SingleFlightMemo.Outcome outcome; @@ -234,7 +224,7 @@ private SealVerificationResult quorum(UnicitySeal seal) { outcome = memo.get(key, () -> { quorumChecks.incrementAndGet(); VerificationResult result = - UnicitySealQuorumSignaturesVerificationRule.verify(trustBase, seal); + quorumRule.verify(entry, seal); if (result.getStatus() == VerificationStatus.OK) { return SealVerificationResult.ok(QUORUM_RULE, result.getResults()); } @@ -244,6 +234,7 @@ private SealVerificationResult quorum(UnicitySeal seal) { } catch (SingleFlightMemo.BusyException e) { throw new SealVerificationBusyException(maxInFlight); } + switch (outcome.getSource()) { case HIT: memoHits.incrementAndGet(); diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/TrustBaseEntryResult.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/TrustBaseEntryResult.java new file mode 100644 index 00000000..184a0ce8 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/TrustBaseEntryResult.java @@ -0,0 +1,48 @@ +package org.unicitylabs.sdk.api.bft.verification; + +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.util.verification.VerificationResult; +import org.unicitylabs.sdk.util.verification.VerificationStatus; + +/** Result of picking the trust-base entry a seal is checked against. On success it carries the entry. */ +public class TrustBaseEntryResult extends VerificationResult { + + /** Rule name of the placement. */ + public static final String RULE = "UnicitySealTrustBaseEntryRule"; + + private final TrustBaseEntry entry; + private final UnicityCertificateFailure failure; + + /** + * Create a result. + * + * @param status OK or FAIL + * @param message what failed + * @param entry the entry of the seal's epoch on success, null otherwise + * @param failure the typed reason of a failure, null on success + */ + public TrustBaseEntryResult(VerificationStatus status, String message, TrustBaseEntry entry, + UnicityCertificateFailure failure) { + super(RULE, status, message); + this.entry = entry; + this.failure = failure; + } + + /** + * Get the typed reason of a failure. + * + * @return the reason, null on success + */ + public UnicityCertificateFailure getFailure() { + return this.failure; + } + + /** + * Get the entry. + * + * @return the entry of the seal's epoch, null on failure + */ + public TrustBaseEntry getEntry() { + return this.entry; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateFailure.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateFailure.java index 4188453f..38f49e0a 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateFailure.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateFailure.java @@ -20,14 +20,19 @@ public enum UnicityCertificateFailure { MALFORMED_SEAL(false), /** The seal is of another network than the trusted authority. */ NETWORK_MISMATCH(true), - /** The seal is of another epoch than the trusted authority. */ + /** The seal is of an epoch before the genesis epoch of the trusted history. */ EPOCH_MISMATCH(true), - /** The seal round is before the start of the authority's epoch. */ + /** + * The history holds no entry for the epoch of the seal (it is above the held tip, or the history + * is empty). The only authority failure that more entries can cure: fetch, append, verify again. + */ + NO_TRUST_BASE_ENTRY(true), + /** The seal round is before the start of its epoch. */ BEFORE_EPOCH_START(true), + /** The seal round is at or after the start of the next epoch. */ + AFTER_EPOCH_END(true), /** The seal does not carry a quorum of valid signatures of the authority. */ - QUORUM_NOT_REACHED(true), - /** The authority is of a kind this verification does not support (stake-weighted quorum). */ - UNSUPPORTED_AUTHORITY(true); + QUORUM_NOT_REACHED(true); private final boolean authorityRejection; diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateVerification.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateVerification.java index 1e432d21..533f8401 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateVerification.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateVerification.java @@ -1,19 +1,17 @@ package org.unicitylabs.sdk.api.bft.verification; +import java.util.ArrayList; import org.unicitylabs.sdk.api.InclusionProof; -import org.unicitylabs.sdk.api.bft.RootTrustBase; import org.unicitylabs.sdk.api.bft.UnicityCertificate; -import org.unicitylabs.sdk.api.bft.verification.rule.UnicitySealQuorumSignaturesVerificationRule; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.util.verification.VerificationResult; import org.unicitylabs.sdk.util.verification.VerificationStatus; -import java.util.ArrayList; - /** - * Verifies unicity certificate within an inclusion proof under the legacy quorum policy: network, - * fixed partition, certificate body, seal structure, paths to the seal hash and the quorum - * signatures. The epoch of the seal is deliberately not constrained, historical token proofs may - * carry seals of earlier epochs; strict authentication is {@link SealVerificationSession}. + * Verifies unicity certificate within an inclusion proof: network, fixed partition, certificate + * body, seal structure, paths to the seal hash, and the seal under the trust-base entry of its own + * epoch (see {@link SealVerificationSession}). There is no relaxed mode: a seal of an earlier + * epoch verifies against the entry of that epoch, and against nothing else. */ public class UnicityCertificateVerification { @@ -23,28 +21,27 @@ private UnicityCertificateVerification() { /** * Runs unicity certificate verification rules against the provided inclusion proof. * - * @param trustBase trust base used for quorum signature verification + * @param trustBase trust-base history the seal is placed in * @param inclusionProof inclusion proof containing the certificate and seal * @return verification result aggregating rule outcomes */ - public static UnicityCertificateVerificationResult verify(RootTrustBase trustBase, + public static UnicityCertificateVerificationResult verify(TrustBaseHistoryView trustBase, InclusionProof inclusionProof) { return verify(trustBase, inclusionProof.getUnicityCertificate()); } /** * Runs unicity certificate verification rules against a certificate on its own, without an - * inclusion proof around it (legacy quorum policy: network, partition, body, seal hash and - * quorum). + * inclusion proof around it (network, partition, body, seal hash, and the seal under the entry of + * its epoch). * - * @param trustBase trust base used for quorum signature verification + * @param trustBase trust-base history the seal is placed in * @param certificate unicity certificate with its seal * @return verification result aggregating rule outcomes */ - public static UnicityCertificateVerificationResult verify(RootTrustBase trustBase, + public static UnicityCertificateVerificationResult verify(TrustBaseHistoryView trustBase, UnicityCertificate certificate) { ArrayList> results = new ArrayList<>(); - VerificationResult network = CertificateChecks.network(trustBase, certificate); results.add(network); @@ -66,15 +63,12 @@ public static UnicityCertificateVerificationResult verify(RootTrustBase trustBas return UnicityCertificateVerificationResult.fail(body.getFailure(), results); } - VerificationResult quorum = UnicitySealQuorumSignaturesVerificationRule - .verify(trustBase, certificate.getUnicitySeal()); - results.add(quorum); - if (quorum.getStatus() != VerificationStatus.OK) { - return UnicityCertificateVerificationResult.fail( - UnicityCertificateFailure.QUORUM_NOT_REACHED, results); + SealVerificationResult seal = SealVerificationSession.create(trustBase) + .authenticate(certificate.getUnicitySeal()); + results.add(seal); + if (seal.getStatus() != VerificationStatus.OK) { + return UnicityCertificateVerificationResult.fail(seal.getFailure(), results); } - return UnicityCertificateVerificationResult.ok(results); } - } diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateVerifier.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateVerifier.java index b662a461..100d4efe 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateVerifier.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/UnicityCertificateVerifier.java @@ -1,10 +1,11 @@ package org.unicitylabs.sdk.api.bft.verification; import java.util.Objects; +import java.util.function.Function; import org.unicitylabs.sdk.api.InclusionProof; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; -import org.unicitylabs.sdk.api.bft.RootTrustBase; import org.unicitylabs.sdk.api.bft.UnicityCertificate; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; /** * Verifies the unicity certificate of an inclusion proof: network, fixed partition, certificate @@ -22,13 +23,14 @@ public UnicityCertificateVerifier() { } /** - * Verifies the certificate of an inclusion proof under the legacy quorum policy. + * Verifies the certificate of an inclusion proof: network, partition, body and the seal under the + * trust-base entry of its own epoch. * - * @param trustBase the authority + * @param trustBase the trust-base history * @param inclusionProof the proof * @return verification result */ - public UnicityCertificateVerificationResult verify(RootTrustBase trustBase, + public UnicityCertificateVerificationResult verify(TrustBaseHistoryView trustBase, InclusionProof inclusionProof) { return UnicityCertificateVerification.verify(trustBase, inclusionProof); } @@ -36,15 +38,14 @@ public UnicityCertificateVerificationResult verify(RootTrustBase trustBase, /** * Verifies a unicity certificate on its own, for evidence that is not an inclusion proof (for * example a non-inclusion proof): no {@code InclusionProof} is fabricated around it. The plain - * verifier applies the legacy quorum policy like {@link #verify}; an operation verifier applies - * the policy, the seal session and the pins of its operation, so strict evidence shares the - * work of the rest of the operation. + * verifier checks like {@link #verify}; an operation verifier applies the seal session and the + * pins of its operation, so evidence shares the work of the rest of the operation. * - * @param trustBase the authority + * @param trustBase the trust-base history * @param certificate the certificate to verify * @return verification result */ - public UnicityCertificateVerificationResult verifyCertificate(RootTrustBase trustBase, + public UnicityCertificateVerificationResult verifyCertificate(TrustBaseHistoryView trustBase, UnicityCertificate certificate) { return UnicityCertificateVerification.verify(trustBase, certificate); } @@ -53,20 +54,33 @@ public UnicityCertificateVerificationResult verifyCertificate(RootTrustBase trus * Starts an operation: one verifier that spans the token and every nested token of one * verification, with one seal session per authority, a bounded body memo and counters. * - * @param policy policy of the operation * @param pins optional trusted shard/configuration pins; null for none. Pins come from the * caller's configuration, never from a response that carries the evidence * @return the verifier to use for the operation: an {@link OperationUnicityCertificateVerifier} * for the plain verifier; a verifier customized by subclassing is not scoped and returns * itself, keeping full control of the checks */ - public UnicityCertificateVerifier beginOperation(VerificationPolicy policy, - PartitionViewPolicy pins) { - Objects.requireNonNull(policy, "policy cannot be null"); + public UnicityCertificateVerifier beginOperation(PartitionViewPolicy pins) { if (getClass() != UnicityCertificateVerifier.class) { return this; } - return OperationUnicityCertificateVerifier.start(policy, - pins == null ? PartitionViewPolicy.none() : pins); + return OperationUnicityCertificateVerifier.start( + pins == null ? PartitionViewPolicy.none() : pins, SealVerificationSession::create); + } + + /** + * Starts an operation like {@link #beginOperation(PartitionViewPolicy)} with a caller-chosen + * seal session per trust-base view, to size the memo and the in-flight bound of the operation or + * to supply an own quorum check ({@link SealQuorumRule}). + * + * @param pins optional trusted shard/configuration pins; null for none + * @param sessions builds the seal session of one view; called once per distinct view object + * @return the operation verifier + */ + public UnicityCertificateVerifier beginOperation(PartitionViewPolicy pins, + Function sessions) { + Objects.requireNonNull(sessions, "sessions cannot be null"); + return OperationUnicityCertificateVerifier.start( + pins == null ? PartitionViewPolicy.none() : pins, sessions); } } diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/VerificationPolicy.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/VerificationPolicy.java deleted file mode 100644 index d7a2e07b..00000000 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/VerificationPolicy.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.unicitylabs.sdk.api.bft.verification; - -/** - * How strictly a seal is checked against the authority. - */ -public enum VerificationPolicy { - /** - * Network, epoch, epoch start round, seal structure and quorum. Required for consolidation - * evidence and targets, partition views and non-inclusion. - */ - STRICT, - /** - * Network, seal hash and quorum only. The reference behavior for historical token proofs, whose - * seals may be of earlier epochs. Never exposed as strict authentication, and a success under it - * never admits a strict operation. - */ - LEGACY_QUORUM -} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/rule/UnicitySealQuorumSignaturesVerificationRule.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/rule/UnicitySealQuorumSignaturesVerificationRule.java index 9291599a..fdf4ed65 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/rule/UnicitySealQuorumSignaturesVerificationRule.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/rule/UnicitySealQuorumSignaturesVerificationRule.java @@ -3,93 +3,85 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import org.unicitylabs.sdk.api.bft.RootTrustBase; -import org.unicitylabs.sdk.api.bft.RootTrustBase.NodeInfo; import org.unicitylabs.sdk.api.bft.UnicitySeal; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseMember; import org.unicitylabs.sdk.crypto.hash.DataHash; import org.unicitylabs.sdk.crypto.hash.DataHasher; import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; import org.unicitylabs.sdk.crypto.secp256k1.Signature; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; +import org.unicitylabs.sdk.util.UnsignedLongs; import org.unicitylabs.sdk.util.verification.VerificationResult; import org.unicitylabs.sdk.util.verification.VerificationStatus; /** - * Rule to verify that the UnicitySeal contains valid quorum signatures. + * Rule to verify that the UnicitySeal contains valid quorum signatures of one trust-base entry. * - *

Counts distinct signers of the trust base whose signature over the seal hash is valid and - * bound to the signer's key (the recovery byte included). A witness that is not a well-formed - * signature, an unknown signer and an invalid signature contribute no vote and do not veto the - * seal. The count is compared with the threshold as unsigned numbers. The rule stops at the - * threshold: further signatures cannot change the verdict and are not verified. + *

Sums the weight of the distinct members of the entry whose signature over the seal hash is + * valid and bound to the member's key (the recovery byte included). A witness that is not a + * well-formed signature, an unknown signer and an invalid signature contribute no vote and do not + * veto the seal. The weight is compared with the entry's threshold as unsigned numbers. The rule + * stops at the threshold: further signatures cannot change the verdict and are not verified. A + * seal with more than {@link UnicitySeal#MAX_WITNESSES} supplied signatures, counted whoever + * signed, is refused before the seal is hashed or any signature is looked at. */ public class UnicitySealQuorumSignaturesVerificationRule { + private static final String RULE = "UnicitySealQuorumSignaturesVerificationRule"; + private UnicitySealQuorumSignaturesVerificationRule() { } /** * Verifies unicity seal signatures and checks that the quorum threshold is reached. * - * @param trustBase trust base containing root nodes and quorum threshold + * @param entry the trust-base entry of the seal's epoch: members, weights and threshold * @param unicitySeal unicity seal with node signatures * @return verification result with per-signature details; FAIL, never an exception, for any * malformed signature material */ - public static VerificationResult verify(RootTrustBase trustBase, + public static VerificationResult verify(TrustBaseEntry entry, UnicitySeal unicitySeal) { List> results = new ArrayList<>(); Map witnesses = unicitySeal.getWitnesses(); if (witnesses == null) { - return new VerificationResult<>( - "UnicitySealQuorumSignaturesVerificationRule", - VerificationStatus.FAIL, - "Unicity seal has no signatures", - results - ); + return new VerificationResult<>(RULE, VerificationStatus.FAIL, + "Unicity seal has no signatures", results); + } + if (witnesses.size() > UnicitySeal.MAX_WITNESSES) { + return new VerificationResult<>(RULE, VerificationStatus.FAIL, + String.format("Unicity seal has %d signatures, more than %d.", witnesses.size(), + UnicitySeal.MAX_WITNESSES), results); } DataHash hash = new DataHasher(HashAlgorithm.SHA256) .update(unicitySeal.toCborWithoutSignatures()) .digest(); - long threshold = trustBase.getQuorumThreshold(); - long successful = 0; - for (Map.Entry entry : witnesses.entrySet()) { - VerificationResult result = UnicitySealQuorumSignaturesVerificationRule.verifySignature( - trustBase, - entry.getKey(), - entry.getValue(), - hash - ); + long threshold = entry.getQuorumThreshold(); + long signed = 0; + for (Map.Entry witness : witnesses.entrySet()) { + VerificationResult result = verifySignature(entry, witness.getKey(), witness.getValue(), + hash); results.add(result); - if (result.getStatus() == VerificationStatus.OK) { - successful++; - if (Long.compareUnsigned(successful, threshold) >= 0) { + signed += entry.findMember(witness.getKey()).getWeight(); + if (UnsignedLongs.compare(signed, threshold) >= 0) { break; } } } - if (Long.compareUnsigned(successful, threshold) >= 0) { - return new VerificationResult<>( - "UnicitySealQuorumSignaturesVerificationRule", - VerificationStatus.OK, - "Unicity quorum signatures verification threshold reached", - results - ); + if (UnsignedLongs.compare(signed, threshold) >= 0) { + return new VerificationResult<>(RULE, VerificationStatus.OK, + "Unicity quorum signatures verification threshold reached", results); } - - return new VerificationResult<>( - "UnicitySealQuorumSignaturesVerificationRule", - VerificationStatus.FAIL, - "Unicity quorum treshold was not reached", - results - ); + return new VerificationResult<>(RULE, VerificationStatus.FAIL, + "Unicity quorum treshold was not reached", results); } private static VerificationResult verifySignature( - RootTrustBase trustBase, + TrustBaseEntry entry, String nodeId, byte[] witness, DataHash hash @@ -103,34 +95,25 @@ private static VerificationResult verifySignature( "Malformed signature encoding"); } - NodeInfo node = trustBase.getRootNode(nodeId); - if (node == null) { - return new VerificationResult<>( - rule, - VerificationStatus.FAIL, - "No root node defined" - ); + TrustBaseMember member = entry.findMember(nodeId); + if (member == null) { + return new VerificationResult<>(rule, VerificationStatus.FAIL, "No root node defined"); } boolean valid; try { // low-s only, like the JS and Rust clients: the high-s twin of a signature recovers the same // key and must not count as a second encoding of the same vote - valid = SigningService.verifyWithPublicKey(hash, signature, node.getSigningKey()); + valid = SigningService.verifyWithPublicKey(hash, signature, member.getSigKey()); } catch (RuntimeException e) { // attacker-controlled scalars can make the curve arithmetic throw; that is an invalid // signature, not an error of the caller valid = false; } if (!valid) { - return new VerificationResult<>( - rule, - VerificationStatus.FAIL, - "Signature verification failed" - ); + return new VerificationResult<>(rule, VerificationStatus.FAIL, + "Signature verification failed"); } - return new VerificationResult<>(rule, VerificationStatus.OK); } - } diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/rule/UnicitySealTrustBaseEntryRule.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/rule/UnicitySealTrustBaseEntryRule.java new file mode 100644 index 00000000..94830495 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/rule/UnicitySealTrustBaseEntryRule.java @@ -0,0 +1,76 @@ +package org.unicitylabs.sdk.api.bft.verification.rule; + +import java.util.Optional; +import java.util.OptionalLong; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.UnicitySeal; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; +import org.unicitylabs.sdk.api.bft.verification.TrustBaseEntryResult; +import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; +import org.unicitylabs.sdk.util.UnsignedLongs; +import org.unicitylabs.sdk.util.verification.VerificationStatus; + +/** + * Rule that picks the trust-base entry of the seal's epoch and checks the seal belongs to it: the + * same network, and a root chain round inside the epoch's interval (from the entry's start round, + * up to, but excluding, the start round of the held successor, if there is one). + */ +public final class UnicitySealTrustBaseEntryRule { + + private UnicitySealTrustBaseEntryRule() { + } + + /** + * Place a seal in the history. + * + * @param view held trust-base history + * @param seal seal to place + * @return the entry on success; a {@link NoTrustBaseEntryResult} when the epoch is above the + * held tip or the history is empty; an ordinary failure for another network, an epoch + * before the genesis or a round outside the interval of the epoch + */ + public static TrustBaseEntryResult verify(TrustBaseHistoryView view, UnicitySeal seal) { + // Network first: a seal of another network is no business of any fetch, whatever its epoch. + Optional network = view.getNetworkId(); + if (network.isPresent() && !network.get().equals(seal.getNetworkId())) { + return new TrustBaseEntryResult(VerificationStatus.FAIL, + "The seal is of another network than the history.", null, + UnicityCertificateFailure.NETWORK_MISMATCH); + } + + Optional found = view.entryForEpoch(seal.getEpoch()); + if (!found.isPresent()) { + Optional tip = view.getTip(); + // Only an epoch above the held tip (or an empty history) can be supplied by a later fetch. + // An epoch before the genesis can never be, so it is an ordinary failure. + if (!tip.isPresent() || UnsignedLongs.compare(seal.getEpoch(), tip.get().getEpoch()) > 0) { + return new NoTrustBaseEntryResult(seal.getEpoch(), + tip.isPresent() ? tip.get().getEpoch() : null); + } + return new TrustBaseEntryResult(VerificationStatus.FAIL, "Epoch " + + UnsignedLongs.toDecimal(seal.getEpoch()) + " is before the genesis epoch of the history.", + null, UnicityCertificateFailure.EPOCH_MISMATCH); + } + + TrustBaseEntry entry = found.get(); + long round = seal.getRootChainRoundNumber(); + if (UnsignedLongs.lessThan(round, entry.getEpochStartRound())) { + return new TrustBaseEntryResult(VerificationStatus.FAIL, "Round " + + UnsignedLongs.toDecimal(round) + " is before the start " + + UnsignedLongs.toDecimal(entry.getEpochStartRound()) + " of epoch " + + UnsignedLongs.toDecimal(entry.getEpoch()) + ".", null, + UnicityCertificateFailure.BEFORE_EPOCH_START); + } + OptionalLong end = view.epochEndRound(entry.getEpoch()); + if (end.isPresent() && !UnsignedLongs.lessThan(round, end.getAsLong())) { + return new TrustBaseEntryResult(VerificationStatus.FAIL, "Round " + + UnsignedLongs.toDecimal(round) + " is at or after the start " + + UnsignedLongs.toDecimal(end.getAsLong()) + " of epoch " + + UnsignedLongs.toDecimal(entry.getEpoch() + 1) + ".", null, + UnicityCertificateFailure.AFTER_EPOCH_END); + } + return new TrustBaseEntryResult(VerificationStatus.OK, "", entry, null); + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/jsonrpc/JsonRpcHttpTransport.java b/src/main/java/org/unicitylabs/sdk/api/jsonrpc/JsonRpcHttpTransport.java index f4946672..68239acf 100644 --- a/src/main/java/org/unicitylabs/sdk/api/jsonrpc/JsonRpcHttpTransport.java +++ b/src/main/java/org/unicitylabs/sdk/api/jsonrpc/JsonRpcHttpTransport.java @@ -55,10 +55,20 @@ public class JsonRpcHttpTransport { .followSslRedirects(false) .build(); + /** + * The SDK's default HTTP client (no redirects). + * + * @return the shared default client + */ + public static OkHttpClient defaultHttpClient() { + return DEFAULT_HTTP_CLIENT; + } + private final String url; private final int maxResponseBytes; private final OkHttpClient httpClient; private final Supplier idSupplier; + private final SdkVersionHeader sdkVersionHeader; /** * JSON-RPC HTTP service constructor. @@ -102,7 +112,21 @@ public JsonRpcHttpTransport(String url, OkHttpClient httpClient) { * @param maxResponseBytes maximum response body size in bytes */ public JsonRpcHttpTransport(String url, OkHttpClient httpClient, int maxResponseBytes) { - this(url, httpClient, maxResponseBytes, () -> TextNode.valueOf(UUID.randomUUID().toString())); + this(url, httpClient, maxResponseBytes, SdkVersionHeader.sdkDefault()); + } + + /** + * JSON-RPC HTTP service constructor with an explicit setting of the SDK version header. + * + * @param url service URL + * @param httpClient OkHttp client to use + * @param maxResponseBytes maximum response body size in bytes + * @param sdkVersionHeader what to send in the {@code X-SDK-Version} header of every call + */ + public JsonRpcHttpTransport(String url, OkHttpClient httpClient, int maxResponseBytes, + SdkVersionHeader sdkVersionHeader) { + this(url, httpClient, maxResponseBytes, + () -> TextNode.valueOf(UUID.randomUUID().toString()), sdkVersionHeader); } /** @@ -110,6 +134,12 @@ public JsonRpcHttpTransport(String url, OkHttpClient httpClient, int maxResponse */ JsonRpcHttpTransport(String url, OkHttpClient httpClient, int maxResponseBytes, Supplier idSupplier) { + this(url, httpClient, maxResponseBytes, idSupplier, SdkVersionHeader.sdkDefault()); + } + + JsonRpcHttpTransport(String url, OkHttpClient httpClient, int maxResponseBytes, + Supplier idSupplier, SdkVersionHeader sdkVersionHeader) { + this.sdkVersionHeader = Objects.requireNonNull(sdkVersionHeader, "sdkVersionHeader cannot be null"); this.idSupplier = Objects.requireNonNull(idSupplier, "idSupplier cannot be null"); this.url = Objects.requireNonNull(url, "url cannot be null"); if (maxResponseBytes <= 0) { @@ -224,6 +254,9 @@ public CompletableFuture call( .post(JsonRpcHttpTransport.oneShot(RequestBody.create( UnicityObjectMapper.JSON.writeValueAsString(envelope), JsonRpcHttpTransport.MEDIA_TYPE_JSON))); + if (this.sdkVersionHeader.value() != null) { + requestBuilder.header(SdkVersionHeader.NAME, this.sdkVersionHeader.value()); + } headers.forEach((header, values) -> values.forEach(value -> requestBuilder.addHeader(header, value))); diff --git a/src/main/java/org/unicitylabs/sdk/api/jsonrpc/SdkVersionHeader.java b/src/main/java/org/unicitylabs/sdk/api/jsonrpc/SdkVersionHeader.java new file mode 100644 index 00000000..ff96937f --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/jsonrpc/SdkVersionHeader.java @@ -0,0 +1,71 @@ +package org.unicitylabs.sdk.api.jsonrpc; + +import java.util.Objects; +import org.unicitylabs.sdk.SdkVersion; + +/** + * What an HTTP transport of this SDK sends in the {@value #NAME} header: the default + * {@code java/}, a caller-chosen value, or nothing. The header is sent on every HTTP + * call of the transport, including the trust-base GET. + */ +public final class SdkVersionHeader { + + /** The header name. */ + public static final String NAME = "X-SDK-Version"; + + private static final SdkVersionHeader DEFAULT = new SdkVersionHeader("java/" + SdkVersion.VERSION); + private static final SdkVersionHeader DISABLED = new SdkVersionHeader(null); + + private final String value; + + private SdkVersionHeader(String value) { + this.value = value; + } + + /** + * The default: {@code java/}, generated from the Gradle project version. + * + * @return the default setting + */ + public static SdkVersionHeader sdkDefault() { + return DEFAULT; + } + + /** + * No header. + * + * @return the disabled setting + */ + public static SdkVersionHeader disabled() { + return DISABLED; + } + + /** + * A caller-chosen value, for example {@code wallet/7}. + * + * @param value header value, one or more printable ASCII characters + * @return the setting + * @throws IllegalArgumentException if the value is empty or not printable ASCII + */ + public static SdkVersionHeader of(String value) { + Objects.requireNonNull(value, "value cannot be null"); + if (value.isEmpty() || !value.chars().allMatch(c -> c >= 0x20 && c <= 0x7e)) { + throw new IllegalArgumentException("The SDK version header must be printable ASCII."); + } + return new SdkVersionHeader(value); + } + + /** + * The header value to send. + * + * @return the value, or null when the header is disabled + */ + public String value() { + return this.value; + } + + @Override + public String toString() { + return "SdkVersionHeader[" + (this.value == null ? "disabled" : this.value) + "]"; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java b/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java index e85ecc38..5be890b3 100644 --- a/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java +++ b/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java @@ -35,7 +35,7 @@ import org.unicitylabs.sdk.api.bft.PartitionViewAuthenticator; import org.unicitylabs.sdk.api.bft.PartitionViewException; import org.unicitylabs.sdk.api.bft.PartitionViewLeaf; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.api.bft.UnicityCertificate; import org.unicitylabs.sdk.api.bft.UnicitySeal; @@ -81,7 +81,7 @@ public final class ProofConsolidator { private static final int HASH_LENGTH = 32; private final ShardRouting routing; - private final RootTrustBase trustBase; + private final TrustBaseHistoryView trustBase; private final OperationUnicityCertificateVerifier verifier; private final SealVerificationSession session; @@ -96,7 +96,7 @@ public final class ProofConsolidator { * are authenticated. Its pins are not used: the routing's scheme and configuration pins * constrain the original proofs and the targets of the consolidation only */ - public ProofConsolidator(ShardRouting routing, RootTrustBase trustBase, + public ProofConsolidator(ShardRouting routing, TrustBaseHistoryView trustBase, OperationUnicityCertificateVerifier verifier) { this.routing = Objects.requireNonNull(routing, "routing cannot be null"); this.trustBase = Objects.requireNonNull(trustBase, "trustBase cannot be null"); @@ -537,9 +537,10 @@ private ConsolidationException certificateFailure(String what, break; case NETWORK_MISMATCH: case EPOCH_MISMATCH: + case NO_TRUST_BASE_ENTRY: case BEFORE_EPOCH_START: + case AFTER_EPOCH_END: case QUORUM_NOT_REACHED: - case UNSUPPORTED_AUTHORITY: outcome = ConsolidationOutcome.UNAUTHENTICATED; break; default: diff --git a/src/main/java/org/unicitylabs/sdk/consolidation/TokenProofClient.java b/src/main/java/org/unicitylabs/sdk/consolidation/TokenProofClient.java index 2106fbe3..4f333efa 100644 --- a/src/main/java/org/unicitylabs/sdk/consolidation/TokenProofClient.java +++ b/src/main/java/org/unicitylabs/sdk/consolidation/TokenProofClient.java @@ -15,10 +15,9 @@ import org.unicitylabs.sdk.api.InclusionProof; import org.unicitylabs.sdk.api.InclusionProofResponse; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.internal.Deadlines; import org.unicitylabs.sdk.internal.OperationContext; import org.unicitylabs.sdk.serializer.cbor.CborDeserializer; @@ -205,7 +204,7 @@ private ConsolidationException integrity(String message, Throwable cause) { private void verifyAndPlan() { throwIfDone(); - final RootTrustBase trustBase = context.getTrustBase(); + final TrustBaseHistoryView trustBase = context.getTrustBase(); UnicityCertificateVerifier base = context.getCertificateVerifier(); OperationUnicityCertificateVerifier operation; VerificationContext tokenContext; @@ -215,7 +214,7 @@ private void verifyAndPlan() { tokenContext = context; } else { UnicityCertificateVerifier scoped = - base.beginOperation(VerificationPolicy.LEGACY_QUORUM, PartitionViewPolicy.none()); + base.beginOperation(PartitionViewPolicy.none()); if (scoped instanceof OperationUnicityCertificateVerifier) { operation = (OperationUnicityCertificateVerifier) scoped; tokenContext = context.withCertificateVerifier(operation); @@ -223,7 +222,7 @@ private void verifyAndPlan() { // a customized verifier keeps verifying every proof by itself; the consolidation's own // checks use a stock operation operation = (OperationUnicityCertificateVerifier) new UnicityCertificateVerifier() - .beginOperation(VerificationPolicy.LEGACY_QUORUM, PartitionViewPolicy.none()); + .beginOperation(PartitionViewPolicy.none()); tokenContext = context; } } @@ -292,7 +291,7 @@ private void verifyAndPlan() { private void rebuild(ConsolidationAttempt attempt, List items, VerificationContext tokenContext, OperationUnicityCertificateVerifier operation, - RootTrustBase trustBase, int originalSeals, long evidenceQuorumChecks) { + TrustBaseHistoryView trustBase, int originalSeals, long evidenceQuorumChecks) { throwIfDone(); if (attempt.getStatus() == ConsolidationAttempt.Status.UNAVAILABLE) { result.complete(ConsolidationResult.unavailable(attempt.getUnavailability())); diff --git a/src/main/java/org/unicitylabs/sdk/serializer/cbor/CborDeserializer.java b/src/main/java/org/unicitylabs/sdk/serializer/cbor/CborDeserializer.java index 6f6ed376..647c75c5 100644 --- a/src/main/java/org/unicitylabs/sdk/serializer/cbor/CborDeserializer.java +++ b/src/main/java/org/unicitylabs/sdk/serializer/cbor/CborDeserializer.java @@ -5,6 +5,10 @@ import org.unicitylabs.sdk.util.BigIntegerConverter; import java.math.BigInteger; +import java.nio.ByteBuffer; +import java.nio.charset.CharacterCodingException; +import java.nio.charset.CodingErrorAction; +import java.nio.charset.StandardCharsets; import java.util.*; import java.util.function.Function; @@ -111,7 +115,16 @@ public static String decodeTextString(byte[] data) { byte[] bytes = reader.read(reader.readLength(CborMajorType.TEXT_STRING).asListSize()); reader.assertExhausted(); - return new String(bytes); + // Strictly UTF-8: malformed or unmappable input is an error, never replaced by U+FFFD and never + // decoded with the platform default charset, so one byte string is one text and back. + try { + return StandardCharsets.UTF_8.newDecoder() + .onMalformedInput(CodingErrorAction.REPORT) + .onUnmappableCharacter(CodingErrorAction.REPORT) + .decode(ByteBuffer.wrap(bytes)).toString(); + } catch (CharacterCodingException e) { + throw new CborSerializationException("Text string is not valid UTF-8.", e); + } } /** @@ -133,6 +146,35 @@ public static List decodeArray(byte[] data) { return result; } + /** + * Read elements as raw CBOR element array from CBOR bytes, refusing an array that declares more + * than {@code maxElements} elements as soon as its header is read, before any element is read or + * copied. + * + * @param data bytes + * @param maxElements the most elements admitted + * @return CBOR element array + * + * @throws CborSerializationException when the declared length exceeds {@code maxElements} + */ + public static List decodeArrayAtMost(byte[] data, int maxElements) { + CborReader reader = new CborReader(data); + CborUnsignedLong declared = reader.readLength(CborMajorType.ARRAY); + if (Long.compareUnsigned(declared.asLong(), maxElements) > 0) { + throw new CborSerializationException(String.format( + "Array of more than %d elements.", maxElements)); + } + int length = declared.asListSize(); + + ArrayList result = new ArrayList<>(Math.min(length, 1024)); + for (int i = 0; i < length; i++) { + result.add(reader.readRawCbor()); + } + reader.assertExhausted(); + + return result; + } + /** * Read a fixed-size CBOR array from bytes. Throws when the encoded array length does not match * the expected length. @@ -184,6 +226,28 @@ public static Set decodeMap(byte[] data) { return result; } + /** + * Read elements as raw CBOR element map from CBOR bytes, refusing a map that declares more than + * {@code maxPairs} pairs as soon as its header is read, before any pair is read or copied. Keys + * must be in canonical order and unique, as in {@link #decodeMap(byte[])}. + * + * @param data bytes + * @param maxPairs the most key-value pairs admitted + * @return CBOR element map + * + * @throws CborSerializationException when the declared length exceeds {@code maxPairs} + */ + public static Set decodeMapAtMost(byte[] data, int maxPairs) { + CborReader reader = new CborReader(data); + CborUnsignedLong declared = reader.readLength(CborMajorType.MAP); + if (Long.compareUnsigned(declared.asLong(), maxPairs) > 0) { + throw new CborSerializationException(String.format( + "Map of more than %d pairs.", maxPairs)); + } + // The pairs are read by the unbounded reader below only after the bound passed. + return CborDeserializer.decodeMap(data); + } + /** * Read tag from CBOR bytes. * diff --git a/src/main/java/org/unicitylabs/sdk/transaction/CertifiedMintTransaction.java b/src/main/java/org/unicitylabs/sdk/transaction/CertifiedMintTransaction.java index 1159d264..4378f4a3 100644 --- a/src/main/java/org/unicitylabs/sdk/transaction/CertifiedMintTransaction.java +++ b/src/main/java/org/unicitylabs/sdk/transaction/CertifiedMintTransaction.java @@ -2,7 +2,7 @@ import org.unicitylabs.sdk.api.InclusionProof; import org.unicitylabs.sdk.api.NetworkId; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.hash.DataHash; import org.unicitylabs.sdk.predicate.EncodedPredicate; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; @@ -143,7 +143,7 @@ public static CertifiedMintTransaction fromCbor(byte[] bytes) { * @throws VerificationException if inclusion proof verification fails */ public static CertifiedMintTransaction fromTransaction( - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, MintTransaction transaction, InclusionProof inclusionProof diff --git a/src/main/java/org/unicitylabs/sdk/transaction/CertifiedTransferTransaction.java b/src/main/java/org/unicitylabs/sdk/transaction/CertifiedTransferTransaction.java index 09619edf..5f8d4a27 100644 --- a/src/main/java/org/unicitylabs/sdk/transaction/CertifiedTransferTransaction.java +++ b/src/main/java/org/unicitylabs/sdk/transaction/CertifiedTransferTransaction.java @@ -1,7 +1,7 @@ package org.unicitylabs.sdk.transaction; import org.unicitylabs.sdk.api.InclusionProof; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.hash.DataHash; import org.unicitylabs.sdk.predicate.EncodedPredicate; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; @@ -118,7 +118,7 @@ public static CertifiedTransferTransaction fromCbor(byte[] bytes, DataHash sourc * @throws VerificationException if inclusion proof verification fails */ public static CertifiedTransferTransaction fromTransaction( - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, TransferTransaction transaction, InclusionProof inclusionProof diff --git a/src/main/java/org/unicitylabs/sdk/transaction/MintTransaction.java b/src/main/java/org/unicitylabs/sdk/transaction/MintTransaction.java index ef43a4e2..a45361da 100644 --- a/src/main/java/org/unicitylabs/sdk/transaction/MintTransaction.java +++ b/src/main/java/org/unicitylabs/sdk/transaction/MintTransaction.java @@ -2,7 +2,7 @@ import org.unicitylabs.sdk.api.InclusionProof; import org.unicitylabs.sdk.api.NetworkId; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.MintSigningService; import org.unicitylabs.sdk.crypto.hash.DataHash; import org.unicitylabs.sdk.crypto.hash.DataHasher; @@ -361,7 +361,7 @@ public byte[] toCbor() { * @return certified mint transaction */ public CertifiedMintTransaction toCertifiedTransaction( - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, InclusionProof inclusionProof ) { diff --git a/src/main/java/org/unicitylabs/sdk/transaction/TransferTransaction.java b/src/main/java/org/unicitylabs/sdk/transaction/TransferTransaction.java index 446099fe..099271fa 100644 --- a/src/main/java/org/unicitylabs/sdk/transaction/TransferTransaction.java +++ b/src/main/java/org/unicitylabs/sdk/transaction/TransferTransaction.java @@ -1,7 +1,7 @@ package org.unicitylabs.sdk.transaction; import org.unicitylabs.sdk.api.InclusionProof; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.hash.DataHash; import org.unicitylabs.sdk.crypto.hash.DataHasher; import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; @@ -196,7 +196,7 @@ public byte[] toCbor() { * @return certified transfer transaction */ public CertifiedTransferTransaction toCertifiedTransaction( - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, InclusionProof inclusionProof ) { diff --git a/src/main/java/org/unicitylabs/sdk/transaction/verification/CertifiedMintTransactionVerificationRule.java b/src/main/java/org/unicitylabs/sdk/transaction/verification/CertifiedMintTransactionVerificationRule.java index d1912d79..0441a0ab 100644 --- a/src/main/java/org/unicitylabs/sdk/transaction/verification/CertifiedMintTransactionVerificationRule.java +++ b/src/main/java/org/unicitylabs/sdk/transaction/verification/CertifiedMintTransactionVerificationRule.java @@ -42,7 +42,9 @@ public static VerificationResult verify( ) { List> results = new ArrayList<>(); - if (!transaction.getNetworkId().equals(context.getTrustBase().getNetworkId())) { + // an empty history names no network: the proof's seal is then found without an entry below + if (context.getTrustBase().getNetworkId() + .filter(network -> !network.equals(transaction.getNetworkId())).isPresent()) { results.add(new VerificationResult<>("MintNetworkMatchesTrustBaseRule", VerificationStatus.FAIL)); return new VerificationResult<>("CertifiedMintTransactionVerificationRule", VerificationStatus.FAIL, "Mint network does not match trust base.", results); diff --git a/src/main/java/org/unicitylabs/sdk/transaction/verification/InclusionProofVerificationRule.java b/src/main/java/org/unicitylabs/sdk/transaction/verification/InclusionProofVerificationRule.java index 06579c6a..4e166144 100644 --- a/src/main/java/org/unicitylabs/sdk/transaction/verification/InclusionProofVerificationRule.java +++ b/src/main/java/org/unicitylabs/sdk/transaction/verification/InclusionProofVerificationRule.java @@ -5,7 +5,7 @@ import org.unicitylabs.sdk.api.InclusionProof; import org.unicitylabs.sdk.api.LeafValue; import org.unicitylabs.sdk.api.StateId; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; import org.unicitylabs.sdk.crypto.hash.DataHash; import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; @@ -40,7 +40,7 @@ public class InclusionProofVerificationRule { * @return a {@code VerificationResult} object containing the {@code InclusionProofVerificationStatus} * and additional details about the verification outcome */ - public static VerificationResult verify(RootTrustBase trustBase, + public static VerificationResult verify(TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, InclusionProof inclusionProof, Transaction transaction) { return verify(trustBase, predicateVerifier, new UnicityCertificateVerifier(), inclusionProof, @@ -61,7 +61,7 @@ public static VerificationResult verify(RootTr * and additional details about the verification outcome */ public static VerificationResult verify( - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, UnicityCertificateVerifier certificateVerifier, InclusionProof inclusionProof, diff --git a/src/main/java/org/unicitylabs/sdk/transaction/verification/VerificationContext.java b/src/main/java/org/unicitylabs/sdk/transaction/verification/VerificationContext.java index a60b1f90..9a9f4858 100644 --- a/src/main/java/org/unicitylabs/sdk/transaction/verification/VerificationContext.java +++ b/src/main/java/org/unicitylabs/sdk/transaction/verification/VerificationContext.java @@ -1,10 +1,9 @@ package org.unicitylabs.sdk.transaction.verification; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; import java.util.Objects; @@ -22,7 +21,7 @@ */ public final class VerificationContext { - private final RootTrustBase trustBase; + private final TrustBaseHistoryView trustBase; private final PredicateVerifierService predicateVerifier; private final MintJustificationVerifierService mintJustificationVerifier; private final TokenIssuanceVerifierService tokenIssuanceVerifier; @@ -38,7 +37,7 @@ public final class VerificationContext { * @param tokenIssuanceVerifier token issuance registry */ public VerificationContext( - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, MintJustificationVerifierService mintJustificationVerifier, TokenIssuanceVerifierService tokenIssuanceVerifier @@ -58,7 +57,7 @@ public VerificationContext( * control of the checks and is never wrapped */ public VerificationContext( - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, MintJustificationVerifierService mintJustificationVerifier, TokenIssuanceVerifierService tokenIssuanceVerifier, @@ -100,7 +99,7 @@ public VerificationContext withCertificateVerifier(UnicityCertificateVerifier ce * an operation under the legacy quorum policy of ordinary token proofs, which shares work * between the proofs of the token and of every nested token. A verifier that already is an * operation verifier is kept, so a caller that shares one operation across several tokens, or - * chose the policy, stays in control; a customized verifier is kept as it is. + * chose the pins, stays in control; a customized verifier is kept as it is. * * @return context to verify one token with */ @@ -108,8 +107,7 @@ public VerificationContext forOperation() { if (this.certificateVerifier instanceof OperationUnicityCertificateVerifier) { return this; } - UnicityCertificateVerifier operation = this.certificateVerifier.beginOperation( - VerificationPolicy.LEGACY_QUORUM, PartitionViewPolicy.none()); + UnicityCertificateVerifier operation = this.certificateVerifier.beginOperation(PartitionViewPolicy.none()); if (operation == this.certificateVerifier) { return this; } @@ -122,7 +120,7 @@ public VerificationContext forOperation() { * * @return trust base */ - public RootTrustBase getTrustBase() { + public TrustBaseHistoryView getTrustBase() { return this.trustBase; } diff --git a/src/main/java/org/unicitylabs/sdk/util/InclusionProofUtils.java b/src/main/java/org/unicitylabs/sdk/util/InclusionProofUtils.java index 84e5eded..1eb319a7 100644 --- a/src/main/java/org/unicitylabs/sdk/util/InclusionProofUtils.java +++ b/src/main/java/org/unicitylabs/sdk/util/InclusionProofUtils.java @@ -6,7 +6,7 @@ import org.unicitylabs.sdk.api.InclusionProofWaitException; import org.unicitylabs.sdk.api.StateId; import org.unicitylabs.sdk.api.WaitOptions; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.hash.DataHash; import org.unicitylabs.sdk.internal.InclusionProofWaiter; import org.unicitylabs.sdk.predicate.EncodedPredicate; @@ -44,7 +44,7 @@ private InclusionProofUtils() { */ public static CompletableFuture waitInclusionProof( StateTransitionClient client, - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, Transaction transaction ) { @@ -68,7 +68,7 @@ public static CompletableFuture waitInclusionProof( */ public static CompletableFuture waitInclusionProof( StateTransitionClient client, - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, Transaction transaction, Duration timeout, @@ -99,7 +99,7 @@ public static CompletableFuture waitInclusionProof( */ public static CompletableFuture waitInclusionProof( StateTransitionClient client, - RootTrustBase trustBase, + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, Transaction transaction, WaitOptions options @@ -109,7 +109,7 @@ public static CompletableFuture waitInclusionProof( proof -> check(trustBase, predicateVerifier, transaction, stateId, proof), options); } - private static void check(RootTrustBase trustBase, PredicateVerifierService predicateVerifier, + private static void check(TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, Transaction transaction, StateId stateId, InclusionProof proof) { VerificationResult result = InclusionProofVerificationRule.verify(trustBase, predicateVerifier, proof, transaction); @@ -128,7 +128,7 @@ && authenticatesAnotherRequest(trustBase, predicateVerifier, stateId, proof)) { throw new VerificationException("Inclusion proof verification failed", result); } - private static boolean authenticatesAnotherRequest(RootTrustBase trustBase, + private static boolean authenticatesAnotherRequest(TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, StateId stateId, InclusionProof proof) { try { CertificationData data = proof.getCertificationData(); diff --git a/src/main/resources/release-pins/manifest.json b/src/main/resources/release-pins/manifest.json new file mode 100644 index 00000000..21d0c031 --- /dev/null +++ b/src/main/resources/release-pins/manifest.json @@ -0,0 +1,30 @@ +{ + "networks": [ + { + "bundle": "unicity-trustbase.mainnet.cbor", + "bundleSha256": "9d01b8713cab42dab269e1ad6e244cf11e7f8c4b580682a98402db348b37bd52", + "genesisEntryId": "0b6f8143e19e2a585be3534e8f1062f36c3b9621e506158f10abfbc9a56f4e4c", + "genesisEpoch": "1", + "name": "mainnet", + "networkId": 1, + "pinnedEntryId": "0b6f8143e19e2a585be3534e8f1062f36c3b9621e506158f10abfbc9a56f4e4c", + "pinnedEpoch": "1" + }, + { + "bundle": "unicity-trustbase.testnet2.cbor", + "bundleSha256": "5b0a4fb7bd6c2d71068c0e65659aa60733dcc9083e9290fc22c2dd8e8e60f08a", + "genesisEntryId": "4b49eb2bb0729051b89a48668fd6ef1fda284aad2e10b7d5f23aad4b5faef37f", + "genesisEpoch": "1", + "name": "testnet2", + "networkId": 4, + "pinnedEntryId": "4b49eb2bb0729051b89a48668fd6ef1fda284aad2e10b7d5f23aad4b5faef37f", + "pinnedEpoch": "1" + } + ], + "source": { + "commit": "513dc4fcf01ee802a97d59a5bc4e50ba64786d45", + "pullRequest": 11, + "repository": "unicitynetwork/unicity-ids" + }, + "version": 1 +} diff --git a/src/main/resources/release-pins/unicity-trustbase.mainnet.cbor b/src/main/resources/release-pins/unicity-trustbase.mainnet.cbor new file mode 100644 index 0000000000000000000000000000000000000000..05d31c3e27f91671432115fb46c310180aa20f55 GIT binary patch literal 460 zcmcaPBfW!>k%5shLV-KK(fQ##t%&Hy!G8S$NuP79rzt*V6YUpR{rlw7d_SMYn=>N1 zm>3xuTbe6O4b4I`ON~4nv&*tgTni%dD>KZ4!+b&_j6;%(qq4J-@-j`cA`Oe3(!I(xYQn9=ew{cfXX%=bLG7m2VO)lZB_X6L$D z`W9Licvx13hNL9s8;2BlrMg8$TINSsrdRqFrd6b;hdG+0`Q=vSMic?fUMh0CTYTg3 z*1>K(wvVGnNU(2Nlu=?qP*91JpJhR2WLQR` zw^62fafokXU}|u9a7D3ChPi2odxRp>)3n*Tt74`8oPUg%(v7xu#|n=H|MmnV96K`zA)Z=4E@C z0Nwrn-8A17r_^)(51zM_)O=PtcO%<-S*}+z8$-6rMb&TI&dB`jTZ94w0r2e`0E=X+ A$p8QV literal 0 HcmV?d00001 diff --git a/src/main/resources/release-pins/unicity-trustbase.testnet2.cbor b/src/main/resources/release-pins/unicity-trustbase.testnet2.cbor new file mode 100644 index 0000000000000000000000000000000000000000..94a2f183f265d82e7d0424c3b8aee1601e26afc4 GIT binary patch literal 460 zcmcaPBfW!>g@KVVLc!bfwf2Uh34uFid8GAUdoO=W!)vXc!1k-3tk!zRulrozcymTX z7ZVF3V@q>|si9eDW~q^fW3I8WPnu(7fQ6x9l1W-YxM_t&VQN-xX;!I|p^uw$M1Z?{ zNQhZdX|6|6S!IMG)25BLzTA77^gizDj(Ku?IUn{<)p@*LXkV(~6aMat%bztdBAe~z zoSB^LmzV3}nv(34=~QUyo>^rYR_q#Dm6GgZQR0JFU zpKkfQHu1a^#cTVvxv8XgJ&NnVM%}PtJNH%hF z4!0;UOiD}hsERc9F{>&}ws3NeP-G5z&s3W*NlsP6a^EsOeF*_~`weS*c1&>D$hhw8 zt9a8a6thE3LkvR-y(_)5L!FF^GfTpgOpFaP!ramdEb|J>5`EIc64L|S%qq)$+}wcf yeqVTGPWh>+0&80$Q requests = new HashMap<>(); @@ -34,12 +34,12 @@ private TestAggregatorClient(SparseMerkleTree smt, SigningService signingService this.referenceTime = referenceTime; this.sparseMerkleTree = smt; this.signingService = signingService; - this.trustBase = RootTrustBaseUtils.generateRootTrustBase(this.signingService.getPublicKey()); + this.trustBase = TrustBaseTestUtils.singleNode(this.signingService.getPublicKey()); this.predicateVerifier = PredicateVerifierService.create(); } - public RootTrustBase getTrustBase() { + public TrustBaseHistory getTrustBase() { return this.trustBase; } diff --git a/src/test/java/org/unicitylabs/sdk/api/HttpTrustBaseSourceTest.java b/src/test/java/org/unicitylabs/sdk/api/HttpTrustBaseSourceTest.java new file mode 100644 index 00000000..292af0e6 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/HttpTrustBaseSourceTest.java @@ -0,0 +1,158 @@ +package org.unicitylabs.sdk.api; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertInstanceOf; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.IOException; +import java.util.concurrent.CancellationException; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; +import okhttp3.mockwebserver.SocketPolicy; +import okio.Buffer; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseRequest; +import org.unicitylabs.sdk.api.jsonrpc.SdkVersionHeader; + +/** The HTTP source of trust base pages, against a mock aggregator. */ +class HttpTrustBaseSourceTest { + + private MockWebServer server; + + @BeforeEach + void start() throws IOException { + this.server = new MockWebServer(); + this.server.start(); + } + + @AfterEach + void stop() throws IOException { + this.server.shutdown(); + } + + private HttpTrustBaseSource source(String apiKey, SdkVersionHeader header) { + return new HttpTrustBaseSource(this.server.url("/rpc/path").toString(), apiKey, true, null, + header); + } + + private static TrustBaseRequest request(TrustBaseRequest.Snapshot snapshot) { + return new TrustBaseRequest(5, 64, NetworkId.TESTNET2, snapshot); + } + + private static byte[] get(CompletableFuture f) throws Exception { + return f.get(5, TimeUnit.SECONDS); + } + + @Test + void theRequestGoesToTheOriginsTrustBaseEndpoint() throws Exception { + this.server.enqueue(new MockResponse().setBody(new Buffer().write(new byte[] {1, 2, 3}))); + byte[] page = get(source(null, SdkVersionHeader.sdkDefault()).getTrustBasePage(request(null))); + assertArrayEquals(new byte[] {1, 2, 3}, page); + + RecordedRequest r = this.server.takeRequest(); + assertEquals("GET", r.getMethod()); + assertEquals("/api/v1/trustbases", r.getRequestUrl().encodedPath()); + assertEquals("5", r.getRequestUrl().queryParameter("from")); + assertEquals("64", r.getRequestUrl().queryParameter("maxEntries")); + assertNull(r.getRequestUrl().queryParameter("snapshotEnd")); + assertNull(r.getRequestUrl().queryParameter("snapshotEntryId")); + assertEquals("application/cbor", r.getHeader("Accept")); + assertTrue(r.getHeader("X-SDK-Version").startsWith("java/")); + assertNull(r.getHeader("Authorization")); + } + + @Test + void theSnapshotIsEchoedAndEpochsArePrintedUnsigned() throws Exception { + this.server.enqueue(new MockResponse().setBody("x")); + byte[] id = new byte[32]; + id[0] = (byte) 0xab; + id[31] = 0x01; + TrustBaseRequest.Snapshot snapshot = new TrustBaseRequest.Snapshot(-1L, id); + get(source(null, SdkVersionHeader.sdkDefault()) + .getTrustBasePage(new TrustBaseRequest(-2L, 8, NetworkId.TESTNET2, snapshot))); + + RecordedRequest r = this.server.takeRequest(); + assertEquals("18446744073709551614", r.getRequestUrl().queryParameter("from")); + assertEquals("18446744073709551615", r.getRequestUrl().queryParameter("snapshotEnd")); + assertEquals("0xab00000000000000000000000000000000000000000000000000000000000001", + r.getRequestUrl().queryParameter("snapshotEntryId")); + } + + @Test + void theVersionHeaderIsDefaultOverriddenOrOff() throws Exception { + for (int i = 0; i < 3; i++) { + this.server.enqueue(new MockResponse().setBody("x")); + } + get(source(null, SdkVersionHeader.of("wallet/7")).getTrustBasePage(request(null))); + assertEquals("wallet/7", this.server.takeRequest().getHeader("X-SDK-Version")); + get(source(null, SdkVersionHeader.disabled()).getTrustBasePage(request(null))); + assertNull(this.server.takeRequest().getHeader("X-SDK-Version")); + get(source(null, SdkVersionHeader.sdkDefault()).getTrustBasePage(request(null))); + assertTrue(this.server.takeRequest().getHeader("X-SDK-Version").startsWith("java/")); + } + + @Test + void theApiKeyIsSentAsTheJsonRpcCallsSendIt() throws Exception { + this.server.enqueue(new MockResponse().setBody("x")); + get(source("k-123", SdkVersionHeader.sdkDefault()).getTrustBasePage(request(null))); + assertEquals("Bearer k-123", this.server.takeRequest().getHeader("Authorization")); + } + + @Test + void anApiKeyOverPlainHttpIsRefusedUnlessAllowed() { + String url = this.server.url("/").toString(); + assertThrows(IllegalArgumentException.class, () -> new HttpTrustBaseSource(url, "k")); + } + + @Test + void aRedirectIsARefusalAndNothingIsFollowed() throws Exception { + this.server.enqueue(new MockResponse().setResponseCode(302) + .setHeader("Location", this.server.url("/elsewhere").toString())); + ExecutionException e = assertThrows(ExecutionException.class, + () -> get(source("k", SdkVersionHeader.sdkDefault()).getTrustBasePage(request(null)))); + assertInstanceOf(IOException.class, e.getCause()); + assertTrue(e.getCause().getMessage().contains("302")); + assertEquals(1, this.server.getRequestCount()); + } + + @Test + void aNonSuccessStatusIsARefusalWithItsCode() { + this.server.enqueue(new MockResponse().setResponseCode(503).setBody("busy")); + ExecutionException e = assertThrows(ExecutionException.class, + () -> get(source(null, SdkVersionHeader.sdkDefault()).getTrustBasePage(request(null)))); + assertTrue(e.getCause().getMessage().contains("503")); + } + + @Test + void theBodyIsReadUpToTheCapAndNoFurther() throws Exception { + this.server.enqueue(new MockResponse() + .setBody(new Buffer().write(new byte[HttpTrustBaseSource.MAX_RESPONSE_BYTES]))); + assertEquals(HttpTrustBaseSource.MAX_RESPONSE_BYTES, + get(source(null, SdkVersionHeader.sdkDefault()).getTrustBasePage(request(null))).length); + + this.server.enqueue(new MockResponse() + .setBody(new Buffer().write(new byte[HttpTrustBaseSource.MAX_RESPONSE_BYTES + 1]))); + ExecutionException e = assertThrows(ExecutionException.class, + () -> get(source(null, SdkVersionHeader.sdkDefault()).getTrustBasePage(request(null)))); + assertTrue(e.getCause().getMessage().contains("size cap")); + } + + @Test + void cancellingTheFutureCancelsTheCall() throws Exception { + this.server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.NO_RESPONSE)); + CompletableFuture f = source(null, SdkVersionHeader.sdkDefault()) + .getTrustBasePage(request(null)); + this.server.takeRequest(5, TimeUnit.SECONDS); + assertTrue(f.cancel(true)); + assertThrows(CancellationException.class, () -> f.get(1, TimeUnit.SECONDS)); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/InclusionProofTest.java b/src/test/java/org/unicitylabs/sdk/api/InclusionProofTest.java index f2e17622..e7183f9a 100644 --- a/src/test/java/org/unicitylabs/sdk/api/InclusionProofTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/InclusionProofTest.java @@ -8,8 +8,8 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; import org.unicitylabs.sdk.api.NetworkId; -import org.unicitylabs.sdk.api.bft.RootTrustBase; -import org.unicitylabs.sdk.api.bft.RootTrustBaseUtils; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; +import org.unicitylabs.sdk.api.bft.TrustBaseTestUtils; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.api.bft.UnicityCertificate; import org.unicitylabs.sdk.serializer.cbor.CborDeserializer; @@ -40,7 +40,7 @@ public class InclusionProofTest { StateId stateId; InclusionCertificate inclusionCertificate; CertificationData certificationData; - RootTrustBase trustBase; + TrustBaseHistoryView trustBase; UnicityCertificate unicityCertificate; DataHash rootHash; @@ -65,7 +65,7 @@ public void createMerkleTreePath() throws Exception { rootHash = root.getHash(); inclusionCertificate = InclusionCertificate.create(root, stateId.getData()); // Reuse user signing service as unicity certificate signing service. - trustBase = RootTrustBaseUtils.generateRootTrustBase(signingService.getPublicKey()); + trustBase = TrustBaseTestUtils.singleNode(signingService.getPublicKey()); unicityCertificate = UnicityCertificateUtils.generateCertificate(signingService, root.getHash()); predicateVerifier = PredicateVerifierService.create(); } @@ -294,7 +294,7 @@ public void testItFailsWithShardIdMismatch() { Assertions.assertEquals( InclusionProofVerificationStatus.SHARD_ID_MISMATCH, InclusionProofVerificationRule.verify( - RootTrustBaseUtils.generateRootTrustBase(signingService.getPublicKey()), + TrustBaseTestUtils.singleNode(signingService.getPublicKey()), this.predicateVerifier, inclusionProof, this.transaction @@ -412,7 +412,7 @@ public void testVerificationFailsWithInvalidTrustbase() { Assertions.assertEquals( InclusionProofVerificationStatus.INVALID_TRUSTBASE, InclusionProofVerificationRule.verify( - RootTrustBaseUtils.generateRootTrustBase( + TrustBaseTestUtils.singleNode( HexConverter.decode("020000000000000000000000000000000000000000000000000000000000000001") ), this.predicateVerifier, diff --git a/src/test/java/org/unicitylabs/sdk/api/NetworkIdTest.java b/src/test/java/org/unicitylabs/sdk/api/NetworkIdTest.java index 0f485849..dac92136 100644 --- a/src/test/java/org/unicitylabs/sdk/api/NetworkIdTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/NetworkIdTest.java @@ -56,4 +56,24 @@ void jsonRejectsIdsOutsideUnsignedShortRange() { Exception.class, () -> UnicityObjectMapper.JSON.readValue("0", NetworkId.class)); } + + @Test + void namedNetworksAreMainnetTestnet2AndLocal() { + Assertions.assertSame(NetworkId.MAINNET, NetworkId.fromId((short) 1)); + Assertions.assertSame(NetworkId.LOCAL, NetworkId.fromId((short) 3)); + Assertions.assertSame(NetworkId.TESTNET2, NetworkId.fromId((short) 4)); + Assertions.assertEquals(4, NetworkId.TESTNET2.getId()); + Assertions.assertEquals("NetworkId[TESTNET2]", NetworkId.TESTNET2.toString()); + } + + @Test + void theOldTestnetHasNoNameButTwoIsStillAValidId() { + NetworkId two = NetworkId.fromId((short) 2); + Assertions.assertEquals(2, two.getId()); + Assertions.assertEquals("NetworkId[2]", two.toString()); + Assertions.assertNotEquals(NetworkId.TESTNET2, two); + for (java.lang.reflect.Field field : NetworkId.class.getFields()) { + Assertions.assertNotEquals("TESTNET", field.getName()); + } + } } diff --git a/src/test/java/org/unicitylabs/sdk/api/NonInclusionCertificateTest.java b/src/test/java/org/unicitylabs/sdk/api/NonInclusionCertificateTest.java index fc902621..353b3613 100644 --- a/src/test/java/org/unicitylabs/sdk/api/NonInclusionCertificateTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/NonInclusionCertificateTest.java @@ -78,7 +78,7 @@ void decodingIsExact() { void snapshotKeepsUnsignedValuesLosslessly() { long twoPow63 = Long.MIN_VALUE; long max = -1L; - NonInclusionSnapshot snapshot = new NonInclusionSnapshot(NetworkId.TESTNET, 7, + NonInclusionSnapshot snapshot = new NonInclusionSnapshot(NetworkId.fromId((short) 2), 7, ShardId.decode(new byte[] {(byte) 0x80}), twoPow63, max, max - 2, 0, max, new byte[32]); assertEquals("9223372036854775808", snapshot.getRootRoundDecimal()); assertEquals("18446744073709551615", snapshot.getSealTimestampSecondsDecimal()); diff --git a/src/test/java/org/unicitylabs/sdk/api/NonInclusionCorpusTest.java b/src/test/java/org/unicitylabs/sdk/api/NonInclusionCorpusTest.java index 22b6cacd..f1694922 100644 --- a/src/test/java/org/unicitylabs/sdk/api/NonInclusionCorpusTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/NonInclusionCorpusTest.java @@ -1,5 +1,6 @@ package org.unicitylabs.sdk.api; +import org.unicitylabs.sdk.api.bft.TrustBaseTestUtils; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; @@ -22,12 +23,10 @@ import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.OperationVerificationStats; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.serializer.cbor.CborSerializer; import org.unicitylabs.sdk.util.HexConverter; import org.unicitylabs.sdk.util.UnsignedLongs; @@ -44,7 +43,7 @@ class NonInclusionCorpusTest { /** The strict operation verifier of the shared verification package, no pins. */ private static UnicityCertificateVerifier strict() { return new UnicityCertificateVerifier() - .beginOperation(VerificationPolicy.STRICT, PartitionViewPolicy.none()); + .beginOperation(PartitionViewPolicy.none()); } private static JsonNode read(String relative) throws IOException { @@ -76,14 +75,14 @@ private static StateId stateId(String hex) { } private static final class Setup { - final RootTrustBase trustBase; + final TrustBaseHistoryView trustBase; final NonInclusionContext context; Setup(JsonNode ctx) throws IOException { String json = new String( Files.readAllBytes(ROOT.resolve(ctx.get("trustBaseJson").asText())), StandardCharsets.UTF_8); - this.trustBase = RootTrustBase.fromJson(json); + this.trustBase = TrustBaseTestUtils.fromLegacyJson(json); NonInclusionContext c = NonInclusionContext.unsharded() .withShard(shard(ctx.get("shard").asText())); if (!"0".equals(ctx.get("nextEpochStart").asText())) { @@ -251,32 +250,29 @@ void aProofBoundToAnotherStateIsRejectedBeforeAnyWork() throws Exception { } @Test - void thePlainLegacyVerifierIsRefused() throws Exception { + void thePlainVerifierAppliesTheSameEpochRulesAsAnOperation() throws Exception { JsonNode vector = read("cases/singleton.json"); Setup setup = new Setup(read("contexts.json").get(vector.get("context").asText())); NonInclusionProof proof = new NonInclusionProof(stateId(vector.get("query").asText()), HexConverter.decode(vector.get("wrapper").asText())); - org.junit.jupiter.api.Assertions.assertThrows(IllegalArgumentException.class, () -> - NonInclusionVerifier.verify(new UnicityCertificateVerifier(), setup.trustBase, proof, - setup.context)); + assertTrue(NonInclusionVerifier.verify(new UnicityCertificateVerifier(), setup.trustBase, proof, + setup.context).isAbsent()); } @Test - void aLegacyOperationVerifierIsRefusedAndWouldHaveAcceptedTheWrongEpoch() throws Exception { + void aWrongEpochIsTheAuthoritysRefusalWhicheverVerifierIsUsed() throws Exception { JsonNode vector = read("negative/ctx-wrong-epoch.json"); Setup setup = new Setup(read("contexts.json").get(vector.get("context").asText())); NonInclusionProof proof = new NonInclusionProof(stateId(vector.get("query").asText()), HexConverter.decode(vector.get("wrapper").asText())); - UnicityCertificateVerifier legacy = new UnicityCertificateVerifier() - .beginOperation(VerificationPolicy.LEGACY_QUORUM, PartitionViewPolicy.none()); - org.junit.jupiter.api.Assertions.assertThrows(IllegalArgumentException.class, () -> - NonInclusionVerifier.verify(legacy, setup.trustBase, proof, setup.context)); - // the strict one rejects it as the authority's refusal - try { - NonInclusionVerifier.verify(strict(), setup.trustBase, proof, setup.context); - fail("expected a rejection"); - } catch (NonInclusionVerificationException e) { - assertEquals(NonInclusionVerificationException.Reason.AUTHORITY_REJECTED, e.getReason()); + for (UnicityCertificateVerifier verifier : new UnicityCertificateVerifier[] { + new UnicityCertificateVerifier(), strict()}) { + try { + NonInclusionVerifier.verify(verifier, setup.trustBase, proof, setup.context); + fail("expected a rejection"); + } catch (NonInclusionVerificationException e) { + assertEquals(NonInclusionVerificationException.Reason.AUTHORITY_REJECTED, e.getReason()); + } } } } diff --git a/src/test/java/org/unicitylabs/sdk/api/RealSealsTest.java b/src/test/java/org/unicitylabs/sdk/api/RealSealsTest.java new file mode 100644 index 00000000..dff3f801 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/RealSealsTest.java @@ -0,0 +1,154 @@ +package org.unicitylabs.sdk.api; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.NonInclusionVerificationException.Reason; +import org.unicitylabs.sdk.api.bft.UnicitySeal; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundle; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundleLimits; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.serializer.cbor.CborSerializer; +import org.unicitylabs.sdk.util.HexConverter; + +/** + * A real seal of each existing network verifies through the V2 bundle that describes its live + * authority (owner §44/§46). The fixtures are those of sdk-rust (9e92ae2): per network the + * unicity-ids genesis as a one-entry bundle, and the answer of the network's public gateway (no key) + * to {@code get_non_inclusion_proof.v1} for a random state id, which carries a unicity certificate + * signed by the live validators. See {@code vectors/real-seals/README.md}. These prove that existing + * seals authenticate under the V2 genesis (epoch 1); they do not show a live epoch-2 handoff. + */ +class RealSealsTest { + + private static final TrustBaseBundleLimits LIMITS = new TrustBaseBundleLimits(1 << 20, 16); + private static final String TESTNET2_ID = + "4b49eb2bb0729051b89a48668fd6ef1fda284aad2e10b7d5f23aad4b5faef37f"; + private static final String MAINNET_ID = + "0b6f8143e19e2a585be3534e8f1062f36c3b9621e506158f10abfbc9a56f4e4c"; + + private static byte[] read(String name) { + try (InputStream in = RealSealsTest.class + .getResourceAsStream("/vectors/real-seals/" + name)) { + return in.readAllBytes(); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + private static byte[] hexOf(String name) { + return HexConverter.decode(new String(read(name), StandardCharsets.UTF_8).trim()); + } + + private static TrustBaseHistory historyOf(String network, String entryId) { + TrustBaseBundle bundle = TrustBaseBundle.decode(read("unicity-trustbase." + network + ".cbor"), + LIMITS); + return TrustBaseHistory.fromBundle(bundle, HexConverter.decode(entryId)); + } + + private static StateId stateIdOf(String network) { + return StateId.fromCbor(CborSerializer.encodeByteString(hexOf(network + ".stateid.hex"))); + } + + private static NonInclusionProof proofOf(String network, byte[] wire) { + return new NonInclusionProof(stateIdOf(network), wire); + } + + /** Verify with the shard the gateway answered for pinned, as an application does for a sharded network. */ + private static NonInclusionOutcome verify(NonInclusionProof proof, TrustBaseHistory history) { + NonInclusionContext context = NonInclusionContext.unsharded() + .withShard(proof.decode().unicityCertificate.getShardTreeCertificate().getShard()); + return NonInclusionVerifier.verify(history, proof, context); + } + + @Test + void theBundlesAreTheReleaseAssets() { + for (String network : new String[] {"testnet2", "mainnet"}) { + try (InputStream in = RealSealsTest.class + .getResourceAsStream("/release-pins/unicity-trustbase." + network + ".cbor")) { + assertArrayEquals(in.readAllBytes(), read("unicity-trustbase." + network + ".cbor")); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + } + + @Test + void aRealTestnet2SealVerifiesThroughTheV2Bundle() { + TrustBaseHistory history = historyOf("testnet2", TESTNET2_ID); + assertEquals(4, history.getNetworkId().get().getId()); + NonInclusionOutcome outcome = verify(proofOf("testnet2", hexOf("testnet2.non-inclusion.hex")), + history); + assertEquals(NonInclusionOutcome.Kind.ABSENT_AT_SNAPSHOT, outcome.getKind()); + assertEquals(4, outcome.getSnapshot().getNetworkId().getId()); + assertEquals(1, outcome.getSnapshot().getRootEpoch()); + } + + @Test + void aRealMainnetSealVerifiesThroughTheV2Bundle() { + TrustBaseHistory history = historyOf("mainnet", MAINNET_ID); + assertEquals(1, history.getNetworkId().get().getId()); + NonInclusionOutcome outcome = verify(proofOf("mainnet", hexOf("mainnet.non-inclusion.hex")), + history); + assertEquals(NonInclusionOutcome.Kind.ABSENT_AT_SNAPSHOT, outcome.getKind()); + assertEquals(1, outcome.getSnapshot().getNetworkId().getId()); + assertEquals(1, outcome.getSnapshot().getRootEpoch()); + } + + @Test + void controlsAnotherNetworksBundleOrDamagedSignaturesDoNotVerify() { + // testnet2's seal under mainnet's bundle + NonInclusionProof testnet2 = proofOf("testnet2", hexOf("testnet2.non-inclusion.hex")); + NonInclusionVerificationException other = assertThrows(NonInclusionVerificationException.class, + () -> verify(testnet2, historyOf("mainnet", MAINNET_ID))); + assertEquals(Reason.AUTHORITY_REJECTED, other.getReason()); + + // damaged signatures: the proof still decodes, but once fewer than a quorum verify the seal no + // longer authenticates (genesis threshold floor(2*4/3)+1 = 3 of 4) + byte[] raw = hexOf("testnet2.non-inclusion.hex"); + List signatures = new ArrayList<>(); + for (UnicitySeal.SignatureEntry entry : testnet2.decode().unicityCertificate.getUnicitySeal() + .getSignatures()) { + signatures.add(entry.getSignature().encode()); + } + assertEquals(4, signatures.size()); + TrustBaseHistory history = historyOf("testnet2", TESTNET2_ID); + for (int damagedCount = 0; damagedCount <= 4; damagedCount++) { + byte[] bad = raw.clone(); + for (byte[] signature : signatures.subList(0, damagedCount)) { + bad[indexOf(bad, signature) + 10] ^= 1; + } + NonInclusionProof damaged = proofOf("testnet2", bad); + if (damagedCount <= 1) { + assertEquals(NonInclusionOutcome.Kind.ABSENT_AT_SNAPSHOT, + verify(damaged, history).getKind(), damagedCount + " damaged"); + } else { + NonInclusionVerificationException e = assertThrows(NonInclusionVerificationException.class, + () -> verify(damaged, history)); + assertEquals(Reason.AUTHORITY_REJECTED, e.getReason(), damagedCount + " damaged"); + } + } + assertTrue(signatures.get(0).length > 10); + } + + private static int indexOf(byte[] haystack, byte[] needle) { + for (int i = 0; i + needle.length <= haystack.length; i++) { + boolean match = true; + for (int j = 0; j < needle.length && match; j++) { + match = haystack[i + j] == needle[j]; + } + if (match) { + return i; + } + } + throw new IllegalStateException("signature not found in the proof bytes"); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/SdkVersionHeaderWireTest.java b/src/test/java/org/unicitylabs/sdk/api/SdkVersionHeaderWireTest.java new file mode 100644 index 00000000..b463fd33 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/SdkVersionHeaderWireTest.java @@ -0,0 +1,102 @@ +package org.unicitylabs.sdk.api; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.nio.file.Files; +import java.nio.file.Paths; +import java.util.List; +import java.util.concurrent.TimeUnit; +import java.util.function.Function; +import okhttp3.OkHttpClient; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.SdkVersion; +import org.unicitylabs.sdk.api.jsonrpc.SdkVersionHeader; + +/** The X-SDK-Version header on the wire: default, custom value, disabled, on every call. */ +class SdkVersionHeaderWireTest { + + private static final String NAME = "X-SDK-Version"; + private static final StateId STATE_ID = WireTestSupport.stateId("00".repeat(32)); + + private MockWebServer server; + + @BeforeEach + void start() throws Exception { + server = new MockWebServer(); + server.start(); + } + + @AfterEach + void stop() throws Exception { + server.shutdown(); + } + + private RecordedRequest sent(JsonRpcAggregatorClient client, + Function> call) + throws Exception { + server.enqueue(new MockResponse().setResponseCode(500)); + WireTestSupport.failure(call.apply(client)); + RecordedRequest request = server.takeRequest(5, TimeUnit.SECONDS); + assertNotNull(request); + return request; + } + + private JsonRpcAggregatorClient clientWith(SdkVersionHeader header) { + return new JsonRpcAggregatorClient(server.url("/").toString(), null, true, + new OkHttpClient(), header); + } + + @Test + void versionIsTheGradleProjectVersion() throws Exception { + String build = new String(Files.readAllBytes(Paths.get("build.gradle.kts")), + java.nio.charset.StandardCharsets.UTF_8); + assertTrue(build.contains("generateSdkVersion")); + assertNotNull(SdkVersion.VERSION); + assertTrue(!SdkVersion.VERSION.isEmpty()); + assertEquals("java/" + SdkVersion.VERSION, SdkVersionHeader.sdkDefault().value()); + } + + @Test + void defaultHeaderIsSentOnEveryCall() throws Exception { + JsonRpcAggregatorClient client = + new JsonRpcAggregatorClient(server.url("/").toString()); + String expected = "java/" + SdkVersion.VERSION; + assertEquals(expected, + sent(client, JsonRpcAggregatorClient::getLatestBlockNumber).getHeader(NAME)); + assertEquals(expected, sent(client, c -> c.getInclusionProof(STATE_ID)).getHeader(NAME)); + assertEquals(expected, + sent(client, c -> c.getInclusionProofs(List.of(STATE_ID), BatchRequestOptions.latest())).getHeader(NAME)); + } + + @Test + void aCustomValueReplacesTheDefault() throws Exception { + JsonRpcAggregatorClient client = clientWith(SdkVersionHeader.of("wallet/7")); + assertEquals("wallet/7", + sent(client, JsonRpcAggregatorClient::getLatestBlockNumber).getHeader(NAME)); + assertEquals("wallet/7", sent(client, c -> c.getInclusionProof(STATE_ID)).getHeader(NAME)); + } + + @Test + void disabledSendsNoHeader() throws Exception { + JsonRpcAggregatorClient client = clientWith(SdkVersionHeader.disabled()); + assertNull(sent(client, JsonRpcAggregatorClient::getLatestBlockNumber).getHeader(NAME)); + assertNull(sent(client, c -> c.getInclusionProof(STATE_ID)).getHeader(NAME)); + } + + @Test + void aValueThatIsNotPrintableAsciiIsRefused() { + assertThrows(IllegalArgumentException.class, () -> SdkVersionHeader.of("")); + assertThrows(IllegalArgumentException.class, () -> SdkVersionHeader.of("a\nb")); + assertThrows(IllegalArgumentException.class, () -> SdkVersionHeader.of("café")); + assertThrows(NullPointerException.class, () -> SdkVersionHeader.of(null)); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/BlockingTrustBase.java b/src/test/java/org/unicitylabs/sdk/api/bft/BlockingTrustBase.java index 695421c4..dfce65d7 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/BlockingTrustBase.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/BlockingTrustBase.java @@ -1,31 +1,24 @@ package org.unicitylabs.sdk.api.bft; -import java.util.ArrayList; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.verification.SealQuorumRule; +import org.unicitylabs.sdk.api.bft.verification.rule.UnicitySealQuorumSignaturesVerificationRule; +import org.unicitylabs.sdk.util.verification.VerificationResult; +import org.unicitylabs.sdk.util.verification.VerificationStatus; /** - * A trust base that holds every quorum check once it is armed, so that a test can keep seal - * verifications in flight deterministically. + * A quorum rule that holds every check once it is armed, so that a test can keep seal verifications + * in flight deterministically. */ -public final class BlockingTrustBase extends RootTrustBase { +public final class BlockingTrustBase implements SealQuorumRule { private final CountDownLatch release = new CountDownLatch(1); private final AtomicInteger entered = new AtomicInteger(); private volatile boolean armed; - private BlockingTrustBase(RootTrustBase base) { - super(base.getVersion(), base.getNetworkId(), base.getEpoch(), base.getEpochStartRound(), - new ArrayList<>(base.getRootNodes()), base.getQuorumThreshold(), base.getStateHash(), - base.getChangeRecordHash(), base.getPreviousEntryHash(), base.getSignatures()); - } - - /** A copy of the trust base that can be armed. */ - public static BlockingTrustBase copyOf(RootTrustBase base) { - return new BlockingTrustBase(base); - } - /** From now on every quorum check waits for {@link #release()}. */ public void arm() { armed = true; @@ -42,7 +35,8 @@ public int entered() { } @Override - public long getQuorumThreshold() { + public VerificationResult verify(TrustBaseEntry entry, + org.unicitylabs.sdk.api.bft.UnicitySeal seal) { if (armed) { entered.incrementAndGet(); try { @@ -51,6 +45,6 @@ public long getQuorumThreshold() { Thread.currentThread().interrupt(); } } - return super.getQuorumThreshold(); + return UnicitySealQuorumSignaturesVerificationRule.verify(entry, seal); } } diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/OfflineWalletFutureEpochTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/OfflineWalletFutureEpochTest.java new file mode 100644 index 00000000..4a46dd72 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/OfflineWalletFutureEpochTest.java @@ -0,0 +1,167 @@ +package org.unicitylabs.sdk.api.bft; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.concurrent.TimeUnit; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; +import okio.Buffer; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.HttpTrustBaseSource; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.MemoryTrustBaseStore; +import org.unicitylabs.sdk.api.bft.trustbase.ReleasePin; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseCacheKey; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseResponseWire; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseSession; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseSessionOptions; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseUpdateOptions; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseUpdater; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseUpdateTarget; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; +import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; +import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; +import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult; +import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; +import org.unicitylabs.sdk.api.jsonrpc.SdkVersionHeader; +import org.unicitylabs.sdk.util.verification.VerificationStatus; + +/** + * An offline wallet with a token whose certificate is of an epoch it has not heard of: verification + * says so with the typed no-entry result, one update over HTTP fetches exactly the missing epoch, and + * the next verification succeeds, also after a restart with no network. Synthetic signed epochs (the + * live networks do not sign V2 entries yet; see the real-seal tests for what they do show). + */ +class OfflineWalletFutureEpochTest { + + private static final TestChain.Authority EPOCH1 = new TestChain.Authority(); + private static final TestChain.Authority EPOCH2 = + new TestChain.Authority(NetworkId.LOCAL, 2, 10, 1); + + private MockWebServer server; + + @BeforeEach + void start() throws IOException { + this.server = new MockWebServer(); + this.server.start(); + } + + @AfterEach + void stop() throws IOException { + this.server.shutdown(); + } + + private static UnicityCertificateVerificationResult verify(TrustBaseHistory history, + UnicityCertificate certificate) { + OperationUnicityCertificateVerifier verifier = (OperationUnicityCertificateVerifier) + new UnicityCertificateVerifier().beginOperation(null); + return verifier.verifyCertificate(history, certificate); + } + + private MockResponse pageOfEpoch2(TrustBaseEntry epoch2) { + byte[] page = TrustBaseResponseWire.encode(new TrustBaseResponseWire.Fields(2, + epoch2.entryId(), Collections.singletonList(epoch2.encode()), 2, + NetworkId.LOCAL.getId(), null, 0)); + return new MockResponse().setBody(new Buffer().write(page)); + } + + @Test + void anOldTokenStillVerifiesAndANewEpochIsFetchedOnceThenKnownOffline() throws Exception { + TestChain.Sealed oldSeal = TestChain.seal(EPOCH1, 7, 5, TestChain.fourShards(1, + TestChain.TIMESTAMP)); + TestChain.Sealed newSeal = TestChain.seal(EPOCH2, 7, 11, TestChain.fourShards(1, + TestChain.TIMESTAMP)); + TrustBaseEntry epoch2 = EPOCH1.trustBaseThrough(EPOCH2).getTip().get(); + + TrustBaseHistory history = EPOCH1.trustBase(); + HttpTrustBaseSource source = new HttpTrustBaseSource(this.server.url("/").toString(), null, + true, null, SdkVersionHeader.of("wallet/1")); + + // the token of epoch 1 verifies with no network at all + assertEquals(VerificationStatus.OK, verify(history, oldSeal.certificate("00")).getStatus()); + assertEquals(0, this.server.getRequestCount()); + + // a token of epoch 2: the typed, retryable failure; the signatures were not even looked at + UnicityCertificateVerificationResult unknown = verify(history, newSeal.certificate("00")); + assertEquals(UnicityCertificateFailure.NO_TRUST_BASE_ENTRY, unknown.getFailure()); + assertNotNull(NoTrustBaseEntryResult.find(unknown)); + + // one update over HTTP, then at most one more verification + this.server.enqueue(pageOfEpoch2(epoch2)); + UnicityCertificateVerificationResult result = TrustBaseUpdater.verifyWithUpdate( + TrustBaseUpdateTarget.of(history), List.of(source), + TrustBaseUpdateOptions.defaults().withBackoffMs(0), + () -> verify(history, newSeal.certificate("00")), + r -> NoTrustBaseEntryResult.find(r) != null); + assertEquals(VerificationStatus.OK, result.getStatus()); + assertEquals(1, this.server.getRequestCount(), "exactly one GET"); + RecordedRequest request = this.server.takeRequest(1, TimeUnit.SECONDS); + assertEquals("/api/v1/trustbases", request.getRequestUrl().encodedPath()); + assertEquals("2", request.getRequestUrl().queryParameter("from"), + "only the epoch after the held tip is asked for"); + assertEquals("wallet/1", request.getHeader("X-SDK-Version")); + + // the old token still verifies, and so does the new one: no further request + assertEquals(VerificationStatus.OK, verify(history, oldSeal.certificate("00")).getStatus()); + assertEquals(VerificationStatus.OK, verify(history, newSeal.certificate("00")).getStatus()); + assertEquals(1, this.server.getRequestCount()); + } + + @Test + void aSessionFetchesSavesAndAfterARestartVerifiesTheNewEpochOffline() throws Exception { + TestChain.Sealed newSeal = TestChain.seal(EPOCH2, 7, 11, TestChain.fourShards(1, + TestChain.TIMESTAMP)); + TrustBaseEntry epoch2 = EPOCH1.trustBaseThrough(EPOCH2).getTip().get(); + ReleasePin pin = ReleasePin.fromBundle(EPOCH1.trustBase().toBundle()); + MemoryTrustBaseStore store = new MemoryTrustBaseStore(); + TrustBaseSessionOptions options = TrustBaseSessionOptions.of(Runnable::run); + + TrustBaseSession first = TrustBaseSession.openPrivate("wallet", pin, store, options).get() + .getSession(); + assertEquals(UnicityCertificateFailure.NO_TRUST_BASE_ENTRY, verifyView(first, + newSeal.certificate("00")).getFailure()); + + this.server.enqueue(pageOfEpoch2(epoch2)); + HttpTrustBaseSource source = new HttpTrustBaseSource(this.server.url("/").toString(), null, + true, null, SdkVersionHeader.sdkDefault()); + assertEquals(1, first.refresh(List.of(source), + TrustBaseUpdateOptions.defaults().withBackoffMs(0)).get().intValue()); + assertEquals(VerificationStatus.OK, + verifyView(first, newSeal.certificate("00")).getStatus()); + assertFalse(first.isDirty(), "the refresh saved the new epoch"); + assertArrayEquals(first.exportBundle(), store.get(TrustBaseCacheKey.of(pin.getNetworkId(), + pin.getGenesisEntryId(), "wallet"))); + + // a restart: a new session over the same store, and no network + int requests = this.server.getRequestCount(); + TrustBaseSession restarted = TrustBaseSession.openPrivate("wallet", pin, store, options).get() + .getSession(); + assertEquals(2, restarted.history().getTip().get().getEpoch()); + assertEquals(VerificationStatus.OK, + verifyView(restarted, newSeal.certificate("00")).getStatus()); + assertEquals(requests, this.server.getRequestCount()); + assertNull(restarted.getConflict()); + assertTrue(restarted.history().entryForEpoch(1).isPresent()); + } + + private static UnicityCertificateVerificationResult verifyView(TrustBaseSession session, + UnicityCertificate certificate) { + OperationUnicityCertificateVerifier verifier = (OperationUnicityCertificateVerifier) + new UnicityCertificateVerifier().beginOperation(null); + return verifier.verifyCertificate(session.history(), certificate); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/OperationVerifierTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/OperationVerifierTest.java index fa4828db..0c27c05a 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/OperationVerifierTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/OperationVerifierTest.java @@ -1,6 +1,9 @@ package org.unicitylabs.sdk.api.bft; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; @@ -21,8 +24,8 @@ import org.unicitylabs.sdk.api.bft.verification.SealVerificationSession; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.serializer.cbor.CborSerializer; import org.unicitylabs.sdk.serializer.cbor.CborSerializer.CborMap; import org.unicitylabs.sdk.util.verification.VerificationStatus; @@ -32,14 +35,13 @@ class OperationVerifierTest { private static final TestChain.Authority AUTHORITY = new TestChain.Authority(); private static final long NOW = TestChain.TIMESTAMP; - private static OperationUnicityCertificateVerifier operation(VerificationPolicy policy, - PartitionViewPolicy pins) { + private static OperationUnicityCertificateVerifier operation(PartitionViewPolicy pins) { return (OperationUnicityCertificateVerifier) new UnicityCertificateVerifier() - .beginOperation(policy, pins); + .beginOperation(pins); } private static OperationUnicityCertificateVerifier strict() { - return operation(VerificationPolicy.STRICT, null); + return operation(null); } private static UnicityCertificate withWitnesses(UnicityCertificate certificate, @@ -64,7 +66,7 @@ private static UnicityCertificate withWitnesses(UnicityCertificate certificate, void manyProofsOfOneSealCostOneQuorumCheckAndOneBodyCheckPerDistinctCertificate() { TestChain.Sealed sealed = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); OperationUnicityCertificateVerifier verifier = strict(); - RootTrustBase trustBase = AUTHORITY.trustBase(); + TrustBaseHistoryView trustBase = AUTHORITY.trustBase(); // 20 proofs: five of each of four distinct certificates, one shared seal for (int proof = 0; proof < 20; proof++) { @@ -88,7 +90,7 @@ void aRejectionBetweenTwoSuccessesNeitherPoisonsNorFlushesTheMemo() { TestChain.Sealed sealed = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); TestChain.Sealed other = TestChain.seal(AUTHORITY, 7, 10, TestChain.fourShards(2, NOW), 1, 2, 3); OperationUnicityCertificateVerifier verifier = strict(); - RootTrustBase trustBase = AUTHORITY.trustBase(); + TrustBaseHistoryView trustBase = AUTHORITY.trustBase(); assertEquals(VerificationStatus.OK, verifier.verifyCertificate(trustBase, sealed.certificate("00")).getStatus()); @@ -116,7 +118,7 @@ void aRejectionBetweenTwoSuccessesNeitherPoisonsNorFlushesTheMemo() { void alteredWitnessesAfterAWarmCacheAreAMissAndAreChecked() { TestChain.Sealed sealed = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); OperationUnicityCertificateVerifier verifier = strict(); - RootTrustBase trustBase = AUTHORITY.trustBase(); + TrustBaseHistoryView trustBase = AUTHORITY.trustBase(); UnicityCertificate good = sealed.certificate("00"); assertEquals(VerificationStatus.OK, verifier.verifyCertificate(trustBase, good).getStatus()); @@ -138,7 +140,7 @@ void aCertificateOfAnotherPartitionIsRefusedBeforeAnyMemoLookup() { TestChain.Sealed seven = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); TestChain.Sealed eight = TestChain.seal(AUTHORITY, 8, 9, TestChain.fourShards(1, NOW)); OperationUnicityCertificateVerifier verifier = strict(); - RootTrustBase trustBase = AUTHORITY.trustBase(); + TrustBaseHistoryView trustBase = AUTHORITY.trustBase(); assertEquals(VerificationStatus.OK, verifier.verifyCertificate(trustBase, seven.certificate("00")).getStatus()); @@ -159,48 +161,68 @@ void aCertificateOfAnotherPartitionIsRefusedBeforeAnyMemoLookup() { } @Test - void aLegacyOperationAcceptsAHistoricalEpochAStrictOneRefusesIt() { + void aSealOfAnEarlierEpochVerifiesAgainstTheEntryOfItsOwnEpochAndNotAfterItsEnd() { TestChain.Authority epoch2 = new TestChain.Authority(NetworkId.LOCAL, 2, 10, 1); - TestChain.Sealed historical = TestChain.seal(AUTHORITY, 7, 50, TestChain.fourShards(1, NOW)); - RootTrustBase current = epoch2.trustBase(); + TrustBaseHistoryView history = AUTHORITY.trustBaseThrough(epoch2); + TestChain.Sealed historical = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); + TestChain.Sealed late = TestChain.seal(AUTHORITY, 7, 50, TestChain.fourShards(1, NOW)); - OperationUnicityCertificateVerifier legacy = operation(VerificationPolicy.LEGACY_QUORUM, null); + OperationUnicityCertificateVerifier verifier = strict(); assertEquals(VerificationStatus.OK, - legacy.verifyCertificate(current, historical.certificate("00")).getStatus()); - // the same operation's session is the strict authenticator, and the legacy success does not - // admit a strict request for the same seal - SealVerificationSession session = legacy.sessionFor(current); - assertEquals(UnicityCertificateFailure.EPOCH_MISMATCH, - session.authenticate(historical.certificate("00").getUnicitySeal()).getFailure()); - assertEquals(1, legacy.getStats().getQuorumChecks()); + verifier.verifyCertificate(history, historical.certificate("00")).getStatus()); + assertEquals(1, verifier.getStats().getQuorumChecks()); - OperationUnicityCertificateVerifier strict = strict(); + // round 50 of epoch 1 is after the start (10) of epoch 2: final, and no signature work UnicityCertificateVerificationResult refused = - strict.verifyCertificate(current, historical.certificate("00")); - assertEquals(UnicityCertificateFailure.EPOCH_MISMATCH, refused.getFailure()); + verifier.verifyCertificate(history, late.certificate("00")); + assertEquals(UnicityCertificateFailure.AFTER_EPOCH_END, refused.getFailure()); assertTrue(refused.getFailure().isAuthorityRejection()); - assertEquals(0, strict.getStats().getQuorumChecks()); + assertEquals(1, verifier.getStats().getQuorumChecks()); + } + + @Test + void aSealOfAnEpochTheHistoryLacksIsTheTypedNoEntryFailureWithoutSignatureWork() { + TestChain.Authority epoch2 = new TestChain.Authority(NetworkId.LOCAL, 2, 10, 1); + TestChain.Sealed future = TestChain.seal(epoch2, 7, 11, TestChain.fourShards(1, NOW)); + TrustBaseHistoryView history = AUTHORITY.trustBase(); + + OperationUnicityCertificateVerifier verifier = strict(); + UnicityCertificateVerificationResult result = + verifier.verifyCertificate(history, future.certificate("00")); + assertEquals(UnicityCertificateFailure.NO_TRUST_BASE_ENTRY, result.getFailure()); + NoTrustBaseEntryResult noEntry = NoTrustBaseEntryResult.find(result); + assertNotNull(noEntry); + assertEquals(2, noEntry.getEpoch()); + assertEquals(Long.valueOf(1), noEntry.getHeldTipEpoch()); + assertEquals(0, verifier.getStats().getQuorumChecks()); + + // the same seal verifies once the history holds epoch 2 + assertEquals(VerificationStatus.OK, verifier + .verifyCertificate(AUTHORITY.trustBaseThrough(epoch2), future.certificate("00")).getStatus()); + // other failures are not the typed no-entry + assertNull(NoTrustBaseEntryResult.find(verifier.verifyCertificate( + new TestChain.Authority(NetworkId.MAINNET, 1, 1, 1).trustBase(), + future.certificate("00")))); } @Test void anotherAuthorityIsAnotherSessionAndNeverSharesAVerdict() { TestChain.Sealed sealed = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); - OperationUnicityCertificateVerifier verifier = operation(VerificationPolicy.LEGACY_QUORUM, null); - RootTrustBase same = AUTHORITY.trustBase(); - RootTrustBase otherEpoch = new TestChain.Authority(NetworkId.LOCAL, 7, 1, 1).trustBase(); - RootTrustBase otherKeys = new TestChain.Authority(NetworkId.LOCAL, 1, 1, 2).trustBase(); + OperationUnicityCertificateVerifier verifier = operation(null); + TrustBaseHistoryView same = AUTHORITY.trustBase(); + TrustBaseHistoryView otherEpoch = new TestChain.Authority(NetworkId.LOCAL, 7, 1, 1).trustBase(); + TrustBaseHistoryView otherKeys = new TestChain.Authority(NetworkId.LOCAL, 1, 1, 2).trustBase(); assertEquals(VerificationStatus.OK, verifier.verifyCertificate(same, sealed.certificate("00")).getStatus()); - // same keys, other epoch: the legacy verdict is a property of the keys, but the authority - // content differs, so it is a new identity and a new quorum check - assertEquals(VerificationStatus.OK, - verifier.verifyCertificate(otherEpoch, sealed.certificate("00")).getStatus()); - assertEquals(2, verifier.getStats().getQuorumChecks()); - assertEquals(2, verifier.getStats().getAuthorityBuilds()); + // a history whose genesis epoch is 7 holds nothing for a seal of epoch 1 + assertEquals(UnicityCertificateFailure.EPOCH_MISMATCH, + verifier.verifyCertificate(otherEpoch, sealed.certificate("00")).getFailure()); + assertEquals(1, verifier.getStats().getQuorumChecks()); // other keys: not a quorum of this authority assertEquals(UnicityCertificateFailure.QUORUM_NOT_REACHED, verifier.verifyCertificate(otherKeys, sealed.certificate("00")).getFailure()); + assertEquals(2, verifier.getStats().getQuorumChecks()); assertEquals(3, verifier.getStats().getAuthorityBuilds()); } @@ -210,7 +232,7 @@ void theNetworkIsComparedOnEveryCall() { OperationUnicityCertificateVerifier verifier = strict(); assertEquals(VerificationStatus.OK, verifier.verifyCertificate(AUTHORITY.trustBase(), sealed.certificate("00")).getStatus()); - RootTrustBase mainnet = new TestChain.Authority(NetworkId.MAINNET, 1, 1, 1).trustBase(); + TrustBaseHistoryView mainnet = new TestChain.Authority(NetworkId.MAINNET, 1, 1, 1).trustBase(); assertEquals(UnicityCertificateFailure.NETWORK_MISMATCH, verifier.verifyCertificate(mainnet, sealed.certificate("00")).getFailure()); } @@ -219,38 +241,38 @@ void theNetworkIsComparedOnEveryCall() { void pinsOfTheOperationConstrainShardAndConfiguration() { TestChain.Sealed sealed = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); UnicityCertificate certificate = sealed.certificate("00"); - RootTrustBase trustBase = AUTHORITY.trustBase(); + TrustBaseHistoryView trustBase = AUTHORITY.trustBase(); PartitionViewPolicy right = PartitionViewPolicy.none().withPins(List.of( new ShardConfigurationPin(ShardId.fromBitString("00"), certificate.getShardConfigurationHash()))); - assertEquals(VerificationStatus.OK, operation(VerificationPolicy.STRICT, right) + assertEquals(VerificationStatus.OK, operation(right) .verifyCertificate(trustBase, certificate).getStatus()); PartitionViewPolicy wrong = PartitionViewPolicy.none().withPins(List.of( new ShardConfigurationPin(ShardId.fromBitString("00"), new byte[32]))); - assertEquals(UnicityCertificateFailure.PIN_MISMATCH, operation(VerificationPolicy.STRICT, wrong) + assertEquals(UnicityCertificateFailure.PIN_MISMATCH, operation(wrong) .verifyCertificate(trustBase, certificate).getFailure()); PartitionViewPolicy otherScheme = PartitionViewPolicy.none().withScheme(List.of( ShardId.fromBitString("0"), ShardId.fromBitString("1"))); assertEquals(UnicityCertificateFailure.PIN_MISMATCH, - operation(VerificationPolicy.STRICT, otherScheme) + operation(otherScheme) .verifyCertificate(trustBase, certificate).getFailure()); } @Test void aCustomVerifierIsNeverWrappedAndAnOperationReturnsItselfForTheSameRequest() { UnicityCertificateVerifier custom = new UnicityCertificateVerifier() { }; - assertSame(custom, custom.beginOperation(VerificationPolicy.STRICT, null)); + assertSame(custom, custom.beginOperation(null)); OperationUnicityCertificateVerifier operation = strict(); - assertSame(operation, operation.beginOperation(VerificationPolicy.STRICT, null)); - assertSame(operation, operation.beginOperation(VerificationPolicy.STRICT, - PartitionViewPolicy.none())); - assertNotSame(operation, operation.beginOperation(VerificationPolicy.LEGACY_QUORUM, null)); + assertSame(operation, operation.beginOperation(null)); + assertSame(operation, operation.beginOperation(PartitionViewPolicy.none())); + assertNotSame(operation, operation.beginOperation(PartitionViewPolicy.none().withScheme( + List.of(ShardId.fromBitString("0"), ShardId.fromBitString("1"))))); assertNotSame(operation, new UnicityCertificateVerifier() - .beginOperation(VerificationPolicy.STRICT, null)); + .beginOperation(null)); } @Test @@ -258,7 +280,7 @@ void theTypedFailureNamesEachCauseAndAnAuthorityRejectionIsDistinct() { TestChain.Sealed sealed = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); UnicityCertificate good = sealed.certificate("00"); OperationUnicityCertificateVerifier verifier = strict(); - RootTrustBase trustBase = AUTHORITY.trustBase(); + TrustBaseHistoryView trustBase = AUTHORITY.trustBase(); UnicityCertificate badPath = new UnicityCertificate(good.getInputRecord(), good.getTechnicalRecordHash(), good.getShardConfigurationHash(), @@ -292,7 +314,7 @@ void theTypedFailureNamesEachCauseAndAnAuthorityRejectionIsDistinct() { void concurrentProofsOfTheSameCertificateAreCheckedOnce() throws Exception { TestChain.Sealed sealed = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(1, NOW)); OperationUnicityCertificateVerifier verifier = strict(); - RootTrustBase trustBase = AUTHORITY.trustBase(); + TrustBaseHistoryView trustBase = AUTHORITY.trustBase(); ExecutorService pool = Executors.newFixedThreadPool(8); try { List> futures = new ArrayList<>(); diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/PartitionViewAuthenticatorTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/PartitionViewAuthenticatorTest.java index 62cc0ddf..26426bbf 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/PartitionViewAuthenticatorTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/PartitionViewAuthenticatorTest.java @@ -403,9 +403,9 @@ void aViewOfAnotherPartitionUnderTheSameSealIsNotRelabelled() { */ @Test void aBusySealSessionIsAResourceLimitNotAViewRejection() throws Exception { - BlockingTrustBase blocking = BlockingTrustBase.copyOf(AUTHORITY.trustBase()); + BlockingTrustBase blocking = new BlockingTrustBase(); PartitionViewAuthenticator limited = new PartitionViewAuthenticator( - SealVerificationSession.create(blocking, 8, 1), PartitionViewPolicy.none()); + SealVerificationSession.create(AUTHORITY.trustBase(), 8, 1, blocking), PartitionViewPolicy.none()); TestChain.Sealed first = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(3, NOW)); TestChain.Sealed second = TestChain.seal(AUTHORITY, 7, 10, TestChain.fourShards(4, NOW)); diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseTest.java deleted file mode 100644 index 9150ce1a..00000000 --- a/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseTest.java +++ /dev/null @@ -1,104 +0,0 @@ -package org.unicitylabs.sdk.api.bft; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.unicitylabs.sdk.api.NetworkId; -import org.unicitylabs.sdk.serializer.json.JsonSerializationException; - -public class RootTrustBaseTest { - - @Test - public void testRootTrustBaseDeserializationFromJson() { - RootTrustBase trustBase = RootTrustBase.fromJson( - "{\"version\":1,\"networkId\":3,\"epoch\":1,\"epochStartRound\":1,\"rootNodes\":[{\"nodeId\":\"16Uiu2HAm3PaA9z8jonZzfvuT1WJgTxCpbFkV4Wq4PSSBk7VctkmG\",\"sigKey\":\"0x03982564bf661da9c048397114fab9dcfbfedb0ad7c1b1c83e13c0f9fa633f7aa6\",\"stake\":1},{\"nodeId\":\"16Uiu2HAm8918Ds2nPiVLXg55kypyoXoiweokpQxtnguZjgxz3pNE\",\"sigKey\":\"0x039a2f7f41c5583d339f31490757152b947ccb19944634a40a16a762a32a4855d4\",\"stake\":1},{\"nodeId\":\"16Uiu2HAmEEEGyvYZno7hm2Gs8FwfPejWdpvWC3HLivQD5hXFbNUh\",\"sigKey\":\"0x038cabc84fa86076277879554c277f9a0a19955fa4c3b37871fca81d5f709777f1\",\"stake\":1},{\"nodeId\":\"16Uiu2HAmNwgru7QSsVRacGqXdtfeaf1oqtznvXA6rSzKU1822kuW\",\"sigKey\":\"0x03044c0309fd0a713440da958f8c510a40a4347aa82622481655d162c227d771e3\",\"stake\":1}],\"quorumThreshold\":3,\"stateHash\":\"\",\"changeRecordHash\":\"\",\"previousEntryHash\":\"\",\"signatures\":{\"16Uiu2HAm3PaA9z8jonZzfvuT1WJgTxCpbFkV4Wq4PSSBk7VctkmG\":\"0xfe672d56ddd60e4b028b52999b4e43bcbdac9413d9e8da6f969d46c249da8f492cd719017510af8b199b94c7605b79707da56950a4888320f8cf7e07329e92da01\",\"16Uiu2HAm8918Ds2nPiVLXg55kypyoXoiweokpQxtnguZjgxz3pNE\":\"0x8d1b178f6617a6aff9e9d4a71febac6837bd2a5088f3e3b81c766065e6c7a7ad718d1e0a1c7f7e12954514e663b888337cbaa6e7c8bd5e721f4ae5520ca6f09e00\",\"16Uiu2HAmEEEGyvYZno7hm2Gs8FwfPejWdpvWC3HLivQD5hXFbNUh\":\"0x28ef1e0279fb2962149011177c173aabb7e1fad102f07c898b9de4fe71b424390dd0cbc59f75453a7573c4853218eab800431e42fd0d4a6000ef73d50170d03101\",\"16Uiu2HAmNwgru7QSsVRacGqXdtfeaf1oqtznvXA6rSzKU1822kuW\":\"0xf563d04beb3eb5bd5967cb53e6cc1d1b331cd37c03d7a34ba7f11bc0d2c4994818168e1f5caf88956b34384dd3d3685c432d7a487b5c0bee2da012fd70891bab01\"}}" - ); - - Assertions.assertEquals(1, trustBase.getVersion()); - Assertions.assertEquals(NetworkId.LOCAL, trustBase.getNetworkId()); - Assertions.assertEquals(1, trustBase.getEpoch()); - Assertions.assertEquals(1, trustBase.getEpochStartRound()); - Assertions.assertEquals(4, trustBase.getRootNodes().size()); - Assertions.assertEquals(3, trustBase.getQuorumThreshold()); - Assertions.assertEquals(0, trustBase.getStateHash().length); - Assertions.assertEquals(0, trustBase.getChangeRecordHash().length); - Assertions.assertEquals(0, trustBase.getPreviousEntryHash().length); - Assertions.assertEquals(4, trustBase.getSignatures().size()); - } - - @Test - public void testParsesValidTrustBase() { - RootTrustBase trustBase = RootTrustBase.fromJson(trustBaseJson( - 1, 1, "[{\"nodeId\":\"NODE\",\"sigKey\":\"0x02aa\",\"stake\":1}]")); - - Assertions.assertEquals(1, trustBase.getVersion()); - Assertions.assertEquals(1, trustBase.getQuorumThreshold()); - Assertions.assertEquals(1, trustBase.getRootNodes().size()); - } - - @Test - public void testRejectsUnsupportedVersion() { - Assertions.assertThrows( - JsonSerializationException.class, - () -> RootTrustBase.fromJson(trustBaseJson( - 2, 1, "[{\"nodeId\":\"NODE\",\"sigKey\":\"0x02aa\",\"stake\":1}]"))); - } - - @Test - public void testRejectsEmptyRootNodeSet() { - Assertions.assertThrows( - JsonSerializationException.class, - () -> RootTrustBase.fromJson(trustBaseJson(1, 1, "[]"))); - } - - @Test - public void testRejectsNonPositiveQuorumThreshold() { - Assertions.assertThrows( - JsonSerializationException.class, - () -> RootTrustBase.fromJson(trustBaseJson( - 1, 0, "[{\"nodeId\":\"NODE\",\"sigKey\":\"0x02aa\",\"stake\":1}]"))); - } - - @Test - public void testRejectsQuorumThresholdExceedingRootNodeCount() { - Assertions.assertThrows( - JsonSerializationException.class, - () -> RootTrustBase.fromJson(trustBaseJson( - 1, 2, "[{\"nodeId\":\"NODE\",\"sigKey\":\"0x02aa\",\"stake\":1}]"))); - } - - @Test - public void testRejectsNonPositiveStake() { - Assertions.assertThrows( - JsonSerializationException.class, - () -> RootTrustBase.fromJson(trustBaseJson( - 1, 1, "[{\"nodeId\":\"NODE\",\"sigKey\":\"0x02aa\",\"stake\":0}]"))); - } - - @Test - public void testRejectsDuplicateNodeIds() { - Assertions.assertThrows( - JsonSerializationException.class, - () -> RootTrustBase.fromJson(trustBaseJson( - 1, 1, - "[{\"nodeId\":\"NODE\",\"sigKey\":\"0x02aa\",\"stake\":1}," - + "{\"nodeId\":\"NODE\",\"sigKey\":\"0x02bb\",\"stake\":1}]"))); - } - - @Test - public void testRejectsDuplicateSigningKeys() { - Assertions.assertThrows( - JsonSerializationException.class, - () -> RootTrustBase.fromJson(trustBaseJson( - 1, 1, - "[{\"nodeId\":\"NODE_A\",\"sigKey\":\"0x02aa\",\"stake\":1}," - + "{\"nodeId\":\"NODE_B\",\"sigKey\":\"0x02aa\",\"stake\":1}]"))); - } - - private static String trustBaseJson(long version, long quorumThreshold, String rootNodes) { - return String.format( - "{\"version\":%d,\"networkId\":3,\"epoch\":0,\"epochStartRound\":0,\"rootNodes\":%s," - + "\"quorumThreshold\":%d,\"stateHash\":\"\",\"changeRecordHash\":null," - + "\"previousEntryHash\":null,\"signatures\":{}}", - version, rootNodes, quorumThreshold); - } -} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseUnsignedJsonTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseUnsignedJsonTest.java deleted file mode 100644 index 74a66a18..00000000 --- a/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseUnsignedJsonTest.java +++ /dev/null @@ -1,104 +0,0 @@ -package org.unicitylabs.sdk.api.bft; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; - -import java.math.BigInteger; -import org.junit.jupiter.api.Test; -import org.unicitylabs.sdk.serializer.json.JsonSerializationException; - -class RootTrustBaseUnsignedJsonTest { - - private static String json(String epoch, String start, String threshold, String stake) { - return "{\"version\":1,\"networkId\":2,\"epoch\":" + epoch + ",\"epochStartRound\":" + start - + ",\"rootNodes\":[{\"nodeId\":\"root-1\",\"sigKey\":\"0x02aa\",\"stake\":" + stake - + "}],\"quorumThreshold\":" + threshold + ",\"stateHash\":\"\",\"changeRecordHash\":\"\"," - + "\"previousEntryHash\":\"\",\"signatures\":{}}"; - } - - @Test - void anEpochBelow2To63ReadsAsPlainNumberOrString() { - assertEquals(5L, RootTrustBase.fromJson(json("5", "1", "1", "1")).getEpoch()); - assertEquals(5L, RootTrustBase.fromJson(json("\"5\"", "\"1\"", "\"1\"", "\"1\"")).getEpoch()); - } - - @Test - void anEpochOf2To63ReadsWithoutLosingTheBit() { - RootTrustBase trustBase = RootTrustBase.fromJson( - json("9223372036854775808", "9223372036854775809", "1", "1")); - assertEquals(Long.MIN_VALUE, trustBase.getEpoch()); - assertEquals(BigInteger.ONE.shiftLeft(63), trustBase.getEpochUnsigned()); - assertEquals(BigInteger.ONE.shiftLeft(63).add(BigInteger.ONE), - trustBase.getEpochStartRoundUnsigned()); - } - - @Test - void theLargestEpochAndTheValueFromTheSharedVectorRead() { - RootTrustBase max = RootTrustBase.fromJson(json("18446744073709551615", "1", "1", "1")); - assertEquals(-1L, max.getEpoch()); - assertEquals(BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE), max.getEpochUnsigned()); - // as a string too - assertEquals(-1L, RootTrustBase.fromJson(json("\"18446744073709551615\"", "1", "1", "1")) - .getEpoch()); - // the epoch of the non-inclusion vector authority/big-epoch.json: 2^64 - 5 - assertEquals(-5L, RootTrustBase.fromJson(json("18446744073709551611", "1", "1", "1")) - .getEpoch()); - } - - @Test - void theRoundTripIsLosslessForTheWholeRange() { - for (String epoch : new String[] {"0", "1", "9223372036854775807", "9223372036854775808", - "18446744073709551611", "18446744073709551615"}) { - RootTrustBase read = RootTrustBase.fromJson(json(epoch, epoch, "1", "1")); - String written = read.toJson(); - assertEquals(true, written.contains("\"epoch\":\"" + epoch + "\""), written); - RootTrustBase again = RootTrustBase.fromJson(written); - assertEquals(read.getEpoch(), again.getEpoch()); - assertEquals(read.getEpochStartRound(), again.getEpochStartRound()); - assertEquals(epoch, new BigInteger(epoch).toString()); - assertEquals(new BigInteger(epoch), again.getEpochUnsigned()); - } - } - - @Test - void aValueOutsideTheUnsigned64BitRangeIsRefused() { - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("18446744073709551616", "1", "1", "1"))); - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("-1", "1", "1", "1"))); - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("\"-1\"", "1", "1", "1"))); - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("1.5", "1", "1", "1"))); - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("\"0x10\"", "1", "1", "1"))); - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("\" 1\"", "1", "1", "1"))); - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("true", "1", "1", "1"))); - } - - @Test - void aStakeAbove2To63IsPositiveStake() { - RootTrustBase trustBase = RootTrustBase.fromJson(json("1", "1", "1", "9223372036854775808")); - RootTrustBase.NodeInfo node = trustBase.getRootNode("root-1"); - assertEquals(Long.MIN_VALUE, node.getStakedAmount()); - assertEquals(BigInteger.ONE.shiftLeft(63), node.getStakedAmountUnsigned()); - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("1", "1", "1", "0"))); - } - - @Test - void anUnsupportedVersionAboveTwoToThe63IsAnErrorNotOne() { - assertThrows(JsonSerializationException.class, () -> RootTrustBase.fromJson( - json("1", "1", "1", "1").replace("\"version\":1", "\"version\":9223372036854775809"))); - } - - @Test - void aThresholdAboveTheNodeCountIsRefusedWhateverItsSign() { - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("1", "1", "9223372036854775808", "1"))); - assertThrows(JsonSerializationException.class, - () -> RootTrustBase.fromJson(json("1", "1", "0", "1"))); - } -} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseUtils.java b/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseUtils.java deleted file mode 100644 index 598df798..00000000 --- a/src/test/java/org/unicitylabs/sdk/api/bft/RootTrustBaseUtils.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.unicitylabs.sdk.api.bft; - -import org.unicitylabs.sdk.api.NetworkId; - -import java.util.List; -import java.util.Map; - -public class RootTrustBaseUtils { - public static RootTrustBase generateRootTrustBase(byte[] publicKey) { - return new RootTrustBase( - 1, - NetworkId.LOCAL, - 0L, - 0L, - List.of( - new RootTrustBase.NodeInfo( - "NODE", - publicKey, - 1 - ) - ), - 1, - new byte[0], - new byte[0], - null, - Map.of() - ); - } -} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/SealSignatureBoundTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/SealSignatureBoundTest.java new file mode 100644 index 00000000..418cddc0 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/SealSignatureBoundTest.java @@ -0,0 +1,185 @@ +package org.unicitylabs.sdk.api.bft; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.util.ArrayList; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.StateTransitionClient; +import org.unicitylabs.sdk.TestAggregatorClient; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseMember; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; +import org.unicitylabs.sdk.api.bft.verification.SealVerificationSession; +import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; +import org.unicitylabs.sdk.api.bft.verification.rule.UnicitySealQuorumSignaturesVerificationRule; +import org.unicitylabs.sdk.crypto.hash.DataHash; +import org.unicitylabs.sdk.crypto.hash.DataHasher; +import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; +import org.unicitylabs.sdk.crypto.secp256k1.Signature; +import org.unicitylabs.sdk.crypto.secp256k1.SigningService; +import org.unicitylabs.sdk.predicate.builtin.SignaturePredicate; +import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; +import org.unicitylabs.sdk.serializer.cbor.CborSerializationException; +import org.unicitylabs.sdk.transaction.Token; +import org.unicitylabs.sdk.transaction.verification.MintJustificationVerifierService; +import org.unicitylabs.sdk.transaction.verification.TokenIssuanceVerifierService; +import org.unicitylabs.sdk.transaction.verification.VerificationContext; +import org.unicitylabs.sdk.util.verification.VerificationResult; +import org.unicitylabs.sdk.util.verification.VerificationStatus; +import org.unicitylabs.sdk.utils.TokenUtils; + +/** + * Owner §49: a seal carries at most 256 supplied signatures, counted whoever signed, refused at + * decode and again before the seal is hashed or any signature is looked at; a 256-member authority + * is satisfied by its weighted threshold; the typed no-entry failure survives nested verification. + */ +class SealSignatureBoundTest { + + private static final long NOW = TestChain.TIMESTAMP; + + private static UnicitySeal sealWithStrangers(int strangers, SigningService[] signers, + String[] ids, int validSigners) { + UnicitySeal unsigned = new UnicitySeal(NetworkId.LOCAL, 5, 1, NOW, null, new byte[32], null); + DataHash hash = + new DataHasher(HashAlgorithm.SHA256).update(unsigned.toCborWithoutSignatures()).digest(); + Set entries = new LinkedHashSet<>(); + for (int i = 0; i < strangers; i++) { + entries.add(new UnicitySeal.SignatureEntry(String.format("stranger-%04d", i), + Signature.decode(new byte[65]))); + } + for (int i = 0; i < validSigners; i++) { + entries.add(new UnicitySeal.SignatureEntry(ids[i], signers[i].sign(hash))); + } + return unsigned.withSignatures(entries); + } + + private static SigningService[] signers(int count) { + SigningService[] result = new SigningService[count]; + for (int i = 0; i < count; i++) { + byte[] key = new byte[32]; + key[30] = (byte) ((i + 1) >> 8); + key[31] = (byte) (i + 1); + result[i] = new SigningService(key); + } + return result; + } + + private static String[] ids(int count) { + String[] result = new String[count]; + for (int i = 0; i < count; i++) { + result[i] = String.format("node-%04d", i); + } + return result; + } + + private static TrustBaseHistory committee(SigningService[] signers, String[] ids) { + List members = new ArrayList<>(); + for (int i = 0; i < signers.length; i++) { + members.add(new TrustBaseMember(ids[i], signers[i].getPublicKey(), 1)); + } + return TrustBaseTestUtils.genesis(NetworkId.LOCAL, 1, 1, members); + } + + @Test + void aSealOf256SignaturesDecodesAndOf257IsRefusedAtDecode() { + UnicitySeal at = sealWithStrangers(256, new SigningService[0], new String[0], 0); + assertEquals(256, at.getWitnesses().size()); + assertEquals(256, UnicitySeal.fromCbor(at.toCbor()).getWitnesses().size()); + + UnicitySeal over = sealWithStrangers(257, new SigningService[0], new String[0], 0); + CborSerializationException e = assertThrows(CborSerializationException.class, + () -> UnicitySeal.fromCbor(over.toCbor())); + assertEquals("Map of more than 256 pairs.", e.getMessage()); + } + + @Test + void the257thSignatureIsRefusedBySessionAndRuleBeforeAnySignatureWork() { + SigningService[] signers = signers(4); + String[] ids = ids(4); + TrustBaseHistory history = committee(signers, ids); + UnicitySeal over = sealWithStrangers(253, signers, ids, 4); + assertEquals(257, over.getWitnesses().size()); + + assertTrue(SealVerificationSession.checkSealStructure(over).contains("more than 256")); + SealVerificationSession session = SealVerificationSession.create(history); + assertEquals(UnicityCertificateFailure.MALFORMED_SEAL, session.authenticate(over).getFailure()); + assertEquals(0, session.getStats().getQuorumChecks()); + + VerificationResult rule = UnicitySealQuorumSignaturesVerificationRule + .verify(history.getTip().get(), over); + assertEquals(VerificationStatus.FAIL, rule.getStatus()); + assertTrue(rule.getMessage().contains("more than 256"), rule.getMessage()); + assertTrue(rule.getResults().isEmpty(), "no signature was looked at"); + } + + @Test + void a256SignatureSealWithStrangersAndAQuorumIsAccepted() { + SigningService[] signers = signers(4); + String[] ids = ids(4); + TrustBaseHistory history = committee(signers, ids); + // 252 strangers first, then the four members: 256 supplied, all examined, quorum of 3 of 4 reached + UnicitySeal seal = sealWithStrangers(252, signers, ids, 4); + assertEquals(256, seal.getWitnesses().size()); + assertEquals(VerificationStatus.OK, + SealVerificationSession.create(history).authenticate(seal).getStatus()); + } + + @Test + void aSealOfAll256MembersOfA256MemberAuthorityReachesItsThresholdAndStopsThere() { + SigningService[] signers = signers(256); + String[] ids = ids(256); + TrustBaseHistory history = committee(signers, ids); + assertEquals(171, history.getTip().get().getQuorumThreshold()); + UnicitySeal seal = sealWithStrangers(0, signers, ids, 256); + assertEquals(256, seal.getWitnesses().size()); + assertEquals(256, UnicitySeal.fromCbor(seal.toCbor()).getWitnesses().size()); + + VerificationResult result = + UnicitySealQuorumSignaturesVerificationRule.verify(history.getTip().get(), seal); + assertEquals(VerificationStatus.OK, result.getStatus()); + assertEquals(171, result.getResults().size(), "the rule stops at the threshold"); + assertEquals(VerificationStatus.OK, SealVerificationSession.create(history) + .authenticate(UnicitySeal.fromCbor(seal.toCbor())).getStatus()); + + // 170 members are not a quorum of 256 + UnicitySeal short1 = sealWithStrangers(0, signers, ids, 170); + assertEquals(UnicityCertificateFailure.QUORUM_NOT_REACHED, + SealVerificationSession.create(history).authenticate(short1).getFailure()); + } + + @Test + void theTypedNoEntryFailureSurvivesNestedTokenVerification() throws Exception { + TestAggregatorClient aggregator = TestAggregatorClient.create(); + TrustBaseHistory held = aggregator.getTrustBase(); + StateTransitionClient client = new StateTransitionClient(aggregator); + VerificationContext context = new VerificationContext(held, PredicateVerifierService.create(), + new MintJustificationVerifierService(), new TokenIssuanceVerifierService(false)); + Token token = TokenUtils.mintToken(client, context, + SignaturePredicate.fromSigningService(SigningService.generate())); + + // a verifier whose history lacks every entry: nothing is wrong with the token as far as is known + TrustBaseHistory empty = TrustBaseHistory.create(held.getGenesisPin()); + VerificationContext emptyContext = new VerificationContext(empty, + PredicateVerifierService.create(), new MintJustificationVerifierService(), + new TokenIssuanceVerifierService(false)); + VerificationResult result = token.verify(emptyContext); + assertEquals(VerificationStatus.FAIL, result.getStatus()); + NoTrustBaseEntryResult noEntry = NoTrustBaseEntryResult.find(result); + assertNotNull(noEntry, result.toString()); + assertEquals(1, noEntry.getEpoch()); + assertNull(noEntry.getHeldTipEpoch()); + + // the same token verifies once the history holds the entry + assertEquals(VerificationStatus.OK, token.verify(context).getStatus()); + assertNull(NoTrustBaseEntryResult.find(token.verify(context))); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/SealVerificationLowSTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/SealVerificationLowSTest.java index ae75d9fa..59ac1258 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/SealVerificationLowSTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/SealVerificationLowSTest.java @@ -64,6 +64,6 @@ void aHighSTwinOfAValidSignatureCountsNoVote() { assertEquals(UnicityCertificateFailure.QUORUM_NOT_REACHED, session.authenticate(twinned).getFailure()); // the legacy path applies the same rule - assertEquals(VerificationStatus.FAIL, session.verifyLegacyQuorum(twinned).getStatus()); + assertEquals(VerificationStatus.FAIL, session.authenticate(twinned).getStatus()); } } diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/TestChain.java b/src/test/java/org/unicitylabs/sdk/api/bft/TestChain.java index 129389d3..cbbe86dc 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/TestChain.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/TestChain.java @@ -10,6 +10,9 @@ import java.util.Map; import java.util.Set; import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseMember; import org.unicitylabs.sdk.crypto.hash.DataHash; import org.unicitylabs.sdk.crypto.hash.DataHasher; import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; @@ -55,13 +58,50 @@ public Authority() { this(NetworkId.LOCAL, 1, 1, 1); } - public RootTrustBase trustBase() { - List nodes = new ArrayList<>(); + public TrustBaseHistory trustBase() { + List nodes = new ArrayList<>(); for (int i = 0; i < 4; i++) { - nodes.add(new RootTrustBase.NodeInfo(ids[i], signers[i].getPublicKey(), 1)); + nodes.add(new TrustBaseMember(ids[i], signers[i].getPublicKey(), 1)); } - return new RootTrustBase(1, network, epoch, epochStartRound, nodes, 3, new byte[0], null, - null, Map.of()); + return TrustBaseTestUtils.genesis(network, epoch, epochStartRound, nodes); + } + + /** + * A history holding this authority's epoch as the genesis and {@code next}'s epoch as its + * successor, signed by this authority's nodes 0, 1 and 2. + */ + public TrustBaseHistory trustBaseThrough(Authority next) { + TrustBaseHistory history = trustBase(); + appendSuccessor(history, next); + return history; + } + + /** Appends {@code next}'s epoch to a history whose tip is this authority's epoch. */ + public void appendSuccessor(TrustBaseHistory history, Authority next) { + TrustBaseEntry genesis = history.getTip().get(); + List members = new ArrayList<>(); + for (int i = 0; i < 4; i++) { + members.add(new TrustBaseMember(next.ids[i], next.signers[i].getPublicKey(), 1)); + } + TrustBaseEntry unsigned = new TrustBaseEntry(next.network.getId(), next.epoch, + next.epochStartRound, members, 3, null, null, genesis.entryId(), + Map.of("x", new byte[65])); + DataHash hash = new DataHasher(HashAlgorithm.SHA256).update(unsigned.sigBytes()).digest(); + Map signatures = new LinkedHashMap<>(); + for (int i = 0; i < 3; i++) { + signatures.put(ids[i], signers[i].sign(hash).encode()); + } + history.append(new TrustBaseEntry(next.network.getId(), next.epoch, next.epochStartRound, + members, 3, null, null, genesis.entryId(), signatures)); + } + + /** The same four nodes with the given voting weights (the threshold follows from them). */ + public TrustBaseHistory weightedTrustBase(long... weights) { + List nodes = new ArrayList<>(); + for (int i = 0; i < 4; i++) { + nodes.add(new TrustBaseMember(ids[i], signers[i].getPublicKey(), weights[i])); + } + return TrustBaseTestUtils.genesis(network, epoch, epochStartRound, nodes); } public NetworkId network() { diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java b/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java new file mode 100644 index 00000000..5fd3960e --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java @@ -0,0 +1,70 @@ +package org.unicitylabs.sdk.api.bft; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.Comparator; +import java.util.List; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseMember; +import org.unicitylabs.sdk.util.HexConverter; + +/** Test trust bases: a history holding one genesis entry, pinned by its own entry id. */ +public final class TrustBaseTestUtils { + + private TrustBaseTestUtils() { + } + + /** A history of one single-member genesis entry: network LOCAL, epoch 1, start round 1. */ + public static TrustBaseHistory singleNode(byte[] publicKey) { + return singleNode(NetworkId.LOCAL, "NODE", publicKey, 1, 1); + } + + /** A history of one single-member genesis entry. */ + public static TrustBaseHistory singleNode(NetworkId network, String nodeId, byte[] publicKey, + long epoch, long epochStartRound) { + return genesis(network, epoch, epochStartRound, + List.of(new TrustBaseMember(nodeId, publicKey, 1))); + } + + /** A history of one genesis entry of the given members, with the exact threshold. */ + public static TrustBaseHistory genesis(NetworkId network, long epoch, long epochStartRound, + List members) { + long total = 0; + for (TrustBaseMember member : members) { + total += member.getWeight(); + } + TrustBaseEntry entry = new TrustBaseEntry(network.getId(), epoch, epochStartRound, members, + total * 2 / 3 + 1, null, null, new byte[32], null); + TrustBaseHistory history = TrustBaseHistory.create(entry.entryId()); + history.append(entry); + return history; + } + + /** + * A history of one genesis entry from the recorded fields of a V1 JSON trust base (network, + * epoch, start round, nodes with key and stake): the corpus fixtures record real seals and the + * authority that signed them in that form. The threshold is the exact one for the weights. + */ + public static TrustBaseHistory fromLegacyJson(String json) { + try { + JsonNode node = new ObjectMapper().readTree(json); + List members = new ArrayList<>(); + for (JsonNode n : node.get("rootNodes")) { + members.add(new TrustBaseMember(n.get("nodeId").asText(), + HexConverter.decode(n.get("sigKey").asText()), n.get("stake").asLong())); + } + members.sort(Comparator.comparing(m -> m.getNodeId().getBytes(StandardCharsets.UTF_8), + java.util.Arrays::compareUnsigned)); + return genesis(NetworkId.fromId((short) node.get("networkId").asInt()), + Long.parseUnsignedLong(node.get("epoch").asText()) == 0 + ? 1 : Long.parseUnsignedLong(node.get("epoch").asText()), + Long.parseUnsignedLong(node.get("epochStartRound").asText()), members); + } catch (java.io.IOException e) { + throw new IllegalArgumentException(e); + } + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateBodyTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateBodyTest.java index acbcb298..e40b71b4 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateBodyTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateBodyTest.java @@ -13,7 +13,6 @@ import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.util.verification.VerificationStatus; class UnicityCertificateBodyTest { @@ -125,7 +124,7 @@ void aPartitionAboveTwoToThe31ParsesAndIsAnotherPartitionNotACrash() { .verifyCertificate(AUTHORITY.trustBase(), certificate); assertEquals(UnicityCertificateFailure.PARTITION_MISMATCH, legacy.getFailure()); OperationUnicityCertificateVerifier strict = (OperationUnicityCertificateVerifier) - new UnicityCertificateVerifier().beginOperation(VerificationPolicy.STRICT, null); + new UnicityCertificateVerifier().beginOperation(null); assertEquals(UnicityCertificateFailure.PARTITION_MISMATCH, strict.verifyCertificate(AUTHORITY.trustBase(), certificate).getFailure()); } @@ -165,7 +164,7 @@ void theCertifiedEmptyTreeCertificateRoundTripsAndVerifiesStrictly() { assertNull(decoded.getInputRecord().getHash()); assertNull(decoded.checkBody()); OperationUnicityCertificateVerifier strict = (OperationUnicityCertificateVerifier) - new UnicityCertificateVerifier().beginOperation(VerificationPolicy.STRICT, null); + new UnicityCertificateVerifier().beginOperation(null); assertSame(null, strict.verifyCertificate(AUTHORITY.trustBase(), decoded).getFailure()); assertEquals(VerificationStatus.OK, strict.verifyCertificate(AUTHORITY.trustBase(), decoded).getStatus()); diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateUtils.java b/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateUtils.java index b218c5e8..63b02a91 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateUtils.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateUtils.java @@ -108,7 +108,7 @@ public static UnicityCertificate generateCertificate( UnicitySeal seal = new UnicitySeal( NetworkId.LOCAL, 1L, - 0L, + 1L, timestamp, null, unicitySealHash.getData(), diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinsTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinsTest.java new file mode 100644 index 00000000..bdc2af3c --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinsTest.java @@ -0,0 +1,184 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.util.HexConverter; + +/** The release table: approved assets, the generated manifest, and the full chain of each row. */ +class ReleasePinsTest { + + /** The approved bundles of unicity-ids PR 11 at 513dc4fc (also shipped by the JS and Rust SDKs). */ + private static final String MAINNET_BUNDLE_SHA = + "9d01b8713cab42dab269e1ad6e244cf11e7f8c4b580682a98402db348b37bd52"; + private static final String TESTNET2_BUNDLE_SHA = + "5b0a4fb7bd6c2d71068c0e65659aa60733dcc9083e9290fc22c2dd8e8e60f08a"; + private static final String MANIFEST_SHA = + "7bbaad4fb41bc5e6d169a1c17d9834e792bd9cdceaf521faa8a25791d2dbe2c1"; + private static final String MAINNET_GENESIS = + "0b6f8143e19e2a585be3534e8f1062f36c3b9621e506158f10abfbc9a56f4e4c"; + private static final String TESTNET2_GENESIS = + "4b49eb2bb0729051b89a48668fd6ef1fda284aad2e10b7d5f23aad4b5faef37f"; + + private static byte[] resource(String name) { + try (InputStream in = ReleasePinsTest.class.getResourceAsStream("/release-pins/" + name)) { + return in.readAllBytes(); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + private static ReleasePin row(int networkId) { + for (ReleasePin pin : ReleasePins.ROWS) { + if (pin.getNetworkId().getId() == networkId) { + return pin; + } + } + throw new IllegalStateException("no row " + networkId); + } + + @Test + void theTableHoldsTheApprovedPublicNetworksAndNothingElse() { + assertEquals(2, ReleasePins.ROWS.size()); + ReleasePin mainnet = row(1); + ReleasePin testnet2 = row(4); + assertEquals(NetworkId.MAINNET, mainnet.getNetworkId()); + assertEquals(NetworkId.TESTNET2, testnet2.getNetworkId()); + assertEquals(MAINNET_BUNDLE_SHA, HexConverter.encode(mainnet.getBundleSha256())); + assertEquals(TESTNET2_BUNDLE_SHA, HexConverter.encode(testnet2.getBundleSha256())); + assertEquals(MAINNET_GENESIS, HexConverter.encode(mainnet.getGenesisEntryId())); + assertEquals(TESTNET2_GENESIS, HexConverter.encode(testnet2.getGenesisEntryId())); + // currently the genesis is the release tip, epoch 1 + for (ReleasePin pin : ReleasePins.ROWS) { + assertEquals(1, pin.getGenesisEpoch()); + assertEquals(1, pin.getPinnedEpoch()); + assertArrayEquals(pin.getGenesisEntryId(), pin.getPinnedEntryId()); + } + // the manifest is the same file the JS and Rust SDKs ship + assertEquals(MANIFEST_SHA, + HexConverter.encode(TrustBaseCacheKey.sha256Of(resource("manifest.json")))); + } + + @Test + void everyRowVerifiesTheFullChainFromItsGenesis() { + for (ReleasePin pin : ReleasePins.ROWS) { + ReleasePin.VerifiedReleasePin verified = pin.verify(ReleasePin.DEFAULT_LIMITS); + TrustBaseEntry tip = verified.getHistory().getTip().get(); + assertEquals(pin.getPinnedEpoch(), tip.getEpoch()); + assertArrayEquals(pin.getPinnedEntryId(), tip.entryId()); + assertEquals(pin.getNetworkId(), tip.getNetworkId()); + assertArrayEquals(pin.getBundle(), verified.getHistory().toBundle(), + "the embedded bundle is the canonical export"); + } + } + + /** The manifest regenerated from the bundles, in canonical form: sorted keys, 2 spaces, newline. */ + private static String generate(JsonNode existing) { + StringBuilder out = new StringBuilder("{\n \"networks\": [\n"); + String[][] files = {{"mainnet", "unicity-trustbase.mainnet.cbor"}, + {"testnet2", "unicity-trustbase.testnet2.cbor"}}; + for (int i = 0; i < files.length; i++) { + ReleasePin pin = ReleasePin.fromBundle(resource(files[i][1])); + out.append(" {\n") + .append(" \"bundle\": \"").append(files[i][1]).append("\",\n") + .append(" \"bundleSha256\": \"").append(HexConverter.encode(pin.getBundleSha256())) + .append("\",\n") + .append(" \"genesisEntryId\": \"").append(HexConverter.encode(pin.getGenesisEntryId())) + .append("\",\n") + .append(" \"genesisEpoch\": \"") + .append(Long.toUnsignedString(pin.getGenesisEpoch())).append("\",\n") + .append(" \"name\": \"").append(files[i][0]).append("\",\n") + .append(" \"networkId\": ").append(pin.getNetworkId().getId()).append(",\n") + .append(" \"pinnedEntryId\": \"").append(HexConverter.encode(pin.getPinnedEntryId())) + .append("\",\n") + .append(" \"pinnedEpoch\": \"").append(Long.toUnsignedString(pin.getPinnedEpoch())) + .append("\"\n") + .append(i == files.length - 1 ? " }\n" : " },\n"); + } + JsonNode source = existing.get("source"); + out.append(" ],\n \"source\": {\n") + .append(" \"commit\": \"").append(source.get("commit").asText()).append("\",\n") + .append(" \"pullRequest\": ").append(source.get("pullRequest").asInt()).append(",\n") + .append(" \"repository\": \"").append(source.get("repository").asText()).append("\"\n") + .append(" },\n \"version\": 1\n}\n"); + return out.toString(); + } + + @Test + void theManifestIsExactlyWhatTheGeneratorWritesFromTheBundles() throws IOException { + byte[] current = resource("manifest.json"); + String generated = generate(new ObjectMapper().readTree(current)); + if ("1".equals(System.getenv("UTB_RELEASE_PINS_UPDATE"))) { + Path file = Paths.get("src/main/resources/release-pins/manifest.json"); + Files.write(file, generated.getBytes(StandardCharsets.UTF_8)); + } + assertEquals(new String(current, StandardCharsets.UTF_8), generated, + "regenerate with UTB_RELEASE_PINS_UPDATE=1 ./gradlew test --tests '*ReleasePinsTest'"); + JsonNode manifest = new ObjectMapper().readTree(current); + assertEquals("513dc4fcf01ee802a97d59a5bc4e50ba64786d45", manifest.get("source").get("commit") + .asText()); + assertEquals(11, manifest.get("source").get("pullRequest").asInt()); + assertEquals("unicitynetwork/unicity-ids", manifest.get("source").get("repository").asText()); + } + + private static TrustBaseSession.Opened open(NetworkId network, List table, + MemoryTrustBaseStore store) throws Exception { + CompletableFuture f = TrustBaseSession.openPublic(network, null, + store, TrustBaseSessionOptions.of(Runnable::run).withTable(table)); + try { + return f.get(); + } catch (ExecutionException e) { + throw (Exception) e.getCause(); + } + } + + @Test + void aSessionOpensEachPublicNetworkFromTheBuiltInTable() throws Exception { + for (int id : new int[] {1, 4}) { + TrustBaseSession.Opened opened = open(NetworkId.fromId((short) id), ReleasePins.ROWS, + new MemoryTrustBaseStore()); + assertEquals(1, opened.getSession().history().getTip().get().getEpoch()); + assertTrue(opened.getSession().getKey().startsWith("utb/v1/" + id + "/")); + assertTrue(opened.getDiagnostics().isEmpty()); + } + // raw id 2 (the old testnet) has no row: an unnamed numeric id, not the public test network + assertThrows(UnknownNetworkException.class, + () -> open(NetworkId.fromId((short) 2), ReleasePins.ROWS, new MemoryTrustBaseStore())); + } + + @Test + void aTamperedRowFailsClosedAndIsNeverRescuedByTheCache() throws Exception { + ReleasePin good = row(4); + byte[] bundle = good.getBundle(); + bundle[bundle.length / 2] ^= 1; + ReleasePin tampered = new ReleasePin(good.getNetworkId(), good.getGenesisEpoch(), + good.getGenesisEntryId(), good.getPinnedEpoch(), good.getPinnedEntryId(), bundle, + good.getBundleSha256()); + MemoryTrustBaseStore store = new MemoryTrustBaseStore(); + // a perfectly good cache for the genuine pin does not help + store.put(TrustBaseCacheKey.of(good.getNetworkId(), good.getGenesisEntryId(), "public"), + good.getBundle()); + assertThrows(ReleasePinInvalidException.class, + () -> open(good.getNetworkId(), List.of(tampered), store)); + ReleasePin wrongDigest = new ReleasePin(good.getNetworkId(), good.getGenesisEpoch(), + good.getGenesisEntryId(), good.getPinnedEpoch(), good.getPinnedEntryId(), good.getBundle(), + row(1).getBundleSha256()); + assertThrows(ReleasePinInvalidException.class, + () -> open(good.getNetworkId(), List.of(wrongDigest), store)); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleTest.java new file mode 100644 index 00000000..6df8b37c --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseBundleTest.java @@ -0,0 +1,160 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseResponseWire.Fields; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseTestChain.Committee; +import org.unicitylabs.sdk.serializer.cbor.CborSerializer; + +/** The complete-bundle decoder and encoder, one refusal at a time. */ +class TrustBaseBundleTest { + + private static final TrustBaseBundleLimits LIMITS = new TrustBaseBundleLimits(1 << 20, 64); + + private final Committee c1 = new Committee(4, 1, 1); + private final Committee c2 = new Committee(4, 1, 2); + private final TrustBaseEntry g = TrustBaseTestChain.genesis(5, 1, 1, c1); + private final TrustBaseEntry e2 = + TrustBaseTestChain.successor(g, c1, c2, 10, TrustBaseTestChain.firstN(c1, 3)); + + private Fields fields(long status, Long next, byte[] end, long from, long effectiveEnd, + int network, TrustBaseEntry... entries) { + List raw = new ArrayList<>(); + for (TrustBaseEntry entry : entries) { + raw.add(entry.encode()); + } + return new Fields(effectiveEnd, end, raw, from, network, next, status); + } + + private Fields good() { + return fields(0, null, e2.entryId(), 1, 2, 5, g, e2); + } + + private static Fields with(Fields f, Long next, long status, byte[] end, long from, long effective, + int network) { + return new Fields(effective, end, f.getEntries(), from, network, next, status); + } + + private static TrustBaseBundleException refused(Fields f) { + return assertThrows(TrustBaseBundleException.class, + () -> TrustBaseBundle.decode(TrustBaseResponseWire.encode(f), LIMITS)); + } + + @Test + void aGoodBundleRoundTripsAndKeepsTheCanonicalBytesOfEachEntry() { + byte[] bytes = TrustBaseResponseWire.encode(good()); + TrustBaseBundle bundle = TrustBaseBundle.decode(bytes, LIMITS); + assertEquals(5, bundle.getNetworkId().getId()); + assertEquals(2, bundle.getEntries().size()); + assertArrayEquals(e2.encode(), bundle.getRaw().get(1)); + assertArrayEquals(bytes, TrustBaseBundle.encode(bundle.getEntries())); + assertArrayEquals(e2.entryId(), bundle.getTip().entryId()); + } + + @Test + void aOneEntryBundleHoldsAGenesisOnly() { + byte[] one = TrustBaseBundle.encode(List.of(g)); + assertEquals(1, TrustBaseBundle.decode(one, LIMITS).getEntries().size()); + byte[] partial = TrustBaseResponseWire.encode(fields(0, null, e2.entryId(), 2, 2, 5, e2)); + assertThrows(TrustBaseBundleException.class, () -> TrustBaseBundle.decode(partial, LIMITS)); + } + + @Test + void aStatusThatIsNotOkOrACursorOrNoEntriesOrNoEndIdIsRefused() { + Fields f = good(); + assertTrue(refused(with(f, null, 1, e2.entryId(), 1, 2, 5)).getMessage().contains("Status 1")); + assertTrue(refused(with(f, 3L, 0, e2.entryId(), 1, 2, 5)).getMessage().contains("cursor")); + assertTrue(refused(new Fields(2, e2.entryId(), List.of(), 1, 5, null, 0)).getMessage() + .contains("without entries")); + assertTrue(refused(with(f, null, 0, null, 1, 2, 5)).getMessage().contains("No end entry id")); + } + + @Test + void aWrongNetworkRangeOrEndIsRefused() { + Fields f = good(); + assertTrue(refused(with(f, null, 0, e2.entryId(), 1, 2, 6)).getMessage().contains("network")); + assertTrue(refused(with(f, null, 0, e2.entryId(), 2, 2, 5)).getMessage().contains("starts at")); + assertTrue(refused(with(f, null, 0, e2.entryId(), 1, 3, 5)).getMessage().contains("ends at")); + assertTrue(refused(with(f, null, 0, g.entryId(), 1, 2, 5)).getMessage().contains("end entry id")); + } + + @Test + void entriesThatSkipAnEpochOrDoNotLinkAreRefused() { + Committee c3 = new Committee(4, 1, 3); + TrustBaseEntry e3 = TrustBaseTestChain.successor(e2, c2, c3, 20, TrustBaseTestChain.firstN(c2, 3)); + assertTrue(refused(fields(0, null, e3.entryId(), 1, 3, 5, g, e3)).getMessage().contains("does not follow")); + TrustBaseEntry stranger = TrustBaseTestChain.successor( + TrustBaseTestChain.genesis(5, 1, 2, c2), c2, c3, 20, TrustBaseTestChain.firstN(c2, 3)); + assertTrue(refused(fields(0, null, stranger.entryId(), 1, 2, 5, g, stranger)).getMessage() + .contains("does not link")); + } + + @Test + void theBudgetsAreCheckedBeforeAnythingIsRead() { + byte[] bytes = TrustBaseResponseWire.encode(good()); + assertThrows(TrustBaseEncodingException.class, + () -> TrustBaseBundle.decode(bytes, new TrustBaseBundleLimits(bytes.length - 1, 64))); + TrustBaseEncodingException count = assertThrows(TrustBaseEncodingException.class, + () -> TrustBaseBundle.decode(bytes, new TrustBaseBundleLimits(1 << 20, 1))); + assertTrue(count.getMessage().contains("entries"), count.getMessage()); + assertThrows(TrustBaseEncodingException.class, + () -> TrustBaseBundle.decode(bytes, new TrustBaseBundleLimits(1 << 20, 64, e2.encode().length - 1))); + TrustBaseBundle.decode(bytes, new TrustBaseBundleLimits(bytes.length, 2, e2.encode().length)); + } + + private static byte[] envelopeWithEntries(byte[] entryArray) { + return CborSerializer.encodeTag(TrustBaseResponseWire.RESPONSE_TAG, + CborSerializer.encodeArray(CborSerializer.encodeUnsignedInteger(1), + CborSerializer.encodeUnsignedInteger(5), CborSerializer.encodeUnsignedInteger(0), + CborSerializer.encodeUnsignedInteger(1), CborSerializer.encodeUnsignedInteger(1), + CborSerializer.encodeNull(), entryArray, CborSerializer.encodeNull())); + } + + @Test + void moreEntriesThanTheBudgetAreRefusedFromTheArrayHeader() { + byte[][] hundred = new byte[100][]; + Arrays.fill(hundred, CborSerializer.encodeNull()); + byte[] bytes = envelopeWithEntries(CborSerializer.encodeArray(hundred)); + TrustBaseEncodingException e = assertThrows(TrustBaseEncodingException.class, + () -> TrustBaseBundle.decode(bytes, LIMITS)); + assertEquals("More than 64 entries.", e.getMessage()); + } + + @Test + void anEntryCountHeaderOfFourBillionIsRefusedAsAnEncodingError() { + byte[] hugeArray = {(byte) 0x9a, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff}; + byte[] bytes = envelopeWithEntries(hugeArray); + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseBundle.decode(bytes, LIMITS)); + } + + @Test + void theEnvelopeIsStrict() { + byte[] good = TrustBaseResponseWire.encode(good()); + byte[] trailing = Arrays.copyOf(good, good.length + 1); + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseBundle.decode(trailing, LIMITS)); + byte[] wrongTag = CborSerializer.encodeTag(39016L, CborSerializer.encodeArray()); + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseBundle.decode(wrongTag, LIMITS)); + // status 8 is undefined, a network above 65535 is a bad encoding + byte[] status8 = TrustBaseResponseWire.encode(with(good(), null, 8, e2.entryId(), 1, 2, 5)); + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseBundle.decode(status8, LIMITS)); + byte[] shortEnd = TrustBaseResponseWire.encode(with(good(), null, 0, new byte[31], 1, 2, 5)); + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseBundle.decode(shortEnd, LIMITS)); + } + + @Test + void encodeRefusesEmptyUnlinkedOrMixedNetworkChains() { + assertThrows(TrustBaseBundleException.class, () -> TrustBaseBundle.encode(List.of())); + assertThrows(TrustBaseBundleException.class, () -> TrustBaseBundle.encode(List.of(e2))); + TrustBaseEntry other = TrustBaseTestChain.successor(TrustBaseTestChain.genesis(5, 1, 2, c2), c2, c1, + 10, TrustBaseTestChain.firstN(c2, 3)); + assertThrows(TrustBaseBundleException.class, () -> TrustBaseBundle.encode(List.of(g, other))); + assertThrows(TrustBaseBundleException.class, () -> TrustBaseBundle.encode(List.of(g, g))); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntryLimitsTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntryLimitsTest.java new file mode 100644 index 00000000..5a5e9e4b --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntryLimitsTest.java @@ -0,0 +1,293 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.fasterxml.jackson.databind.JsonNode; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.crypto.hash.DataHash; +import org.unicitylabs.sdk.crypto.hash.DataHasher; +import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; +import org.unicitylabs.sdk.crypto.secp256k1.SigningService; +import org.unicitylabs.sdk.serializer.cbor.CborSerializer; +import org.unicitylabs.sdk.util.HexConverter; + +/** Owner §49 bounds of an entry: 128 KiB, 256 members, 256 signatures, 128-byte node ids. */ +class TrustBaseEntryLimitsTest { + + private static final JsonNode MAX = TrustBaseVectors.maxEntry(); + + private static byte[] secret(int i) { + byte[] secret = new byte[32]; + secret[30] = (byte) ((i + 1) >> 8); + secret[31] = (byte) (i + 1); + return secret; + } + + private static byte[] key(int i) { + return new SigningService(secret(i)).getPublicKey(); + } + + private static TrustBaseEntry genesis(int members) { + List list = new ArrayList<>(); + for (int i = 0; i < members; i++) { + list.add(new TrustBaseMember(String.format("n%04d", i), key(i), 1)); + } + return new TrustBaseEntry(5, 1, 1, list, members * 2L / 3 + 1, null, null, new byte[32], null); + } + + private static TrustBaseEntry successorWithSignatures(int signatures) { + List one = List.of(new TrustBaseMember("a", key(0), 1)); + Map map = new HashMap<>(); + for (int i = 0; i < signatures; i++) { + map.put(String.format("s%04d", i), new byte[65]); + } + return new TrustBaseEntry(5, 2, 10, one, 1, null, null, new byte[] {7, 7, 7, 7, 7, 7, 7, 7, + 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7}, map); + } + + @Test + void theMaximumEntryDecodesAndReEncodesWithTheSharedIdAndFitsTheBound() { + assertEquals(128 * 1024, TrustBaseEntry.MAX_ENTRY_BYTES); + assertEquals(95365, MAX.get("entryBytes").asInt()); + for (String field : new String[] {"genesis", "entry"}) { + byte[] bytes = HexConverter.decode(MAX.get(field).asText()); + assertTrue(bytes.length <= MAX.get("entryBytes").asInt()); + TrustBaseEntry entry = TrustBaseEntry.decode(bytes); + assertEquals(MAX.get("network").asInt(), entry.getNetworkId().getId()); + assertEquals(MAX.get("members").asInt(), entry.getMembers().size()); + for (TrustBaseMember member : entry.getMembers()) { + assertEquals(MAX.get("nodeIdBytes").asInt(), + member.getNodeId().getBytes(StandardCharsets.UTF_8).length); + } + assertArrayEquals(bytes, entry.encode()); + assertEquals(MAX.get(field.equals("genesis") ? "genesisId" : "entryId").asText(), + HexConverter.encode(entry.entryId())); + } + } + + @Test + void theMaximumEntryIsSignedByAllTheGenesisMembers() { + TrustBaseEntry genesis = TrustBaseEntry.decode(HexConverter.decode(MAX.get("genesis").asText())); + TrustBaseEntry entry = TrustBaseEntry.decode(HexConverter.decode(MAX.get("entry").asText())); + assertEquals(256, entry.getSignatures().size()); + entry.verifySuccessor(genesis); + } + + @Test + void anEntryOverTheByteBoundIsRefusedBeforeItIsParsed() { + byte[] valid = HexConverter.decode(MAX.get("entry").asText()); + byte[] atBound = Arrays.copyOf(valid, TrustBaseEntry.MAX_ENTRY_BYTES); + byte[] overBound = Arrays.copyOf(valid, TrustBaseEntry.MAX_ENTRY_BYTES + 1); + // at the bound the bytes are examined (and fail for trailing bytes), over it they are not + TrustBaseEncodingException over = + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseEntry.decode(overBound)); + assertEquals("The entry exceeds the size bound.", over.getMessage()); + TrustBaseEncodingException at = + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseEntry.decode(atBound)); + assertTrue(!at.getMessage().contains("size bound"), at.getMessage()); + } + + @Test + void twoHundredFiftySixMembersAreValidAndAnEntryOfTwoHundredFiftySevenIsRefused() { + TrustBaseEntry at = genesis(256); + assertEquals(at, TrustBaseEntry.decode(at.encode())); + TrustBaseEntry over = genesis(257); + TrustBaseEncodingException e = + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseEntry.decode(over.encode())); + assertTrue(e.getMessage().contains("members"), e.getMessage()); + } + + @Test + void validateRefusesAMemberCountOutsideOneTo256() { + assertThrows(TrustBaseInvalidException.class, () -> genesis(257).validate()); + assertThrows(TrustBaseInvalidException.class, () -> genesis(0).validate()); + } + + @Test + void anEntryCarriesAtMost256SignaturesHoweverSmallItIs() { + TrustBaseEntry at = successorWithSignatures(256); + assertEquals(at, TrustBaseEntry.decode(at.encode())); + + TrustBaseEntry over = successorWithSignatures(257); + byte[] bytes = over.encode(); + assertTrue(bytes.length < TrustBaseEntry.MAX_ENTRY_BYTES, "inside the byte cap: the count refuses it"); + TrustBaseEncodingException e = + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseEntry.decode(bytes)); + assertTrue(e.getMessage().contains("pairs") || e.getMessage().contains("signatures"), + e.getMessage()); + // the slack of a parser (272) is not an admission allowance + byte[] slack = successorWithSignatures(272).encode(); + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseEntry.decode(slack)); + } + + @Test + void aSuppliedWitnessOf257SignaturesIsRefusedBeforeAnySignatureWork() { + TrustBaseEntry committee = genesis(4); + Map junk = new HashMap<>(); + for (int i = 0; i < 257; i++) { + junk.put(String.format("n%04d", i % 4) + i, new byte[65]); + } + TrustBaseSignatureException over = assertThrows(TrustBaseSignatureException.class, + () -> committee.verifyQuorumSignatures(new byte[] {1}, junk)); + assertEquals("Too many signatures.", over.getMessage()); + + Map atCap = new HashMap<>(); + for (int i = 0; i < 256; i++) { + atCap.put(String.format("n%04d", i % 4) + i, new byte[65]); + } + TrustBaseSignatureException reached = assertThrows(TrustBaseSignatureException.class, + () -> committee.verifyQuorumSignatures(new byte[] {1}, atCap)); + assertTrue(!reached.getMessage().equals("Too many signatures."), reached.getMessage()); + } + + @Test + void aNodeIdOf129BytesAndOfZeroBytesIsInvalid() { + List long129 = List.of( + new TrustBaseMember("x".repeat(129), key(0), 1)); + assertThrows(TrustBaseInvalidException.class, () -> new TrustBaseEntry(5, 1, 1, long129, 1, + null, null, new byte[32], null).validate()); + List long128 = List.of( + new TrustBaseMember("x".repeat(128), key(0), 1)); + new TrustBaseEntry(5, 1, 1, long128, 1, null, null, new byte[32], null).validate(); + List empty = List.of(new TrustBaseMember("", key(0), 1)); + assertThrows(TrustBaseInvalidException.class, () -> new TrustBaseEntry(5, 1, 1, empty, 1, + null, null, new byte[32], null).validate()); + } + + @Test + void aWeightOutsideOneToTwoToThe40IsInvalidWhateverTheThreshold() { + // the threshold is the exact one for the weight, so only the weight rule can refuse the entry + for (long weight : new long[] {0, (1L << 40) + 1}) { + List one = List.of(new TrustBaseMember("a", key(0), weight)); + TrustBaseInvalidException e = assertThrows(TrustBaseInvalidException.class, + () -> new TrustBaseEntry(5, 1, 1, one, (weight * 2) / 3 + 1, null, null, new byte[32], + null).validate(), Long.toUnsignedString(weight)); + assertTrue(e.getMessage().contains("weight"), e.getMessage()); + } + List negative = List.of(new TrustBaseMember("a", key(0), -1L)); + TrustBaseInvalidException e = assertThrows(TrustBaseInvalidException.class, + () -> new TrustBaseEntry(5, 1, 1, negative, 1, null, null, new byte[32], null).validate()); + assertTrue(e.getMessage().contains("weight"), e.getMessage()); + List max = List.of(new TrustBaseMember("a", key(0), 1L << 40)); + new TrustBaseEntry(5, 1, 1, max, ((1L << 40) * 2) / 3 + 1, null, null, new byte[32], null) + .validate(); + } + + @Test + void aSignatureMustBeTheCanonical65ByteRecoverableForm() { + TrustBaseEntry committee = genesis(4); + byte[] data = new byte[] {1, 2, 3}; + DataHash hash = new DataHasher(HashAlgorithm.SHA256).update(data).digest(); + byte[] good = new SigningService(secret(0)).sign(hash).encode(); + assertEquals(65, good.length); + assertEquals(1L, committee.verifySignature(data, good, "n0000")); + + // the 64-byte compact form of a valid signature + assertThrows(TrustBaseSignatureException.class, + () -> committee.verifySignature(data, Arrays.copyOf(good, 64), "n0000")); + // recovery id outside 0..3 + byte[] badRecovery = good.clone(); + badRecovery[64] = 4; + assertThrows(TrustBaseSignatureException.class, + () -> committee.verifySignature(data, badRecovery, "n0000")); + // a wrong recovery id recovers another key + byte[] otherRecovery = good.clone(); + otherRecovery[64] = (byte) (good[64] ^ 1); + assertThrows(TrustBaseSignatureException.class, + () -> committee.verifySignature(data, otherRecovery, "n0000")); + // the high-S twin of a valid signature + java.math.BigInteger n = new java.math.BigInteger( + "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", 16); + java.math.BigInteger s = new java.math.BigInteger(1, Arrays.copyOfRange(good, 32, 64)); + byte[] twin = good.clone(); + byte[] highS = n.subtract(s).toByteArray(); + Arrays.fill(twin, 32, 64, (byte) 0); + System.arraycopy(highS, Math.max(0, highS.length - 32), twin, 64 - Math.min(32, highS.length), + Math.min(32, highS.length)); + twin[64] = (byte) (good[64] ^ 1); + assertThrows(TrustBaseSignatureException.class, + () -> committee.verifySignature(data, twin, "n0000")); + // another member's key, and a stranger + assertThrows(TrustBaseSignatureException.class, + () -> committee.verifySignature(data, good, "n0001")); + assertThrows(TrustBaseSignatureException.class, + () -> committee.verifySignature(data, good, "nobody")); + } + + @Test + void aNonGenesisEntryHasItsPredecessorIdAndNullSignatureFieldInSigBytes() { + TrustBaseEntry entry = TrustBaseEntry.decode(HexConverter.decode(MAX.get("entry").asText())); + byte[] sigBytes = entry.sigBytes(); + // the signature field is the last element and is CBOR null in sigBytes + assertEquals((byte) 0xf6, sigBytes[sigBytes.length - 1]); + assertArrayEquals(CborSerializer.encodeNull(), + Arrays.copyOfRange(sigBytes, sigBytes.length - 1, sigBytes.length)); + } + + private static TrustBaseEntry withMembers(TrustBaseMember... members) { + return new TrustBaseEntry(5, 1, 1, List.of(members), members.length * 2L / 3 + 1, null, null, + new byte[32], null); + } + + @Test + void membersAreSortedByRawUtf8BytesNotByJavaStringOrder() { + // U+FF5E (EF BD 9E) sorts before U+1F600 (F0 9F 98 80) as bytes; String.compareTo says the opposite + String bmp = "\uff5e"; + String astral = "\ud83d\ude00"; + assertTrue(bmp.compareTo(astral) > 0); + withMembers(new TrustBaseMember(bmp, key(0), 1), new TrustBaseMember(astral, key(1), 1)) + .validate(); + assertThrows(TrustBaseInvalidException.class, () -> withMembers( + new TrustBaseMember(astral, key(0), 1), new TrustBaseMember(bmp, key(1), 1)).validate()); + } + + @Test + void duplicateOrUnsortedMemberIdsAreInvalid() { + assertThrows(TrustBaseInvalidException.class, () -> withMembers( + new TrustBaseMember("a", key(0), 1), new TrustBaseMember("a", key(1), 1)).validate()); + assertThrows(TrustBaseInvalidException.class, () -> withMembers( + new TrustBaseMember("b", key(0), 1), new TrustBaseMember("a", key(1), 1)).validate()); + } + + @Test + void twoMembersCannotShareASigningKey() { + TrustBaseInvalidException e = assertThrows(TrustBaseInvalidException.class, () -> withMembers( + new TrustBaseMember("a", key(0), 1), new TrustBaseMember("b", key(0), 1)).validate()); + assertTrue(e.getMessage().contains("share a signing key"), e.getMessage()); + } + + @Test + void aKeyThatIsNotACompressedPointIsInvalid() { + byte[] uncompressedPrefix = key(0); + uncompressedPrefix[0] = 0x04; + byte[] notOnCurve = new byte[33]; + notOnCurve[0] = 0x02; + notOnCurve[32] = 5; + for (byte[] bad : new byte[][] {uncompressedPrefix, notOnCurve, new byte[33], + Arrays.copyOf(key(0), 32)}) { + assertThrows(TrustBaseInvalidException.class, + () -> withMembers(new TrustBaseMember("a", bad, 1)).validate()); + } + } + + @Test + void signaturesAreHeldInRawUtf8ByteOrder() { + Map map = new HashMap<>(); + map.put("\ud83d\ude00", new byte[65]); + map.put("\uff5e", new byte[65]); + map.put("a", new byte[65]); + TrustBaseEntry entry = new TrustBaseEntry(5, 2, 10, + List.of(new TrustBaseMember("a", key(0), 1)), 1, null, null, new byte[] {7, 7, 7, 7, 7, 7, + 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7}, map); + assertEquals(List.of("a", "\uff5e", "\ud83d\ude00"), new ArrayList<>(entry.getSignatures().keySet())); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntryVectorsTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntryVectorsTest.java new file mode 100644 index 00000000..0fcddce5 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntryVectorsTest.java @@ -0,0 +1,84 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.fasterxml.jackson.databind.JsonNode; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.util.HexConverter; + +/** The shared bft-go-base vectors: entries (ids, sigBytes) and the decode verdicts. */ +class TrustBaseEntryVectorsTest { + + private static final JsonNode VECTORS = TrustBaseVectors.shared(); + + @Test + void everySharedEntryDecodesAndReEncodesToTheSameBytesWithTheSharedIds() { + int seen = 0; + for (JsonNode vector : VECTORS.get("entries")) { + byte[] bytes = HexConverter.decode(vector.get("hex").asText()); + TrustBaseEntry entry = TrustBaseEntry.decode(bytes); + String name = vector.get("name").asText(); + assertArrayEquals(bytes, entry.encode(), name); + assertEquals(vector.get("sigBytes").asText(), HexConverter.encode(entry.sigBytes()), name); + assertEquals(vector.get("entryId").asText(), HexConverter.encode(entry.entryId()), name); + seen++; + } + assertEquals(5, seen); + } + + @Test + void theSignatureSetDoesNotChangeTheEntryId() { + TrustBaseEntry abc = entry("epoch2-signed-abc"); + TrustBaseEntry abd = entry("epoch2-signed-abd"); + assertTrue(!java.util.Arrays.equals(abc.encode(), abd.encode())); + assertArrayEquals(abc.entryId(), abd.entryId()); + assertArrayEquals(abc.sigBytes(), abd.sigBytes()); + } + + @Test + void everyDecodeVectorHasTheSharedVerdictAndErrorClass() { + List checked = new ArrayList<>(); + for (JsonNode vector : VECTORS.get("decode")) { + String name = vector.get("name").asText(); + byte[] bytes = HexConverter.decode(vector.get("hex").asText()); + if (vector.get("valid").asBoolean()) { + TrustBaseEntry.decode(bytes); + } else { + String errorClass = vector.get("errorClass").asText(); + Class expected = errorClass.equals("encoding") + ? TrustBaseEncodingException.class : TrustBaseInvalidException.class; + assertThrows(expected, () -> TrustBaseEntry.decode(bytes), name); + } + checked.add(name); + } + assertEquals(15, checked.size()); + } + + @Test + void aSharedSuccessorVerifiesAgainstItsPredecessorAndNotAgainstAWrongOne() { + TrustBaseEntry genesis = entry("genesis"); + TrustBaseEntry epoch2 = entry("epoch2-signed-abc"); + epoch2.verifySuccessor(genesis); + entry("epoch2-signed-abd").verifySuccessor(genesis); + assertThrows(TrustBaseChainException.class, () -> genesis.verifySuccessor(genesis)); + assertThrows(TrustBaseChainException.class, () -> epoch2.verifySuccessor(epoch2)); + // epoch 3 is not a successor of the genesis + assertThrows(TrustBaseChainException.class, + () -> entry("epoch3-signed-abc").verifySuccessor(genesis)); + entry("epoch3-signed-abc").verifySuccessor(epoch2); + } + + private static TrustBaseEntry entry(String name) { + for (JsonNode vector : VECTORS.get("entries")) { + if (vector.get("name").asText().equals(name)) { + return TrustBaseEntry.decode(HexConverter.decode(vector.get("hex").asText())); + } + } + throw new AssertionError(name); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryRulesTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryRulesTest.java new file mode 100644 index 00000000..08614c66 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryRulesTest.java @@ -0,0 +1,313 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.fasterxml.jackson.databind.JsonNode; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseTestChain.Committee; +import org.unicitylabs.sdk.util.HexConverter; + +/** History rules one at a time, weighted quorums, 256 to 4, the maximum entry, concurrency. */ +class TrustBaseHistoryRulesTest { + + private static final JsonNode MAX = TrustBaseVectors.maxEntry(); + private static final TrustBaseBundleLimits LIMITS = new TrustBaseBundleLimits(1 << 20, 64); + + private final Committee c1 = new Committee(4, 1, 1); + private final Committee c2 = new Committee(4, 1, 2); + private final Committee c3 = new Committee(4, 1, 3); + private final TrustBaseEntry g = TrustBaseTestChain.genesis(5, 1, 1, c1); + private final TrustBaseEntry e2 = + TrustBaseTestChain.successor(g, c1, c2, 10, TrustBaseTestChain.firstN(c1, 3)); + private final TrustBaseEntry e3 = + TrustBaseTestChain.successor(e2, c2, c3, 20, TrustBaseTestChain.firstN(c2, 3)); + + private TrustBaseHistory pinned() { + TrustBaseHistory history = TrustBaseHistory.create(g.entryId()); + history.append(g); + return history; + } + + @Test + void startsEmptyAndAcceptsThePinnedGenesisOnly() { + TrustBaseHistory history = TrustBaseHistory.create(g.entryId()); + assertTrue(history.isEmpty()); + assertFalse(history.getTip().isPresent()); + assertFalse(history.getNetworkId().isPresent()); + assertEquals(TrustBaseAppendOutcome.APPENDED, history.append(g)); + assertFalse(history.isEmpty()); + assertEquals(1, history.getTip().get().getEpoch()); + assertEquals(5, history.getNetworkId().get().getId()); + } + + @Test + void keepsItsOwnCopyOfThePinAndAnswersACopy() { + byte[] pin = g.entryId(); + TrustBaseHistory history = TrustBaseHistory.create(pin); + java.util.Arrays.fill(pin, (byte) 0); + assertEquals(TrustBaseAppendOutcome.APPENDED, history.append(g)); + byte[] answered = history.getGenesisPin(); + java.util.Arrays.fill(answered, (byte) 0); + assertArrayEquals(g.entryId(), history.getGenesisPin()); + } + + @Test + void refusesAGenesisThatIsNotThePinnedIdentityAndAPinThatIsNot32Bytes() { + TrustBaseHistory history = TrustBaseHistory.create(new byte[32]); + TrustBaseChainException e = assertThrows(TrustBaseChainException.class, () -> history.append(g)); + assertTrue(e.getMessage().contains("not the pinned identity")); + assertTrue(history.isEmpty()); + assertThrows(TrustBaseInvalidException.class, () -> TrustBaseHistory.create(new byte[31])); + } + + @Test + void refusesAFirstEntryThatIsNotAGenesisWhateverThePin() { + TrustBaseHistory history = TrustBaseHistory.create(e2.entryId()); + assertThrows(TrustBaseInvalidException.class, () -> history.append(e2)); + } + + @Test + void appendsConsecutiveEntriesAndReSentOnesAreAlreadyHeld() { + TrustBaseHistory history = pinned(); + assertEquals(TrustBaseAppendOutcome.APPENDED, history.append(e2)); + assertEquals(TrustBaseAppendOutcome.ALREADY_HELD, history.append(e2)); + assertEquals(TrustBaseAppendOutcome.ALREADY_HELD, history.append(g)); + TrustBaseEntry otherQuorum = + TrustBaseTestChain.successor(g, c1, c2, 10, List.of("m0001", "m0002", "m0003")); + assertArrayEquals(e2.entryId(), otherQuorum.entryId()); + assertEquals(TrustBaseAppendOutcome.ALREADY_HELD, history.append(otherQuorum)); + assertEquals(2, history.getEntries().size()); + } + + @Test + void aBadWitnessForAHeldEpochIsAnErrorNotAnAlreadyHeld() { + TrustBaseHistory history = pinned(); + history.append(e2); + TrustBaseEntry badWitness = + TrustBaseTestChain.successor(g, c1, c2, 10, TrustBaseTestChain.firstN(c1, 2)); + assertThrows(TrustBaseSignatureException.class, () -> history.append(badWitness)); + } + + @Test + void aGapIsReportedWithBothEpochsAndAppendsNothing() { + TrustBaseHistory history = pinned(); + TrustBaseGapException gap = assertThrows(TrustBaseGapException.class, () -> history.append(e3)); + assertEquals(3, gap.getEpoch()); + assertEquals(1, gap.getTipEpoch()); + assertEquals(1, history.getEntries().size()); + } + + @Test + void aDifferentEntryForAHeldEpochIsAConflictWithBothIdsAndNothingChanges() { + TrustBaseHistory history = pinned(); + history.append(e2); + Committee other = new Committee(4, 1, 9); + TrustBaseEntry fork = TrustBaseTestChain.successor(g, c1, other, 10, TrustBaseTestChain.firstN(c1, 3)); + TrustBaseConflictException e = + assertThrows(TrustBaseConflictException.class, () -> history.append(fork)); + assertEquals(2, e.getEpoch()); + assertFalse(e.isAuthenticated()); + assertArrayEquals(e2.entryId(), e.getDetails().getHeldEntryId()); + assertArrayEquals(fork.entryId(), e.getDetails().getOfferedEntryId()); + assertEquals(2, history.getEntries().size()); + assertArrayEquals(e2.entryId(), history.getTip().get().entryId()); + } + + @Test + void anEntryBeforeTheGenesisEpochIsRefusedAsSuch() { + TrustBaseEntry late = TrustBaseTestChain.genesis(5, 4, 100, c1); + TrustBaseHistory history = TrustBaseHistory.create(late.entryId()); + history.append(late); + TrustBaseEntry early = TrustBaseTestChain.genesis(5, 2, 50, c2); + assertThrows(TrustBaseBeforeGenesisException.class, () -> history.append(early)); + } + + @Test + void aSuccessorWithAWrongPredecessorOrNetworkOrStartRoundIsAChainError() { + TrustBaseHistory history = pinned(); + // predecessor link of another chain + TrustBaseEntry elsewhere = TrustBaseTestChain.successor(TrustBaseTestChain.genesis(5, 1, 2, c3), + c3, c2, 10, TrustBaseTestChain.firstN(c3, 3)); + assertThrows(TrustBaseChainException.class, () -> history.append(elsewhere)); + // a start round that does not advance + TrustBaseEntry flat = TrustBaseTestChain.successor(g, c1, c2, 1, TrustBaseTestChain.firstN(c1, 3)); + assertThrows(TrustBaseChainException.class, () -> history.append(flat)); + // another network + TrustBaseEntry g6 = TrustBaseTestChain.genesis(6, 1, 1, c1); + TrustBaseEntry n6 = TrustBaseTestChain.successor(g6, c1, c2, 10, TrustBaseTestChain.firstN(c1, 3)); + assertThrows(TrustBaseChainException.class, () -> history.append(n6)); + assertEquals(1, history.getEntries().size()); + } + + @Test + void aStartRoundAbove2To63OrdersAsUnsignedAndEpochsCountAsUnsigned() { + long high = Long.MIN_VALUE + 5; // 2^63 + 5 + TrustBaseEntry e = TrustBaseTestChain.successor(g, c1, c2, high, TrustBaseTestChain.firstN(c1, 3)); + TrustBaseHistory history = pinned(); + history.append(e); + TrustBaseEntry next = TrustBaseTestChain.successor(e, c2, c3, -1L, TrustBaseTestChain.firstN(c2, 3)); + history.append(next); + // a round that would be larger signed but is smaller unsigned + TrustBaseEntry back = TrustBaseTestChain.successor(next, c3, c1, 7, TrustBaseTestChain.firstN(c3, 3)); + assertThrows(TrustBaseChainException.class, () -> history.append(back)); + assertEquals(high, history.epochEndRound(1).getAsLong()); + } + + @Test + void epochsCrossingTwoToThe63CountAsUnsigned() { + TrustBaseEntry high = TrustBaseTestChain.genesis(5, Long.MAX_VALUE, 1, c1); + TrustBaseHistory history = TrustBaseHistory.create(high.entryId()); + history.append(high); + TrustBaseEntry next = TrustBaseTestChain.successor(high, c1, c2, 10, TrustBaseTestChain.firstN(c1, 3)); + assertEquals(Long.MIN_VALUE, next.getEpoch()); + assertEquals(TrustBaseAppendOutcome.APPENDED, history.append(next)); + assertEquals(TrustBaseAppendOutcome.ALREADY_HELD, history.append(next)); + assertTrue(history.entryForEpoch(Long.MIN_VALUE).isPresent()); + assertEquals(10, history.epochEndRound(Long.MAX_VALUE).getAsLong()); + // two epochs ahead is a gap, not "an older entry" + TrustBaseEntry far = TrustBaseTestChain.successor(next, c2, c3, 20, TrustBaseTestChain.firstN(c2, 3)); + TrustBaseHistory fresh = TrustBaseHistory.create(high.entryId()); + fresh.append(high); + assertThrows(TrustBaseGapException.class, () -> fresh.append(far)); + } + + @Test + void entryForEpochAndEpochEndRound() { + TrustBaseHistory history = pinned(); + history.append(e2); + assertFalse(history.entryForEpoch(0).isPresent()); + assertTrue(history.entryForEpoch(1).isPresent()); + assertTrue(history.entryForEpoch(2).isPresent()); + assertFalse(history.entryForEpoch(3).isPresent()); + assertFalse(history.entryForEpoch(-1L).isPresent()); + assertEquals(10, history.epochEndRound(1).getAsLong()); + assertFalse(history.epochEndRound(2).isPresent()); + assertFalse(history.epochEndRound(-1L).isPresent()); + } + + @Test + void aWeightedQuorumNeedsMoreThanTwoThirdsOfTheWeightNotOfTheSigners() { + // weights 5,1,1,1: a alone is 5 of 6 needed, a+b is 6 + List members = new ArrayList<>(); + Committee base = new Committee(4, 1, 4); + long[] weights = {5, 1, 1, 1}; + for (int i = 0; i < 4; i++) { + TrustBaseMember m = base.members.get(i); + members.add(new TrustBaseMember(m.getNodeId(), m.getSigKey(), weights[i])); + } + TrustBaseEntry heavy = new TrustBaseEntry(5, 1, 1, members, 6, null, null, new byte[32], null); + heavy.validate(); + TrustBaseHistory history = TrustBaseHistory.create(heavy.entryId()); + history.append(heavy); + for (List signers : List.of(List.of("m0000"), List.of("m0001", "m0002", "m0003"))) { + TrustBaseEntry below = successorOf(heavy, base, signers); + assertThrows(TrustBaseSignatureException.class, () -> history.append(below)); + } + history.append(successorOf(heavy, base, List.of("m0000", "m0001"))); + } + + private TrustBaseEntry successorOf(TrustBaseEntry previous, Committee signing, List signers) { + return TrustBaseTestChain.successor(previous, signing, c2, 10, signers); + } + + @Test + void overlapOfTwoSignerSetsIsEnoughTheSameEntryIsHeldOnce() { + Committee big = new Committee(256, 1, 5); + TrustBaseEntry big1 = TrustBaseTestChain.genesis(5, 1, 1, big); + assertEquals(171, big1.getQuorumThreshold()); + TrustBaseHistory history = TrustBaseHistory.create(big1.entryId()); + history.append(big1); + TrustBaseEntry exact = TrustBaseTestChain.successor(big1, big, c2, 10, TrustBaseTestChain.firstN(big, 171)); + assertEquals(TrustBaseAppendOutcome.APPENDED, history.append(exact)); + List tail = new ArrayList<>(big.secrets.keySet()).subList(85, 256); + TrustBaseEntry overlap = TrustBaseTestChain.successor(big1, big, c2, 10, tail); + assertEquals(171, tail.size()); + assertEquals(TrustBaseAppendOutcome.ALREADY_HELD, history.append(overlap)); + TrustBaseEntry short1 = TrustBaseTestChain.successor(big1, big, c2, 10, TrustBaseTestChain.firstN(big, 170)); + assertThrows(TrustBaseSignatureException.class, () -> new TrustBaseHistoryProbe(big1).append(short1)); + } + + /** A fresh history holding only the genesis. */ + private static final class TrustBaseHistoryProbe { + + private final TrustBaseHistory history; + + TrustBaseHistoryProbe(TrustBaseEntry genesis) { + this.history = TrustBaseHistory.create(genesis.entryId()); + this.history.append(genesis); + } + + void append(TrustBaseEntry entry) { + this.history.append(entry); + } + } + + @Test + void a256MemberCommitteeHandsOverToFourMembersWith256PredecessorSignatures() { + Committee big = new Committee(256, 1, 6); + TrustBaseEntry big1 = TrustBaseTestChain.genesis(5, 1, 1, big); + Committee four = new Committee(4, 1, 7); + TrustBaseEntry small = TrustBaseTestChain.successor(big1, big, four, 10, new ArrayList<>(big.secrets.keySet())); + assertEquals(256, small.getSignatures().size()); + assertEquals(4, small.getMembers().size()); + TrustBaseEntry decoded = TrustBaseEntry.decode(small.encode()); + TrustBaseHistory history = TrustBaseHistory.create(big1.entryId()); + history.append(big1); + assertEquals(TrustBaseAppendOutcome.APPENDED, history.append(decoded)); + assertEquals(4, history.getTip().get().getMembers().size()); + } + + @Test + void theMaximumEntryBundleDecodesAndInstallsFromItsPin() { + byte[] bytes = HexConverter.decode(MAX.get("bundle").asText()); + TrustBaseBundle bundle = TrustBaseBundle.decode(bytes, LIMITS); + assertEquals(2, bundle.getEntries().size()); + assertEquals(MAX.get("genesisId").asText(), HexConverter.encode(bundle.getEntries().get(0).entryId())); + assertEquals(MAX.get("entryId").asText(), HexConverter.encode(bundle.getTip().entryId())); + TrustBaseHistory history = + TrustBaseHistory.fromBundle(bundle, HexConverter.decode(MAX.get("genesisId").asText())); + assertEquals(2, history.getEntries().size()); + assertArrayEquals(bytes, history.toBundle()); + assertEquals(MAX.get("members").asInt(), bundle.getEntries().get(0).getMembers().size()); + } + + @Test + void concurrentAppendersSeeOneConsistentChain() throws Exception { + TrustBaseHistory history = pinned(); + ExecutorService pool = Executors.newFixedThreadPool(8); + try { + List> tasks = new ArrayList<>(); + for (int i = 0; i < 16; i++) { + final int n = i; + tasks.add(() -> { + try { + return history.append(n % 2 == 0 ? e2 : e3); + } catch (TrustBaseGapException e) { + return e; + } + }); + } + for (Future f : pool.invokeAll(tasks)) { + f.get(); + } + } finally { + pool.shutdownNow(); + } + List held = history.getEntries(); + assertTrue(held.size() == 2 || held.size() == 3); + for (int i = 1; i < held.size(); i++) { + assertArrayEquals(held.get(i - 1).entryId(), held.get(i).getPreviousEntryId()); + } + assertEquals(1, held.stream().filter(e -> e.getEpoch() == 2).count()); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryVectorsTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryVectorsTest.java new file mode 100644 index 00000000..9de02216 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistoryVectorsTest.java @@ -0,0 +1,130 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +import com.fasterxml.jackson.databind.JsonNode; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.util.HexConverter; + +/** The shared bft-go-base history, weighted-quorum and bundle vectors. */ +class TrustBaseHistoryVectorsTest { + + private static final JsonNode VECTORS = TrustBaseVectors.shared(); + private static final TrustBaseBundleLimits LIMITS = new TrustBaseBundleLimits(1 << 20, 64); + + private static final Map> OUTCOME_ERRORS = Map.of( + "conflict", TrustBaseConflictException.class, + "error:chain", TrustBaseChainException.class, + "error:invalid", TrustBaseInvalidException.class, + "error:signature", TrustBaseSignatureException.class, + "gap", TrustBaseGapException.class); + + private static TrustBaseEntry entry(String hex) { + return TrustBaseEntry.decode(HexConverter.decode(hex)); + } + + private static TrustBaseEntry named(String name) { + for (JsonNode vector : VECTORS.get("entries")) { + if (vector.get("name").asText().equals(name)) { + return entry(vector.get("hex").asText()); + } + } + throw new AssertionError(name); + } + + @Test + void everyHistoryVectorHasTheSharedOutcomeAndTheSharedFinalChain() { + int seen = 0; + for (JsonNode vector : VECTORS.get("history")) { + String name = vector.get("name").asText(); + JsonNode steps = vector.get("steps"); + // the reference pins nothing; the first entry of every vector is the genesis, so its id is the pin + TrustBaseHistory history = TrustBaseHistory.create(entry(steps.get(0).get("entry").asText()).entryId()); + for (JsonNode step : steps) { + TrustBaseEntry candidate = entry(step.get("entry").asText()); + String outcome = step.get("outcome").asText(); + if (outcome.equals("appended")) { + assertEquals(TrustBaseAppendOutcome.APPENDED, history.append(candidate), name); + } else if (outcome.equals("noop")) { + assertEquals(TrustBaseAppendOutcome.ALREADY_HELD, history.append(candidate), name); + } else { + assertThrows(OUTCOME_ERRORS.get(outcome), () -> history.append(candidate), name); + } + } + List held = new ArrayList<>(); + for (TrustBaseEntry e : history.getEntries()) { + held.add(HexConverter.encode(e.entryId())); + } + List expected = new ArrayList<>(); + JsonNode finalIds = vector.get("finalEntryIds"); + if (finalIds != null && !finalIds.isNull()) { + finalIds.forEach(id -> expected.add(id.asText())); + } + assertEquals(expected, held, name); + seen++; + } + assertEquals(11, seen); + } + + @Test + void everyWeightedQuorumVectorHasTheSharedVerdict() { + int seen = 0; + for (JsonNode vector : VECTORS.get("weightedQuorum")) { + String name = vector.get("name").asText(); + TrustBaseEntry committee = named(vector.get("committee").asText()); + TrustBaseEntry successor = entry(vector.get("entry").asText()); + Map signatures = successor.getSignatures(); + List signers = new ArrayList<>(signatures.keySet()); + List expectedSigners = new ArrayList<>(); + vector.get("signers").forEach(s -> expectedSigners.add(s.asText())); + assertEquals(expectedSigners, signers, name); + + long signed = 0; + for (Map.Entry signature : signatures.entrySet()) { + signed += committee.verifySignature(successor.sigBytes(), signature.getValue(), + signature.getKey()); + } + assertEquals(vector.get("signedWeight").asLong(), signed, name); + assertEquals(vector.get("threshold").asLong(), committee.getQuorumThreshold(), name); + + if (vector.get("valid").asBoolean()) { + committee.verifyQuorumSignatures(successor.sigBytes(), signatures); + } else { + assertThrows(TrustBaseSignatureException.class, + () -> committee.verifyQuorumSignatures(successor.sigBytes(), signatures), name); + } + seen++; + } + assertEquals(4, seen); + } + + @Test + void theSharedBundlesDecodeReEncodeAndInstallThroughAppend() { + int seen = 0; + for (JsonNode vector : VECTORS.get("bundles")) { + String name = vector.get("name").asText(); + byte[] bytes = HexConverter.decode(vector.get("hex").asText()); + TrustBaseBundle bundle = TrustBaseBundle.decode(bytes, LIMITS); + List ids = new ArrayList<>(); + for (TrustBaseEntry e : bundle.getEntries()) { + ids.add(HexConverter.encode(e.entryId())); + } + List expected = new ArrayList<>(); + vector.get("entryIds").forEach(id -> expected.add(id.asText())); + assertEquals(expected, ids, name); + assertArrayEquals(bytes, TrustBaseBundle.encode(bundle.getEntries()), name); + + TrustBaseHistory history = + TrustBaseHistory.fromBundle(bundle, bundle.getEntries().get(0).entryId()); + assertEquals(bundle.getEntries().size(), history.getEntries().size(), name); + assertArrayEquals(bytes, history.toBundle(), name); + seen++; + } + assertEquals(2, seen); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRangeVectorsTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRangeVectorsTest.java new file mode 100644 index 00000000..1160fa21 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseRangeVectorsTest.java @@ -0,0 +1,169 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.IOException; +import java.io.InputStream; +import java.security.MessageDigest; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.serializer.cbor.CborSerializer; +import org.unicitylabs.sdk.util.HexConverter; + +/** The shared GetTrustBase response vectors (bft-core 5d9a8eaa, gettrustbase/testdata/v1) against the page decoder. */ +class TrustBaseRangeVectorsTest { + + private static final String RESOURCE = "/vectors/gettrustbase/vectors.json"; + private static final ObjectMapper MAPPER = new ObjectMapper(); + + private static JsonNode vectors() { + try (InputStream in = TrustBaseRangeVectorsTest.class.getResourceAsStream(RESOURCE)) { + return MAPPER.readTree(in); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + private static byte[] hex(JsonNode node) { + return HexConverter.decode(node.asText()); + } + + private static NetworkId network(JsonNode v) { + return NetworkId.fromId((short) v.get("network").asInt()); + } + + @Test + void theVendoredFileIsThePinnedOne() throws Exception { + byte[] bytes; + try (InputStream in = TrustBaseRangeVectorsTest.class.getResourceAsStream(RESOURCE)) { + bytes = in.readAllBytes(); + } + assertEquals("3f9732fa5d5bed202d326f452f732d625040dbfac81857e19574df25bde3734c", + HexConverter.encode(MessageDigest.getInstance("SHA-256").digest(bytes))); + } + + @Test + void everyCaseDecodesOrIsRefusedAsTheVectorsSay() { + JsonNode v = vectors(); + NetworkId network = network(v); + int accepted = 0; + int encoding = 0; + int response = 0; + for (JsonNode c : v.get("cases")) { + String name = c.get("name").asText(); + byte[] bytes = hex(c.get("hex")); + if (!c.has("error")) { + TrustBaseRange r = assertDoesNotThrow( + () -> TrustBaseRange.decode(bytes, TrustBaseRangeLimits.PAGE, network), name); + accepted++; + assertEquals(c.get("status").asInt(), r.getStatus().wire(), name); + assertEquals(c.get("fromEpoch").asLong(), r.getFromEpoch(), name); + assertEquals(c.get("effectiveEnd").asLong(), r.getEffectiveEnd(), name); + if (c.has("endEntryId")) { + assertArrayEquals(hex(c.get("endEntryId")), r.getEndEntryId(), name); + } else { + assertNull(r.getEndEntryId(), name); + } + List epochs = new ArrayList<>(); + if (c.has("entryEpochs")) { + c.get("entryEpochs").forEach(e -> epochs.add(e.asLong())); + } + List got = new ArrayList<>(); + r.getEntries().forEach(e -> got.add(e.getEpoch())); + assertEquals(epochs, got, name); + if (c.has("nextEpoch")) { + assertEquals(c.get("nextEpoch").asLong(), r.getNextEpoch(), name); + } else { + assertNull(r.getNextEpoch(), name); + } + } else { + String errorClass = c.get("error").asText(); + // Go labels a junk embedded entry a response failure (its decode error is wrapped); + // here it is the entry's own encoding error. + boolean wantEncoding = errorClass.equals("encoding") + || name.contains("not a version 2 entry"); + TrustBaseException e = assertThrows(TrustBaseException.class, + () -> TrustBaseRange.decode(bytes, TrustBaseRangeLimits.PAGE, network), name); + if (wantEncoding) { + assertTrue(e instanceof TrustBaseEncodingException, name + ": " + e); + encoding++; + } else { + assertTrue(e instanceof TrustBaseResponseException, name + ": " + e); + response++; + } + } + } + assertEquals(v.get("cases").size(), accepted + encoding + response); + assertTrue(accepted > 0 && encoding > 0 && response > 0); + } + + @Test + void aResponseForAnotherNetworkIsRefused() { + JsonNode v = vectors(); + byte[] bytes = hex(v.get("cases").get(0).get("hex")); + assertThrows(TrustBaseResponseException.class, + () -> TrustBaseRange.decode(bytes, TrustBaseRangeLimits.PAGE, NetworkId.fromId((short) 6))); + } + + @Test + void theBudgetsAreExact() { + JsonNode v = vectors(); + NetworkId network = network(v); + byte[] bytes = hex(v.get("cases").get(0).get("hex")); // the complete history: three entries + assertDoesNotThrow( + () -> TrustBaseRange.decode(bytes, new TrustBaseRangeLimits(bytes.length, 3), network)); + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseRange.decode(bytes, + new TrustBaseRangeLimits(bytes.length - 1, 3), network)); + assertThrows(TrustBaseResponseException.class, () -> TrustBaseRange.decode(bytes, + new TrustBaseRangeLimits(bytes.length, 2), network)); + } + + private static byte[] rawPage(int network, long from, long end, byte[] endId, byte[]... items) { + return CborSerializer.encodeTag(39015, CborSerializer.encodeArray( + CborSerializer.encodeUnsignedInteger(1), + CborSerializer.encodeUnsignedInteger(network), + CborSerializer.encodeUnsignedInteger(0), + CborSerializer.encodeUnsignedInteger(from), + CborSerializer.encodeUnsignedInteger(end), + CborSerializer.encodeByteString(endId), + CborSerializer.encodeArray(items), + CborSerializer.encodeNull())); + } + + /** The shared maximum-size entry is one page entry well inside the 1 MiB page; an item over the 128 KiB per-entry cap is refused. */ + @Test + void theLargestEntryIsAValidPageAndOneOverTheCapIsNot() throws IOException { + JsonNode v; + try (InputStream in = TrustBaseRangeVectorsTest.class + .getResourceAsStream("/vectors/trust-base-v2/max-entry/v1/max-entry.json")) { + v = MAPPER.readTree(in); + } + byte[] entry = hex(v.get("entry")); + byte[] id = hex(v.get("entryId")); + int networkId = v.get("network").asInt(); + NetworkId network = NetworkId.fromId((short) networkId); + + byte[] page = rawPage(networkId, 2, 2, id, entry); + assertTrue(page.length > 90_000 && page.length < TrustBaseRangeLimits.PAGE.getMaxBytes()); + TrustBaseRange r = TrustBaseRange.decode(page, TrustBaseRangeLimits.PAGE, network); + assertEquals(1, r.getEntries().size()); + assertEquals(2, r.getEntries().get(0).getEpoch()); + assertNull(r.getNextEpoch()); + + byte[] big = CborSerializer.encodeByteString(new byte[TrustBaseEntry.MAX_ENTRY_BYTES]); + assertTrue(big.length > TrustBaseEntry.MAX_ENTRY_BYTES); + TrustBaseResponseException e = assertThrows(TrustBaseResponseException.class, + () -> TrustBaseRange.decode(rawPage(networkId, 2, 2, id, big), + TrustBaseRangeLimits.PAGE, network)); + assertTrue(e.getMessage().contains("size bound")); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionTest.java new file mode 100644 index 00000000..46fbf8b8 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionTest.java @@ -0,0 +1,376 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertInstanceOf; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.NetworkId; + +/** The session beyond the shared vectors: flush protocol, contention, authorities, refresh, concurrency. */ +class TrustBaseSessionTest { + + private static final String NS = "test"; + private final UtbCacheFixtures fx = new UtbCacheFixtures(); + private final TrustBaseSessionOptions direct = TrustBaseSessionOptions.of(Runnable::run); + + /** A store with counters and scripted compare-and-swap behaviour over a memory store. */ + private static final class Script implements TrustBaseStore { + + final MemoryTrustBaseStore inner = new MemoryTrustBaseStore(); + final AtomicInteger reads = new AtomicInteger(); + final AtomicInteger cas = new AtomicInteger(); + volatile boolean alwaysChanged; + volatile RuntimeException casFailure; + volatile RuntimeException readFailure; + volatile byte[] raceOnce; + String key; + + @Override + public CompletableFuture> read(String k, int maxBytes) { + this.reads.incrementAndGet(); + if (this.readFailure != null) { + return CompletableFuture.failedFuture(this.readFailure); + } + return this.inner.read(k, maxBytes); + } + + @Override + public CompletableFuture compareAndSwap(String k, String expected, byte[] bytes) { + this.cas.incrementAndGet(); + if (this.alwaysChanged) { + return CompletableFuture.completedFuture(CasOutcome.CHANGED); + } + if (this.casFailure != null) { + return CompletableFuture.failedFuture(this.casFailure); + } + byte[] race = this.raceOnce; + if (race != null) { + this.raceOnce = null; + this.inner.put(this.key, race); + } + return this.inner.compareAndSwap(k, expected, bytes); + } + } + + private static T get(CompletableFuture f) { + try { + return f.get(10, TimeUnit.SECONDS); + } catch (ExecutionException e) { + if (e.getCause() instanceof RuntimeException) { + throw (RuntimeException) e.getCause(); + } + throw new IllegalStateException(e.getCause()); + } catch (Exception e) { + throw new IllegalStateException(e); + } + } + + private TrustBaseSession open(ReleasePin pin, TrustBaseStore store) { + return get(TrustBaseSession.openPrivate(NS, pin, store, this.direct)).getSession(); + } + + private Script scriptFor(ReleasePin pin) { + Script s = new Script(); + s.key = UtbCacheFixtures.key(pin, NS); + return s; + } + + private static long tip(TrustBaseSession s) { + return s.history().getTip().get().getEpoch(); + } + + @Test + void aFlushWritesOneCompleteBundleAndASecondFlushWritesNothing() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + assertFalse(s.isDirty()); + s.append(this.fx.entry("A4")); + assertTrue(s.isDirty()); + + FlushResult first = get(s.flush()); + assertTrue(first.isSaved() && first.isWrote()); + assertFalse(s.isDirty()); + assertArrayEquals(this.fx.bundle("A1-4"), store.inner.get(store.key)); + int cas = store.cas.get(); + int reads = store.reads.get(); + FlushResult second = get(s.flush()); + assertTrue(second.isSaved() && !second.isWrote()); + assertEquals(cas, store.cas.get(), "a clean session does not write"); + assertEquals(reads, store.reads.get(), "and does not read either"); + } + + @Test + void aStoreSuffixOfAnotherWriterIsImportedNotLost() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + s.append(this.fx.entry("A4")); + store.inner.put(store.key, this.fx.bundle("A1-5")); // a competing writer got further + FlushResult flush = get(s.flush()); + assertTrue(flush.isSaved() && !flush.isWrote(), "the store already has everything we hold"); + assertEquals(5, tip(s), "the suffix was imported"); + assertArrayEquals(this.fx.bundle("A1-5"), store.inner.get(store.key)); + } + + @Test + void aStaleRevisionIsRereadValidatedAndMerged() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + s.append(this.fx.entry("A4")); + store.raceOnce = this.fx.bundle("A1-3"); // changes the revision just before our first write + FlushResult flush = get(s.flush()); + assertTrue(flush.isSaved() && flush.isWrote()); + assertEquals(2, store.cas.get(), "one lost race, one write"); + assertArrayEquals(this.fx.bundle("A1-4"), store.inner.get(store.key)); + } + + @Test + void contentionIsRetriedThreeTimesThenPendingAndTheSessionStaysDirtyAndVerified() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + s.append(this.fx.entry("A4")); + store.alwaysChanged = true; + FlushResult flush = get(s.flush()); + assertFalse(flush.isSaved()); + assertInstanceOf(CacheContendedException.class, flush.getError()); + assertEquals(4, store.cas.get(), "the first write and three retries"); + assertTrue(s.isDirty()); + assertEquals(4, tip(s), "verified history stays usable"); + store.alwaysChanged = false; + assertTrue(get(s.flush()).isWrote(), "and a later flush succeeds"); + } + + @Test + void aFailedSaveIsReportedSeparatelyAndTheDirtyStateSurvives() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + s.append(this.fx.entry("A4")); + store.casFailure = new TrustBaseStoreException(TrustBaseStoreException.Reason.QUOTA, "full"); + FlushResult flush = get(s.flush()); + assertFalse(flush.isSaved()); + assertEquals(TrustBaseStoreException.Reason.QUOTA, + ((TrustBaseStoreException) flush.getError()).getReason()); + assertTrue(s.isDirty()); + assertEquals(4, tip(s)); + } + + @Test + void aReadFailureCannotAuthorizeAReplacement() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + store.inner.put(store.key, new byte[] {1, 2, 3}); // damaged + TrustBaseSession s = open(pin, store); + store.readFailure = new TrustBaseStoreException(TrustBaseStoreException.Reason.IO, "disk"); + FlushResult flush = get(s.flush()); + assertFalse(flush.isSaved()); + assertEquals(0, store.cas.get(), "nothing was written without a successful read"); + assertArrayEquals(new byte[] {1, 2, 3}, store.inner.get(store.key)); + } + + @Test + void aDamagedCacheIsReportedOnceAndReplacedOnlyAgainstItsExactRevision() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + store.inner.put(store.key, new byte[] {9, 9}); + TrustBaseSession.Opened opened = get(TrustBaseSession.openPrivate(NS, pin, store, this.direct)); + assertEquals(CacheRejection.MALFORMED, opened.getDiagnostics().get(0).getRejection()); + store.raceOnce = new byte[] {7, 7, 7}; // another damaged value appears before our write + FlushResult flush = get(opened.getSession().flush()); + assertTrue(flush.isSaved() && flush.isWrote()); + long reported = flush.getDiagnostics().stream().filter(d -> d.isRejection()).count(); + assertEquals(1, reported, "reported once across the retry"); + assertArrayEquals(this.fx.bundle("A1-3"), store.inner.get(store.key)); + } + + @Test + void anAppendLandingWhileAFlushSettlesIsNeverMarkedSaved() { + // the store already holds exactly what the session held when the flush read its tip ... + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + s.append(this.fx.entry("A4")); + store.inner.put(store.key, this.fx.bundle("A1-4")); + // ... and a synchronous append from another thread lands before the flush settles + s.settleHook = () -> { + s.settleHook = null; + s.append(this.fx.entry("A5")); + }; + FlushResult flush = get(s.flush()); + assertTrue(flush.isSaved() && !flush.isWrote()); + assertTrue(s.isDirty(), "the new entry is not saved yet"); + assertTrue(get(s.flush()).isWrote()); + assertArrayEquals(this.fx.bundle("A1-5"), store.inner.get(store.key)); + assertFalse(s.isDirty()); + } + + @Test + void anAppendLandingBeforeTheWriteIsStillSavedByTheNextFlush() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + s.append(this.fx.entry("A4")); + s.settleHook = () -> { + s.settleHook = null; + s.append(this.fx.entry("A5")); + }; + assertTrue(get(s.flush()).isWrote()); + get(s.flush()); + assertArrayEquals(this.fx.bundle("A1-5"), store.inner.get(store.key)); + assertFalse(s.isDirty()); + } + + @Test + void anAuthenticatedForkLatchesAndStopsEveryWriteAndRead() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + s.append(this.fx.entry("A4")); + TrustBaseConflictException fork = assertThrows(TrustBaseConflictException.class, + () -> s.append(this.fx.entry("F4"))); + assertTrue(fork.isAuthenticated()); + assertNotNull(s.getConflict()); + assertThrows(HistoryConflictedException.class, () -> s.history().getTip()); + assertThrows(HistoryConflictedException.class, () -> s.append(this.fx.entry("A5"))); + FlushResult flush = get(s.flush()); + assertInstanceOf(HistoryConflictedException.class, flush.getError()); + assertEquals(0, store.cas.get(), "a conflicted session never writes"); + assertNotNull(s.exportBundle(), "the export stays available"); + assertThrows(HistoryConflictedException.class, + () -> get(s.refresh(List.of(), TrustBaseUpdateOptions.defaults()))); + } + + @Test + void refreshFetchesThroughTheSessionAndSavesTheResult() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + TrustBaseSource source = request -> { + long from = request.getFromEpoch(); + TrustBaseEntry a4 = this.fx.entry("A4"); + TrustBaseEntry a5 = this.fx.entry("A5"); + assertEquals(4, from); + return CompletableFuture.completedFuture(TrustBaseResponseWire.encode( + new TrustBaseResponseWire.Fields(5, a5.entryId(), List.of(a4.encode(), a5.encode()), 4, + request.getNetworkId().getId(), null, 0))); + }; + assertEquals(2, get(s.refresh(List.of(source), + TrustBaseUpdateOptions.defaults().withBackoffMs(0)))); + assertEquals(5, tip(s)); + assertFalse(s.isDirty()); + assertArrayEquals(this.fx.bundle("A1-5"), store.inner.get(store.key)); + } + + @Test + void aFailedRefreshStillSavesTheVerifiedPrefix() { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + TrustBaseSession s = open(pin, store); + AtomicInteger calls = new AtomicInteger(); + TrustBaseSource cut = request -> { + if (calls.getAndIncrement() > 0) { + return CompletableFuture.failedFuture(new java.io.IOException("cut")); + } + TrustBaseEntry a4 = this.fx.entry("A4"); + return CompletableFuture.completedFuture(TrustBaseResponseWire.encode( + new TrustBaseResponseWire.Fields(6, this.fx.entry("A6").entryId(), + List.of(a4.encode()), 4, request.getNetworkId().getId(), 5L, 0))); + }; + assertThrows(TrustBaseUpdateException.class, () -> get(s.refresh(List.of(cut), + TrustBaseUpdateOptions.defaults().withBackoffMs(0)))); + assertEquals(4, tip(s)); + assertArrayEquals(this.fx.bundle("A1-4"), store.inner.get(store.key), "the prefix was saved"); + } + + @Test + void publicAuthorityNeedsARowAndAnOverrideMustExtendIt() { + ReleasePin row = this.fx.pin("A1-3"); + NetworkId network = row.getNetworkId(); + MemoryTrustBaseStore store = new MemoryTrustBaseStore(); + TrustBaseSessionOptions withRow = this.direct.withTable(List.of(row)); + + assertThrows(UnknownNetworkException.class, + () -> get(TrustBaseSession.openPublic(network, null, store, this.direct))); + + TrustBaseSession plain = get(TrustBaseSession.openPublic(network, null, store, withRow)) + .getSession(); + assertTrue(plain.getKey().endsWith("/public")); + assertEquals(3, tip(plain)); + + TrustBaseSession longer = get(TrustBaseSession.openPublic(network, this.fx.pin("A1-5"), store, + withRow)).getSession(); + assertEquals(5, tip(longer), "a newer pin that extends the row is used"); + assertTrue(longer.getKey().endsWith("/public")); + + // a pin of the same network that does not contain the row's checkpoint is refused + assertThrows(TrustBasePinMismatchException.class, () -> get(TrustBaseSession.openPublic( + network, this.fx.pin("G1-3"), store, withRow))); + } + + @Test + void aPrivateAuthorityNeedsItsOwnNamespace() { + ReleasePin pin = this.fx.pin("A1-3"); + for (String bad : new String[] {"public", "", "a/b", "x".repeat(65)}) { + assertThrows(TrustBasePinMismatchException.class, () -> get(TrustBaseSession.openPrivate( + bad, pin, new MemoryTrustBaseStore(), this.direct)), bad); + } + TrustBaseSession.Opened ok = get(TrustBaseSession.openPrivate("x".repeat(64), pin, + new MemoryTrustBaseStore(), this.direct)); + assertNotNull(ok.getSession()); + } + + @Test + void aLocalNetworkOpensFromItsOwnBundleAloneInItsOwnNamespace() { + byte[] bundle = this.fx.bundle("A1-3"); + MemoryTrustBaseStore store = new MemoryTrustBaseStore(); + TrustBaseSession s = get(TrustBaseSession.openLocal(bundle, store, this.direct)).getSession(); + assertTrue(s.getKey().endsWith("/local")); + assertEquals(3, tip(s)); + ReleasePin derived = ReleasePin.fromBundle(bundle); + assertEquals(3, derived.getPinnedEpoch()); + assertArrayEquals(this.fx.pin("A1-3").getPinnedEntryId(), derived.getPinnedEntryId()); + assertThrows(ReleasePinInvalidException.class, () -> ReleasePin.fromBundle(new byte[] {1})); + } + + @Test + void concurrentAppendsFlushesAndReadsOnABoundedExecutorStayConsistent() throws Exception { + ReleasePin pin = this.fx.pin("A1-3"); + Script store = scriptFor(pin); + ExecutorService pool = Executors.newFixedThreadPool(4); + try { + TrustBaseSession s = get(TrustBaseSession.openPrivate(NS, pin, store, + TrustBaseSessionOptions.of(pool))).getSession(); + List> all = new java.util.ArrayList<>(); + for (String name : new String[] {"A4", "A5", "A6"}) { + all.add(s.appendAsync(this.fx.entry(name))); + all.add(s.flush()); + // readers never see a torn history + assertTrue(s.history().getEntries().size() >= 3); + } + for (CompletableFuture f : all) { + f.get(10, TimeUnit.SECONDS); + } + assertEquals(6, tip(s)); + assertTrue(get(s.flush()).isSaved()); + assertArrayEquals(this.fx.bundle("A1-6"), store.inner.get(store.key)); + } finally { + pool.shutdownNow(); + } + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionVectorsTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionVectorsTest.java new file mode 100644 index 00000000..1acbf18c --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSessionVectorsTest.java @@ -0,0 +1,430 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.util.HexConverter; + +/** The shared UTB cache vectors (sdk-rust c18f8da, copied by JS) against the session. */ +class TrustBaseSessionVectorsTest { + + private static final String RESOURCE = "/vectors/utb-cache/v1/vectors.json"; + private static final String NAMESPACE = "test"; + private static final ObjectMapper MAPPER = new ObjectMapper(); + + private final byte[] raw = load(); + private final JsonNode v = parse(raw); + + private static byte[] load() { + try (InputStream in = TrustBaseSessionVectorsTest.class.getResourceAsStream(RESOURCE)) { + return in.readAllBytes(); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + private static JsonNode parse(byte[] bytes) { + try { + return MAPPER.readTree(bytes); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + private static byte[] hex(JsonNode node) { + return HexConverter.decode(node.asText()); + } + + private JsonNode named(String section, String name) { + for (JsonNode n : this.v.get(section)) { + if (n.get("name").asText().equals(name)) { + return n; + } + } + throw new IllegalStateException(section + " " + name); + } + + private ReleasePin pin(String name) { + return pinOf(named("pins", name)); + } + + private static ReleasePin pinOf(JsonNode p) { + return new ReleasePin(NetworkId.fromId((short) p.get("network").asInt()), + Long.parseUnsignedLong(p.get("genesisEpoch").asText()), hex(p.get("genesisEntryId")), + Long.parseUnsignedLong(p.get("pinnedEpoch").asText()), hex(p.get("pinnedEntryId")), + hex(p.get("bundle")), hex(p.get("bundleSha256"))); + } + + private byte[] bundle(String name) { + return hex(named("bundles", name).get("hex")); + } + + private TrustBaseEntry entry(String name) { + return TrustBaseEntry.decode(hex(named("entries", name).get("hex"))); + } + + private byte[] cacheBytes(JsonNode c) { + if (c == null || c.isNull()) { + return null; + } + if (c.has("bundle")) { + return bundle(c.get("bundle").asText()); + } + return hex(c.get("hex")); + } + + private static TrustBaseSessionOptions optionsOf(JsonNode c) { + JsonNode limits = c.get("limits"); + int maxBytes = 16 * 1024 * 1024; + int maxEntries = 4096; + int maxEntryBytes = TrustBaseEntry.MAX_ENTRY_BYTES; + if (limits != null && !limits.isNull()) { + if (!limits.path("maxEntries").isMissingNode() && !limits.get("maxEntries").isNull()) { + maxEntries = limits.get("maxEntries").asInt(); + } + if (!limits.path("maxEntryBytes").isMissingNode() && !limits.get("maxEntryBytes").isNull()) { + maxEntryBytes = limits.get("maxEntryBytes").asInt(); + } + if (!limits.path("maxBundleBytes").isMissingNode() + && !limits.get("maxBundleBytes").isNull()) { + maxBytes = limits.get("maxBundleBytes").asInt(); + } + } + return TrustBaseSessionOptions.of(Runnable::run) + .withLimits(new TrustBaseBundleLimits(maxBytes, maxEntries, maxEntryBytes)); + } + + /** A store that fails the read, or serves bytes without enforcing the byte budget. */ + private static final class FaultStore implements TrustBaseStore { + + private final MemoryTrustBaseStore inner; + private final String fault; + + FaultStore(MemoryTrustBaseStore inner, String fault) { + this.inner = inner; + this.fault = fault; + } + + @Override + public CompletableFuture> read(String key, int maxBytes) { + switch (this.fault) { + case "unreadable": + return CompletableFuture.failedFuture(new TrustBaseStoreException( + TrustBaseStoreException.Reason.IO, "injected")); + case "oversize": + return CompletableFuture.failedFuture(new TrustBaseStoreException( + TrustBaseStoreException.Reason.OVERSIZE, "injected")); + default: // ignoresBudget + return this.inner.read(key, Integer.MAX_VALUE); + } + } + + @Override + public CompletableFuture compareAndSwap(String key, String expected, + byte[] bytes) { + return this.inner.compareAndSwap(key, expected, bytes); + } + } + + private static TrustBaseStore storeFor(JsonNode c, MemoryTrustBaseStore memory) { + JsonNode kind = c.get("store"); + return kind == null || kind.isNull() ? memory : new FaultStore(memory, kind.asText()); + } + + private static T get(CompletableFuture future) { + try { + return future.get(); + } catch (ExecutionException e) { + if (e.getCause() instanceof RuntimeException) { + throw (RuntimeException) e.getCause(); + } + throw new IllegalStateException(e.getCause()); + } catch (InterruptedException e) { + throw new IllegalStateException(e); + } + } + + private static TrustBaseSession.Opened open(ReleasePin pin, TrustBaseStore store, + TrustBaseSessionOptions options) { + return get(TrustBaseSession.openPrivate(NAMESPACE, pin, store, options)); + } + + private static String keyOf(ReleasePin pin) { + return TrustBaseCacheKey.of(pin.getNetworkId(), pin.getGenesisEntryId(), NAMESPACE); + } + + private static String diagName(CacheDiagnostic d) { + if (!d.isRejection()) { + return "CacheUnavailable"; + } + switch (d.getRejection()) { + case MALFORMED: + return "CacheRejected:malformed"; + case WRONG_NETWORK: + return "CacheRejected:wrongNetwork"; + case WRONG_GENESIS: + return "CacheRejected:wrongGenesis"; + case PIN_MISMATCH: + return "CacheRejected:pinMismatch"; + default: + return "CacheRejected:oversize"; + } + } + + private static List names(JsonNode array) { + List out = new ArrayList<>(); + array.forEach(x -> out.add(x.asText())); + return out; + } + + private static String flushName(FlushResult f) { + if (f.isSaved()) { + return f.isWrote() ? "saved:wrote" : "saved:noop"; + } + Throwable e = f.getError(); + if (e instanceof CacheRejectedException) { + return ((CacheRejectedException) e).getReason() == CacheRejection.PIN_MISMATCH + ? "pending:PinMismatch" : "pending:Oversize"; + } + if (e instanceof HistoryConflictedException) { + return "pending:HistoryConflicted"; + } + return "pending:other:" + e; + } + + private static String refusalClass(TrustBaseException e) { + if (e instanceof TrustBaseNetworkException) { + return "refused:network"; + } + if (e instanceof TrustBaseBeforeGenesisException) { + return "refused:beforeGenesis"; + } + if (e instanceof TrustBaseSignatureException) { + return "refused:signature"; + } + if (e instanceof TrustBaseChainException) { + return "refused:chain"; + } + if (e instanceof TrustBaseInvalidException) { + return "refused:invalid"; + } + if (e instanceof TrustBaseGapException) { + return "refused:gap"; + } + if (e instanceof TrustBaseEncodingException) { + return "refused:encoding"; + } + return "refused:other"; + } + + @Test + void theVendoredFileIsThePinnedOne() { + assertEquals("a071fef1f3d5c34a2918e8d9f6e50a083aa87bc1261740f5e4ecedb7b8790342", + HexConverter.encode(TrustBaseCacheKey.sha256(this.raw))); + } + + @Test + void bundlesReencodeByteForByte() { + int checked = 0; + for (JsonNode b : this.v.get("bundles")) { + if (b.get("entryIds").size() == 0) { + continue; + } + byte[] bytes = hex(b.get("hex")); + TrustBaseHistory history; + try { + history = TrustBaseHistory.fromBundle(TrustBaseBundle.decode(bytes, + ReleasePin.DEFAULT_LIMITS), TrustBaseBundle.decode(bytes, + ReleasePin.DEFAULT_LIMITS).getEntries().get(0).entryId()); + } catch (TrustBaseException e) { + continue; // the invalid ones are exercised through the pins and the cache cases + } + assertArrayEquals(bytes, history.toBundle(), b.get("name").asText()); + List ids = new ArrayList<>(); + history.getEntries().forEach(e -> ids.add(HexConverter.encode(e.entryId()))); + assertEquals(names(b.get("entryIds")), ids, b.get("name").asText()); + checked++; + } + assertTrue(checked > 5); + } + + @Test + void pinsVerifyOrAreReleasePinInvalid() { + for (JsonNode p : this.v.get("pins")) { + String name = p.get("name").asText(); + ReleasePin pin = pinOf(p); + if (p.get("valid").asBoolean()) { + pin.verify(ReleasePin.DEFAULT_LIMITS); + } else { + assertEquals("ReleasePinInvalid", p.get("error").asText()); + assertThrows(ReleasePinInvalidException.class, + () -> pin.verify(ReleasePin.DEFAULT_LIMITS), name); + assertThrows(ReleasePinInvalidException.class, () -> open(pin, new MemoryTrustBaseStore(), + TrustBaseSessionOptions.of(Runnable::run)), "open " + name); + } + } + } + + @Test + void keysAndRevisions() { + for (JsonNode k : this.v.get("key")) { + assertEquals(k.get("key").asText(), TrustBaseCacheKey.of( + NetworkId.fromId((short) k.get("network").asInt()), hex(k.get("genesisEntryId")), + k.get("namespace").asText())); + } + for (JsonNode r : this.v.get("revision")) { + assertEquals(r.get("revision").asText(), TrustBaseCacheKey.revision(hex(r.get("hex")))); + } + } + + @Test + void openCases() { + for (JsonNode c : this.v.get("open")) { + String name = c.get("name").asText(); + ReleasePin pin = pin(c.get("pin").asText()); + MemoryTrustBaseStore memory = new MemoryTrustBaseStore(); + String key = keyOf(pin); + byte[] cache = cacheBytes(c.get("cache")); + if (cache != null) { + memory.put(key, cache); + } + byte[] before = memory.get(key); + TrustBaseSession.Opened opened = open(pin, storeFor(c, memory), optionsOf(c)); + TrustBaseSession session = opened.getSession(); + JsonNode e = c.get("expect"); + TrustBaseEntry tip = session.history().getTip().get(); + assertEquals(e.get("tipEpoch").asText(), Long.toUnsignedString(tip.getEpoch()), name); + assertEquals(e.get("tipEntryId").asText(), HexConverter.encode(tip.entryId()), name); + List got = new ArrayList<>(); + opened.getDiagnostics().forEach(d -> got.add(diagName(d))); + assertEquals(names(e.get("diagnostics")), got, name); + assertEquals(e.get("flushNeeded").asBoolean(), session.isDirty(), name); + if (e.has("exportBundle")) { + assertArrayEquals(bundle(e.get("exportBundle").asText()), session.exportBundle(), + name + ": exported bytes"); + } + assertArrayEquals(before, memory.get(key), name + ": open writes nothing"); + } + } + + @Test + void flushCases() { + for (JsonNode c : this.v.get("flush")) { + String name = c.get("name").asText(); + ReleasePin pin = pin(c.get("pin").asText()); + MemoryTrustBaseStore memory = new MemoryTrustBaseStore(); + String key = keyOf(pin); + byte[] cache = cacheBytes(c.get("cache")); + if (cache != null) { + memory.put(key, cache); + } + TrustBaseSession session = open(pin, storeFor(c, memory), optionsOf(c)).getSession(); + byte[] after = cacheBytes(c.get("storeAfterOpen")); + if (after != null) { + memory.put(key, after); + } + for (JsonNode o : c.get("offers")) { + try { + session.append(entry(o.asText())); + } catch (TrustBaseException ignored) { + // the refusals are the offer cases' business + } + } + byte[] before = memory.get(key); + FlushResult flush = get(session.flush()); + List diags = new ArrayList<>(); + flush.getDiagnostics().forEach(d -> diags.add(diagName(d))); + JsonNode e = c.get("expect"); + assertEquals(e.get("result").asText(), flushName(flush), name); + assertEquals(names(e.get("diagnostics")), diags, name + ": flush diagnostics"); + if (e.has("tipEpoch")) { + TrustBaseEntry tip = TrustBaseBundle.decode(session.exportBundle(), + ReleasePin.DEFAULT_LIMITS).getTip(); + assertEquals(e.get("tipEpoch").asText(), Long.toUnsignedString(tip.getEpoch()), name); + } + byte[] stored = memory.get(key); + switch (e.get("stored").asText()) { + case "unchanged": + assertArrayEquals(before, stored, name); + break; + case "absent": + assertEquals(null, stored, name); + break; + default: + assertArrayEquals(bundle(e.get("stored").asText()), stored, name); + } + } + } + + @Test + void offerCases() { + for (JsonNode c : this.v.get("offer")) { + String name = c.get("name").asText(); + ReleasePin pin = pin(c.get("pin").asText()); + MemoryTrustBaseStore memory = new MemoryTrustBaseStore(); + byte[] cache = cacheBytes(c.get("cache")); + if (cache != null) { + memory.put(keyOf(pin), cache); + } + TrustBaseSession session = open(pin, memory, + TrustBaseSessionOptions.of(Runnable::run)).getSession(); + List got = new ArrayList<>(); + for (JsonNode o : c.get("offers")) { + if (o.asText().equals("@verify")) { + try { + session.history().getTip(); + got.add("ok"); + } catch (HistoryConflictedException ex) { + got.add("HistoryConflicted"); + } + continue; + } + try { + got.add(session.append(entry(o.asText())) == TrustBaseAppendOutcome.APPENDED + ? "appended" : "noop"); + } catch (HistoryConflictedException ex) { + got.add("HistoryConflicted"); + } catch (TrustBaseConflictException ex) { + assertTrue(ex.isAuthenticated(), name); + assertFalse(Arrays.equals(ex.getDetails().getHeldEntryId(), + ex.getDetails().getOfferedEntryId()), name); + got.add("Conflict"); + } catch (TrustBasePinMismatchException ex) { + got.add("PinMismatch"); + } catch (TrustBaseException ex) { + got.add(refusalClass(ex)); + } + } + List want = new ArrayList<>(); + c.get("expect").get("results").forEach( + x -> want.add(x.asText().replace("noop-checked", "refused:signature"))); + assertEquals(want, got, name); + assertEquals(c.get("expect").get("conflicted").asBoolean(), session.getConflict() != null, + name); + if (session.getConflict() != null) { + assertNotNull(session.getConflict().getDetails().getHeldEntry(), name); + assertNotNull(session.getConflict().getDetails().getOfferedEntry(), name); + } + TrustBaseEntry tip = TrustBaseBundle.decode(session.exportBundle(), + ReleasePin.DEFAULT_LIMITS).getTip(); + assertEquals(c.get("expect").get("tipEpoch").asText(), Long.toUnsignedString(tip.getEpoch()), + name); + } + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseTestChain.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseTestChain.java new file mode 100644 index 00000000..fed3c575 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseTestChain.java @@ -0,0 +1,90 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import org.unicitylabs.sdk.crypto.hash.DataHash; +import org.unicitylabs.sdk.crypto.hash.DataHasher; +import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; +import org.unicitylabs.sdk.crypto.secp256k1.SigningService; + +/** Builds signed synthetic trust-base chains with known test keys. Test keys only. */ +final class TrustBaseTestChain { + + /** A committee with known secrets. */ + static final class Committee { + + final Map secrets = new LinkedHashMap<>(); + final List members = new ArrayList<>(); + + /** Members "m0000".."m(n-1)" with the given weight each, keys from {@code salt}. */ + Committee(int count, long weight, int salt) { + for (int i = 0; i < count; i++) { + String id = String.format("m%04d", i); + byte[] secret = secret(salt, i); + secrets.put(id, secret); + members.add(new TrustBaseMember(id, new SigningService(secret).getPublicKey(), weight)); + } + } + + long totalWeight() { + long total = 0; + for (TrustBaseMember member : members) { + total += member.getWeight(); + } + return total; + } + + long threshold() { + return totalWeight() * 2 / 3 + 1; + } + } + + private TrustBaseTestChain() { + } + + static byte[] secret(int salt, int i) { + byte[] secret = new byte[32]; + secret[28] = (byte) salt; + secret[30] = (byte) ((i + 1) >> 8); + secret[31] = (byte) (i + 1); + return secret; + } + + static TrustBaseEntry genesis(int network, long epoch, long startRound, Committee committee) { + return new TrustBaseEntry(network, epoch, startRound, committee.members, committee.threshold(), + null, null, new byte[32], null); + } + + static byte[] sign(byte[] secret, byte[] data) { + DataHash hash = new DataHasher(HashAlgorithm.SHA256).update(data).digest(); + return new SigningService(secret).sign(hash).encode(); + } + + /** A successor of {@code previous} signed by the named members of {@code signing}. */ + static TrustBaseEntry successor(TrustBaseEntry previous, Committee signing, Committee next, + long startRound, Collection signers) { + return successor(previous, signing, next.members, next.threshold(), startRound, signers); + } + + static TrustBaseEntry successor(TrustBaseEntry previous, Committee signing, + List members, long threshold, long startRound, Collection signers) { + Map placeholder = Map.of("x", new byte[65]); + TrustBaseEntry unsigned = new TrustBaseEntry(previous.getNetworkId().getId(), + previous.getEpoch() + 1, startRound, members, threshold, null, null, previous.entryId(), + placeholder); + byte[] data = unsigned.sigBytes(); + Map signatures = new LinkedHashMap<>(); + for (String signer : signers) { + signatures.put(signer, sign(signing.secrets.get(signer), data)); + } + return new TrustBaseEntry(previous.getNetworkId().getId(), previous.getEpoch() + 1, startRound, + members, threshold, null, null, previous.entryId(), signatures); + } + + static List firstN(Committee committee, int n) { + return new ArrayList<>(committee.secrets.keySet()).subList(0, n); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java new file mode 100644 index 00000000..e471cc49 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java @@ -0,0 +1,418 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.function.BiFunction; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseUpdateException.CauseKind; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseUpdateException.Failure; + +/** The fetch loop over scripted untrusted sources. */ +class TrustBaseUpdaterTest { + + private static final int NETWORK = 5; + private static final NetworkId NET = NetworkId.fromId((short) NETWORK); + private static final TrustBaseTestChain.Committee COMMITTEE = + new TrustBaseTestChain.Committee(4, 1, 7); + private static final TrustBaseUpdateOptions FAST = + TrustBaseUpdateOptions.defaults().withBackoffMs(0); + + /** Epochs 1..6: entry(1) is the genesis. */ + private static final List CHAIN = chain(6); + + private static List chain(int epochs) { + List entries = new ArrayList<>(); + entries.add(TrustBaseTestChain.genesis(NETWORK, 1, 1, COMMITTEE)); + for (int e = 2; e <= epochs; e++) { + entries.add(TrustBaseTestChain.successor(entries.get(e - 2), COMMITTEE, COMMITTEE, + 100L * e, TrustBaseTestChain.firstN(COMMITTEE, 3))); + } + return entries; + } + + private static TrustBaseEntry entry(int epoch) { + return CHAIN.get(epoch - 1); + } + + private static TrustBaseHistory genesisOnly() { + TrustBaseHistory history = TrustBaseHistory.create(entry(1).entryId()); + history.append(entry(1)); + return history; + } + + /** The OK page of epochs {@code first..last} of the chain, ending at {@code end}. */ + private static byte[] page(int first, int last, int end, Long next) { + List raw = new ArrayList<>(); + for (int e = first; e <= last; e++) { + raw.add(entry(e).encode()); + } + return pageRaw(first, end, entry(end).entryId(), raw, next); + } + + private static byte[] pageRaw(long from, long end, byte[] endId, List raw, Long next) { + return TrustBaseResponseWire.encode( + new TrustBaseResponseWire.Fields(end, endId, raw, from, NETWORK, next, 0)); + } + + private static byte[] status(TrustBaseStatus status, long from, long end) { + return TrustBaseResponseWire.encode(new TrustBaseResponseWire.Fields(end, null, + Collections.emptyList(), from, NETWORK, null, status.wire())); + } + + /** A scripted source: answers by (call number, request). */ + private static final class Script implements TrustBaseSource { + + final List requests = new CopyOnWriteArrayList<>(); + private final BiFunction answer; + + Script(BiFunction answer) { + this.answer = answer; + } + + static Script fixed(byte[] bytes) { + return new Script((n, r) -> bytes); + } + + @Override + public CompletableFuture getTrustBasePage(TrustBaseRequest request) { + int n = this.requests.size(); + this.requests.add(request); + Object result = this.answer.apply(n, request); + if (result instanceof Throwable) { + return CompletableFuture.failedFuture((Throwable) result); + } + return CompletableFuture.completedFuture((byte[]) result); + } + } + + private static int update(TrustBaseHistory history, TrustBaseSource... sources) { + return TrustBaseUpdater.update(TrustBaseUpdateTarget.of(history), Arrays.asList(sources), FAST); + } + + private static long tip(TrustBaseHistory history) { + return history.getTip().get().getEpoch(); + } + + @Test + void aRangeFromTheNextEpochIsAppendedAndAuthenticated() { + TrustBaseHistory history = genesisOnly(); + Script source = Script.fixed(page(2, 4, 4, null)); + assertEquals(3, update(history, source)); + assertEquals(4, tip(history)); + assertEquals(2, source.requests.get(0).getFromEpoch()); + assertNull(source.requests.get(0).getSnapshot()); + } + + @Test + void aPagedRangeFollowsTheCursorAndEchoesTheSnapshot() { + TrustBaseHistory history = genesisOnly(); + Script source = new Script((n, r) -> n == 0 ? page(2, 3, 5, 4L) : page(4, 5, 5, null)); + assertEquals(4, update(history, source)); + assertEquals(5, tip(history)); + assertNull(source.requests.get(0).getSnapshot()); + TrustBaseRequest.Snapshot echoed = source.requests.get(1).getSnapshot(); + assertEquals(5, echoed.getEnd()); + assertArrayEquals(entry(5).entryId(), echoed.getEntryId()); + assertEquals(4, source.requests.get(1).getFromEpoch()); + } + + @Test + void nothingNewerIsAResultOnlyWhenEverySourceSaysIt() { + TrustBaseHistory history = genesisOnly(); + Script none = Script.fixed(status(TrustBaseStatus.NOT_YET_AVAILABLE, 2, 1)); + assertEquals(0, update(history, none, none)); + // one source that serves nothing useful keeps it from being "current" + Script broken = Script.fixed(new byte[] {1}); + TrustBaseUpdateException e = assertThrows(TrustBaseUpdateException.class, + () -> update(history, none, broken)); + assertEquals(Failure.NONE_SERVED, e.getFailure()); + } + + @Test + void aLaggingSourceDoesNotEndTheUpdateAndTheNextOneServes() { + TrustBaseHistory history = genesisOnly(); + Script lagging = Script.fixed(status(TrustBaseStatus.NOT_YET_AVAILABLE, 2, 1)); + Script good = Script.fixed(page(2, 3, 3, null)); + assertEquals(2, update(history, lagging, good)); + assertEquals(3, tip(history)); + } + + @Test + void aHostileStatusIsFinalForTheCallButBusyAndUnavailableAreAskedAgain() { + TrustBaseHistory history = genesisOnly(); + Script hostile = Script.fixed(status(TrustBaseStatus.WRONG_NETWORK, 2, 6)); + Script good = Script.fixed(page(2, 3, 3, null)); + assertEquals(2, update(history, hostile, good)); + // a refusal is final: asked once, not again in the second pass + TrustBaseHistory passes = genesisOnly(); + Script flakyGood = new Script((n, r) -> n == 0 ? status(TrustBaseStatus.BUSY, 2, 6) + : page(2, 3, 3, null)); + Script hostile2 = Script.fixed(status(TrustBaseStatus.WRONG_NETWORK, 2, 6)); + assertEquals(2, update(passes, hostile2, flakyGood)); + assertEquals(1, hostile2.requests.size(), "asked once, not again in the second pass"); + + for (TrustBaseStatus pause : new TrustBaseStatus[] {TrustBaseStatus.BUSY, + TrustBaseStatus.UNAVAILABLE}) { + TrustBaseHistory h = genesisOnly(); + Script flaky = new Script((n, r) -> n == 0 ? status(pause, 2, 6) : page(2, 3, 3, null)); + assertEquals(2, update(h, flaky), pause.name()); + assertEquals(2, flaky.requests.size(), pause.name()); + } + } + + @Test + void anEntryTheHistoryRefusesKeepsThePrefixAndTheNextSourceContinues() { + TrustBaseHistory history = genesisOnly(); + // epoch 3 signed by one member only: refused, epoch 2 stays + TrustBaseEntry weak = TrustBaseTestChain.successor(entry(2), COMMITTEE, COMMITTEE, 300L, + TrustBaseTestChain.firstN(COMMITTEE, 1)); + Script damaged = Script.fixed(pageRaw(2, 3, weak.entryId(), + List.of(entry(2).encode(), weak.encode()), null)); + Script good = Script.fixed(page(3, 4, 4, null)); + assertEquals(3, update(history, damaged, good)); + assertEquals(4, tip(history)); + assertEquals(3, good.requests.get(0).getFromEpoch(), "continues from the kept prefix"); + } + + @Test + void aPageThatDoesNotContinueTheRangeIsSkipped() { + TrustBaseHistory history = genesisOnly(); + // epochs that would append fine, but the page starts at 1 and the request was for 2 + Script wrongStart = Script.fixed(page(1, 3, 3, null)); + Script good = Script.fixed(page(2, 3, 3, null)); + assertEquals(2, update(history, wrongStart, good)); + assertEquals(1, good.requests.size(), "the page that did not continue was not accepted"); + } + + @Test + void aFrozenSnapshotIsCheckedOnTheLaterPages() { + TrustBaseHistory history = genesisOnly(); + // the second page announces another end: not continuing, the next source serves + Script shifting = new Script((n, r) -> n == 0 ? page(2, 3, 5, 4L) : page(4, 4, 4, null)); + Script good = Script.fixed(page(4, 5, 5, null)); + assertEquals(4, update(history, shifting, good)); + assertEquals(5, tip(history)); + } + + @Test + void nothingNewerMeansATipBelowTheRequestedEpochAndOnlyWithoutASnapshot() { + TrustBaseHistory history = genesisOnly(); + // an end at or above the requested epoch is not "nothing newer" + Script lying = Script.fixed(status(TrustBaseStatus.NOT_YET_AVAILABLE, 2, 2)); + assertThrows(TrustBaseUpdateException.class, () -> update(history, lying)); + // with a snapshot frozen, a not-yet-available page never ends the call as current + TrustBaseHistory second = genesisOnly(); + Script paged = new Script((n, r) -> n == 0 ? page(2, 3, 5, 4L) + : status(TrustBaseStatus.NOT_YET_AVAILABLE, 4, 1)); + TrustBaseUpdateException e = assertThrows(TrustBaseUpdateException.class, + () -> update(second, paged)); + assertEquals(2, e.getAppended(), "the authenticated prefix is kept"); + assertEquals(3, tip(second)); + } + + @Test + void anHonestSourceRefusingAFakeSnapshotIsAskedAgainWithoutIt() { + TrustBaseHistory history = genesisOnly(); + byte[] fake = new byte[32]; + Script honest = new Script((n, r) -> { + if (r.getSnapshot() != null) { + return status(TrustBaseStatus.HISTORY_MISMATCH, 4, 5); + } + return page((int) r.getFromEpoch(), 5, 5, null); + }); + // the first source freezes a fake end; the honest one refuses it, then serves without it + Script hostileFirst = new Script((n, r) -> n == 0 + ? pageRaw(2, 9, fake, List.of(entry(2).encode()), 3L) + : status(TrustBaseStatus.INVALID_REQUEST, 3, 9)); + assertEquals(4, update(history, hostileFirst, honest)); + assertEquals(5, tip(history)); + assertTrue(honest.requests.stream().anyMatch(r -> r.getSnapshot() != null)); + assertNull(honest.requests.get(honest.requests.size() - 1).getSnapshot(), + "the last request was made without the dropped snapshot"); + } + + @Test + void noSourceNoNetworkAndCancellation() throws Exception { + TrustBaseHistory history = genesisOnly(); + assertEquals(Failure.NO_SOURCE, + assertThrows(TrustBaseUpdateException.class, () -> update(history)).getFailure()); + + TrustBaseHistory empty = TrustBaseHistory.create(entry(1).entryId()); + Script source = Script.fixed(page(1, 2, 2, null)); + assertEquals(Failure.NO_NETWORK, assertThrows(TrustBaseUpdateException.class, + () -> TrustBaseUpdater.update(TrustBaseUpdateTarget.of(empty), List.of(source), FAST)) + .getFailure()); + // an empty history starts at the genesis epoch and the given network + assertEquals(2, TrustBaseUpdater.update(TrustBaseUpdateTarget.of(empty), List.of(source), + FAST.withNetwork(NET))); + assertEquals(1, source.requests.get(0).getFromEpoch()); + + // cancelling the future cancels the request in flight + ExecutorService executor = Executors.newSingleThreadExecutor(); + try { + CompletableFuture never = new CompletableFuture<>(); + AtomicInteger calls = new AtomicInteger(); + TrustBaseSource hanging = request -> { + calls.incrementAndGet(); + return never; + }; + CompletableFuture run = TrustBaseUpdater.updateAsync( + TrustBaseUpdateTarget.of(genesisOnly()), List.of(hanging), FAST, executor); + long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(5); + while (calls.get() == 0 && System.nanoTime() < deadline) { + Thread.sleep(5); + } + assertEquals(1, calls.get()); + assertTrue(run.cancel(true)); + deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(5); + while (!never.isCancelled() && System.nanoTime() < deadline) { + Thread.sleep(5); + } + assertTrue(never.isCancelled(), "the in-flight request was cancelled"); + } finally { + executor.shutdownNow(); + } + } + + @Test + void aSourceFailureIsACauseNotAnAbort() { + TrustBaseHistory history = genesisOnly(); + Script down = new Script((n, r) -> new IOException("down")); + Script good = Script.fixed(page(2, 2, 2, null)); + assertEquals(1, update(history, down, good)); + TrustBaseHistory second = genesisOnly(); + TrustBaseUpdateException e = assertThrows(TrustBaseUpdateException.class, + () -> update(second, down)); + assertEquals(CauseKind.SOURCE, e.getCauses().get(0).getKind()); + assertTrue(e.getCauses().get(0).getError() instanceof IOException); + assertEquals(2, e.getCauses().size(), "asked once per round"); + } + + private static boolean missing(Integer epochNeeded, TrustBaseHistory history) { + return !history.entryForEpoch(epochNeeded).isPresent(); + } + + @Test + void verifyWithUpdateFetchesOnlyForTheMissingEntryAndRetriesOnce() { + TrustBaseHistory history = genesisOnly(); + TrustBaseUpdateTarget target = TrustBaseUpdateTarget.of(history); + AtomicInteger verifications = new AtomicInteger(); + // verifying a seal of epoch 3 + java.util.function.Supplier verify = () -> { + verifications.incrementAndGet(); + return missing(3, history) ? "NO_ENTRY" : "OK"; + }; + Script source = Script.fixed(page(2, 3, 3, null)); + + // already verifiable: no fetch + TrustBaseHistory full = genesisOnly(); + full.append(entry(2)); + full.append(entry(3)); + assertEquals("OK", TrustBaseUpdater.verifyWithUpdate(TrustBaseUpdateTarget.of(full), + List.of(source), FAST, () -> "OK", "NO_ENTRY"::equals)); + assertEquals(0, source.requests.size()); + + assertEquals("OK", TrustBaseUpdater.verifyWithUpdate(target, List.of(source), FAST, verify, + "NO_ENTRY"::equals)); + assertEquals(2, verifications.get(), "one verification, one update, one retry"); + + // another failure is final: no fetch + Script untouched = Script.fixed(page(2, 3, 3, null)); + assertEquals("BAD", TrustBaseUpdater.verifyWithUpdate(target, List.of(untouched), FAST, + () -> "BAD", "NO_ENTRY"::equals)); + assertEquals(0, untouched.requests.size()); + + // still missing after the update: the retry is the last, never a loop + AtomicInteger calls = new AtomicInteger(); + Script servesTwo = Script.fixed(page(2, 3, 3, null)); + TrustBaseHistory third = genesisOnly(); + assertEquals("NO_ENTRY", TrustBaseUpdater.verifyWithUpdate(TrustBaseUpdateTarget.of(third), + List.of(servesTwo), FAST, () -> { + calls.incrementAndGet(); + return "NO_ENTRY"; + }, "NO_ENTRY"::equals)); + assertEquals(2, calls.get()); + } + + @Test + void aNothingNewerUpdateKeepsTheFirstResultAndDoesNotRetry() { + TrustBaseHistory history = genesisOnly(); + Script none = Script.fixed(status(TrustBaseStatus.NOT_YET_AVAILABLE, 2, 1)); + AtomicInteger calls = new AtomicInteger(); + String result = TrustBaseUpdater.verifyWithUpdate(TrustBaseUpdateTarget.of(history), + List.of(none), FAST, () -> { + calls.incrementAndGet(); + return "NO_ENTRY"; + }, "NO_ENTRY"::equals); + assertEquals("NO_ENTRY", result); + assertEquals(1, calls.get()); + } + + @Test + void aLaterPageFailingAfterTheNeededEntryArrivedStillVerifies() { + TrustBaseHistory history = genesisOnly(); + // page 1 carries epochs 2..3 (the needed one), the cursor page then fails + Script source = new Script((n, r) -> n == 0 ? page(2, 3, 6, 4L) : new IOException("cut")); + String result = TrustBaseUpdater.verifyWithUpdate(TrustBaseUpdateTarget.of(history), + List.of(source), FAST, () -> missing(3, history) ? "NO_ENTRY" : "OK", "NO_ENTRY"::equals); + assertEquals("OK", result); + + // the prefix does not help: the failure is reported with the kept prefix + TrustBaseHistory second = genesisOnly(); + Script cut = new Script((n, r) -> n == 0 ? page(2, 2, 6, 3L) : new IOException("cut")); + TrustBaseUpdateException e = assertThrows(TrustBaseUpdateException.class, + () -> TrustBaseUpdater.verifyWithUpdate(TrustBaseUpdateTarget.of(second), List.of(cut), + FAST, () -> missing(3, second) ? "NO_ENTRY" : "OK", "NO_ENTRY"::equals)); + assertEquals(1, e.getAppended()); + assertNotNull(e.getMessage()); + } + + @Test + void anAuthenticatedForkIsForTheApplicationNotForTheNextSource() { + TrustBaseHistory history = genesisOnly(); + history.append(entry(2)); + // a different, fully quorum-signed epoch 2 (another start round) + TrustBaseEntry fork = TrustBaseTestChain.successor(entry(1), COMMITTEE, COMMITTEE, 999L, + TrustBaseTestChain.firstN(COMMITTEE, 3)); + TrustBaseUpdateTarget forking = new TrustBaseUpdateTarget() { + @Override + public java.util.Optional getNetworkId() { + return history.getNetworkId(); + } + + @Override + public java.util.Optional getTip() { + return history.getTip(); + } + + @Override + public TrustBaseAppendOutcome append(TrustBaseEntry entry) { + throw new TrustBaseConflictException(2, new TrustBaseConflictDetails(true, 2, null, + entry(2).entryId(), NETWORK, null, fork.entryId())); + } + }; + Script serves = Script.fixed(page(3, 3, 3, null)); + Script next = Script.fixed(page(3, 3, 3, null)); + assertThrows(TrustBaseConflictException.class, + () -> TrustBaseUpdater.update(forking, List.of(serves, next), FAST)); + assertEquals(0, next.requests.size()); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseVectors.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseVectors.java new file mode 100644 index 00000000..1d4d1252 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseVectors.java @@ -0,0 +1,36 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.IOException; +import java.io.InputStream; + +/** Loader of the shared trust-base V2 vectors vendored under src/test/resources/vectors. */ +final class TrustBaseVectors { + + private static final ObjectMapper MAPPER = new ObjectMapper(); + + private TrustBaseVectors() { + } + + /** The bft-go-base vectors (entries, decode, bundles, history, weighted quorum). */ + static JsonNode shared() { + return load("/vectors/trust-base-v2/vectors.json"); + } + + /** The maximum-size entry fixture (256 members, 128-byte node ids, 256 predecessor signatures). */ + static JsonNode maxEntry() { + return load("/vectors/trust-base-v2/max-entry/v1/max-entry.json"); + } + + private static JsonNode load(String resource) { + try (InputStream in = TrustBaseVectors.class.getResourceAsStream(resource)) { + if (in == null) { + throw new IllegalStateException("Missing test resource " + resource); + } + return MAPPER.readTree(in); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/UtbCacheFixtures.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/UtbCacheFixtures.java new file mode 100644 index 00000000..a84876cf --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/UtbCacheFixtures.java @@ -0,0 +1,55 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.IOException; +import java.io.InputStream; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.util.HexConverter; + +/** Named pins, bundles and entries of the shared UTB cache vectors (unsigned test keys). */ +final class UtbCacheFixtures { + + private final JsonNode v; + + UtbCacheFixtures() { + try (InputStream in = UtbCacheFixtures.class + .getResourceAsStream("/vectors/utb-cache/v1/vectors.json")) { + this.v = new ObjectMapper().readTree(in); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + private JsonNode named(String section, String name) { + for (JsonNode n : this.v.get(section)) { + if (n.get("name").asText().equals(name)) { + return n; + } + } + throw new IllegalStateException(section + " " + name); + } + + ReleasePin pin(String name) { + JsonNode p = named("pins", name); + return new ReleasePin(NetworkId.fromId((short) p.get("network").asInt()), + Long.parseUnsignedLong(p.get("genesisEpoch").asText()), + HexConverter.decode(p.get("genesisEntryId").asText()), + Long.parseUnsignedLong(p.get("pinnedEpoch").asText()), + HexConverter.decode(p.get("pinnedEntryId").asText()), + HexConverter.decode(p.get("bundle").asText()), + HexConverter.decode(p.get("bundleSha256").asText())); + } + + byte[] bundle(String name) { + return HexConverter.decode(named("bundles", name).get("hex").asText()); + } + + TrustBaseEntry entry(String name) { + return TrustBaseEntry.decode(HexConverter.decode(named("entries", name).get("hex").asText())); + } + + static String key(ReleasePin pin, String namespace) { + return TrustBaseCacheKey.of(pin.getNetworkId(), pin.getGenesisEntryId(), namespace); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileStoreSessionTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileStoreSessionTest.java new file mode 100644 index 00000000..cd122642 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileStoreSessionTest.java @@ -0,0 +1,137 @@ +package org.unicitylabs.sdk.api.bft.trustbase.file; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertInstanceOf; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.io.TempDir; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.FlushResult; +import org.unicitylabs.sdk.api.bft.trustbase.ReleasePin; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseCacheKey; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseSession; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseSessionOptions; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseStoreException; +import org.unicitylabs.sdk.util.HexConverter; + +/** A session over the file store saves and reloads with strict revalidation (shared cache vectors). */ +class FileStoreSessionTest { + + @TempDir + Path tmp; + + private final JsonNode v = vectors(); + + private static JsonNode vectors() { + try (InputStream in = FileStoreSessionTest.class + .getResourceAsStream("/vectors/utb-cache/v1/vectors.json")) { + return new ObjectMapper().readTree(in); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + private JsonNode named(String section, String name) { + for (JsonNode n : this.v.get(section)) { + if (n.get("name").asText().equals(name)) { + return n; + } + } + throw new IllegalStateException(name); + } + + private ReleasePin pin(String name) { + JsonNode p = named("pins", name); + return new ReleasePin(NetworkId.fromId((short) p.get("network").asInt()), + Long.parseUnsignedLong(p.get("genesisEpoch").asText()), + HexConverter.decode(p.get("genesisEntryId").asText()), + Long.parseUnsignedLong(p.get("pinnedEpoch").asText()), + HexConverter.decode(p.get("pinnedEntryId").asText()), + HexConverter.decode(p.get("bundle").asText()), + HexConverter.decode(p.get("bundleSha256").asText())); + } + + private byte[] bundle(String name) { + return HexConverter.decode(named("bundles", name).get("hex").asText()); + } + + private TrustBaseEntry entry(String name) { + return TrustBaseEntry.decode(HexConverter.decode(named("entries", name).get("hex").asText())); + } + + private static T get(CompletableFuture f) { + try { + return f.get(10, TimeUnit.SECONDS); + } catch (ExecutionException e) { + if (e.getCause() instanceof RuntimeException) { + throw (RuntimeException) e.getCause(); + } + throw new IllegalStateException(e.getCause()); + } catch (Exception e) { + throw new IllegalStateException(e); + } + } + + private static TrustBaseSession open(ReleasePin pin, FileTrustBaseStore store) { + return get(TrustBaseSession.openPrivate("test", pin, store, + TrustBaseSessionOptions.of(Runnable::run))).getSession(); + } + + @Test + void aSessionSavesAndASecondStoreInstanceLoadsItWithStrictRevalidation() throws IOException { + ReleasePin pin = pin("A1-3"); + String key = TrustBaseCacheKey.of(pin.getNetworkId(), pin.getGenesisEntryId(), "test"); + FileTrustBaseStore first = new FileTrustBaseStore(this.tmp, Runnable::run); + TrustBaseSession s = open(pin, first); + s.append(entry("A4")); + s.append(entry("A5")); + assertTrue(get(s.flush()).isWrote()); + assertArrayEquals(bundle("A1-5"), Files.readAllBytes(first.filePath(key))); + + TrustBaseSession again = open(pin, new FileTrustBaseStore(this.tmp, Runnable::run)); + assertEquals(5, again.history().getTip().get().getEpoch()); + assertFalse(again.isDirty()); + + // damage on disk is detected on load: the embedded history is used and the file is replaced + Files.write(first.filePath(key), new byte[] {1, 2, 3}); + TrustBaseSession.Opened damaged = get(TrustBaseSession.openPrivate("test", pin, + new FileTrustBaseStore(this.tmp, Runnable::run), + TrustBaseSessionOptions.of(Runnable::run))); + assertEquals(1, damaged.getDiagnostics().size()); + assertEquals(3, damaged.getSession().history().getTip().get().getEpoch()); + assertTrue(get(damaged.getSession().flush()).isWrote()); + assertArrayEquals(bundle("A1-3"), Files.readAllBytes(first.filePath(key))); + } + + @Test + void aBusyLockIsAPendingFlushThatKeepsTheHistory() throws IOException { + ReleasePin pin = pin("A1-3"); + String key = TrustBaseCacheKey.of(pin.getNetworkId(), pin.getGenesisEntryId(), "test"); + FileTrustBaseStore store = new FileTrustBaseStore(this.tmp, Runnable::run); + TrustBaseSession s = open(pin, store); + s.append(entry("A4")); + Files.createDirectory(store.lockPath(key)); + FlushResult flush = get(s.flush()); + assertFalse(flush.isSaved()); + assertInstanceOf(TrustBaseStoreException.class, flush.getError()); + assertEquals(TrustBaseStoreException.Reason.BUSY, + ((TrustBaseStoreException) flush.getError()).getReason()); + assertTrue(s.isDirty()); + assertEquals(4, s.history().getTip().get().getEpoch()); + Files.delete(store.lockPath(key)); // the application's maintenance decision + assertTrue(get(s.flush()).isWrote()); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileTrustBaseStoreTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileTrustBaseStoreTest.java new file mode 100644 index 00000000..b6486106 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/file/FileTrustBaseStoreTest.java @@ -0,0 +1,317 @@ +package org.unicitylabs.sdk.api.bft.trustbase.file; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertInstanceOf; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assumptions.assumeTrue; + +import java.io.IOException; +import java.nio.file.FileSystemException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.attribute.PosixFilePermissions; +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; +import java.util.stream.Stream; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.io.TempDir; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseCacheKey; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseStore; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseStoreException; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseStoreException.Reason; + +/** The file adapter: names, atomicity, locking, budgets, failures. */ +class FileTrustBaseStoreTest { + + private static final String KEY = "utb/v1/7/ab88deef/test"; + private static final byte[] A = {1, 2, 3}; + private static final byte[] B = {4, 5, 6, 7}; + + @TempDir + Path tmp; + + private FileTrustBaseStore store(Path dir) { + return new FileTrustBaseStore(dir, Runnable::run); + } + + private static T get(CompletableFuture future) { + try { + return future.get(10, TimeUnit.SECONDS); + } catch (ExecutionException e) { + if (e.getCause() instanceof RuntimeException) { + throw (RuntimeException) e.getCause(); + } + throw new IllegalStateException(e.getCause()); + } catch (Exception e) { + throw new IllegalStateException(e); + } + } + + private static Reason reasonOf(Runnable action) { + return assertThrows(TrustBaseStoreException.class, action::run).getReason(); + } + + private static List names(Path dir) throws IOException { + try (Stream files = Files.list(dir)) { + return files.map(p -> p.getFileName().toString()).sorted().collect(Collectors.toList()); + } + } + + @Test + void namesFilesAndLocksAsTheOtherAdaptersDo() { + FileTrustBaseStore s = store(this.tmp); + String stem = "utb-" + org.unicitylabs.sdk.util.HexConverter.encode( + TrustBaseCacheKey.sha256Of(KEY.getBytes(java.nio.charset.StandardCharsets.UTF_8))); + assertEquals(this.tmp.resolve(stem + ".cbor"), s.filePath(KEY)); + assertEquals(this.tmp.resolve(stem + ".lock"), s.lockPath(KEY)); + // the known answer shared with the JS and Rust adapters: sha256 of the empty key + assertEquals("utb-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.cbor", + s.filePath("").getFileName().toString()); + // the namespace never reaches the filesystem + assertFalse(s.filePath("utb/v1/7/ab/secret-namespace").toString().contains("secret")); + } + + @Test + void readsAbsentAsEmptyWritesFromAbsentAndRefusesAStaleRevision() { + FileTrustBaseStore s = store(this.tmp); + assertFalse(get(s.read(KEY, 100)).isPresent()); + assertEquals(TrustBaseStore.CasOutcome.CHANGED, get(s.compareAndSwap(KEY, "x", A)), + "a revision for an absent key is stale"); + assertEquals(TrustBaseStore.CasOutcome.WRITTEN, get(s.compareAndSwap(KEY, null, A))); + TrustBaseStore.Stored first = get(s.read(KEY, 100)).get(); + assertArrayEquals(A, first.getBytes()); + assertEquals(TrustBaseCacheKey.revision(A), first.getRevision()); + + assertEquals(TrustBaseStore.CasOutcome.CHANGED, get(s.compareAndSwap(KEY, null, B)), + "absent expected, present found"); + assertEquals(TrustBaseStore.CasOutcome.WRITTEN, + get(s.compareAndSwap(KEY, first.getRevision(), B))); + assertEquals(TrustBaseStore.CasOutcome.CHANGED, + get(s.compareAndSwap(KEY, first.getRevision(), A)), "the old revision is stale now"); + assertArrayEquals(B, get(s.read(KEY, 100)).get().getBytes()); + } + + @Test + void createsTheDirectoryWithItsParentsOnTheFirstWrite() { + Path deep = this.tmp.resolve("a").resolve("b").resolve("c"); + FileTrustBaseStore s = store(deep); + assertFalse(get(s.read(KEY, 10)).isPresent(), "an absent directory reads as absent"); + assertEquals(TrustBaseStore.CasOutcome.WRITTEN, get(s.compareAndSwap(KEY, null, A))); + assertTrue(Files.isRegularFile(s.filePath(KEY))); + } + + @Test + void aStorePathThatIsAFileIsAnIoErrorNotABusyLock() throws IOException { + Path file = this.tmp.resolve("not-a-directory"); + Files.write(file, A); + FileTrustBaseStore s = store(file); + assertEquals(Reason.IO, reasonOf(() -> get(s.compareAndSwap(KEY, null, B)))); + } + + @Test + void leavesNoLockAndNoTemporaryFileBehind() throws IOException { + FileTrustBaseStore s = store(this.tmp); + get(s.compareAndSwap(KEY, null, A)); + get(s.compareAndSwap(KEY, TrustBaseCacheKey.revision(A), B)); + assertEquals(List.of(s.filePath(KEY).getFileName().toString()), names(this.tmp)); + } + + @Test + void judgesTheSizeBeforeReadingAndRefusesAnOversizeFile() throws IOException { + FileTrustBaseStore s = store(this.tmp); + get(s.compareAndSwap(KEY, null, new byte[10])); + assertEquals(10, get(s.read(KEY, 10)).get().getBytes().length, "at the budget"); + assertEquals(Reason.OVERSIZE, reasonOf(() -> get(s.read(KEY, 9)))); + } + + @Test + void theSizeIsJudgedBeforeAnyByteIsReadAndTheReadItselfIsBounded() throws IOException { + FileTrustBaseStore s = store(this.tmp); + get(s.compareAndSwap(KEY, null, new byte[10])); + java.util.concurrent.atomic.AtomicInteger reads = new java.util.concurrent.atomic.AtomicInteger(); + s.afterSizeCheck = reads::incrementAndGet; + assertEquals(Reason.OVERSIZE, reasonOf(() -> get(s.read(KEY, 9)))); + assertEquals(0, reads.get(), "an oversize file is refused before it is read"); + + // a file that grows after the size check is caught by the bounded read + s.afterSizeCheck = () -> { + try { + Files.write(s.filePath(KEY), new byte[15]); + } catch (IOException e) { + throw new IllegalStateException(e); + } + }; + assertEquals(Reason.OVERSIZE, reasonOf(() -> get(s.read(KEY, 10)))); + } + + @Test + void removesTemporaryFilesACrashedWriterLeftUnderTheLock() throws IOException { + FileTrustBaseStore s = store(this.tmp); + String stem = s.filePath(KEY).getFileName().toString().replace(".cbor", ""); + Path orphan = this.tmp.resolve(stem + ".tmp-orphan"); + Path other = this.tmp.resolve("unrelated.tmp-orphan"); + Files.write(orphan, A); + Files.write(other, A); + assertFalse(get(s.read(KEY, 10)).isPresent(), "an orphan is ignored by readers"); + get(s.compareAndSwap(KEY, null, B)); + assertFalse(Files.exists(orphan)); + assertTrue(Files.exists(other), "only this key's temporaries are removed"); + } + + @Test + void aHeldLockIsBusyAtOnceAndIsNeverStolen() throws IOException { + FileTrustBaseStore s = store(this.tmp); + get(s.compareAndSwap(KEY, null, A)); + Files.createDirectory(s.lockPath(KEY)); + long started = System.nanoTime(); + assertEquals(Reason.BUSY, + reasonOf(() -> get(s.compareAndSwap(KEY, TrustBaseCacheKey.revision(A), B)))); + assertTrue(TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - started) < 1000, "it never waits"); + assertTrue(Files.isDirectory(s.lockPath(KEY)), "and the lock is not stolen"); + assertArrayEquals(A, get(s.read(KEY, 10)).get().getBytes(), "nothing was written"); + // reads do not take the lock + assertTrue(get(s.read(KEY, 10)).isPresent()); + } + + @Test + void exactlyOneOfManyConcurrentWritersFromOneRevisionWins() throws Exception { + FileTrustBaseStore seed = store(this.tmp); + get(seed.compareAndSwap(KEY, null, A)); + String revision = TrustBaseCacheKey.revision(A); + int writers = 8; + ExecutorService pool = Executors.newFixedThreadPool(writers); + try { + FileTrustBaseStore s = new FileTrustBaseStore(this.tmp, pool); + CountDownLatch go = new CountDownLatch(1); + List> results = new ArrayList<>(); + for (int i = 0; i < writers; i++) { + byte[] mine = {(byte) (10 + i)}; + results.add(CompletableFuture.supplyAsync(() -> { + try { + go.await(); + return (Object) s.compareAndSwap(KEY, revision, mine).get(); + } catch (ExecutionException e) { + return e.getCause(); + } catch (InterruptedException e) { + return e; + } + })); + } + go.countDown(); + int written = 0; + for (CompletableFuture r : results) { + Object outcome = r.get(20, TimeUnit.SECONDS); + if (outcome == TrustBaseStore.CasOutcome.WRITTEN) { + written++; + } else { + assertTrue(outcome == TrustBaseStore.CasOutcome.CHANGED + || (outcome instanceof TrustBaseStoreException + && ((TrustBaseStoreException) outcome).getReason() == Reason.BUSY), String.valueOf(outcome)); + } + } + assertEquals(1, written); + assertEquals(1, get(s.read(KEY, 10)).get().getBytes().length); + assertEquals(List.of(s.filePath(KEY).getFileName().toString()), names(this.tmp)); + } finally { + pool.shutdownNow(); + } + } + + @Test + void keepsTheOldBytesWhenTheWriteIsInterruptedBeforeTheMoveAndReleasesTheLock() + throws IOException { + FileTrustBaseStore s = store(this.tmp); + get(s.compareAndSwap(KEY, null, A)); + s.beforeMove = () -> { + throw new IllegalStateException("crash"); + }; + assertThrows(IllegalStateException.class, + () -> get(s.compareAndSwap(KEY, TrustBaseCacheKey.revision(A), B))); + s.beforeMove = null; + assertArrayEquals(A, get(s.read(KEY, 10)).get().getBytes()); + assertEquals(List.of(s.filePath(KEY).getFileName().toString()), names(this.tmp), + "neither a temporary file nor the lock is left"); + assertEquals(TrustBaseStore.CasOutcome.WRITTEN, + get(s.compareAndSwap(KEY, TrustBaseCacheKey.revision(A), B)), "and the store works again"); + } + + @Test + void aCancelledFutureDoesNotReleaseTheLockBeforeTheWriteFinishes() throws Exception { + ExecutorService pool = Executors.newSingleThreadExecutor(); + try { + FileTrustBaseStore s = new FileTrustBaseStore(this.tmp, pool); + CountDownLatch inside = new CountDownLatch(1); + CountDownLatch proceed = new CountDownLatch(1); + s.beforeMove = () -> { + inside.countDown(); + try { + proceed.await(10, TimeUnit.SECONDS); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + } + }; + CompletableFuture write = s.compareAndSwap(KEY, null, A); + assertTrue(inside.await(10, TimeUnit.SECONDS)); + write.cancel(true); + assertTrue(Files.isDirectory(s.lockPath(KEY)), "the lock is held while the write runs"); + assertEquals(Reason.BUSY, reasonOf(() -> get(store(this.tmp).compareAndSwap(KEY, null, B)))); + s.beforeMove = null; + proceed.countDown(); + pool.shutdown(); + assertTrue(pool.awaitTermination(10, TimeUnit.SECONDS)); + assertArrayEquals(A, get(store(this.tmp).read(KEY, 10)).get().getBytes(), + "the started write completed"); + assertFalse(Files.exists(s.lockPath(KEY)), "and released the lock"); + } finally { + pool.shutdownNow(); + } + } + + @Test + void aDeniedDirectoryIsPermissionAndNeverFallsBackToAnUnlockedWrite() throws IOException { + assumeTrue(Files.getFileStore(this.tmp).supportsFileAttributeView("posix")); + Path locked = this.tmp.resolve("locked"); + Files.createDirectory(locked); + FileTrustBaseStore s = store(locked); + get(s.compareAndSwap(KEY, null, A)); + Files.setPosixFilePermissions(locked, PosixFilePermissions.fromString("r-xr-xr-x")); + try { + assumeTrue(!Files.isWritable(locked), "running as a user the mode does not bind"); + assertEquals(Reason.PERMISSION, + reasonOf(() -> get(s.compareAndSwap(KEY, TrustBaseCacheKey.revision(A), B)))); + assertArrayEquals(A, get(s.read(KEY, 10)).get().getBytes(), "nothing was written"); + } finally { + Files.setPosixFilePermissions(locked, PosixFilePermissions.fromString("rwxr-xr-x")); + } + } + + @Test + void mapsAFullDiskToQuotaAndADeniedAccessToPermission() { + assertEquals(Reason.QUOTA, FileTrustBaseStore.map( + new FileSystemException("f", null, "No space left on device")).getReason()); + assertEquals(Reason.QUOTA, FileTrustBaseStore.map( + new FileSystemException("f", null, "Disk quota exceeded")).getReason()); + assertEquals(Reason.PERMISSION, FileTrustBaseStore.map( + new java.nio.file.AccessDeniedException("f")).getReason()); + assertEquals(Reason.PERMISSION, FileTrustBaseStore.map( + new FileSystemException("f", null, "Permission denied")).getReason()); + TrustBaseStoreException io = FileTrustBaseStore.map(new IOException("boom")); + assertEquals(Reason.IO, io.getReason()); + assertNotNull(io.getCause()); + assertNull(null); + assertInstanceOf(IOException.class, io.getCause()); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/verification/SealVerificationSessionTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/verification/SealVerificationSessionTest.java index 08557ac7..d3948788 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/verification/SealVerificationSessionTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/verification/SealVerificationSessionTest.java @@ -1,5 +1,6 @@ package org.unicitylabs.sdk.api.bft.verification; +import org.unicitylabs.sdk.api.bft.TrustBaseTestUtils; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; @@ -10,7 +11,7 @@ import java.util.Set; import org.junit.jupiter.api.Test; import org.unicitylabs.sdk.api.NetworkId; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.TestChain; import org.unicitylabs.sdk.api.bft.UnicitySeal; import org.unicitylabs.sdk.crypto.hash.DataHash; @@ -30,6 +31,12 @@ private static UnicitySeal seal(long round, int fill) { return AUTHORITY.seal(round, hash, 0, 1, 2); } + private static UnicitySeal sealBy(long round, int... nodes) { + byte[] hash = new byte[32]; + java.util.Arrays.fill(hash, (byte) round); + return AUTHORITY.seal(round, hash, nodes); + } + @Test void aGoodSealIsAuthenticatedStrictly() { SealVerificationSession session = SealVerificationSession.create(AUTHORITY.trustBase()); @@ -123,21 +130,37 @@ void theStrictPathChecksNetworkEpochAndRoundBeforeTheMemoEveryTime() { } @Test - void aLegacySuccessNeverAdmitsAStrictRequest() { + void anEpochEndsExclusivelyAtTheStartRoundOfTheNextOne() { TestChain.Authority epoch2 = new TestChain.Authority(NetworkId.LOCAL, 2, 10, 1); - SealVerificationSession session = SealVerificationSession.create(epoch2.trustBase()); - UnicitySeal historical = seal(50, 3); + SealVerificationSession session = + SealVerificationSession.create(AUTHORITY.trustBaseThrough(epoch2)); + assertEquals(VerificationStatus.OK, session.authenticate(seal(9, 1)).getStatus()); + assertEquals(UnicityCertificateFailure.AFTER_EPOCH_END, + session.authenticate(seal(10, 1)).getFailure()); + // the first round of epoch 2 belongs to epoch 2 + assertEquals(VerificationStatus.OK, + session.authenticate(epoch2.seal(10, new byte[32], 0, 1, 2)).getStatus()); + } - // the historical proof of an earlier epoch passes the legacy quorum-only check and warms the memo - assertEquals(VerificationStatus.OK, session.verifyLegacyQuorum(historical).getStatus()); + @Test + void aMemoHitStillPlacesTheSealInTheGrowingHistory() { + TestChain.Authority epoch2 = new TestChain.Authority(NetworkId.LOCAL, 2, 10, 1); + org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory history = AUTHORITY.trustBase(); + SealVerificationSession session = SealVerificationSession.create(history); + UnicitySeal inEpoch1 = seal(12, 3); + + assertEquals(VerificationStatus.OK, session.authenticate(inEpoch1).getStatus()); assertEquals(1, session.getStats().getQuorumChecks()); - // the strict request is refused on every call, hits or not, and costs no signature work + // the history grows: epoch 2 starts at round 10, so round 12 of epoch 1 is past its end + AUTHORITY.appendSuccessor(history, epoch2); for (int i = 0; i < 3; i++) { - assertEquals(UnicityCertificateFailure.EPOCH_MISMATCH, - session.authenticate(historical).getFailure()); + assertEquals(UnicityCertificateFailure.AFTER_EPOCH_END, + session.authenticate(inEpoch1).getFailure()); } + // refused on every call from the placement: no signature work, and the memo was not consulted assertEquals(1, session.getStats().getQuorumChecks()); + assertEquals(0, session.getStats().getMemoHits()); } @Test @@ -186,15 +209,15 @@ void epochsAndRoundsAreCompared2To63AndAbove() { } @Test - void aStakeWeightedAuthorityIsRefusedNotJudgedByTheWrongRule() { - RootTrustBase weighted = RootTrustBase.fromJson("{\"version\":1,\"networkId\":3,\"epoch\":1," - + "\"epochStartRound\":1,\"rootNodes\":[{\"nodeId\":\"n0\",\"sigKey\":\"0x02aa\",\"stake\":5}," - + "{\"nodeId\":\"n1\",\"sigKey\":\"0x02bb\",\"stake\":1}],\"quorumThreshold\":1," - + "\"stateHash\":\"\",\"changeRecordHash\":\"\",\"previousEntryHash\":\"\",\"signatures\":{}}"); - SealVerificationSession session = SealVerificationSession.create(weighted); - assertEquals(UnicityCertificateFailure.UNSUPPORTED_AUTHORITY, - session.authenticate(seal(5, 1)).getFailure()); - assertEquals(0, session.getStats().getQuorumChecks()); + void aWeightedAuthorityCountsWeightNotSigners() { + // weights 5,1,1,1: threshold 6; node 0 alone has 5, nodes 0 and 1 have 6, nodes 1-3 have 3 + SealVerificationSession session = + SealVerificationSession.create(AUTHORITY.weightedTrustBase(5, 1, 1, 1)); + assertEquals(UnicityCertificateFailure.QUORUM_NOT_REACHED, + session.authenticate(sealBy(5, 0)).getFailure()); + assertEquals(VerificationStatus.OK, session.authenticate(sealBy(5, 0, 1)).getStatus()); + assertEquals(UnicityCertificateFailure.QUORUM_NOT_REACHED, + session.authenticate(sealBy(6, 1, 2, 3)).getFailure()); } @Test diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/ConsolidationGuardTest.java b/src/test/java/org/unicitylabs/sdk/consolidation/ConsolidationGuardTest.java index 6d487e8b..099d4e71 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/ConsolidationGuardTest.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/ConsolidationGuardTest.java @@ -23,11 +23,10 @@ import org.unicitylabs.sdk.api.InclusionProofResponse; import org.unicitylabs.sdk.api.StateId; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; import org.unicitylabs.sdk.predicate.builtin.SignaturePredicate; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; @@ -126,8 +125,7 @@ private TestAggregatorClient reCertify(byte[] aggregatorKey, long shift) throws private ProofConsolidator consolidator(BatchAggregatorClient batch) { OperationUnicityCertificateVerifier operation = (OperationUnicityCertificateVerifier) - new UnicityCertificateVerifier().beginOperation(VerificationPolicy.LEGACY_QUORUM, - PartitionViewPolicy.none()); + new UnicityCertificateVerifier().beginOperation(PartitionViewPolicy.none()); return new ProofConsolidator(ShardRouting.single(batch), context.getTrustBase(), operation); } @@ -206,7 +204,7 @@ void theRebuiltTokenIsVerifiedAgainWithTheCallersVerifier() throws Exception { int originalProofs = items().size(); UnicityCertificateVerifier callersRule = new UnicityCertificateVerifier() { @Override - public UnicityCertificateVerificationResult verify(RootTrustBase trustBase, + public UnicityCertificateVerificationResult verify(TrustBaseHistoryView trustBase, InclusionProof proof) { if (calls.incrementAndGet() > originalProofs) { return super.verify(TestAggregatorClient.create().getTrustBase(), proof); @@ -236,12 +234,17 @@ public UnicityCertificateVerificationResult verify(RootTrustBase trustBase, void aBusyVerificationSessionIsReportedAsABusyRetryableFailure() throws Exception { TestAggregatorClient honest = reCertify(key, 0); org.unicitylabs.sdk.api.bft.BlockingTrustBase blocking = - org.unicitylabs.sdk.api.bft.BlockingTrustBase.copyOf(context.getTrustBase()); + new org.unicitylabs.sdk.api.bft.BlockingTrustBase(); + TrustBaseHistoryView view = context.getTrustBase(); OperationUnicityCertificateVerifier operation = (OperationUnicityCertificateVerifier) - new UnicityCertificateVerifier().beginOperation(VerificationPolicy.LEGACY_QUORUM, - PartitionViewPolicy.none()); + new UnicityCertificateVerifier().beginOperation(PartitionViewPolicy.none(), + v -> org.unicitylabs.sdk.api.bft.verification.SealVerificationSession.create(v, + org.unicitylabs.sdk.api.bft.verification.SealVerificationSession + .DEFAULT_MAX_ENTRIES, + org.unicitylabs.sdk.api.bft.verification.SealVerificationSession + .DEFAULT_MAX_IN_FLIGHT, blocking)); org.unicitylabs.sdk.api.bft.verification.SealVerificationSession session = - operation.sessionFor(blocking); + operation.sessionFor(view); // every slot of the session is taken by a check that does not finish blocking.arm(); @@ -258,7 +261,7 @@ void aBusyVerificationSessionIsReportedAsABusyRetryableFailure() throws Exceptio new org.unicitylabs.sdk.crypto.hash.DataHash( org.unicitylabs.sdk.crypto.hash.HashAlgorithm.SHA256, hash)) .getUnicitySeal(); - pool.submit(() -> session.verifyLegacyQuorum(seal)); + pool.submit(() -> session.authenticate(seal)); } for (int i = 0; i < 500 && blocking.entered() < slots; i++) { Thread.sleep(10); @@ -266,14 +269,14 @@ void aBusyVerificationSessionIsReportedAsABusyRetryableFailure() throws Exceptio assertEquals(slots, blocking.entered(), "the session is full"); ConsolidationException direct = failure(new ProofConsolidator( - ShardRouting.single(new Batch(honest)), blocking, operation).consolidate(items(), + ShardRouting.single(new Batch(honest)), view, operation).consolidate(items(), ConsolidationOptions.defaults().withExecutor(Runnable::run))); assertEquals(ConsolidationException.Kind.BUSY, direct.getKind()); assertTrue(direct.isRetryable()); assertTrue(direct.getCause() instanceof org.unicitylabs.sdk.api.bft.verification.SealVerificationBusyException); - VerificationContext shared = new VerificationContext(blocking, + VerificationContext shared = new VerificationContext(view, PredicateVerifierService.create(), new MintJustificationVerifierService(), new TokenIssuanceVerifierService(false), operation); ConsolidationException viaClient = failure(tokenClient(new Batch(honest), shared)); diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java b/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java index 9d46d040..31197a70 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java @@ -1,5 +1,6 @@ package org.unicitylabs.sdk.consolidation; +import org.unicitylabs.sdk.api.bft.TrustBaseTestUtils; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; @@ -26,7 +27,7 @@ import org.unicitylabs.sdk.api.InclusionProofBatch; import org.unicitylabs.sdk.api.InclusionProofResponse; import org.unicitylabs.sdk.api.StateId; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.serializer.cbor.CborDeserializer; import org.unicitylabs.sdk.util.HexConverter; @@ -106,7 +107,7 @@ static ShardId shard(String bits) { } /** Go trust base CBOR: tag 39000 [version, network, epoch, epochStart, [[id, key, stake]...], quorum, ...]. */ - static RootTrustBase trustBase(byte[] cbor) { + static TrustBaseHistoryView trustBase(byte[] cbor) { List data = CborDeserializer.decodeArray(CborDeserializer.decodeTag(cbor).getData()); ObjectNode json = JSON.createObjectNode(); json.put("version", 1); @@ -132,7 +133,7 @@ static RootTrustBase trustBase(byte[] cbor) { json.putNull("previousEntryHash"); json.putObject("signatures"); try { - return RootTrustBase.fromJson(JSON.writeValueAsString(json)); + return TrustBaseTestUtils.fromLegacyJson(JSON.writeValueAsString(json)); } catch (IOException e) { throw new UncheckedIOException(e); } diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/PeerTransportTimeoutTest.java b/src/test/java/org/unicitylabs/sdk/consolidation/PeerTransportTimeoutTest.java index ce2cee7a..a46c35e0 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/PeerTransportTimeoutTest.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/PeerTransportTimeoutTest.java @@ -16,14 +16,13 @@ import org.unicitylabs.sdk.api.BatchRequestOptions; import org.unicitylabs.sdk.api.InclusionProofBatch; import org.unicitylabs.sdk.api.StateId; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.api.bft.ShardConfigurationPin; import org.unicitylabs.sdk.util.HexConverter; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; /** A peer's ordinary transport timeout in wave 2 stays a retryable transport failure. */ class PeerTransportTimeoutTest { @@ -73,10 +72,9 @@ void aPeerTransportTimeoutStaysRetryableAndIsNotReportedAsCancelled() throws Exc pins.add(new ShardConfigurationPin(CorpusSupport.shard(config.get("shard").asText()), HexConverter.decode(config.get("hash").asText()))); } - RootTrustBase trustBase = CorpusSupport.trustBase(c.bytes("trust-base.cbor")); + TrustBaseHistoryView trustBase = CorpusSupport.trustBase(c.bytes("trust-base.cbor")); OperationUnicityCertificateVerifier verifier = (OperationUnicityCertificateVerifier) - new UnicityCertificateVerifier().beginOperation(VerificationPolicy.LEGACY_QUORUM, - PartitionViewPolicy.none()); + new UnicityCertificateVerifier().beginOperation(PartitionViewPolicy.none()); ProofConsolidator consolidator = new ProofConsolidator(new ShardRouting(endpoints, scheme, pins), trustBase, verifier); ConsolidationException failure; diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/TokenProofClientTest.java b/src/test/java/org/unicitylabs/sdk/consolidation/TokenProofClientTest.java index 7f1b9646..8c511b90 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/TokenProofClientTest.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/TokenProofClientTest.java @@ -1,5 +1,6 @@ package org.unicitylabs.sdk.consolidation; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; @@ -340,7 +341,7 @@ void aCustomCertificateVerifierKeepsVerifyingEveryProofItself() throws Exception UnicityCertificateVerifier counting = new UnicityCertificateVerifier() { @Override public org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult verify( - org.unicitylabs.sdk.api.bft.RootTrustBase trustBase, + org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView trustBase, org.unicitylabs.sdk.api.InclusionProof proof) { verified.incrementAndGet(); return super.verify(trustBase, proof); diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/UcConsolidationCorpusTest.java b/src/test/java/org/unicitylabs/sdk/consolidation/UcConsolidationCorpusTest.java index 8bf9bb81..beeb980d 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/UcConsolidationCorpusTest.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/UcConsolidationCorpusTest.java @@ -24,12 +24,11 @@ import org.unicitylabs.sdk.api.InclusionProofResponse; import org.unicitylabs.sdk.api.bft.PartitionView; import org.unicitylabs.sdk.api.bft.PartitionViewException; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.ShardConfigurationPin; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.consolidation.CorpusSupport.Call; import org.unicitylabs.sdk.consolidation.CorpusSupport.Case; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; @@ -134,11 +133,10 @@ private static Observation execute(Case c) throws IOException { Observation observed = new Observation(); observed.calls = CorpusSupport.newCalls(); try { - RootTrustBase trustBase = CorpusSupport.trustBase(c.bytes("trust-base.cbor")); + TrustBaseHistoryView trustBase = CorpusSupport.trustBase(c.bytes("trust-base.cbor")); ShardRouting routing = routing(c, responses(c), observed.calls); OperationUnicityCertificateVerifier verifier = (OperationUnicityCertificateVerifier) - new UnicityCertificateVerifier().beginOperation(VerificationPolicy.LEGACY_QUORUM, - PartitionViewPolicy.none()); + new UnicityCertificateVerifier().beginOperation(PartitionViewPolicy.none()); ProofConsolidator consolidator = new ProofConsolidator(routing, trustBase, verifier); List items; try { @@ -264,8 +262,8 @@ void negativeCaseIsRefusedWithTheReferenceOutcome(String name) throws IOExceptio String observed = "ok"; try { routing(c, responses(c), CorpusSupport.newCalls()); - RootTrustBase trustBase = CorpusSupport.trustBase(c.bytes("trust-base.cbor")); - if (c.json("context.json").get("networkId").asInt() != trustBase.getNetworkId().getId()) { + TrustBaseHistoryView trustBase = CorpusSupport.trustBase(c.bytes("trust-base.cbor")); + if (c.json("context.json").get("networkId").asInt() != trustBase.getNetworkId().get().getId()) { observed = "incompatible_lineage"; } } catch (ConsolidationException e) { diff --git a/src/test/java/org/unicitylabs/sdk/crypto/secp256k1/SignatureRecoveryVectorsTest.java b/src/test/java/org/unicitylabs/sdk/crypto/secp256k1/SignatureRecoveryVectorsTest.java index b19410cb..bf38c1ae 100644 --- a/src/test/java/org/unicitylabs/sdk/crypto/secp256k1/SignatureRecoveryVectorsTest.java +++ b/src/test/java/org/unicitylabs/sdk/crypto/secp256k1/SignatureRecoveryVectorsTest.java @@ -1,5 +1,6 @@ package org.unicitylabs.sdk.crypto.secp256k1; +import org.unicitylabs.sdk.api.bft.TrustBaseTestUtils; import static org.junit.jupiter.api.Assertions.assertEquals; import com.fasterxml.jackson.databind.JsonNode; @@ -11,7 +12,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.DynamicTest; import org.junit.jupiter.api.TestFactory; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.bft.UnicitySeal; import org.unicitylabs.sdk.api.bft.verification.rule.UnicitySealQuorumSignaturesVerificationRule; import org.unicitylabs.sdk.crypto.hash.DataHash; @@ -84,7 +85,8 @@ List sealCases() { .append("\",\"sigKey\":\"").append(node.get("publicKeyCompressed").asText()) .append("\",\"stake\":").append(node.get("stake").asText()).append('}'); } - RootTrustBase trustBase = RootTrustBase.fromJson("{\"version\":1,\"networkId\":" + org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory trustBase = + TrustBaseTestUtils.fromLegacyJson("{\"version\":1,\"networkId\":" + seal.get("networkId").asText() + ",\"epoch\":" + seal.get("epoch").asText() + ",\"epochStartRound\":0,\"rootNodes\":[" + nodes + "],\"quorumThreshold\":" + seal.get("quorumThreshold").asText() @@ -97,7 +99,7 @@ List sealCases() { UnicitySeal unicitySeal = UnicitySeal.fromCbor( HexConverter.decode(testCase.get("sealCbor").asText())); assertEquals(testCase.get("accept").asBoolean(), - UnicitySealQuorumSignaturesVerificationRule.verify(trustBase, unicitySeal).getStatus() + UnicitySealQuorumSignaturesVerificationRule.verify(trustBase.getTip().get(), unicitySeal).getStatus() == VerificationStatus.OK); })); } diff --git a/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java b/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java index 50ad68a2..3ac58c2e 100644 --- a/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java +++ b/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java @@ -1,12 +1,13 @@ package org.unicitylabs.sdk.e2e; +import org.unicitylabs.sdk.api.bft.TrustBaseTestUtils; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; import org.unicitylabs.sdk.StateTransitionClient; import org.unicitylabs.sdk.api.JsonRpcAggregatorClient; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.common.CommonTestFlow; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; import org.unicitylabs.sdk.transaction.verification.MintJustificationVerifierService; @@ -40,7 +41,7 @@ void setUp() throws IOException { try (InputStream stream = getClass().getResourceAsStream("/trust-base.json")) { assertNotNull(stream, "trust-base.json not found"); this.context = new VerificationContext( - RootTrustBase.fromJson(new String(stream.readAllBytes())), + TrustBaseTestUtils.fromLegacyJson(new String(stream.readAllBytes())), PredicateVerifierService.create(), new MintJustificationVerifierService(), new TokenIssuanceVerifierService(false)); } diff --git a/src/test/java/org/unicitylabs/sdk/examples/ApiReferenceExamples.java b/src/test/java/org/unicitylabs/sdk/examples/ApiReferenceExamples.java index cd207155..30a16b3f 100644 --- a/src/test/java/org/unicitylabs/sdk/examples/ApiReferenceExamples.java +++ b/src/test/java/org/unicitylabs/sdk/examples/ApiReferenceExamples.java @@ -1,5 +1,6 @@ package org.unicitylabs.sdk.examples; +import org.unicitylabs.sdk.api.bft.TrustBaseTestUtils; import java.io.IOException; import java.math.BigInteger; import java.nio.ByteBuffer; @@ -36,7 +37,10 @@ import org.unicitylabs.sdk.api.RequestOptions; import org.unicitylabs.sdk.api.StateId; import org.unicitylabs.sdk.api.WaitOptions; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundle; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundleLimits; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.api.jsonrpc.JsonRpcNetworkException; import org.unicitylabs.sdk.api.jsonrpc.JsonRpcResponseException; import org.unicitylabs.sdk.consolidation.ConsolidationException; @@ -141,8 +145,10 @@ static StateTransitionClient connect(String apiKey) { return new StateTransitionClient(aggregator); } - static RootTrustBase loadTrustBase() throws IOException { - return RootTrustBase.fromJson(Files.readString(Path.of("bft-trustbase.testnet2.json"))); + static TrustBaseHistory loadTrustBase(byte[] genesisPin) throws IOException { + var bundle = TrustBaseBundle.decode(Files.readAllBytes(Path.of("trust-base-bundle.cbor")), + new TrustBaseBundleLimits(1 << 20, 64)); + return TrustBaseHistory.fromBundle(bundle, genesisPin); } static JsonRpcAggregatorClient withTimeouts(String url, String apiKey) { @@ -158,7 +164,7 @@ static CompletableFuture lookupWithTimeout( RequestOptions.none().withCallTimeout(Duration.ofSeconds(5))); } - static VerificationContext createContext(RootTrustBase trustBase) { + static VerificationContext createContext(TrustBaseHistoryView trustBase) { var predicateVerifier = PredicateVerifierService.create(); return new VerificationContext(trustBase, predicateVerifier, new MintJustificationVerifierService(), new TokenIssuanceVerifierService(false)); @@ -183,7 +189,7 @@ static Predicate recipientFromPublicKey(byte[] recipientPublicKey) { static Token mint(StateTransitionClient client, VerificationContext context, Predicate owner, byte[] payload, Map journal) throws Exception { - MintTransaction mint = MintTransaction.builder(context.getTrustBase().getNetworkId(), owner) + MintTransaction mint = MintTransaction.builder(context.getTrustBase().getNetworkId().get(), owner) .tokenType(new TokenType("my-token-type".getBytes(StandardCharsets.UTF_8))) .data(payload) .build(); @@ -291,9 +297,10 @@ static Token store(Token token) { return Token.fromCbor(HexConverter.decode(hex)); } - static String trustBaseJson(RootTrustBase trustBase) { - String json = trustBase.toJson(); - return RootTrustBase.fromJson(json).getNetworkId().toString(); + static String trustBaseBundleNetwork(TrustBaseHistory trustBase) { + byte[] bundle = trustBase.toBundle(); + return TrustBaseBundle.decode(bundle, new TrustBaseBundleLimits(1 << 20, 64)) + .getNetworkId().toString(); } // 8. Errors @@ -332,7 +339,7 @@ static boolean checked(Throwable failure) { // 9. Advanced - static NonInclusionSnapshot requireAbsent(RootTrustBase trustBase, NonInclusionProof proof, + static NonInclusionSnapshot requireAbsent(TrustBaseHistoryView trustBase, NonInclusionProof proof, Checkpoint checkpoint) { // `checkpoint` is obtained independently of the proof and of the server response. NonInclusionOutcome outcome = @@ -436,7 +443,7 @@ static PaymentDataDeserializer paymentDecoder() { return Payment::decode; } - static VerificationContext splitContext(RootTrustBase trustBase) { + static VerificationContext splitContext(TrustBaseHistoryView trustBase) { var justifications = new MintJustificationVerifierService() .register(new SplitMintJustificationVerifier(Payment::decode)); return new VerificationContext(trustBase, PredicateVerifierService.create(), justifications, diff --git a/src/test/java/org/unicitylabs/sdk/examples/ApiReferenceExamplesTest.java b/src/test/java/org/unicitylabs/sdk/examples/ApiReferenceExamplesTest.java index b9f96b86..448b3db2 100644 --- a/src/test/java/org/unicitylabs/sdk/examples/ApiReferenceExamplesTest.java +++ b/src/test/java/org/unicitylabs/sdk/examples/ApiReferenceExamplesTest.java @@ -56,10 +56,10 @@ void mintTransferSerializeAndVerify() throws Exception { } @Test - void trustBaseJsonRoundTrips() { + void trustBaseBundleRoundTrips() { TestAggregatorClient aggregator = TestAggregatorClient.create(); - assertEquals(aggregator.getTrustBase().getNetworkId().toString(), - ApiReferenceExamples.trustBaseJson(aggregator.getTrustBase())); + assertEquals(aggregator.getTrustBase().getNetworkId().get().toString(), + ApiReferenceExamples.trustBaseBundleNetwork(aggregator.getTrustBase())); } @Test diff --git a/src/test/java/org/unicitylabs/sdk/examples/WaitingExamples.java b/src/test/java/org/unicitylabs/sdk/examples/WaitingExamples.java index 561100a1..33ad260a 100644 --- a/src/test/java/org/unicitylabs/sdk/examples/WaitingExamples.java +++ b/src/test/java/org/unicitylabs/sdk/examples/WaitingExamples.java @@ -16,7 +16,7 @@ import org.unicitylabs.sdk.api.StateId; import org.unicitylabs.sdk.api.SubmitOutcome; import org.unicitylabs.sdk.api.WaitOptions; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; import org.unicitylabs.sdk.transaction.Transaction; import org.unicitylabs.sdk.util.InclusionProofUtils; @@ -30,7 +30,7 @@ final class WaitingExamples { private WaitingExamples() { } - static InclusionProof standardWait(StateTransitionClient client, RootTrustBase trustBase, + static InclusionProof standardWait(StateTransitionClient client, TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, Transaction transaction) throws Exception { // long polling, 30 s in total, the first request goes out at once return InclusionProofUtils @@ -38,7 +38,7 @@ static InclusionProof standardWait(StateTransitionClient client, RootTrustBase t .get(); } - static InclusionProof tunedWait(StateTransitionClient client, RootTrustBase trustBase, + static InclusionProof tunedWait(StateTransitionClient client, TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, Transaction transaction) throws Exception { var options = WaitOptions.defaults().timeout(Duration.ofSeconds(60)); return InclusionProofUtils @@ -47,7 +47,7 @@ static InclusionProof tunedWait(StateTransitionClient client, RootTrustBase trus } static CompletableFuture cancellable(StateTransitionClient client, - RootTrustBase trustBase, PredicateVerifierService predicateVerifier, Transaction transaction) { + TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier, Transaction transaction) { CompletableFuture wait = InclusionProofUtils.waitInclusionProof(client, trustBase, predicateVerifier, transaction); // cancelling the future cancels the HTTP call in flight and the pending pause @@ -61,7 +61,7 @@ static boolean resubmittable(Throwable failure) { } static CompletableFuture submitAndWait(StateTransitionClient client, - Transaction transaction, CertificationData data, RootTrustBase trustBase, + Transaction transaction, CertificationData data, TrustBaseHistoryView trustBase, PredicateVerifierService predicateVerifier) { // the first submission and at most two resubmissions; the proof must certify this transaction return client.submitAndWait(transaction, data, 2, trustBase, predicateVerifier, diff --git a/src/test/java/org/unicitylabs/sdk/functional/CertificationDataBindingTest.java b/src/test/java/org/unicitylabs/sdk/functional/CertificationDataBindingTest.java index b9df9fcd..18f3bbdf 100644 --- a/src/test/java/org/unicitylabs/sdk/functional/CertificationDataBindingTest.java +++ b/src/test/java/org/unicitylabs/sdk/functional/CertificationDataBindingTest.java @@ -8,7 +8,7 @@ import org.unicitylabs.sdk.api.CertificationResponse; import org.unicitylabs.sdk.api.CertificationStatus; import org.unicitylabs.sdk.api.InclusionProof; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; import org.unicitylabs.sdk.predicate.builtin.SignaturePredicate; import org.unicitylabs.sdk.predicate.builtin.SignaturePredicateUnlockScript; @@ -38,7 +38,7 @@ public class CertificationDataBindingTest { @Test public void rejectsCertificationDataFromADifferentTransaction() throws Exception { TestAggregatorClient aggregatorClient = TestAggregatorClient.create(); - RootTrustBase trustBase = aggregatorClient.getTrustBase(); + TrustBaseHistoryView trustBase = aggregatorClient.getTrustBase(); StateTransitionClient client = new StateTransitionClient(aggregatorClient); PredicateVerifierService predicateVerifier = PredicateVerifierService.create(); MintJustificationVerifierService mintJustificationVerifier = diff --git a/src/test/java/org/unicitylabs/sdk/functional/TokenIssuanceVerifierServiceTest.java b/src/test/java/org/unicitylabs/sdk/functional/TokenIssuanceVerifierServiceTest.java index b2434161..44ca1a82 100644 --- a/src/test/java/org/unicitylabs/sdk/functional/TokenIssuanceVerifierServiceTest.java +++ b/src/test/java/org/unicitylabs/sdk/functional/TokenIssuanceVerifierServiceTest.java @@ -7,7 +7,7 @@ import org.unicitylabs.sdk.StateTransitionClient; import org.unicitylabs.sdk.TestAggregatorClient; import org.unicitylabs.sdk.api.NetworkId; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; import org.unicitylabs.sdk.predicate.builtin.SignaturePredicate; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; @@ -28,7 +28,7 @@ @TestInstance(TestInstance.Lifecycle.PER_CLASS) public class TokenIssuanceVerifierServiceTest { - private RootTrustBase trustBase; + private TrustBaseHistoryView trustBase; private PredicateVerifierService predicateVerifier; private TokenType tokenType; private Token token; diff --git a/src/test/java/org/unicitylabs/sdk/functional/payment/NestedTokenOperationTest.java b/src/test/java/org/unicitylabs/sdk/functional/payment/NestedTokenOperationTest.java index 2e591130..66871abb 100644 --- a/src/test/java/org/unicitylabs/sdk/functional/payment/NestedTokenOperationTest.java +++ b/src/test/java/org/unicitylabs/sdk/functional/payment/NestedTokenOperationTest.java @@ -16,7 +16,6 @@ import org.unicitylabs.sdk.api.bft.verification.OperationVerificationStats; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; -import org.unicitylabs.sdk.api.bft.verification.VerificationPolicy; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; import org.unicitylabs.sdk.payment.SplitMintJustification; import org.unicitylabs.sdk.payment.SplitMintJustificationVerifier; @@ -86,8 +85,7 @@ void nestedProofsAreCheckedOncePerDistinctSealAndCertificate() throws Exception output.getSalt(), SplitMintJustification.create(burn, output.getProofs()).toCbor()); OperationUnicityCertificateVerifier operation = (OperationUnicityCertificateVerifier) - new UnicityCertificateVerifier().beginOperation(VerificationPolicy.LEGACY_QUORUM, - PartitionViewPolicy.none()); + new UnicityCertificateVerifier().beginOperation(PartitionViewPolicy.none()); VerificationContext scoped = context.withCertificateVerifier(operation); // the output and the burned source it nests: distinct seals of both diff --git a/src/test/java/org/unicitylabs/sdk/functional/payment/SplitBuilderTest.java b/src/test/java/org/unicitylabs/sdk/functional/payment/SplitBuilderTest.java index c91b34c2..c2d9f490 100644 --- a/src/test/java/org/unicitylabs/sdk/functional/payment/SplitBuilderTest.java +++ b/src/test/java/org/unicitylabs/sdk/functional/payment/SplitBuilderTest.java @@ -4,7 +4,7 @@ import org.junit.jupiter.api.Test; import org.unicitylabs.sdk.StateTransitionClient; import org.unicitylabs.sdk.TestAggregatorClient; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; import org.unicitylabs.sdk.payment.SplitMintJustification; import org.unicitylabs.sdk.payment.SplitMintJustificationVerifier; @@ -43,7 +43,7 @@ public class SplitBuilderTest { @Test public void buildAndVerifySplitToken() throws Exception { TestAggregatorClient aggregatorClient = TestAggregatorClient.create(); - RootTrustBase trustBase = aggregatorClient.getTrustBase(); + TrustBaseHistoryView trustBase = aggregatorClient.getTrustBase(); StateTransitionClient client = new StateTransitionClient(aggregatorClient); PredicateVerifierService predicateVerifier = PredicateVerifierService.create(); @@ -149,7 +149,7 @@ public void buildAndVerifySplitToken() throws Exception { @Test public void rebuildsByteIdenticalBurnTransactionFromSuppliedStateMask() throws Exception { TestAggregatorClient aggregatorClient = TestAggregatorClient.create(); - RootTrustBase trustBase = aggregatorClient.getTrustBase(); + TrustBaseHistoryView trustBase = aggregatorClient.getTrustBase(); StateTransitionClient client = new StateTransitionClient(aggregatorClient); PredicateVerifierService predicateVerifier = PredicateVerifierService.create(); diff --git a/src/test/java/org/unicitylabs/sdk/functional/payment/SplitInflationExploitTest.java b/src/test/java/org/unicitylabs/sdk/functional/payment/SplitInflationExploitTest.java index b89e8ea5..83d5c6d1 100644 --- a/src/test/java/org/unicitylabs/sdk/functional/payment/SplitInflationExploitTest.java +++ b/src/test/java/org/unicitylabs/sdk/functional/payment/SplitInflationExploitTest.java @@ -4,7 +4,7 @@ import org.junit.jupiter.api.Test; import org.unicitylabs.sdk.StateTransitionClient; import org.unicitylabs.sdk.TestAggregatorClient; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.hash.DataHasher; import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; @@ -52,7 +52,7 @@ public class SplitInflationExploitTest { @Test public void mustRejectHolderInflatingReceivedToken() throws Exception { TestAggregatorClient aggregatorClient = TestAggregatorClient.create(); - RootTrustBase trustBase = aggregatorClient.getTrustBase(); + TrustBaseHistoryView trustBase = aggregatorClient.getTrustBase(); StateTransitionClient client = new StateTransitionClient(aggregatorClient); PredicateVerifierService predicateVerifier = PredicateVerifierService.create(); diff --git a/src/test/java/org/unicitylabs/sdk/functional/payment/TokenSplitTest.java b/src/test/java/org/unicitylabs/sdk/functional/payment/TokenSplitTest.java index 947be76f..edea57fe 100644 --- a/src/test/java/org/unicitylabs/sdk/functional/payment/TokenSplitTest.java +++ b/src/test/java/org/unicitylabs/sdk/functional/payment/TokenSplitTest.java @@ -6,7 +6,7 @@ import org.junit.jupiter.api.TestInstance; import org.unicitylabs.sdk.StateTransitionClient; import org.unicitylabs.sdk.TestAggregatorClient; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; import org.unicitylabs.sdk.payment.SplitMintJustificationVerifier; import org.unicitylabs.sdk.payment.SplitTokenRequest; @@ -44,7 +44,7 @@ public class TokenSplitTest { @BeforeAll public void setupFixture() throws Exception { TestAggregatorClient aggregatorClient = TestAggregatorClient.create(); - RootTrustBase trustBase = aggregatorClient.getTrustBase(); + TrustBaseHistoryView trustBase = aggregatorClient.getTrustBase(); StateTransitionClient client = new StateTransitionClient(aggregatorClient); PredicateVerifierService predicateVerifier = PredicateVerifierService.create(); diff --git a/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java b/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java index 1d0585fa..5b2eb0bd 100644 --- a/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java +++ b/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java @@ -1,5 +1,6 @@ package org.unicitylabs.sdk.integration; +import org.unicitylabs.sdk.api.bft.TrustBaseTestUtils; import java.io.File; import java.io.IOException; import java.nio.charset.StandardCharsets; @@ -16,7 +17,7 @@ import okhttp3.Response; import org.testcontainers.containers.ComposeContainer; import org.testcontainers.containers.wait.strategy.Wait; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; /** * The aggregator stack the integration suite runs against: a BFT root node, mongodb, redis and a @@ -172,8 +173,8 @@ public Path getTrustBasePath() { * @return trust base * @throws IOException if the generated genesis cannot be read */ - public RootTrustBase getTrustBase() throws IOException { - return RootTrustBase.fromJson(new String( + public TrustBaseHistoryView getTrustBase() throws IOException { + return TrustBaseTestUtils.fromLegacyJson(new String( Files.readAllBytes(getTrustBasePath()), StandardCharsets.UTF_8)); } diff --git a/src/test/java/org/unicitylabs/sdk/integration/RequestDeadlineIntegrationTest.java b/src/test/java/org/unicitylabs/sdk/integration/RequestDeadlineIntegrationTest.java index 6e0e7181..e1ab60af 100644 --- a/src/test/java/org/unicitylabs/sdk/integration/RequestDeadlineIntegrationTest.java +++ b/src/test/java/org/unicitylabs/sdk/integration/RequestDeadlineIntegrationTest.java @@ -11,7 +11,7 @@ import org.unicitylabs.sdk.api.CertificationData; import org.unicitylabs.sdk.api.CertificationStatus; import org.unicitylabs.sdk.api.InclusionProof; -import org.unicitylabs.sdk.api.bft.RootTrustBase; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; import org.unicitylabs.sdk.predicate.builtin.SignaturePredicate; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; @@ -32,7 +32,7 @@ class RequestDeadlineIntegrationTest { private AggregatorStack stack; private StateTransitionClient client; - private RootTrustBase trustBase; + private TrustBaseHistoryView trustBase; private PredicateVerifierService predicateVerifier; @BeforeAll @@ -52,7 +52,7 @@ void stopStack() { private MintTransaction mint(Long deadline) { return MintTransaction.builder( - this.trustBase.getNetworkId(), + this.trustBase.getNetworkId().get(), SignaturePredicate.fromSigningService(SigningService.generate())) .expiresAt(deadline) .build(); diff --git a/src/test/java/org/unicitylabs/sdk/serializer/cbor/CborUtbBoundsTest.java b/src/test/java/org/unicitylabs/sdk/serializer/cbor/CborUtbBoundsTest.java new file mode 100644 index 00000000..94e75257 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/serializer/cbor/CborUtbBoundsTest.java @@ -0,0 +1,66 @@ +package org.unicitylabs.sdk.serializer.cbor; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.serializer.cbor.CborSerializer.CborMap; + +/** Bounds and strictness the trust-base codec relies on. */ +class CborUtbBoundsTest { + + @Test + void textStringIsStrictUtf8() { + byte[] valid = CborSerializer.encodeTextString("héllo €"); + assertEquals("héllo €", CborDeserializer.decodeTextString(valid)); + // 0xff is never valid UTF-8; a lone continuation byte; an overlong NUL; a surrogate half + for (byte[] bad : new byte[][] {{(byte) 0xff}, {(byte) 0x80}, {(byte) 0xc0, (byte) 0x80}, + {(byte) 0xed, (byte) 0xa0, (byte) 0x80}, {(byte) 0xe2, (byte) 0x82}}) { + byte[] cbor = new byte[1 + bad.length]; + cbor[0] = (byte) (0x60 | bad.length); + System.arraycopy(bad, 0, cbor, 1, bad.length); + assertThrows(CborSerializationException.class, () -> CborDeserializer.decodeTextString(cbor)); + } + } + + @Test + void anArrayOverTheBoundIsRefusedFromItsHeaderBeforeAnyElementIsRead() { + // a header declaring 2^32-1 elements and no body: refused by count, not by "premature end" + byte[] header = {(byte) 0x9a, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff}; + CborSerializationException e = assertThrows(CborSerializationException.class, + () -> CborDeserializer.decodeArrayAtMost(header, 256)); + assertEquals("Array of more than 256 elements.", e.getMessage()); + + byte[] three = CborSerializer.encodeArray(CborSerializer.encodeUnsignedInteger(1), + CborSerializer.encodeUnsignedInteger(2), CborSerializer.encodeUnsignedInteger(3)); + assertEquals(3, CborDeserializer.decodeArrayAtMost(three, 3).size()); + CborSerializationException over = assertThrows(CborSerializationException.class, + () -> CborDeserializer.decodeArrayAtMost(three, 2)); + assertEquals("Array of more than 2 elements.", over.getMessage()); + } + + @Test + void aMapOverTheBoundIsRefusedFromItsHeaderAndKeepsTheCanonicalRules() { + byte[] header = {(byte) 0xba, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff}; + CborSerializationException e = assertThrows(CborSerializationException.class, + () -> CborDeserializer.decodeMapAtMost(header, 256)); + assertEquals("Map of more than 256 pairs.", e.getMessage()); + + Set two = new HashSet<>(List.of( + new CborMap.Entry(CborSerializer.encodeTextString("a"), CborSerializer.encodeNull()), + new CborMap.Entry(CborSerializer.encodeTextString("b"), CborSerializer.encodeNull()))); + byte[] encoded = CborSerializer.encodeMap(new CborMap(two)); + assertEquals(2, CborDeserializer.decodeMapAtMost(encoded, 2).size()); + assertThrows(CborSerializationException.class, + () -> CborDeserializer.decodeMapAtMost(encoded, 1)); + // keys out of canonical order are still refused + byte[] unordered = {(byte) 0xa2, 0x61, 0x62, (byte) 0xf6, 0x61, 0x61, (byte) 0xf6}; + assertThrows(CborSerializationException.class, + () -> CborDeserializer.decodeMapAtMost(unordered, 2)); + assertArrayEquals(encoded, CborSerializer.encodeMap(new CborMap(two))); + } +} diff --git a/src/test/resources/vectors/gettrustbase/vectors.json b/src/test/resources/vectors/gettrustbase/vectors.json new file mode 100644 index 00000000..ed4889f3 --- /dev/null +++ b/src/test/resources/vectors/gettrustbase/vectors.json @@ -0,0 +1,329 @@ +{ + "spec": [ + "A response is tag 39015 [version=1, network, status, fromEpoch, effectiveEnd, endEntryID|null, [entry, ...], nextEpoch|null] (bft-core gettrustbase/codec.go). Entries are the complete tag-39000 values of the shared trust-base vectors, epochs 1..3 (entries[0..2]); entry ids are their EntryIDs.", + "Accept cases give the decoded fields; entryEpochs are the epochs of the entries in order. An absent endEntryId or nextEpoch is null.", + "Status: 0 OK, 1 InvalidRequest, 2 WrongNetwork, 3 NotYetAvailable, 4 HistoryMismatch, 5 LimitTooSmall, 6 Busy, 7 Unavailable; 8 and above are refused. A non-OK response carries no entries and no cursor; its fromEpoch/effectiveEnd/endEntryId are advisory peer metadata (the server fills them for status 3 only), never authenticated.", + "An OK page: entries non-empty, contiguous ascending, the first at fromEpoch, each linked to its predecessor, all of the response's network, an end entry id present. With no cursor the last entry is the effectiveEnd and endEntryId is its EntryID. With a cursor (nextEpoch) it equals last+1 and is at most effectiveEnd, and endEntryId is a hint that is NOT checked against the entries. Signatures are not verified by the response decode (the history append does that).", + "Reject cases: error 'encoding' = the bytes are not a well-formed deterministic response; 'response' = well-formed but a rule above fails." + ], + "entries": [ + "d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6", + "d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401", + "d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600" + ], + "network": 5, + "cases": [ + { + "name": "complete history from the genesis (the release bundle)", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a983d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "status": 0, + "fromEpoch": 1, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9", + "entryEpochs": [ + 1, + 2, + 3 + ] + }, + { + "name": "range from epoch 2 to the tip", + "hex": "d998678801050002035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a982d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "status": 0, + "fromEpoch": 2, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9", + "entryEpochs": [ + 2, + 3 + ] + }, + { + "name": "range of the tip entry only", + "hex": "d998678801050003035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a981d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "status": 0, + "fromEpoch": 3, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9", + "entryEpochs": [ + 3 + ] + }, + { + "name": "range of one middle entry served up to a requested end (to=2), no cursor", + "hex": "d9986788010500020258205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca381d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401f6", + "status": 0, + "fromEpoch": 2, + "effectiveEnd": 2, + "endEntryId": "5e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3", + "entryEpochs": [ + 2 + ] + }, + { + "name": "page 1 of a paged range: cursor 3, end id of the snapshot end", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a982d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b40103", + "status": 0, + "fromEpoch": 1, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9", + "entryEpochs": [ + 1, + 2 + ], + "nextEpoch": 3 + }, + { + "name": "page 1 with an end id that matches nothing: the end id on a cursor page is not checked", + "hex": "d998678801050001035820eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee82d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b40103", + "status": 0, + "fromEpoch": 1, + "effectiveEnd": 3, + "endEntryId": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", + "entryEpochs": [ + 1, + 2 + ], + "nextEpoch": 3 + }, + { + "name": "page 1 of one entry, cursor 2", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a981d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f602", + "status": 0, + "fromEpoch": 1, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9", + "entryEpochs": [ + 1 + ], + "nextEpoch": 2 + }, + { + "name": "page 2, the last page of the paged range", + "hex": "d998678801050003035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a981d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "status": 0, + "fromEpoch": 3, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9", + "entryEpochs": [ + 3 + ] + }, + { + "name": "page 2 starting mid-history: from 2, cursor 3, effective end 3", + "hex": "d998678801050002035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a981d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b40103", + "status": 0, + "fromEpoch": 2, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9", + "entryEpochs": [ + 2 + ], + "nextEpoch": 3 + }, + { + "name": "status 1 (InvalidRequest), nothing else", + "hex": "d99867880105010000f680f6", + "status": 1, + "fromEpoch": 0, + "effectiveEnd": 0 + }, + { + "name": "status 2 (WrongNetwork), nothing else", + "hex": "d99867880105020000f680f6", + "status": 2, + "fromEpoch": 0, + "effectiveEnd": 0 + }, + { + "name": "status 4 (HistoryMismatch), nothing else", + "hex": "d99867880105040000f680f6", + "status": 4, + "fromEpoch": 0, + "effectiveEnd": 0 + }, + { + "name": "status 5 (LimitTooSmall), nothing else", + "hex": "d99867880105050000f680f6", + "status": 5, + "fromEpoch": 0, + "effectiveEnd": 0 + }, + { + "name": "status 6 (Busy), nothing else", + "hex": "d99867880105060000f680f6", + "status": 6, + "fromEpoch": 0, + "effectiveEnd": 0 + }, + { + "name": "status 7 (Unavailable), nothing else", + "hex": "d99867880105070000f680f6", + "status": 7, + "fromEpoch": 0, + "effectiveEnd": 0 + }, + { + "name": "status 3 NotYetAvailable: from 4 is past the tip (3): nothing newer", + "hex": "d998678801050304035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a980f6", + "status": 3, + "fromEpoch": 4, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9" + }, + { + "name": "status 3 NotYetAvailable: a lagging peer (tip 1) asked from 2", + "hex": "d998678801050302015820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d480f6", + "status": 3, + "fromEpoch": 2, + "effectiveEnd": 1, + "endEntryId": "a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4" + }, + { + "name": "status 3 NotYetAvailable: effective end not below from (inconsistent for a caller; still a well-formed response)", + "hex": "d998678801050302035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a980f6", + "status": 3, + "fromEpoch": 2, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9" + }, + { + "name": "status 4 HistoryMismatch with advisory metadata", + "hex": "d998678801050402035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a980f6", + "status": 4, + "fromEpoch": 2, + "effectiveEnd": 3, + "endEntryId": "c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9" + }, + { + "name": "consecutive epochs but the entry does not link to its predecessor (previous entry id is not the EntryID of epoch 2)", + "hex": "d998678801050002035820d21e71e78c364bcabd9ad263e21ae47096d1ab6a3f6e32f87bf4914e2c56082a82d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeea361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "response" + }, + { + "name": "a correctly linked entry whose epoch skips one (3 -\u003e 4)", + "hex": "d998678801050002045820340b3bef2b63c278db604122ecbeafc5a5c9eb8c8cb7c3f09cb8b20e24b88a9982d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050418c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "response" + }, + { + "name": "a cursor page without an end entry id", + "hex": "d99867880105000103f682d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b40103", + "error": "response" + }, + { + "name": "OK without entries", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a980f6", + "error": "response" + }, + { + "name": "OK without an end entry id", + "hex": "d99867880105000103f683d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "response" + }, + { + "name": "first entry is not at fromEpoch", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a982d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "response" + }, + { + "name": "a gap in the epochs", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a982d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "response" + }, + { + "name": "entries out of order", + "hex": "d998678801050002035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a982d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401f6", + "error": "response" + }, + { + "name": "an entry that does not link to its predecessor (epoch 2 repeated as 3)", + "hex": "d998678801050002035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a982d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401f6", + "error": "response" + }, + { + "name": "no cursor but the page stops before the effective end", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a982d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401f6", + "error": "response" + }, + { + "name": "cursor is not last+1", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a981d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f603", + "error": "response" + }, + { + "name": "cursor beyond the effective end", + "hex": "d9986788010500010258205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca381d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f603", + "error": "response" + }, + { + "name": "cursor on a page that ends at the effective end", + "hex": "d998678801050002035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a982d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd4460004", + "error": "response" + }, + { + "name": "end entry id differs from the last entry when the page ends at the effective end", + "hex": "d998678801050002035820eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee82d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "response" + }, + { + "name": "an entry of another network than the response", + "hex": "d998678801060001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a983d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "response" + }, + { + "name": "status 6 carrying an entry", + "hex": "d99867880105060000f681d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6f6", + "error": "response" + }, + { + "name": "status 3 carrying a cursor", + "hex": "d998678801050304035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a98005", + "error": "response" + }, + { + "name": "an entry that is not a version 2 entry (4 junk bytes)", + "hex": "d998678801050001015820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4814401020304f6", + "error": "response" + }, + { + "name": "status 8", + "hex": "d99867880105080000f680f6", + "error": "encoding" + }, + { + "name": "version 2", + "hex": "d998678802050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a983d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "encoding" + }, + { + "name": "end entry id of 31 bytes", + "hex": "d99867880105000103581fc7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c79883d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "encoding" + }, + { + "name": "entries is null, not an array", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a9f6f6", + "error": "encoding" + }, + { + "name": "trailing byte after the response", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a983d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f600", + "error": "encoding" + }, + { + "name": "wrong tag (39014, the request tag)", + "hex": "d998668801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a983d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600f6", + "error": "encoding" + }, + { + "name": "truncated response", + "hex": "d998678801050001035820c7cf31a810351db8572caf65bfff55b0c66d68cb51d8143deec571aed8c798a983d998588a02050101848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6d998588a0205021865848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b010358202222222222222222222222222222222222222222222222222222222222222222582033333333333333333333333333333333333333333333333333333333333333335820a463562c55b380f62cb31ed2838d7640c64e07e7c383e0ca8410fc95663380d4a361615841d87d4f583ba4d3e3e41fb760d81bc1513cd004e32f499d6f1a247cafce8fa4526ff447ce34ef53201bcd84ab70dc40fdc4eaea9cc71f7a879f2677a95c77bdec0061625841cda45e39931baf01908af605f7967b535199237b3dc25a79dccdaf3d4b048dd406fb423d653b6c7536178d8d6b13f7bf875cff15b2fd1215ef95e7cb49aba85c0161635841be0b22d8e9285758b284ca79736113cf372288eecb9eb687eb2bb4091b1462a15a28c67e58490110b03a41355b0f51f985ae6b89c9ac47cd44a2b101fa03c8b401d998588a02050318c9848361615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018361625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d076601836163582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33701836164582103462779ad4aad39514614751a71085f2f10e1c7a593e4e030efb5b8721ce55b0b0103582022222222222222222222222222222222222222222222222222222222222222225820333333333333333333333333333333333333333333333333333333333333333358205e8fe7130ebe74100595501b8e3f75483b5d6e8d97e8c12994e524719dc38ca3a361615841652686ccf23629e6f052d3860c32da933c729f88671d1ac778d8bd3002ce3346362a6ad56f6bd7ce367bfd910fc2b6e2dd66ab536c30f9e771a17f483f1a610a0161625841498562598898ce856207d6c3364b28c60733b00caa6ec46e3dfa70170136a1c976574719614c75ae387ab5a4eea2996812c468acc0f08fdd42206fb6d5b145920161635841cd5bb24f7b4c373bee2f3935387c08b5a1072faca3cdb155ba0370574b5dcc303aa6c2862abef3004dbb2295ce055e3ef1b5fdc2c18f4d6ee037704b770cd44600", + "error": "encoding" + }, + { + "name": "empty input", + "hex": "", + "error": "encoding" + } + ] +} diff --git a/src/test/resources/vectors/real-seals/README.md b/src/test/resources/vectors/real-seals/README.md new file mode 100644 index 00000000..48689eea --- /dev/null +++ b/src/test/resources/vectors/real-seals/README.md @@ -0,0 +1,17 @@ +# Real seals of the existing networks, verified through the V2 bundles + +Owner §44/§46: the V2 bundle file describes the live authority. For testnet2 (network 4) and mainnet (network 1), a seal signed by the live validators verifies through +`unicity-trustbase..cbor` (the one-entry V2 bundle of the unicity-ids genesis; EntryIDs testnet2 `4b49eb2b…f37f`, mainnet `0b6f8143…4e4c`, as pins). + +- `unicity-trustbase..cbor`: the bundle, byte-identical to the converter output (`cmd/trustbase-bundle`, ristik/bft-go-base `utb/bundle-converter`) from the unicity-ids JSON. +- `.non-inclusion.hex`: the `result` of the network's public gateway for `get_non_inclusion_proof.v1` (`https://gateway..unicity.network/`, JSON-RPC, **no API key**; reads + need no credential) for the random state id in `.stateid.hex`, fetched 2026-11-05. A non-inclusion proof carries a real unicity certificate. Nothing in the file was edited. +- Both networks answer for a shard (testnet2: 3 bits, mainnet: 2 bits); the test pins the shard the gateway answered for, which the verifier checks is a prefix of the state id. +- Seals are epoch 1 on both networks (testnet2 round 19235148, mainnet round 21908895 at fetch time). + +What it shows: the live seals authenticate under the V2 genesis (same members, keys and quorum as V1, epoch 1). What it does not show: nothing on these networks signs V2 entries yet; epoch 2 as a V2 entry comes with the root cutover. + +Refetch (read-only): + + curl -s -X POST https://gateway.testnet2.unicity.network/ -H 'content-type: application/json' \ + -d '{"jsonrpc":"2.0","id":1,"method":"get_non_inclusion_proof.v1","params":{"stateId":"<64 hex>"}}' diff --git a/src/test/resources/vectors/real-seals/mainnet.non-inclusion.hex b/src/test/resources/vectors/real-seals/mainnet.non-inclusion.hex new file mode 100644 index 00000000..1279d87e --- /dev/null +++ b/src/test/resources/vectors/real-seals/mainnet.non-inclusion.hex @@ -0,0 +1 @@ +821a006f6d23d9987a8301588010000000000000000000000000000000000000000000000000000000000000005c7df73dbb4924545f9dc49e307970c702b8c7f2aaea117740735ad2184e7bae1884741b31d8408a14fa0552cbb5a1d19b672714c328ba071ed0509375e5befe4539903f05910babbb9d35f64892ae14add73f2313863a4db1c301120db4b050d998598701d9985a8a011a006f6d23005820b021e31fe0fc6e0db200f5ec2b9a6313b53a973339c0962d17f6e4cf5ad60b5a5820b021e31fe0fc6e0db200f5ec2b9a6313b53a973339c0962d17f6e4cf5ad60b5a401a6aecccaef600f65820eebe857b4d9b119406a9c80f709112d38d9ef2331982e29213b72aa2b8b68a0e58203af566f31631bba46205199881709fe09af9c4b5833b1207940c8ea2328dae6cd9985b83014120825820643c31598dcf8688a88d2cebce52b50db104e78805891a836756b218df63cd9d58208dad044a6831e5a69c3e68fc2b230cc962bcad02c47039c627aa0183ec16bb1dd9985c83010780d9985d8801011a014e4d9f011a6aecccaf58209c0de01d73ff65e0887ef4783bd6b65e90bc50d174c3ee51573e2cd8786a29f25820b1b1356cdf90ffb3ac24d56374aa8272728c252501851df9a179b6248c4641eea4783531365569753248416b766b344570586f79683753564c5458335463735a6b6a626e69356a59317342674a3771434557667831476d6158412c06daba31a01b213d0550caba7cec97a8f5304f1fc9a8dbb65616ab87f8f77d035d5772cba2c09861ea39c8c5f394d0fa2d337c8463a0dc700c9c92356b8b3a01783531365569753248416d46394d713970483979555464616f3354704a65465a59396f583967794d7166786767564134664e6d7a6d587258415e6b347246083659a1e24cd09f6f00c92035909dbd41843bcb3af4d1b93524ab7cafd657699cc649e19d157f575896403928fd5ab7ae9802c0a3aeca9b713ba900783531365569753248416d4c414854534d765a326170525274424e397069595668614b32693773544d61516553575378734c683735544758419bbebce9f4a40903361a34bdb53c1594b45070d4a5fc15c08a048e890ae0b62212ebc724b52035271953c063d189e9ca1b58aca1f45734076dc72a1462dcf43201783531365569753248416d4e4e6157664b345254544171374170387732795a5572797245656a716d6d476634346f674d6159456e6b4a345841e0b071a6197e78f5b2146a5c291a80faaefd5a66dca6f3700cf93d7f365d731a533bc36517d4248e8b91c46d3fb2d45066d7850dbbea3f44255ea9954871f0de01 diff --git a/src/test/resources/vectors/real-seals/mainnet.stateid.hex b/src/test/resources/vectors/real-seals/mainnet.stateid.hex new file mode 100644 index 00000000..b20098ee --- /dev/null +++ b/src/test/resources/vectors/real-seals/mainnet.stateid.hex @@ -0,0 +1 @@ +33755dbbc2eadcfe254f71a06d1c0c488091ee72ee3036ff1fb2cee46ded750c diff --git a/src/test/resources/vectors/real-seals/testnet2.non-inclusion.hex b/src/test/resources/vectors/real-seals/testnet2.non-inclusion.hex new file mode 100644 index 00000000..75aaee7e --- /dev/null +++ b/src/test/resources/vectors/real-seals/testnet2.non-inclusion.hex @@ -0,0 +1 @@ +821a0061d4ead9987a83015902801fffe10000000000000000000000000000000000000000000000000000000000b1f31d10f9fdcc49d8474267c266f61c4aa689d4cf836e59c2f58a1bc561bd37e209b6c08f9ea8b05609674b41a82a46f72e01593ed244450114e7321ffdb7d7893deee7d1cf51a984ccdcede0fe040eb16bce96d1a76b25606d7c7bc0ea92ecb3e03f0a2c60381b62640f0163a03ffe6f22ba6285b558191ced6166e35a0ed780ddf286d20f2fac8d1013c3def6283cd8299486d62e97f02aee5c1ddf91d0dd98b381778771b157d060e1f106275c5dbcd923beebfda1d17c06f6982e3f0885b73e25e3d358619dd097b055446c8f50d2adc9b0c2e979dffaef275076897c4c9ba8022fdac1b897827ea8b695db5977ae1b02488b5ca10b897a2324ac60b0cacc772889304f7ac1827bf697d44e7655a6703eec422ff414d4f76a13dc1cbb66599633d2550dfd33897c3ecd70d4adba7de1146ab0f536f0fa86bf7da8edcfe46bda2c2ce469a9008a470dcc0304268ad467492fc3269acbffcb14efe2223c28555dd8bfda3c6b9e5b9eb1814fe9f4d336047b5b09b952e93fc1f91389543ce2df30e775b52f48ba42c08e98d824932c0e6a1fb7b6a325bdb1ee09c0e94a286ded9030df3eb90b0cfc5d897d260d4b5b86abe7a167cec284d599c9208d774c4aa82f0d583f6d3c8a9163e7a93eb983a282119b16b814e1244dcfc6af1df288375381e1c1e49e91a0f2942400ffa80f84621162f1311ffb4c4dbb00645f1c992a1d4235797cc2673472369c5d65923af8045d3926c513904bd7b17205de0c8bcc5fb4c1602b585b004d142ce42fe46e7dbc7ca4d283cec75b9e0b2f882dd998e96e27b7da2b2eb8128a3db4ac2eec27b56a4fe5f172b765b8681f3cf395bb17c9d998598701d9985a8a011a0061d4ea0058207930e57f276ce7c5a9979b9f323aef8113b0e468f29d3b3e34d5e5c9d3b44c3f58207930e57f276ce7c5a9979b9f323aef8113b0e468f29d3b3e34d5e5c9d3b44c3f401a6aecccaef600f658200b3432f72bcbc6e6ba26d7a9f4497ff7d22422219c697926210f6e9aa839d1885820c884dfb71aed69a34474a215c1292a17683b265ff6a4daf8c4fc4e18bd8b69ccd9985b83014150835820e74fbf4f3c4fed514483b7116307e8d5c74b524237b0fbdf20bc72f3c3cffd2558204eec480d9235d9e317e729da5dba43c5ee32112fbdf6d3c089a7a6747db306e25820830d9881aeada81e5b9ce4b0a4a928f04c85622be559ed81235182daf089fb55d9985c83010780d9985d8801041a0125814c011a6aecccaf582076e33796f942735472ed4a11cbbcd8684299a2adb37f977f3593a691d9d3d2765820c4c46c7ca083aaee607947b23045382bd4cf3f18728513fee2b74fc6ad73282da4783531365569753248416d33334c66415950383131623466705735783871656a6d756a7542314c46435850474754543662756d487276795841533973e24b7501ace67644d1a2429a81f8dc8dff9e6cfb2a52ebc5e6f2352dc66d959d768d7265bdffea7ef54df6272feb79a4314923cca94ca3e8a6759e9cd801783531365569753248416d46436963634e6e6d44456463426942713547697a35567345557a64634c38754465325150546a45335a4c334d584102fd0ad64fdf2d98252e8f7f00ace2a467f5b7a319501dec60213fdf77d9fb370289acbb9d0c08d19c55e1965978bca1e93e0c70985af3a373f18540ed5d769f00783531365569753248416d467a67436f43644b74387937736f3377356a6667786332464357387031626666487a59334c367a716338424358412df7016850a8593a75d746cd3f0745531d1bcdc696bb28755de4bdb152d337f317a07381cdabd82d38c2fe6cead7c4df36e69f7486d3c99eedc2a5074fee62a401783531365569753248416d5535543154714b794b6b55423373697457623433316856466670396e7176614c6756616751463679774c4646584156196a67a42d37d741048ee2df80defa69f1ab7208c4a64f3ef6af6c6d188c022d301797aa5e59c533f42656b46b184cfe28444223fa3773392574b42ff3777901 diff --git a/src/test/resources/vectors/real-seals/testnet2.stateid.hex b/src/test/resources/vectors/real-seals/testnet2.stateid.hex new file mode 100644 index 00000000..6335b997 --- /dev/null +++ b/src/test/resources/vectors/real-seals/testnet2.stateid.hex @@ -0,0 +1 @@ +5fb4d7a983da03533d51eedfaa14ff4565f9522dad315202bb67b7f8bcf5148d diff --git a/src/test/resources/vectors/real-seals/unicity-trustbase.mainnet.cbor b/src/test/resources/vectors/real-seals/unicity-trustbase.mainnet.cbor new file mode 100644 index 0000000000000000000000000000000000000000..05d31c3e27f91671432115fb46c310180aa20f55 GIT binary patch literal 460 zcmcaPBfW!>k%5shLV-KK(fQ##t%&Hy!G8S$NuP79rzt*V6YUpR{rlw7d_SMYn=>N1 zm>3xuTbe6O4b4I`ON~4nv&*tgTni%dD>KZ4!+b&_j6;%(qq4J-@-j`cA`Oe3(!I(xYQn9=ew{cfXX%=bLG7m2VO)lZB_X6L$D z`W9Licvx13hNL9s8;2BlrMg8$TINSsrdRqFrd6b;hdG+0`Q=vSMic?fUMh0CTYTg3 z*1>K(wvVGnNU(2Nlu=?qP*91JpJhR2WLQR` zw^62fafokXU}|u9a7D3ChPi2odxRp>)3n*Tt74`8oPUg%(v7xu#|n=H|MmnV96K`zA)Z=4E@C z0Nwrn-8A17r_^)(51zM_)O=PtcO%<-S*}+z8$-6rMb&TI&dB`jTZ94w0r2e`0E=X+ A$p8QV literal 0 HcmV?d00001 diff --git a/src/test/resources/vectors/real-seals/unicity-trustbase.testnet2.cbor b/src/test/resources/vectors/real-seals/unicity-trustbase.testnet2.cbor new file mode 100644 index 0000000000000000000000000000000000000000..94a2f183f265d82e7d0424c3b8aee1601e26afc4 GIT binary patch literal 460 zcmcaPBfW!>g@KVVLc!bfwf2Uh34uFid8GAUdoO=W!)vXc!1k-3tk!zRulrozcymTX z7ZVF3V@q>|si9eDW~q^fW3I8WPnu(7fQ6x9l1W-YxM_t&VQN-xX;!I|p^uw$M1Z?{ zNQhZdX|6|6S!IMG)25BLzTA77^gizDj(Ku?IUn{<)p@*LXkV(~6aMat%bztdBAe~z zoSB^LmzV3}nv(34=~QUyo>^rYR_q#Dm6GgZQR0JFU zpKkfQHu1a^#cTVvxv8XgJ&NnVM%}PtJNH%hF z4!0;UOiD}hsERc9F{>&}ws3NeP-G5z&s3W*NlsP6a^EsOeF*_~`weS*c1&>D$hhw8 zt9a8a6thE3LkvR-y(_)5L!FF^GfTpgOpFaP!ramdEb|J>5`EIc64L|S%qq)$+}wcf yeqVTGPWh>+0&80$Q | PinMismatch | Conflict (authenticated fork after the checkpoint; latches) | HistoryConflicted | ok.", + "flush: open, optionally replace the store content with storeAfterOpen, offer each entry in order, flush once, then compare the stored bytes ('unchanged' = as before, 'absent' = nothing stored, else a bundle name). result: saved:wrote | saved:noop | pending:. A valid history over the budget (oversize) and an authenticated chain diverging at or before the checkpoint (pinMismatch) are never overwritten; a malformed cache, another network or another genesis is replaced at its observed revision; a conflicted session never writes; a clean session (nothing dirty, no damaged cache to replace, no blocked cache) flushes without reading the store, so it neither imports nor detects what changed after open (optional expect.tipEpoch). expect.diagnostics: what the flush result reports (a cache found damaged, foreign or of another network at flush is replaced and reported once, whether it was damaged at open or after it). open expect.exportBundle (optional): the session's exported bundle is that named bundle byte for byte: a longer cache extends the embedded history, so the embedded witnesses stay (the first held). casAttempts: compare-and-swap writes per flush (the first plus three retries). Optional limits {maxEntries, maxBundleBytes} (null = default) apply to the session; store 'ignoresBudget' serves the bytes without enforcing the byte budget.", + "key: 'utb/v1///'. revision: lowercase hex SHA-256 of the stored bytes." + ] +} From a80b89c90115c66e62a13a9f227cbed7c167b002 Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Mon, 9 Nov 2026 13:04:03 +0200 Subject: [PATCH 02/10] docs: keep setup concise and document trust-base APIs --- README.md | 31 ++++++-------------- docs/api-reference.md | 66 ++++++++++++++++++++++++++++++++++++------- 2 files changed, 64 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index f0b7cf5c..8d4a504c 100644 --- a/README.md +++ b/README.md @@ -56,49 +56,32 @@ dependencies { Mainnet is live. Start with testnet2; for production, use the mainnet gateway and matching trust base. -| Network | Gateway | Network ID | Trust base | -| --- | --- | --- | --- | -| Mainnet | `https://gateway.mainnet.unicity.network` | `1` | genesis pinned in this SDK (`ReleasePins`); open it with `TrustBaseSession.openPublic` | -| Testnet2 | `https://gateway.testnet2.unicity.network` | `4` | genesis pinned in this SDK (`ReleasePins`); open it with `TrustBaseSession.openPublic` | +| Network | Gateway | Network ID | +| --- | --- | --- | +| Mainnet | `https://gateway.mainnet.unicity.network` | `1` | +| Testnet2 | `https://gateway.testnet2.unicity.network` | `4` | Pass your gateway API key as the second argument to `JsonRpcAggregatorClient`. The public testnet2 key is `sk_ddc3cfcc001e4a28ac3fad7407f99590`. Use your own mainnet key obtained from [Sphere](https://sphere.unicity.network/) and keep it secure. ### First connection -Put the complete trust-base bundle of your network (a CBOR file, tag 39015, from the genesis entry to the tip) in your working directory as `trust-base-bundle.cbor`, and pin the entry id of its genesis entry (hex) in `GENESIS_PIN`. Add this class to your application and run it: +Add this class to your application and run it to check connectivity. Token verification also needs a trust-base history pinned to a known genesis; open it through a session using the [mainnet, testnet2 or local setup](./docs/api-reference.md#10-trust-base-sessions). ```java -import java.nio.file.Files; -import java.nio.file.Path; import org.unicitylabs.sdk.StateTransitionClient; import org.unicitylabs.sdk.api.JsonRpcAggregatorClient; -import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundle; -import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundleLimits; -import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; -import org.unicitylabs.sdk.util.HexConverter; public class Connect { - // entry id of the genesis entry of your network, from a source you trust - static final String GENESIS_PIN = "..."; - public static void main(String[] args) throws Exception { var aggregator = new JsonRpcAggregatorClient( "https://gateway.testnet2.unicity.network", "sk_ddc3cfcc001e4a28ac3fad7407f99590"); // Public testnet2 key var client = new StateTransitionClient(aggregator); - var bundle = TrustBaseBundle.decode( - Files.readAllBytes(Path.of("trust-base-bundle.cbor")), - new TrustBaseBundleLimits(1 << 20, 64)); - var trustBase = TrustBaseHistory.fromBundle(bundle, HexConverter.decode(GENESIS_PIN)); - - System.out.println("Network ID: " + trustBase.getNetworkId().get().getId()); System.out.println("Latest round: " + aggregator.getLatestBlockNumber().get()); } } ``` -The trust base history identifies the Consensus Layer (BFT Core) instance: pin the genesis entry id in your application for production, and every later entry must be signed by a quorum of its predecessor. The single-record JSON trust base is no longer read, and there is no compatibility wrapper. Use `trustBase.getNetworkId().get()` when creating tokens so they match your gateway; testnet2 is network ID `4`, `NetworkId.TESTNET2` (mainnet is `NetworkId.MAINNET`, `1`). The old testnet, network 2, has no constant any more. - The example waits for the result with `.get()`. In asynchronous applications, compose the returned futures; on Android, keep blocking calls off the UI thread. ## Work with tokens @@ -116,7 +99,7 @@ For minting and transfers, create the transaction, submit its `CertificationData `waitInclusionProof()` sends its first request immediately and, by default, asks the aggregator to hold each request while the state is pending (long polling). The proof then arrives soon after certification, usually within a single request. Aggregators without long polling are polled at the interval. The default budget is 15 seconds; adjust it, the interval, and the long-poll window with `WaitOptions`. Cancelling the returned future cancels the request in flight. See the [API reference](./docs/api-reference.md#7-waiting-for-inclusion-proofs). -These examples are test code with local network configuration. When adapting them to a public network, use the matching gateway, key, and trust base, and pass `trustBase.getNetworkId()` when minting. +These examples are test code with local network configuration. When adapting them to a public network, use the matching gateway, key, and trust base, and pass `trustBase.getNetworkId().get()` when minting. ### Store, send, and receive @@ -150,6 +133,8 @@ Use the SDK's verification APIs with the authentic network trust base and your a ## Development +Use JDK 21 for the Gradle build, matching CI; the SDK still targets Java 11. Select it with `JAVA_HOME` if another JDK is your system default. + From a repository checkout: ```bash diff --git a/docs/api-reference.md b/docs/api-reference.md index 209450e2..531b691a 100644 --- a/docs/api-reference.md +++ b/docs/api-reference.md @@ -2,7 +2,7 @@ This reference describes the SDK API for application developers: how to connect, mint, transfer, verify and store tokens, and how to wait for proofs and handle failures. The README gives a first introduction. The Javadoc comments in the source are authoritative for every signature and detail not covered here. -All code snippets are compiled with the tests (`src/test/java/org/unicitylabs/sdk/examples`), and the token flow is run against an in-memory aggregator. +The token-flow examples have companion tests in `src/test/java/org/unicitylabs/sdk/examples`, using an in-memory aggregator. The session API table below describes setup with application-supplied storage and executors. ## Contents @@ -19,6 +19,7 @@ All code snippets are compiled with the tests (`src/test/java/org/unicitylabs/sd - [9.2 Partition Views and Seal Reuse](#92-partition-views-and-seal-reuse) - [9.3 Proof Consolidation](#93-proof-consolidation) - [9.4 Non-inclusion Proofs](#94-non-inclusion-proofs) +10. [Trust-base Sessions](#10-trust-base-sessions) ## 1. Setup @@ -43,15 +44,7 @@ var aggregator = new JsonRpcAggregatorClient( return new StateTransitionClient(aggregator); ``` -**Trust base.** The trust base is a history of signed entries (Unicity Trust Base v2, CBOR tag 39000), one per epoch of the network's validators. It starts at a genesis entry whose entry id you pin, and every later entry must carry a quorum of signatures of its predecessor. Load a complete bundle (CBOR tag 39015, from genesis to tip) together with the pinned genesis entry id: - -```java -var bundle = TrustBaseBundle.decode(Files.readAllBytes(Path.of("trust-base-bundle.cbor")), - new TrustBaseBundleLimits(1 << 20, 64)); -return TrustBaseHistory.fromBundle(bundle, genesisPin); -``` - -`trustBase.getNetworkId()` is the network ID to use when minting (empty while the history holds no entry). Every seal is verified against the entry of its own epoch; a seal of an epoch the history does not hold fails with the typed `NoTrustBaseEntryResult` (`NoTrustBaseEntryResult.find(result)`), which a later update step can cure. There is no JSON trust base any more. +**Trust base.** Open a session pinned to the network's known genesis, as in [section 10](#10-trust-base-sessions), and use `var trustBase = session.history()` in the examples below. Each seal is verified against its own epoch's authority. Use `trustBase.getNetworkId().get()` when minting on an initialized history. **Verification context.** `VerificationContext` bundles what token verification needs: the trust base, a `PredicateVerifierService` (`PredicateVerifierService.create()` handles the built-in predicates), a `MintJustificationVerifierService` (empty unless you use token splits, see [Payments and splits](#payments-and-splits)) and a `TokenIssuanceVerifierService`. @@ -621,3 +614,56 @@ if (snapshot.getNetworkId().getId() != checkpoint.networkId() ``` `NonInclusionContext.unsharded()` expects the unsharded partition, where the certificate's shard is the empty shard. For a sharded partition, pin the served shard with `withShard`. `new NonInclusionProof(stateId, bytes)` only records which state ID a proof was requested for. It is request bookkeeping, not evidence. + +## 10. Trust-base Sessions + +The `org.unicitylabs.sdk.api.bft.trustbase` package supplies V2 entries, histories and cached sessions. Verification reads the session's history; opening a session verifies embedded and cached bytes without fetching from the network. + +### Mainnet, testnet2 and local setup + +The session and store classes below are in `org.unicitylabs.sdk.api.bft.trustbase`; `NetworkId` is in `org.unicitylabs.sdk.api`. Let `options` be `TrustBaseSessionOptions.of(sessionExecutor)`, with an application-owned bounded executor, and `store` be `new MemoryTrustBaseStore()` or a durable implementation. + +| Setup | Call | +| --- | --- | +| Mainnet | `TrustBaseSession.openPublic(NetworkId.MAINNET, null, store, options)` | +| Testnet2 | `TrustBaseSession.openPublic(NetworkId.TESTNET2, null, store, options)` | +| Local deployment | `TrustBaseSession.openLocal(deploymentBundle, store, options)` | + +Each returns `CompletableFuture`: compose it asynchronously, or call `.get()` on a worker thread, never the UI thread. Read `opened.getSession()` and `opened.getDiagnostics()`, then pass `session.history()` to `VerificationContext`. + +For `openLocal`, `deploymentBundle` is a complete `byte[]` bundle obtained through authenticated operator configuration, independently of an untrusted server response. The method derives genesis/tip pins from it and uses namespace `local`, without public-network lineage checks. This explicitly trusts that deployment; it cannot authenticate mainnet from an arbitrary download. `openPrivate(namespace, pin, store, options)` accepts a `ReleasePin` under a namespace of 1–64 UTF-8 bytes, with no `/`, other than `public`. Strict chain/signature checks remain in force. + +`ReleasePins.ROWS` embeds the approved mainnet (1) and testnet2 (4) histories with network, genesis/checkpoint epochs and EntryIDs, plus bundle SHA-256. The release is the source of trust, not an untrusted server supplying its own hash. A non-null override to `openPublic` must extend the built-in checkpoint. `withTable` is for tests/release tooling; applications should not replace public pins. `ReleasePins` loads the resources under `src/main/resources/release-pins`; `ReleasePinsTest` regenerates and checks their manifest and verifies the rows. Set `UTB_RELEASE_PINS_UPDATE=1` when intentionally regenerating the manifest. + +### Refresh and missing epochs + +`HttpTrustBaseSource` implements `TrustBaseSource` for the gateway's `GET /api/v1/trustbases`. It returns unverified, bounded CBOR; it is separate from `JsonRpcAggregatorClient`: + +Construct `source` with `new org.unicitylabs.sdk.api.HttpTrustBaseSource(gatewayUrl, apiKey)`, then call `session.refresh(java.util.List.of(source), TrustBaseUpdateOptions.defaults())`. The future returns the number of appended entries. `session.flush()` returns a future of `FlushResult`; inspect `isSaved()` and `getError()`. + +`refresh` authenticates consecutive entries after the held tip and attempts to save, including an accepted prefix if a later page fails. Its integer result is not a persistence acknowledgement; inspect `isDirty()` and the `FlushResult` when persistence matters. Default update policy is two passes, 200 ms backoff and bounded pages. The first page freezes the end epoch/EntryID; later pages echo it and another source continues the same cursor. `NotYetAvailable` and zero appended entries are not authenticated freshness. Failures surface through `TrustBaseUpdateException` (wrapped by a future when applicable). + +Plain verification does not fetch. `NoTrustBaseEntryResult.find(result)` identifies missing future epochs (or empty history); bad signatures, wrong network or a seal before genesis are other failures. Refresh and re-verify before accepting. `TrustBaseUpdater.verifyWithUpdate` provides a one-update/one-retry helper but does not persist; callers must flush any accepted prefix, including on update failure. + +### Persistence and conflict handling + +`TrustBaseStore` exposes `CompletableFuture`-based `read(key, maxBytes)` and `compareAndSwap(key, expectedRevision, bytes)`. Reads return a coherent optional `Stored` value with bytes/revision and must enforce limits before allocation. CAS returns `WRITTEN` or `CHANGED` and must be atomic across sharing processes; read-then-write is insufficient. Revisions do not authenticate bytes. Keys include layout version, network, genesis EntryID and namespace; applications add per-user scope and choose storage location and refresh policy. + +The core's `MemoryTrustBaseStore` is volatile. The optional `org.unicitylabs.sdk.api.bft.trustbase.file.FileTrustBaseStore(Path, Executor)` uses an exclusive lock directory, synced temporary file and atomic rename; a busy or crash-left lock is never stolen. The application resolves stale locks only after establishing that no writer owns them. **Store futures must not depend on the session executor**: session work waits for them. Give a file adapter a separate executor to avoid deadlock; the application owns both executors' lifetimes. + +Opening re-verifies cached entries from genesis. Compatible longer caches are retained; a new pin extends a shorter cache. Damage/unreadability falls back to embedded history with diagnostics. An over-budget or authenticated checkpoint-conflicting cache is not overwritten. `flush()` validates the latest stored bytes, merges compatible progress and saves one complete bundle by CAS (at most four attempts). A pending save does not undo verified memory. A clean flush does not rescan other writers; reopen for that. + +A valid conflicting entry after the pinned checkpoint raises `TrustBaseConflictException`, latching the live session. Its history view, append and refresh then fail with `HistoryConflictedException`; invalid offers do not latch it and pinned-prefix disagreements are `TrustBasePinMismatchException`. `getConflict()` and `exportBundle()` expose evidence. Record/report the incident in the application: a process-local latch cannot survive cache deletion or a fresh process by itself. + +### Codecs and limits + +`TrustBaseEntry.decode`/`encode` handles deterministic tag 39000, version 2; `entryId()` hashes the unsigned entry, not its signature witnesses. `TrustBaseBundle.decode`/`encode` handles complete tag-39015 histories, and `TrustBaseRange.decode` handles pages. Decoding is not authority verification: use `TrustBaseHistory.fromBundle(bundle, genesisPin)` or a session. `append` checks network, next epoch, previous EntryID, increasing start round and the predecessor's weighted quorum. Every supplied entry signature must be a known-member, valid 65-byte low-S recoverable signature; unknown/bad extras reject the entry. Seal verification is a separate rule. + +| Resource | Limit | +| --- | --- | +| Members / supplied entry signatures | 256 / 256 | +| Node ID / encoded entry | 128 UTF-8 bytes / 128 KiB | +| Default page | 64 entries / 1 MiB | +| Default session bundle/cache | 4,096 entries / 16 MiB / 128 KiB per entry | + +Configure bundle budgets with `TrustBaseSessionOptions.withLimits`; never truncate history to fit, since old tokens require old epochs. `TrustBaseEncodingException`, `TrustBaseChainException`, `TrustBaseSignatureException`, `ReleasePinInvalidException` and `TrustBaseStoreException` distinguish malformed input, authentication and storage failures. Single-record JSON trust bases are no longer verification inputs. Use `NetworkId.TESTNET2` (4), not the removed `TESTNET` constant. From 69cd5603d8752faaac00d252d4ff566e28a11090 Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Mon, 9 Nov 2026 14:25:45 +0200 Subject: [PATCH 03/10] Test corpus and e2e setup without a JSON trust base The non-inclusion corpus is re-vendored byte for byte from ristik/aggregator-go risto/ni-corpus-utb-authority (generator commit 7350e8f): cases unchanged, authorities are one-entry trust base v2 bundles named by trustBaseBundle, authority/*.json gone; the source lock and the pinned manifest hash follow. TrustBaseTestUtils.fromLegacyJson and src/test/resources/trust-base.json are removed: the consolidation and signature-recovery fixtures build their genesis entry directly, TokenE2ETest and AggregatorStack open the bundle the aggregator under test serves (GET /api/v1/trustbases, the local-network setup), and the JS interop script uses the 4.0.0 JS API with that bundle. --- README.md | 2 +- .../sdk/api/NonInclusionCorpusTest.java | 6 +- .../sdk/api/bft/TrustBaseTestUtils.java | 55 ++++++++++-------- .../sdk/consolidation/CorpusSupport.java | 45 +++++++------- .../SignatureRecoveryVectorsTest.java | 24 ++++---- .../org/unicitylabs/sdk/e2e/TokenE2ETest.java | 13 ++--- .../sdk/integration/AggregatorStack.java | 20 ++++--- .../interop/JsSdkInteropIntegrationTest.java | 10 +++- .../shared/NonInclusionCorpusLockTest.java | 2 +- src/test/resources/interop/mint-token.mjs | 21 +++++-- src/test/resources/interop/package.json | 2 +- .../features/advanced-token-scenarios.feature | 2 +- .../features/aggregator-connectivity.feature | 2 +- .../sdk/features/multiple-aggregators.feature | 2 +- .../sdk/features/token-transfer.feature | 2 +- .../resources/shared/non-inclusion-v2.lock | 32 +++++----- .../resources/shared/non-inclusion/v2/SPEC.md | 7 ++- .../non-inclusion/v2/authority/big-epoch.cbor | Bin 198 -> 292 bytes .../non-inclusion/v2/authority/big-epoch.json | 33 ----------- .../v2/authority/late-epoch-start.cbor | Bin 194 -> 272 bytes .../v2/authority/late-epoch-start.json | 33 ----------- .../v2/authority/other-epoch.cbor | Bin 190 -> 268 bytes .../v2/authority/other-epoch.json | 33 ----------- .../v2/authority/other-network.cbor | Bin 190 -> 268 bytes .../v2/authority/other-network.json | 33 ----------- .../v2/authority/trust-base.cbor | Bin 190 -> 268 bytes .../v2/authority/trust-base.json | 33 ----------- .../v2/authority/untrusted-keys.cbor | Bin 190 -> 268 bytes .../v2/authority/untrusted-keys.json | 33 ----------- .../shared/non-inclusion/v2/contexts.json | 48 +++++---------- .../shared/non-inclusion/v2/manifest.json | 28 ++++----- src/test/resources/trust-base.json | 20 ------- 32 files changed, 157 insertions(+), 384 deletions(-) delete mode 100644 src/test/resources/shared/non-inclusion/v2/authority/big-epoch.json delete mode 100644 src/test/resources/shared/non-inclusion/v2/authority/late-epoch-start.json delete mode 100644 src/test/resources/shared/non-inclusion/v2/authority/other-epoch.json delete mode 100644 src/test/resources/shared/non-inclusion/v2/authority/other-network.json delete mode 100644 src/test/resources/shared/non-inclusion/v2/authority/trust-base.json delete mode 100644 src/test/resources/shared/non-inclusion/v2/authority/untrusted-keys.json delete mode 100644 src/test/resources/trust-base.json diff --git a/README.md b/README.md index 8d4a504c..a075fefa 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Run the integration tests, including Docker-based tests: ./gradlew integrationTest ``` -The [deployed-network test](./src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java) is enabled by `AGGREGATOR_URL`. Its current setup loads `src/test/resources/trust-base.json` and creates a client without an API key; configure both for your target network before running it. +The [deployed-network test](./src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java) is enabled by `AGGREGATOR_URL`. Its setup opens the trust base history the aggregator under test serves (the local-network setup, for a deployment you run yourself; for a public network use a pinned session instead) and creates a client without an API key; configure both for your target network before running it. ## Resources diff --git a/src/test/java/org/unicitylabs/sdk/api/NonInclusionCorpusTest.java b/src/test/java/org/unicitylabs/sdk/api/NonInclusionCorpusTest.java index f1694922..ad34eec2 100644 --- a/src/test/java/org/unicitylabs/sdk/api/NonInclusionCorpusTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/NonInclusionCorpusTest.java @@ -79,10 +79,8 @@ private static final class Setup { final NonInclusionContext context; Setup(JsonNode ctx) throws IOException { - String json = new String( - Files.readAllBytes(ROOT.resolve(ctx.get("trustBaseJson").asText())), - StandardCharsets.UTF_8); - this.trustBase = TrustBaseTestUtils.fromLegacyJson(json); + this.trustBase = TrustBaseTestUtils.fromBundle( + Files.readAllBytes(ROOT.resolve(ctx.get("trustBaseBundle").asText()))); NonInclusionContext c = NonInclusionContext.unsharded() .withShard(shard(ctx.get("shard").asText())); if (!"0".equals(ctx.get("nextEpochStart").asText())) { diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java b/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java index 5fd3960e..49cde2f5 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java @@ -1,16 +1,12 @@ package org.unicitylabs.sdk.api.bft; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.Comparator; import java.util.List; import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundle; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundleLimits; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseMember; -import org.unicitylabs.sdk.util.HexConverter; /** Test trust bases: a history holding one genesis entry, pinned by its own entry id. */ public final class TrustBaseTestUtils { @@ -33,6 +29,10 @@ public static TrustBaseHistory singleNode(NetworkId network, String nodeId, byte /** A history of one genesis entry of the given members, with the exact threshold. */ public static TrustBaseHistory genesis(NetworkId network, long epoch, long epochStartRound, List members) { + members = new java.util.ArrayList<>(members); + members.sort(java.util.Comparator.comparing( + m -> m.getNodeId().getBytes(java.nio.charset.StandardCharsets.UTF_8), + java.util.Arrays::compareUnsigned)); long total = 0; for (TrustBaseMember member : members) { total += member.getWeight(); @@ -45,26 +45,35 @@ public static TrustBaseHistory genesis(NetworkId network, long epoch, long epoch } /** - * A history of one genesis entry from the recorded fields of a V1 JSON trust base (network, - * epoch, start round, nodes with key and stake): the corpus fixtures record real seals and the - * authority that signed them in that form. The threshold is the exact one for the weights. + * The history of a trust base bundle (a corpus authority: tag 39015, genesis to tip), pinned by the + * identity of its own genesis entry the way a verifier opens a local deployment's bundle. */ - public static TrustBaseHistory fromLegacyJson(String json) { + public static TrustBaseHistory fromBundle(byte[] bytes) { + TrustBaseBundle bundle = TrustBaseBundle.decode(bytes, + new TrustBaseBundleLimits(bytes.length, 1024)); + return TrustBaseHistory.fromBundle(bundle, bundle.getEntries().get(0).entryId()); + } + + /** + * The complete trust base bundle (tag 39015, genesis to tip) a running aggregator serves at + * {@code GET /api/v1/trustbases}. For a deployment this suite started itself, whose bundle is its + * own authority (the local-network setup); never a way to authenticate a network. + */ + public static byte[] fetchServedBundle(String aggregatorUrl) throws java.io.IOException { + java.net.http.HttpRequest request = java.net.http.HttpRequest.newBuilder( + java.net.URI.create(aggregatorUrl.replaceAll("/+$", "") + + "/api/v1/trustbases?from=1&maxEntries=64")).GET().build(); try { - JsonNode node = new ObjectMapper().readTree(json); - List members = new ArrayList<>(); - for (JsonNode n : node.get("rootNodes")) { - members.add(new TrustBaseMember(n.get("nodeId").asText(), - HexConverter.decode(n.get("sigKey").asText()), n.get("stake").asLong())); + java.net.http.HttpResponse response = java.net.http.HttpClient.newHttpClient() + .send(request, java.net.http.HttpResponse.BodyHandlers.ofByteArray()); + if (response.statusCode() != 200) { + throw new java.io.IOException("the aggregator serves no trust base bundle: HTTP " + + response.statusCode()); } - members.sort(Comparator.comparing(m -> m.getNodeId().getBytes(StandardCharsets.UTF_8), - java.util.Arrays::compareUnsigned)); - return genesis(NetworkId.fromId((short) node.get("networkId").asInt()), - Long.parseUnsignedLong(node.get("epoch").asText()) == 0 - ? 1 : Long.parseUnsignedLong(node.get("epoch").asText()), - Long.parseUnsignedLong(node.get("epochStartRound").asText()), members); - } catch (java.io.IOException e) { - throw new IllegalArgumentException(e); + return response.body(); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new java.io.IOException(e); } } } diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java b/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java index 31197a70..6e4bb6b6 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java @@ -27,7 +27,10 @@ import org.unicitylabs.sdk.api.InclusionProofBatch; import org.unicitylabs.sdk.api.InclusionProofResponse; import org.unicitylabs.sdk.api.StateId; +import org.unicitylabs.sdk.api.NetworkId; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseMember; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.serializer.cbor.CborDeserializer; import org.unicitylabs.sdk.util.HexConverter; @@ -106,37 +109,31 @@ static ShardId shard(String bits) { return ShardId.fromBitString(bits); } - /** Go trust base CBOR: tag 39000 [version, network, epoch, epochStart, [[id, key, stake]...], quorum, ...]. */ + /** + * The consolidation corpus authority, a Go version-1 record (tag 39000 [version, network, epoch, + * epochStart, [[id, key, stake]...], quorum, ...]), as the one genesis entry of a history. The + * entry rules apply: the recorded quorum must be the exact threshold for the weights. + */ static TrustBaseHistoryView trustBase(byte[] cbor) { List data = CborDeserializer.decodeArray(CborDeserializer.decodeTag(cbor).getData()); - ObjectNode json = JSON.createObjectNode(); - json.put("version", 1); - json.put("networkId", CborDeserializer.decodeUnsignedInteger(data.get(1)).asLong()); - json.put("epoch", Long.toUnsignedString( - CborDeserializer.decodeUnsignedInteger(data.get(2)).asLong())); - json.put("epochStartRound", Long.toUnsignedString( - CborDeserializer.decodeUnsignedInteger(data.get(3)).asLong())); - ArrayNode nodes = json.putArray("rootNodes"); + List members = new ArrayList<>(); for (byte[] node : CborDeserializer.decodeArray(data.get(4))) { List fields = CborDeserializer.decodeArray(node, 3); - ObjectNode entry = nodes.addObject(); - entry.put("nodeId", CborDeserializer.decodeTextString(fields.get(0))); - entry.put("sigKey", "0x" + HexConverter.encode( - CborDeserializer.decodeByteString(fields.get(1)))); - entry.put("stake", Long.toUnsignedString( + members.add(new TrustBaseMember(CborDeserializer.decodeTextString(fields.get(0)), + CborDeserializer.decodeByteString(fields.get(1)), CborDeserializer.decodeUnsignedInteger(fields.get(2)).asLong())); } - json.put("quorumThreshold", Long.toUnsignedString( - CborDeserializer.decodeUnsignedInteger(data.get(5)).asLong())); - json.put("stateHash", ""); - json.putNull("changeRecordHash"); - json.putNull("previousEntryHash"); - json.putObject("signatures"); - try { - return TrustBaseTestUtils.fromLegacyJson(JSON.writeValueAsString(json)); - } catch (IOException e) { - throw new UncheckedIOException(e); + long epoch = CborDeserializer.decodeUnsignedInteger(data.get(2)).asLong(); + TrustBaseHistory history = TrustBaseTestUtils.genesis( + NetworkId.fromId((short) CborDeserializer.decodeUnsignedInteger(data.get(1)).asLong()), + epoch == 0 ? 1 : epoch, + CborDeserializer.decodeUnsignedInteger(data.get(3)).asLong(), members); + long quorum = CborDeserializer.decodeUnsignedInteger(data.get(5)).asLong(); + if (history.getTip().get().getQuorumThreshold() != quorum) { + throw new IllegalArgumentException("the corpus quorum " + quorum + + " is not the entry threshold " + history.getTip().get().getQuorumThreshold()); } + return history; } /** Certification data inside a Go certification request (tag 39030). */ diff --git a/src/test/java/org/unicitylabs/sdk/crypto/secp256k1/SignatureRecoveryVectorsTest.java b/src/test/java/org/unicitylabs/sdk/crypto/secp256k1/SignatureRecoveryVectorsTest.java index bf38c1ae..d3985492 100644 --- a/src/test/java/org/unicitylabs/sdk/crypto/secp256k1/SignatureRecoveryVectorsTest.java +++ b/src/test/java/org/unicitylabs/sdk/crypto/secp256k1/SignatureRecoveryVectorsTest.java @@ -76,22 +76,20 @@ List recoveryVectors() { @TestFactory List sealCases() { JsonNode seal = fixture.get("seal"); - StringBuilder nodes = new StringBuilder(); + List members = new ArrayList<>(); for (JsonNode node : seal.get("nodes")) { - if (nodes.length() > 0) { - nodes.append(','); - } - nodes.append("{\"nodeId\":\"").append(node.get("id").asText()) - .append("\",\"sigKey\":\"").append(node.get("publicKeyCompressed").asText()) - .append("\",\"stake\":").append(node.get("stake").asText()).append('}'); + members.add(new org.unicitylabs.sdk.api.bft.trustbase.TrustBaseMember( + node.get("id").asText(), + HexConverter.decode(node.get("publicKeyCompressed").asText()), + node.get("stake").asLong())); } org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory trustBase = - TrustBaseTestUtils.fromLegacyJson("{\"version\":1,\"networkId\":" - + seal.get("networkId").asText() + ",\"epoch\":" + seal.get("epoch").asText() - + ",\"epochStartRound\":0,\"rootNodes\":[" + nodes + "],\"quorumThreshold\":" - + seal.get("quorumThreshold").asText() - + ",\"stateHash\":\"\",\"changeRecordHash\":\"\",\"previousEntryHash\":\"\"," - + "\"signatures\":{}}"); + TrustBaseTestUtils.genesis( + org.unicitylabs.sdk.api.NetworkId.fromId((short) seal.get("networkId").asInt()), + seal.get("epoch").asLong(), 1, members); + assertEquals(seal.get("quorumThreshold").asLong(), + trustBase.getTip().get().getQuorumThreshold(), + "the fixture quorum is the entry threshold"); List tests = new ArrayList<>(); for (JsonNode testCase : seal.get("cases")) { diff --git a/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java b/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java index 3ac58c2e..97615c12 100644 --- a/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java +++ b/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java @@ -15,7 +15,6 @@ import org.unicitylabs.sdk.transaction.verification.VerificationContext; import java.io.IOException; -import java.io.InputStream; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -38,13 +37,11 @@ void setUp() throws IOException { this.aggregatorClient = new JsonRpcAggregatorClient(aggregatorUrl); this.client = new StateTransitionClient(this.aggregatorClient); - try (InputStream stream = getClass().getResourceAsStream("/trust-base.json")) { - assertNotNull(stream, "trust-base.json not found"); - this.context = new VerificationContext( - TrustBaseTestUtils.fromLegacyJson(new String(stream.readAllBytes())), - PredicateVerifierService.create(), new MintJustificationVerifierService(), - new TokenIssuanceVerifierService(false)); - } + // the trust base history the aggregator under test serves (the local-network setup) + this.context = new VerificationContext( + TrustBaseTestUtils.fromBundle(TrustBaseTestUtils.fetchServedBundle(aggregatorUrl)), + PredicateVerifierService.create(), new MintJustificationVerifierService(), + new TokenIssuanceVerifierService(false)); } @Test diff --git a/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java b/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java index 5b2eb0bd..20ef1dbd 100644 --- a/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java +++ b/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java @@ -159,23 +159,27 @@ public String getNetworkName() { } /** - * Get the path of the trust base the BFT root node generated for this run. + * Fetch the trust base history the aggregator of this run serves: the complete bundle (tag 39015) + * from the genesis entry to the tip, as {@code GET /api/v1/trustbases} answers it. The stack is + * the test's own, so the bundle is the local deployment's authority and its genesis entry is the + * pin. * - * @return trust base path + * @return bundle bytes + * @throws IOException if the aggregator does not serve a bundle */ - public Path getTrustBasePath() { - return DATA_DIR.resolve("genesis").resolve("trust-base.json"); + public byte[] fetchTrustBaseBundle() throws IOException { + return TrustBaseTestUtils.fetchServedBundle(this.url); } /** - * Read the trust base the BFT root node generated for this run. + * Open the trust base history the aggregator of this run serves (see + * {@link #fetchTrustBaseBundle()}), pinned by the identity of its own genesis entry. * * @return trust base - * @throws IOException if the generated genesis cannot be read + * @throws IOException if the bundle cannot be fetched */ public TrustBaseHistoryView getTrustBase() throws IOException { - return TrustBaseTestUtils.fromLegacyJson(new String( - Files.readAllBytes(getTrustBasePath()), StandardCharsets.UTF_8)); + return TrustBaseTestUtils.fromBundle(fetchTrustBaseBundle()); } @Override diff --git a/src/test/java/org/unicitylabs/sdk/interop/JsSdkInteropIntegrationTest.java b/src/test/java/org/unicitylabs/sdk/interop/JsSdkInteropIntegrationTest.java index bf58130e..82772339 100644 --- a/src/test/java/org/unicitylabs/sdk/interop/JsSdkInteropIntegrationTest.java +++ b/src/test/java/org/unicitylabs/sdk/interop/JsSdkInteropIntegrationTest.java @@ -3,6 +3,8 @@ import java.io.BufferedReader; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; @@ -49,14 +51,18 @@ void mintWithTheTypeScriptSdk() throws Exception { this.stack = AggregatorStack.start(); String interop = Paths.get("src", "test", "resources", "interop").toAbsolutePath().toString(); + // the trust base history the aggregator serves, as the file the TypeScript client opens + Path bundle = Files.createTempFile("trust-base", ".cbor"); + Files.write(bundle, this.stack.fetchTrustBaseBundle()); + bundle.toFile().deleteOnExit(); List command = new ArrayList<>(List.of( "docker", "run", "--rm", // Join the stack's own network, so the aggregator is reachable by service name. "--network", this.stack.getNetworkName(), "-v", interop + ":/interop:ro", - "-v", this.stack.getTrustBasePath().toAbsolutePath() + ":/trust-base.json:ro", + "-v", bundle.toAbsolutePath() + ":/trust-base.cbor:ro", "-e", "AGGREGATOR_URL=http://aggregator:3000", - "-e", "TRUST_BASE_PATH=/trust-base.json", + "-e", "TRUST_BASE_PATH=/trust-base.cbor", "-w", "/work", NODE_IMAGE, "sh", "-c", diff --git a/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java b/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java index 7398db34..7e483acd 100644 --- a/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java +++ b/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java @@ -63,7 +63,7 @@ void fileSetAndHashesMatchTheSourceLock() throws Exception { Map actual = actualFiles(); assertEquals(locked, actual, "vendored file set or contents differ from the lock"); assertEquals( - "7bfb40a209b137acdcfa3deea0834a54924ce32e7d9d41c0d9d583ae3dc5dd8b", manifestPin); + "a4adc4d06fa1f03572d7fd675909df21e36060e7d094365b77a373f052ae64cf", manifestPin); assertEquals(manifestPin, actual.get("manifest.json")); } diff --git a/src/test/resources/interop/mint-token.mjs b/src/test/resources/interop/mint-token.mjs index 746ff0a2..3d889db2 100644 --- a/src/test/resources/interop/mint-token.mjs +++ b/src/test/resources/interop/mint-token.mjs @@ -1,8 +1,10 @@ -// Mint a token and transfer it once, using the PUBLISHED TypeScript SDK against the aggregator -// the Java integration suite started, then print the token as hex. +// Mint a token and transfer it once, using the PUBLISHED TypeScript SDK (4.0.0 API: verification is +// anchored in a trust base history) against the aggregator the Java integration suite started, +// then print the token as hex. // // This runs inside a node container, against the npm artifact rather than the TypeScript repo's -// source tree — the same bytes a consumer installs. The token comes back over stdout so nothing +// source tree — the same bytes a consumer installs. TRUST_BASE_PATH is the bundle (tag 39015, +// genesis to tip) the aggregator serves; as for any local network, its genesis entry is the pin. The token comes back over stdout so nothing // has to be bind-mounted or copied out. import { readFileSync } from 'node:fs'; @@ -10,8 +12,10 @@ import { AggregatorClient } from '@unicitylabs/state-transition-sdk/lib/api/Aggr import { UnicitySealQuorumSignaturesVerificationRule } from '@unicitylabs/state-transition-sdk/lib/api/bft/verification/rule/UnicitySealQuorumSignaturesVerificationRule.js'; import { UnicityCertificateVerifier } from '@unicitylabs/state-transition-sdk/lib/api/bft/verification/UnicityCertificateVerifier.js'; import { VerifiedSealCache } from '@unicitylabs/state-transition-sdk/lib/api/bft/verification/VerifiedSealCache.js'; -import { RootTrustBase } from '@unicitylabs/state-transition-sdk/lib/api/bft/RootTrustBase.js'; +import { TrustBaseBundle } from '@unicitylabs/state-transition-sdk/lib/api/bft/trustbase/TrustBaseBundle.js'; +import { TrustBaseHistory } from '@unicitylabs/state-transition-sdk/lib/api/bft/trustbase/TrustBaseHistory.js'; import { CertificationData } from '@unicitylabs/state-transition-sdk/lib/api/CertificationData.js'; +import { NetworkId } from '@unicitylabs/state-transition-sdk/lib/api/NetworkId.js'; import { Secp256k1SignatureVerifier } from '@unicitylabs/state-transition-sdk/lib/crypto/secp256k1/Secp256k1SignatureVerifier.js'; import { SigningService } from '@unicitylabs/state-transition-sdk/lib/crypto/secp256k1/SigningService.js'; import { SignaturePredicate } from '@unicitylabs/state-transition-sdk/lib/predicate/builtin/SignaturePredicate.js'; @@ -33,7 +37,12 @@ if (!aggregatorUrl || !trustBasePath) { throw new Error('AGGREGATOR_URL and TRUST_BASE_PATH must be set'); } -const trustBase = RootTrustBase.fromJSON(JSON.parse(readFileSync(trustBasePath, 'utf-8'))); +const bundleBytes = new Uint8Array(readFileSync(trustBasePath)); +const bundle = await TrustBaseBundle.decode(bundleBytes, { maxBytes: bundleBytes.length, maxEntries: 1024 }); +const trustBase = TrustBaseHistory.create(await bundle.entries[0].entryId()); +for (const entry of bundle.entries) { + await trustBase.append(entry); +} const aggregatorClient = new AggregatorClient(aggregatorUrl, null); const client = new StateTransitionClient(aggregatorClient); const predicateVerifier = PredicateVerifierService.create(); @@ -60,7 +69,7 @@ const submit = async (certificationData) => { } }; -const mint = await MintTransaction.create(trustBase.networkId, SignaturePredicate.fromSigningService(alice), { +const mint = await MintTransaction.create(NetworkId.fromId(trustBase.networkId.id), SignaturePredicate.fromSigningService(alice), { expiresAt, }); await submit(await CertificationData.fromMintTransaction(mint)); diff --git a/src/test/resources/interop/package.json b/src/test/resources/interop/package.json index 0056f764..29c0b4da 100644 --- a/src/test/resources/interop/package.json +++ b/src/test/resources/interop/package.json @@ -4,6 +4,6 @@ "type": "module", "description": "Mints a token with the published TypeScript SDK so the Java suite can verify it.", "dependencies": { - "@unicitylabs/state-transition-sdk": "3.0.1" + "@unicitylabs/state-transition-sdk": "4.0.0" } } diff --git a/src/test/resources/org/unicitylabs/sdk/features/advanced-token-scenarios.feature b/src/test/resources/org/unicitylabs/sdk/features/advanced-token-scenarios.feature index eb0f99b3..e681e2ce 100644 --- a/src/test/resources/org/unicitylabs/sdk/features/advanced-token-scenarios.feature +++ b/src/test/resources/org/unicitylabs/sdk/features/advanced-token-scenarios.feature @@ -6,7 +6,7 @@ Feature: Advanced Token Scenarios Background: Given the aggregator URL is configured - And trust-base.json is set + And the trust base is set And the state transition client is initialized And the following users are set up with their signing services | Alice | diff --git a/src/test/resources/org/unicitylabs/sdk/features/aggregator-connectivity.feature b/src/test/resources/org/unicitylabs/sdk/features/aggregator-connectivity.feature index 7652e299..77fff936 100644 --- a/src/test/resources/org/unicitylabs/sdk/features/aggregator-connectivity.feature +++ b/src/test/resources/org/unicitylabs/sdk/features/aggregator-connectivity.feature @@ -6,7 +6,7 @@ Feature: Aggregator Connectivity and Basic Operations Background: Given the aggregator URL is configured - And trust-base.json is set + And the trust base is set And the aggregator client is initialized Scenario: Verify aggregator connectivity diff --git a/src/test/resources/org/unicitylabs/sdk/features/multiple-aggregators.feature b/src/test/resources/org/unicitylabs/sdk/features/multiple-aggregators.feature index 06bf5036..7d9e5052 100644 --- a/src/test/resources/org/unicitylabs/sdk/features/multiple-aggregators.feature +++ b/src/test/resources/org/unicitylabs/sdk/features/multiple-aggregators.feature @@ -2,7 +2,7 @@ Feature: Bulk Commitment Testing with Multiple Aggregators Scenario: Submit commitments to multiple aggregators concurrently Given the aggregator URLs are configured - And trust-base.json is set + And the trust base is set And the aggregator clients are initialized And I configure 10 threads with 10 commitments each When I submit all mint commitments concurrently to all aggregators diff --git a/src/test/resources/org/unicitylabs/sdk/features/token-transfer.feature b/src/test/resources/org/unicitylabs/sdk/features/token-transfer.feature index 89902749..f9f840de 100644 --- a/src/test/resources/org/unicitylabs/sdk/features/token-transfer.feature +++ b/src/test/resources/org/unicitylabs/sdk/features/token-transfer.feature @@ -6,7 +6,7 @@ Feature: Token Transfer Operations Background: Given the aggregator URL is configured - And trust-base.json is set + And the trust base is set And the state transition client is initialized And the following users are set up with their signing services | name | diff --git a/src/test/resources/shared/non-inclusion-v2.lock b/src/test/resources/shared/non-inclusion-v2.lock index 6cc2fe9b..e8ea1812 100644 --- a/src/test/resources/shared/non-inclusion-v2.lock +++ b/src/test/resources/shared/non-inclusion-v2.lock @@ -1,23 +1,17 @@ # Source lock of src/test/resources/shared/non-inclusion/v2 (vendored byte for byte, never regenerated here). -source-repo: unicitynetwork/aggregator-go -source-commit: 51f2ca8b4ad58d55e11be4c281051cae1e72d773 +source-repo: ristik/aggregator-go (branch risto/ni-corpus-utb-authority; the authorities are trust base v2 bundles, no JSON trust base) +source-commit: 7a28461a0c3960f8ba223d338174ff2f6bdfb413 source-path: testdata/non-inclusion/v2 -manifest-sha256: 7bfb40a209b137acdcfa3deea0834a54924ce32e7d9d41c0d9d583ae3dc5dd8b -generator-commit: dd52a67ae77d4984f632b8dc9ad23925ee6541a4 (recorded in manifest.json; predates the source snapshot) +manifest-sha256: a4adc4d06fa1f03572d7fd675909df21e36060e7d094365b77a373f052ae64cf +generator-commit: 7350e8fd1782d54fbe338e839434f06064841a94 (recorded in manifest.json) # , every file including manifest.json -672f904b13e621a6add5d701a1ddb1b786c1a942a11ac192296210b418ae0b46 SPEC.md -00de35dbfa7c25a64c971fa4e5356949106e5fd334ef946c617b54f65c301b8e authority/big-epoch.cbor -d97f20257b080c66ef68995693d1cad31fa94299941da4cbdf85160f0d329893 authority/big-epoch.json -e719e8f39f61e4061d54906cc78cffb577b7d2afcf6a3149657477cb7f7f710a authority/late-epoch-start.cbor -7dc46736c57dd09f8c17716338bf97fd0a8dd0f2753a36d4f7ed66fe12505a32 authority/late-epoch-start.json -40d8223f44a3d0adccda98a75d372265cd45a7a1e20bf0f8e8d589829919b691 authority/other-epoch.cbor -21fc10cfdb30bd4c234fa0cdf2a3ded3371f53d4f29efe926ee73cb87ac94863 authority/other-epoch.json -177c2161af86f3709d5c46394099f1018acc0b5ac842deddc27d2e2252e6c7e4 authority/other-network.cbor -e16bb842e9f060de42c8a604d204afc4472edf80df5006a1a1800b5a07ed0232 authority/other-network.json -a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446 authority/trust-base.cbor -28c18ee8af0e1d49b90f4db860b9b7be3c796de681b915a9136942b178017775 authority/trust-base.json -c0f98a05708723a22621cdf421f39a03998ae7b37270a0cf30ecb2b26e210d92 authority/untrusted-keys.cbor -7d992dd3ba0592b080c08a409a80594fcc48a0308940a80fed99fcc7f99fc65b authority/untrusted-keys.json +de07966f5959d8cabeae425fbd4d060e8d3ed3c685e13e1892588beea3c65749 SPEC.md +31a558469d4f5937f66d52bb599d20c58ce6ec2d125abeacf0acd924078de29b authority/big-epoch.cbor +4899e137401e7c7b79063d35d547c26dfc21ec464a9be65342efccec536a60c6 authority/late-epoch-start.cbor +f86f68516add6c7e686a75977b08c53f68d92e5904becc17ea282a49d4052858 authority/other-epoch.cbor +75465c5f27dc263bd95110a93e1559c0ef4c03d1b6717476b071ed0ea3f8b746 authority/other-network.cbor +1ed76c9443af00e170a25b7fa227502f85520466b6723c6e2c2ebe17af67ac97 authority/trust-base.cbor +b84a82963741c3aac4cd8856882d0a629d9a533dbd322dc370c279df6d1c1cbf authority/untrusted-keys.cbor 9f55864476c74079412c2d11ab9ba6a476349668235294e22dc5ff4daa8f117c cases/depth-0.json c3ee9b948cc78ebb63350fe6a477c4abe9867413be521b451896ca7063e29301 cases/depth-255.json 2af20475c771fead59ef05134f4d2826744785c364a8c17ee54d1335df94bb04 cases/diverges-in-compressed-edge.json @@ -45,9 +39,9 @@ f3e87f64a7787096f0469396a94bac5a532308b9f790d7ef780a17d1bf63da8c cases/singleto 6338ace5cfb846d770a0d5ca02cb124f6dff4224cd9ef28866527615215bf143 cases/singleton.json f139b7d2307da7f5281796387bc52c26e6268d0b78f3a63bee3d3181c4dbdbc9 cases/under-quorum.json 8426ecf4c47226898f3012987cfde8fb9a9b91f7a5d9acedd0ff0ddd67c6f7ed cases/zero-root.json -9a0fb40bfe2c01936b2c016a9aa0ad6352d71655739747f7c0c10b6c5d05c466 contexts.json +a4fb22a0aa7e460f064c6f366b5d9c718174bd91ca8674a6f15e4d3735cf2e06 contexts.json 3a54213083d1885b2acf8b3af04357956cab2e4b68327aba39744e9565bc0f3a direct-unsharded/latest.json -7bfb40a209b137acdcfa3deea0834a54924ce32e7d9d41c0d9d583ae3dc5dd8b manifest.json +a4adc4d06fa1f03572d7fd675909df21e36060e7d094365b77a373f052ae64cf manifest.json 608191f8953d8177c928514f634a5bc76977f4000cf6fefae415ed1b18863125 negative/cert-bitmap-bit-moved.json 99cf2a97dae40a3626b5581748a3ed8bb021c97d88ad5aa2401832b3cd4b5b6e negative/cert-bitmap-extra-bit.json af61d3c7beb2667539c092c959772975de180a1977781069d9650cfe82fadf3c negative/cert-empty-against-nonempty-root.json diff --git a/src/test/resources/shared/non-inclusion/v2/SPEC.md b/src/test/resources/shared/non-inclusion/v2/SPEC.md index 790b47c1..2898aa37 100644 --- a/src/test/resources/shared/non-inclusion/v2/SPEC.md +++ b/src/test/resources/shared/non-inclusion/v2/SPEC.md @@ -93,8 +93,9 @@ bitmap depths in decreasing order; at each junction the child on the terminal's (`certificate_invalid` otherwise) 5. relation above: `certificate_invalid`, or the outcomes `included_at_snapshot` / `absent_at_snapshot` (success, with the snapshot) -Contexts (`contexts.json`) hold everything the verifier trusts: trust base (`authority/*.cbor`, and the same authority -as `authority/*.json` in the form the SDKs parse), the expected `shard` (bit string), optional `nextEpochStart` +Contexts (`contexts.json`) hold everything the verifier trusts: the authority (`trustBaseBundle`, a path under `authority/`: a complete +Unicity Trust Base v2 bundle, tag 39015, holding the one genesis entry of the authority; a verifier opens it as a trust base history pinned to +that genesis), the expected `shard` (bit string), optional `nextEpochStart` (authenticated end boundary) and optional `shardConfHash` pin. There is no partition and no minimum root round in a context. Numbers are decimal strings. A signed old snapshot establishes historical absence; whether it is good enough is the caller's policy. @@ -105,7 +106,7 @@ caller's policy. * `negative/*.json` single-fault derivations (`base`): the wrapper bytes under test and the expected result (`rejected` with a class and no snapshot; a few context variants are successes and say so). * `policy.json`: caller policy examples (checkpoint vs snapshot: network, root round, seal timestamp, large uint64 values, cross network). Applied after verification; not part of the verifier. * `sequences.json`: ordered verifications on ONE verifier (it memoizes authenticated seals): a seal shared by two shards, rejections between successes, repeated verification. Each step has its own expected result. -* `authority/*.cbor` trust bases; `contexts.json`. +* `authority/*.cbor` the authorities as trust base v2 bundles (one genesis entry each); `contexts.json`. * `direct-unsharded/latest.json`: tree, UC and raw inclusion certificates for the unsharded latest batch. The ordinary UC is the consolidation target; **no partition view exists or is sent** for it. * `rpc-errors.json`: client classification of status codes and bodies. The RPC code decides for a valid diff --git a/src/test/resources/shared/non-inclusion/v2/authority/big-epoch.cbor b/src/test/resources/shared/non-inclusion/v2/authority/big-epoch.cbor index ffe94f4c67dd6a224246d0dcb244a8c6c620a9ef..e87521a955b2c80512d12d7860047bb87b8703df 100644 GIT binary patch delta 110 zcmX@cxP-~^=8W_XMkWU7{}AvS&WKP5?`b;qr9~*Cz0Eb^czEW-6$?Df`d8QX&Rx4e b)G|e2YU9lr5nW6ZS@)|%C@>HJ-@X9=`e`bO delta 16 YcmZ3&bc~Vp=8T9g#)*#mnZ7Lm05*08@Bjb+ diff --git a/src/test/resources/shared/non-inclusion/v2/authority/big-epoch.json b/src/test/resources/shared/non-inclusion/v2/authority/big-epoch.json deleted file mode 100644 index fbb308c1..00000000 --- a/src/test/resources/shared/non-inclusion/v2/authority/big-epoch.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "version": 1, - "networkId": 2, - "epoch": 18446744073709551611, - "epochStartRound": 1, - "rootNodes": [ - { - "nodeId": "root-1", - "sigKey": "0x03cd5505ce8545d30ea078b1bdc7f252575967b17676c81dd437cf2c23b460c926", - "stake": 1 - }, - { - "nodeId": "root-2", - "sigKey": "0x025f1b000d387aa60d56b8f033167266b475f6c0be472636d6f5b11683275ca333", - "stake": 1 - }, - { - "nodeId": "root-3", - "sigKey": "0x03f76864e6e62f4d1368b12d359e6060a42d44330d8b66297b5750660a1f575ae9", - "stake": 1 - }, - { - "nodeId": "root-4", - "sigKey": "0x0294e020df2fe64a1b874f80723de1397e0c3c86ba71767e989ee0c61c5a4484e1", - "stake": 1 - } - ], - "quorumThreshold": 3, - "stateHash": "", - "changeRecordHash": "", - "previousEntryHash": "", - "signatures": {} -} diff --git a/src/test/resources/shared/non-inclusion/v2/authority/late-epoch-start.cbor b/src/test/resources/shared/non-inclusion/v2/authority/late-epoch-start.cbor index 7ea42083ef3db4f1d93af4b27204c6bb4ce0cbd2..a2373c5ccc291f11b37535490e7b2c8e55f464a5 100644 GIT binary patch delta 94 zcmX@aIDyIV=8W_XMkWSE#t4PI2f8OE6u8d#Uv?>D@?Lez_GM+aL?hxqtoPY%Xv!#Z Wrt#*Ch%Tmyth-er6c`AAZ{Gk!Wg71Q delta 16 YcmbQhbcm7l=8T9g#)*cznZ7Lm05qNk!~g&Q diff --git a/src/test/resources/shared/non-inclusion/v2/authority/late-epoch-start.json b/src/test/resources/shared/non-inclusion/v2/authority/late-epoch-start.json deleted file mode 100644 index f4d34417..00000000 --- a/src/test/resources/shared/non-inclusion/v2/authority/late-epoch-start.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "version": 1, - "networkId": 2, - "epoch": 1, - "epochStartRound": 1000000, - "rootNodes": [ - { - "nodeId": "root-1", - "sigKey": "0x03cd5505ce8545d30ea078b1bdc7f252575967b17676c81dd437cf2c23b460c926", - "stake": 1 - }, - { - "nodeId": "root-2", - "sigKey": "0x025f1b000d387aa60d56b8f033167266b475f6c0be472636d6f5b11683275ca333", - "stake": 1 - }, - { - "nodeId": "root-3", - "sigKey": "0x03f76864e6e62f4d1368b12d359e6060a42d44330d8b66297b5750660a1f575ae9", - "stake": 1 - }, - { - "nodeId": "root-4", - "sigKey": "0x0294e020df2fe64a1b874f80723de1397e0c3c86ba71767e989ee0c61c5a4484e1", - "stake": 1 - } - ], - "quorumThreshold": 3, - "stateHash": "", - "changeRecordHash": "", - "previousEntryHash": "", - "signatures": {} -} diff --git a/src/test/resources/shared/non-inclusion/v2/authority/other-epoch.cbor b/src/test/resources/shared/non-inclusion/v2/authority/other-epoch.cbor index c49a1c7a6cd6a0a43842e021f0dbf2e913ef6f11..e8fba32560c851b5508d3e715fd013eec0aa8643 100644 GIT binary patch delta 94 zcmdnT*u!Lab4GdxBNGD?Q-nfcsnXLKv;MJKD<&`7ncJ=ZE?{D-?q#k&x6Nf{UsIp8 WqVeX8h%TmytlL#06c`AAZ{GkRqZ-lx delta 16 YcmeBS+Q-Oxb4ElL<3z*lOy3p&05lc`xBvhE diff --git a/src/test/resources/shared/non-inclusion/v2/authority/other-epoch.json b/src/test/resources/shared/non-inclusion/v2/authority/other-epoch.json deleted file mode 100644 index e4c4a9a0..00000000 --- a/src/test/resources/shared/non-inclusion/v2/authority/other-epoch.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "version": 1, - "networkId": 2, - "epoch": 2, - "epochStartRound": 1, - "rootNodes": [ - { - "nodeId": "root-1", - "sigKey": "0x03cd5505ce8545d30ea078b1bdc7f252575967b17676c81dd437cf2c23b460c926", - "stake": 1 - }, - { - "nodeId": "root-2", - "sigKey": "0x025f1b000d387aa60d56b8f033167266b475f6c0be472636d6f5b11683275ca333", - "stake": 1 - }, - { - "nodeId": "root-3", - "sigKey": "0x03f76864e6e62f4d1368b12d359e6060a42d44330d8b66297b5750660a1f575ae9", - "stake": 1 - }, - { - "nodeId": "root-4", - "sigKey": "0x0294e020df2fe64a1b874f80723de1397e0c3c86ba71767e989ee0c61c5a4484e1", - "stake": 1 - } - ], - "quorumThreshold": 3, - "stateHash": "", - "changeRecordHash": "", - "previousEntryHash": "", - "signatures": {} -} diff --git a/src/test/resources/shared/non-inclusion/v2/authority/other-network.cbor b/src/test/resources/shared/non-inclusion/v2/authority/other-network.cbor index 71ffd932b903f741e7f42424f519cffe09251e37..0f9e21899255aaa96681b8fa573848b5527e2079 100644 GIT binary patch delta 94 zcmdnT*u!Lab4GdxBO?PNV}!!z!_`ywzH`i3w#A_I(yL9^QY)YA`KGlZegEV7v%hbt XCO6)k5z)mok#)ODgaQKr@a-D_MmQf| delta 16 YcmeBS+Q-Oxb4ElL<3z*lOy3p&05lc`xBvhE diff --git a/src/test/resources/shared/non-inclusion/v2/authority/other-network.json b/src/test/resources/shared/non-inclusion/v2/authority/other-network.json deleted file mode 100644 index 24b2f834..00000000 --- a/src/test/resources/shared/non-inclusion/v2/authority/other-network.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "version": 1, - "networkId": 1, - "epoch": 1, - "epochStartRound": 1, - "rootNodes": [ - { - "nodeId": "root-1", - "sigKey": "0x03cd5505ce8545d30ea078b1bdc7f252575967b17676c81dd437cf2c23b460c926", - "stake": 1 - }, - { - "nodeId": "root-2", - "sigKey": "0x025f1b000d387aa60d56b8f033167266b475f6c0be472636d6f5b11683275ca333", - "stake": 1 - }, - { - "nodeId": "root-3", - "sigKey": "0x03f76864e6e62f4d1368b12d359e6060a42d44330d8b66297b5750660a1f575ae9", - "stake": 1 - }, - { - "nodeId": "root-4", - "sigKey": "0x0294e020df2fe64a1b874f80723de1397e0c3c86ba71767e989ee0c61c5a4484e1", - "stake": 1 - } - ], - "quorumThreshold": 3, - "stateHash": "", - "changeRecordHash": "", - "previousEntryHash": "", - "signatures": {} -} diff --git a/src/test/resources/shared/non-inclusion/v2/authority/trust-base.cbor b/src/test/resources/shared/non-inclusion/v2/authority/trust-base.cbor index 603ae1e01e19147ff6673509a47d3b183240e451..b9c86199ab4a80e2cc9e8f49fd6eea5de263ed31 100644 GIT binary patch delta 94 zcmdnT*u!Lab4GdxBNGE7V}wGv_3yUI`tQ-IMY|PNMyu^gF?P~se;R-12!qsWwrz=R WjW=gRbTLh2-L4X$z(4?e`vw5ZXc;j8 delta 16 YcmeBS+Q-Oxb4ElL<3z*lOy3p&05lc`xBvhE diff --git a/src/test/resources/shared/non-inclusion/v2/authority/trust-base.json b/src/test/resources/shared/non-inclusion/v2/authority/trust-base.json deleted file mode 100644 index cfe00fc7..00000000 --- a/src/test/resources/shared/non-inclusion/v2/authority/trust-base.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "version": 1, - "networkId": 2, - "epoch": 1, - "epochStartRound": 1, - "rootNodes": [ - { - "nodeId": "root-1", - "sigKey": "0x03cd5505ce8545d30ea078b1bdc7f252575967b17676c81dd437cf2c23b460c926", - "stake": 1 - }, - { - "nodeId": "root-2", - "sigKey": "0x025f1b000d387aa60d56b8f033167266b475f6c0be472636d6f5b11683275ca333", - "stake": 1 - }, - { - "nodeId": "root-3", - "sigKey": "0x03f76864e6e62f4d1368b12d359e6060a42d44330d8b66297b5750660a1f575ae9", - "stake": 1 - }, - { - "nodeId": "root-4", - "sigKey": "0x0294e020df2fe64a1b874f80723de1397e0c3c86ba71767e989ee0c61c5a4484e1", - "stake": 1 - } - ], - "quorumThreshold": 3, - "stateHash": "", - "changeRecordHash": "", - "previousEntryHash": "", - "signatures": {} -} diff --git a/src/test/resources/shared/non-inclusion/v2/authority/untrusted-keys.cbor b/src/test/resources/shared/non-inclusion/v2/authority/untrusted-keys.cbor index 6a1634ef0751312a6f527708c62e7263c7bdb6cb..529ae5e48c11c178597219c6015a1240bac3a6bf 100644 GIT binary patch delta 94 zcmdnT*u!Lab4GdxBNGE7V}wGY^RXhGqs1<(YBnEH3v#yaQGO)2J-*{}U{}rOufI&^ WG~S#M(Zw{8b-PN00s{f??Hd3y?;BqL delta 16 YcmeBS+Q-Oxb4ElL<3z*lOy3p&05lc`xBvhE diff --git a/src/test/resources/shared/non-inclusion/v2/authority/untrusted-keys.json b/src/test/resources/shared/non-inclusion/v2/authority/untrusted-keys.json deleted file mode 100644 index 2da7864a..00000000 --- a/src/test/resources/shared/non-inclusion/v2/authority/untrusted-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "version": 1, - "networkId": 2, - "epoch": 1, - "epochStartRound": 1, - "rootNodes": [ - { - "nodeId": "root-1", - "sigKey": "0x0208cb9379fb42bd4444381c9063e79c007610535b1703ad76804174777d4bb55e", - "stake": 1 - }, - { - "nodeId": "root-2", - "sigKey": "0x0264d97cec5950a5aa34f5e98c469247aa47e26b7e8e54c28a58f3d0a173687446", - "stake": 1 - }, - { - "nodeId": "root-3", - "sigKey": "0x03afc1cd2915f9c5c88db1a58349a4001f05321bc0c290bb14d9698b601de6e792", - "stake": 1 - }, - { - "nodeId": "root-4", - "sigKey": "0x02dfd8b6508e7bd69bc2e10ba890ce9705694c005d98b113e0942ab2fb0b96006f", - "stake": 1 - } - ], - "quorumThreshold": 3, - "stateHash": "", - "changeRecordHash": "", - "previousEntryHash": "", - "signatures": {} -} diff --git a/src/test/resources/shared/non-inclusion/v2/contexts.json b/src/test/resources/shared/non-inclusion/v2/contexts.json index b48601a1..29de5144 100644 --- a/src/test/resources/shared/non-inclusion/v2/contexts.json +++ b/src/test/resources/shared/non-inclusion/v2/contexts.json @@ -1,128 +1,112 @@ { "before-epoch-start": { "description": "authority whose epoch starts after the certified round", - "trustBase": "authority/late-epoch-start.cbor", - "trustBaseJson": "authority/late-epoch-start.json", + "trustBaseBundle": "authority/late-epoch-start.cbor", "shard": "", "nextEpochStart": "0", "shardConfHash": "" }, "big-epoch-authority": { "description": "the authority of root epoch 2^64-3 (same keys): for the vector with large uint64 fields", - "trustBase": "authority/big-epoch.cbor", - "trustBaseJson": "authority/big-epoch.json", + "trustBaseBundle": "authority/big-epoch.cbor", "shard": "", "nextEpochStart": "0", "shardConfHash": "" }, "config-pin-ok": { "description": "pins the shard configuration hash of the corpus partition", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "", "nextEpochStart": "0", "shardConfHash": "7243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1" }, "config-pin-other": { "description": "pins another shard configuration hash", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "", "nextEpochStart": "0", "shardConfHash": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" }, "default": { "description": "trusted authority of the fixture network, the aggregation partition (7), unsharded, no end boundary", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "", "nextEpochStart": "0", "shardConfHash": "" }, "epoch-end-after": { "description": "authenticated end of the epoch is after the certified round (still valid)", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "", "nextEpochStart": "7", "shardConfHash": "" }, "epoch-end-at-round": { "description": "the next epoch starts at the certified round: the seal is at the retirement boundary and not valid", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "", "nextEpochStart": "6", "shardConfHash": "" }, "shard-00": { "description": "shard 00 of the four shard partition", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "00", "nextEpochStart": "0", "shardConfHash": "" }, "shard-00-config-pin-ok": { "description": "shard 00 pinning its own configuration hash", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "00", "nextEpochStart": "0", "shardConfHash": "87cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112" }, "shard-00-config-pin-other": { "description": "shard 00 pinning another configuration hash", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "00", "nextEpochStart": "0", "shardConfHash": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" }, "shard-01": { "description": "shard 01 of the four shard partition", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "01", "nextEpochStart": "0", "shardConfHash": "" }, "shard-10": { "description": "shard 10 of the four shard partition", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "10", "nextEpochStart": "0", "shardConfHash": "" }, "shard-11": { "description": "shard 11 of the four shard partition", - "trustBase": "authority/trust-base.cbor", - "trustBaseJson": "authority/trust-base.json", + "trustBaseBundle": "authority/trust-base.cbor", "shard": "11", "nextEpochStart": "0", "shardConfHash": "" }, "untrusted-authority": { "description": "a different authority (other keys, same network and node IDs)", - "trustBase": "authority/untrusted-keys.cbor", - "trustBaseJson": "authority/untrusted-keys.json", + "trustBaseBundle": "authority/untrusted-keys.cbor", "shard": "", "nextEpochStart": "0", "shardConfHash": "" }, "wrong-epoch": { "description": "authority of the next epoch with the same keys: seals of epoch 1 must not verify", - "trustBase": "authority/other-epoch.cbor", - "trustBaseJson": "authority/other-epoch.json", + "trustBaseBundle": "authority/other-epoch.cbor", "shard": "", "nextEpochStart": "0", "shardConfHash": "" }, "wrong-network": { "description": "authority of another network with the same keys and node IDs", - "trustBase": "authority/other-network.cbor", - "trustBaseJson": "authority/other-network.json", + "trustBaseBundle": "authority/other-network.cbor", "shard": "", "nextEpochStart": "0", "shardConfHash": "" diff --git a/src/test/resources/shared/non-inclusion/v2/manifest.json b/src/test/resources/shared/non-inclusion/v2/manifest.json index 492813ba..d2531650 100644 --- a/src/test/resources/shared/non-inclusion/v2/manifest.json +++ b/src/test/resources/shared/non-inclusion/v2/manifest.json @@ -639,10 +639,10 @@ "corpus": "non-inclusion", "generator": { "command": "UC_FIXTURE_AGGREGATOR_COMMIT=\u003ccommit\u003e go run ./cmd/gen-ni-fixtures -out testdata/non-inclusion/v2", - "commit": "b25dd916fba88b18066bf239b6130b386d3347dd", + "commit": "7350e8fd1782d54fbe338e839434f06064841a94", "modules": { - "github.com/unicitynetwork/bft-core": "v1.1.1-0.20261019010732-0800b70ef621", - "github.com/unicitynetwork/bft-go-base": "v1.1.1-0.20261018233336-465dccf17fba" + "github.com/unicitynetwork/bft-core": "v1.1.1-0.20261021121301-f8a0787aa7a1", + "github.com/unicitynetwork/bft-go-base": "v1.1.1-0.20261021120522-d74b49846bb5" } }, "limits": { @@ -652,19 +652,13 @@ }, "schema": "outcomes: absent_at_snapshot | included_at_snapshot (stateId + snapshot) | rejected (rejection class, no snapshot); uint64 fields are decimal strings", "sha256": { - "SPEC.md": "672f904b13e621a6add5d701a1ddb1b786c1a942a11ac192296210b418ae0b46", - "authority/big-epoch.cbor": "00de35dbfa7c25a64c971fa4e5356949106e5fd334ef946c617b54f65c301b8e", - "authority/big-epoch.json": "d97f20257b080c66ef68995693d1cad31fa94299941da4cbdf85160f0d329893", - "authority/late-epoch-start.cbor": "e719e8f39f61e4061d54906cc78cffb577b7d2afcf6a3149657477cb7f7f710a", - "authority/late-epoch-start.json": "7dc46736c57dd09f8c17716338bf97fd0a8dd0f2753a36d4f7ed66fe12505a32", - "authority/other-epoch.cbor": "40d8223f44a3d0adccda98a75d372265cd45a7a1e20bf0f8e8d589829919b691", - "authority/other-epoch.json": "21fc10cfdb30bd4c234fa0cdf2a3ded3371f53d4f29efe926ee73cb87ac94863", - "authority/other-network.cbor": "177c2161af86f3709d5c46394099f1018acc0b5ac842deddc27d2e2252e6c7e4", - "authority/other-network.json": "e16bb842e9f060de42c8a604d204afc4472edf80df5006a1a1800b5a07ed0232", - "authority/trust-base.cbor": "a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446", - "authority/trust-base.json": "28c18ee8af0e1d49b90f4db860b9b7be3c796de681b915a9136942b178017775", - "authority/untrusted-keys.cbor": "c0f98a05708723a22621cdf421f39a03998ae7b37270a0cf30ecb2b26e210d92", - "authority/untrusted-keys.json": "7d992dd3ba0592b080c08a409a80594fcc48a0308940a80fed99fcc7f99fc65b", + "SPEC.md": "de07966f5959d8cabeae425fbd4d060e8d3ed3c685e13e1892588beea3c65749", + "authority/big-epoch.cbor": "31a558469d4f5937f66d52bb599d20c58ce6ec2d125abeacf0acd924078de29b", + "authority/late-epoch-start.cbor": "4899e137401e7c7b79063d35d547c26dfc21ec464a9be65342efccec536a60c6", + "authority/other-epoch.cbor": "f86f68516add6c7e686a75977b08c53f68d92e5904becc17ea282a49d4052858", + "authority/other-network.cbor": "75465c5f27dc263bd95110a93e1559c0ef4c03d1b6717476b071ed0ea3f8b746", + "authority/trust-base.cbor": "1ed76c9443af00e170a25b7fa227502f85520466b6723c6e2c2ebe17af67ac97", + "authority/untrusted-keys.cbor": "b84a82963741c3aac4cd8856882d0a629d9a533dbd322dc370c279df6d1c1cbf", "cases/depth-0.json": "9f55864476c74079412c2d11ab9ba6a476349668235294e22dc5ff4daa8f117c", "cases/depth-255.json": "c3ee9b948cc78ebb63350fe6a477c4abe9867413be521b451896ca7063e29301", "cases/diverges-in-compressed-edge.json": "2af20475c771fead59ef05134f4d2826744785c364a8c17ee54d1335df94bb04", @@ -692,7 +686,7 @@ "cases/singleton.json": "6338ace5cfb846d770a0d5ca02cb124f6dff4224cd9ef28866527615215bf143", "cases/under-quorum.json": "f139b7d2307da7f5281796387bc52c26e6268d0b78f3a63bee3d3181c4dbdbc9", "cases/zero-root.json": "8426ecf4c47226898f3012987cfde8fb9a9b91f7a5d9acedd0ff0ddd67c6f7ed", - "contexts.json": "9a0fb40bfe2c01936b2c016a9aa0ad6352d71655739747f7c0c10b6c5d05c466", + "contexts.json": "a4fb22a0aa7e460f064c6f366b5d9c718174bd91ca8674a6f15e4d3735cf2e06", "direct-unsharded/latest.json": "3a54213083d1885b2acf8b3af04357956cab2e4b68327aba39744e9565bc0f3a", "negative/cert-bitmap-bit-moved.json": "608191f8953d8177c928514f634a5bc76977f4000cf6fefae415ed1b18863125", "negative/cert-bitmap-extra-bit.json": "99cf2a97dae40a3626b5581748a3ed8bb021c97d88ad5aa2401832b3cd4b5b6e", diff --git a/src/test/resources/trust-base.json b/src/test/resources/trust-base.json deleted file mode 100644 index 7ffc9271..00000000 --- a/src/test/resources/trust-base.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "networkId": 3, - "epoch": 1, - "epochStartRound": 1, - "rootNodes": [ - { - "nodeId": "16Uiu2HAkyQRiA7pMgzgLj9GgaBJEJa8zmx9dzqUDa6WxQPJ82ghU", - "sigKey": "0x039afb2acb65f5fbc272d8907f763d0a5d189aadc9b97afdcc5897ea4dd112e68b", - "stake": 1 - } - ], - "quorumThreshold": 1, - "stateHash": "", - "changeRecordHash": "", - "previousEntryHash": "", - "signatures": { - "16Uiu2HAkyQRiA7pMgzgLj9GgaBJEJa8zmx9dzqUDa6WxQPJ82ghU": "0xf157c9fdd8a378e3ca70d354ccc4475ab2cd8de360127bc46b0aeab4b453a80f07fd9136a5843b60a8babaff23e20acc8879861f7651440a5e2829f7541b31f100" - } -} \ No newline at end of file From f73ada3911ac1e1e1eb65b64acdd40a921af3e83 Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Mon, 9 Nov 2026 15:21:18 +0200 Subject: [PATCH 04/10] Integration stack and corpora on the trust base v2 flow The docker stack is the TypeScript SDK's integration stack (src/test/resources/integration: compose file, aggregator Dockerfile, stack.env and build-images.sh): both images are built from pinned commits of the ristik forks, the root runs with the signed trust base history and the aggregator serves its bundle; AggregatorStack opens that bundle as a local session and checks its genesis against the one the stack wrote. The only trust-base.json left in the stack is the node-side input of the bft-core binaries. Non-inclusion and uc-consolidation corpora are re-vendored byte for byte from ristik/aggregator-go risto/ni-corpus-utb-authority (locks and pins updated): authorities are one-entry bundles on the local network (3), and the corpus support code opens bundles. The split-vector README records the 4.0.0 check. --- .gitignore | 3 +- .../sdk/api/bft/TrustBaseTestUtils.java | 20 + .../sdk/consolidation/CorpusSupport.java | 27 +- .../org/unicitylabs/sdk/e2e/TokenE2ETest.java | 2 +- .../sdk/integration/AggregatorStack.java | 60 ++- .../shared/NonInclusionCorpusLockTest.java | 2 +- .../shared/UcConsolidationCorpusLockTest.java | 2 +- .../resources/integration/docker/.gitignore | 2 + .../integration/docker/aggregator.Dockerfile | 16 + .../{ => docker}/docker-compose.yml | 122 +++-- src/test/resources/integration/stack.env | 6 + .../integration/support/build-images.sh | 49 ++ .../sdk/payment/split-payload/README.md | 2 + .../resources/shared/non-inclusion-v2.lock | 194 +++---- .../non-inclusion/v2/authority/big-epoch.cbor | Bin 292 -> 292 bytes .../v2/authority/late-epoch-start.cbor | Bin 272 -> 272 bytes .../v2/authority/other-epoch.cbor | Bin 268 -> 268 bytes .../v2/authority/trust-base.cbor | Bin 268 -> 268 bytes .../v2/authority/untrusted-keys.cbor | Bin 268 -> 268 bytes .../non-inclusion/v2/cases/depth-0.json | 6 +- .../non-inclusion/v2/cases/depth-255.json | 6 +- .../v2/cases/diverges-in-compressed-edge.json | 6 +- .../non-inclusion/v2/cases/empty-tree.json | 6 +- .../v2/cases/full-depth-chain-included.json | 6 +- .../v2/cases/full-depth-chain.json | 6 +- .../v2/cases/golden-two-leaf.json | 6 +- .../v2/cases/historical-snapshot-absent.json | 6 +- .../v2/cases/large-uint64-fields.json | 6 +- .../v2/cases/later-snapshot-included.json | 6 +- .../non-inclusion/v2/cases/random-16.json | 6 +- .../non-inclusion/v2/cases/random-5.json | 6 +- .../non-inclusion/v2/cases/random-64.json | 6 +- .../v2/cases/sharded-absent.json | 6 +- .../v2/cases/sharded-empty-tree.json | 6 +- .../v2/cases/sharded-included.json | 6 +- .../v2/cases/sharded-random-16.json | 6 +- .../v2/cases/sharded-same-seal-00.json | 6 +- .../v2/cases/sharded-same-seal-01.json | 6 +- .../v2/cases/sharded-shard-01-absent.json | 6 +- .../v2/cases/sharded-shard-11-singleton.json | 6 +- .../v2/cases/shared-prefix-included.json | 6 +- .../non-inclusion/v2/cases/shared-prefix.json | 6 +- .../v2/cases/singleton-included.json | 6 +- .../non-inclusion/v2/cases/singleton.json | 6 +- .../non-inclusion/v2/cases/under-quorum.json | 4 +- .../non-inclusion/v2/cases/zero-root.json | 4 +- .../shared/non-inclusion/v2/contexts.json | 4 +- .../v2/direct-unsharded/latest.json | 2 +- .../shared/non-inclusion/v2/manifest.json | 186 +++---- .../v2/negative/cert-bitmap-bit-moved.json | 4 +- .../v2/negative/cert-bitmap-extra-bit.json | 4 +- .../cert-empty-against-nonempty-root.json | 4 +- .../cert-nonempty-against-empty-root.json | 4 +- .../v2/negative/cert-oversized.json | 4 +- .../v2/negative/cert-sibling-flipped.json | 4 +- .../negative/cert-terminal-key-flipped.json | 4 +- .../cert-terminal-value-31-bytes.json | 4 +- .../negative/cert-terminal-value-flipped.json | 4 +- .../v2/negative/cert-trailing-byte.json | 4 +- .../v2/negative/cert-truncated.json | 4 +- .../v2/negative/ctx-before-epoch-start.json | 4 +- .../v2/negative/ctx-config-pin-ok.json | 6 +- .../v2/negative/ctx-config-pin-other.json | 4 +- .../v2/negative/ctx-epoch-end-after.json | 6 +- .../v2/negative/ctx-epoch-end-at-round.json | 4 +- .../v2/negative/ctx-shard-00.json | 4 +- .../v2/negative/ctx-untrusted-authority.json | 4 +- .../v2/negative/ctx-wrong-epoch.json | 4 +- .../v2/negative/ctx-wrong-network.json | 4 +- .../query-diverges-at-last-junction.json | 4 +- .../v2/negative/query-is-terminal.json | 6 +- .../v2/negative/query-other-branch.json | 4 +- .../v2/negative/shard-config-pin-ok.json | 6 +- .../v2/negative/shard-config-pin-other.json | 4 +- .../shard-context-of-another-shard.json | 4 +- .../shard-id-claims-another-shard.json | 4 +- .../v2/negative/shard-path-missing.json | 4 +- .../v2/negative/shard-path-short.json | 4 +- .../negative/shard-path-sibling-altered.json | 4 +- .../shard-same-seal-other-shard-reversed.json | 4 +- .../negative/shard-same-seal-other-shard.json | 4 +- .../v2/negative/shard-unsharded-context.json | 4 +- .../negative/sharded-query-outside-shard.json | 4 +- .../sharded-terminal-outside-shard.json | 4 +- .../uc-empty-root-as-empty-byte-string.json | 4 +- .../uc-empty-shard-id-with-sibling.json | 4 +- .../v2/negative/uc-input-record-altered.json | 4 +- .../uc-no-unicity-tree-certificate.json | 4 +- .../uc-nonempty-shard-id-without-path.json | 4 +- .../negative/uc-null-partition-path-step.json | 4 +- .../v2/negative/uc-self-signed.json | 4 +- .../v2/negative/uc-signature-altered.json | 4 +- .../uc-signatures-removed-below-quorum.json | 4 +- ...rong-partition-sharded-validly-signed.json | 4 +- .../uc-wrong-partition-validly-signed.json | 4 +- .../wrapper-block-noncanonical-integer.json | 4 +- .../negative/wrapper-certificate-as-text.json | 4 +- .../v2/negative/wrapper-empty.json | 2 +- .../v2/negative/wrapper-legacy-uc-tag.json | 2 +- .../negative/wrapper-proof-two-elements.json | 2 +- .../v2/negative/wrapper-three-elements.json | 4 +- .../v2/negative/wrapper-trailing-bytes.json | 4 +- .../negative/wrapper-uc-as-byte-string.json | 4 +- .../v2/negative/wrapper-wrong-tag.json | 4 +- .../v2/negative/wrapper-wrong-version.json | 4 +- .../shared/non-inclusion/v2/policy.json | 38 +- .../shared/non-inclusion/v2/sequences.json | 14 +- .../resources/shared/uc-consolidation-v1.lock | 492 ++++++++--------- .../v1/large-values/context.json | 6 +- .../v1/large-values/expected.json | 32 +- .../v1/large-values/partition-view.cbor | Bin 363 -> 363 bytes .../v1/large-values/requests.json | 12 +- .../v1/large-values/response-v1.cbor | Bin 641 -> 641 bytes .../v1/large-values/response-v2.cbor | Bin 1009 -> 1009 bytes .../v1/large-values/responses.json | 14 +- .../v1/large-values/shard-configs/0.cbor | Bin 173 -> 173 bytes .../v1/large-values/shard-configs/1.cbor | Bin 173 -> 173 bytes .../v1/large-values/trust-base.cbor | Bin 190 -> 268 bytes .../v1/large-values/ucs/0.cbor | Bin 595 -> 595 bytes .../v1/large-values/ucs/1.cbor | Bin 554 -> 554 bytes .../shared/uc-consolidation/v1/manifest.json | 494 +++++++++--------- .../context-incomplete-scheme/context.json | 8 +- .../context-network-mismatch/context.json | 10 +- .../context-overlapping-scheme/context.json | 12 +- .../context.json | 10 +- .../context-wrong-partition/context.json | 10 +- .../negative/evidence-duplicate/requests.json | 18 +- .../negative/evidence-expired/requests.json | 16 +- .../requests.json | 14 +- .../evidence-null-path-step/requests.json | 16 +- .../requests.json | 16 +- .../evidence-reference-time/requests.json | 16 +- .../peer-proof-of-other-shard/responses.json | 18 +- .../peer-root-substitution/responses.json | 18 +- .../negative/proof-duplicate/responses.json | 18 +- .../v1/negative/proof-missing/responses.json | 16 +- .../responses.json | 18 +- .../negative/proof-reordered/responses.json | 18 +- .../negative/proof-unrequested/responses.json | 20 +- .../proof-wrong-certificate/responses.json | 18 +- .../proof-wrong-expiry/responses.json | 18 +- .../proof-wrong-leaf-value/responses.json | 18 +- .../proof-wrong-reference-time/responses.json | 18 +- .../requests.json | 16 +- .../request-wrong-state-id/requests.json | 16 +- .../negative/rmin-master-stale/requests.json | 18 +- .../responses.json | 6 +- .../rpc-master-busy-bare/responses.json | 6 +- .../rpc-master-busy-deadline/responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../rpc-master-database-error/responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../rpc-master-state-expired/responses.json | 6 +- .../rpc-master-state-pending/responses.json | 6 +- .../rpc-master-state-unknown/responses.json | 6 +- .../responses.json | 6 +- .../responses.json | 6 +- .../rpc-peer-busy-pinned-views/responses.json | 12 +- .../responses.json | 12 +- .../rpc-peer-state-not-in-root/responses.json | 12 +- .../responses.json | 12 +- .../rpc-peer-view-not-retained/responses.json | 12 +- .../v1/negative/seal-epoch/responses.json | 18 +- .../v1/negative/seal-hash/responses.json | 18 +- .../v1/negative/seal-network/responses.json | 18 +- .../seal-previous-hash/responses.json | 18 +- .../v1/negative/seal-round/responses.json | 18 +- .../seal-signature-alien-key/responses.json | 18 +- .../seal-signature-bytes/responses.json | 18 +- .../responses.json | 18 +- .../seal-signatures-missing/responses.json | 18 +- .../v1/negative/seal-timestamp/responses.json | 18 +- .../v1/negative/seal-version/responses.json | 18 +- .../trust-base.cbor | Bin 190 -> 268 bytes .../trust-base-other-epoch/trust-base.cbor | Bin 190 -> 268 bytes .../trust-base-other-network/context.json | 10 +- .../trust-base-other-network/trust-base.cbor | Bin 190 -> 268 bytes .../responses.json | 18 +- .../uc-flip-shard-sibling/responses.json | 18 +- .../responses.json | 18 +- .../responses.json | 18 +- .../context.json | 10 +- .../partition-view.cbor | Bin 518 -> 518 bytes .../requests.json | 16 +- .../response-v1.cbor | Bin 667 -> 667 bytes .../response-v2.cbor | Bin 1190 -> 1190 bytes .../responses.json | 18 +- .../shard-configs/00.cbor | Bin 173 -> 173 bytes .../shard-configs/01.cbor | Bin 173 -> 173 bytes .../shard-configs/10.cbor | Bin 173 -> 173 bytes .../shard-configs/11.cbor | Bin 173 -> 173 bytes .../ucs/00.cbor | Bin 580 -> 580 bytes .../ucs/01.cbor | Bin 510 -> 510 bytes .../ucs/10.cbor | Bin 510 -> 510 bytes .../ucs/11.cbor | Bin 614 -> 614 bytes .../v1/negative/view-absent/responses.json | 16 +- .../view-duplicate-shard/partition-view.cbor | Bin 588 -> 588 bytes .../view-duplicate-shard/responses.json | 18 +- .../view-extra-shard/partition-view.cbor | Bin 673 -> 673 bytes .../negative/view-extra-shard/responses.json | 18 +- .../view-flip-block-hash/partition-view.cbor | Bin 518 -> 518 bytes .../view-flip-block-hash/responses.json | 18 +- .../view-flip-epoch/partition-view.cbor | Bin 518 -> 518 bytes .../negative/view-flip-epoch/responses.json | 18 +- .../view-flip-et-hash/partition-view.cbor | Bin 551 -> 551 bytes .../negative/view-flip-et-hash/responses.json | 18 +- .../view-flip-fees/partition-view.cbor | Bin 518 -> 518 bytes .../v1/negative/view-flip-fees/responses.json | 18 +- .../partition-view.cbor | Bin 518 -> 518 bytes .../view-flip-previous-hash/responses.json | 18 +- .../view-flip-round/partition-view.cbor | Bin 518 -> 518 bytes .../negative/view-flip-round/responses.json | 18 +- .../partition-view.cbor | Bin 518 -> 518 bytes .../view-flip-shard-conf-hash/responses.json | 18 +- .../view-flip-state-hash/partition-view.cbor | Bin 518 -> 518 bytes .../view-flip-state-hash/responses.json | 18 +- .../partition-view.cbor | Bin 519 -> 519 bytes .../view-flip-summary-value/responses.json | 18 +- .../view-flip-timestamp/partition-view.cbor | Bin 518 -> 518 bytes .../view-flip-timestamp/responses.json | 18 +- .../view-flip-tr-hash/partition-view.cbor | Bin 518 -> 518 bytes .../negative/view-flip-tr-hash/responses.json | 18 +- .../partition-view.cbor | Bin 518 -> 518 bytes .../responses.json | 18 +- .../partition-view.cbor | Bin 518 -> 518 bytes .../view-input-record-version/responses.json | 18 +- .../partition-view.cbor | Bin 518 -> 518 bytes .../view-malformed-end-marker/responses.json | 18 +- .../view-missing-shard/partition-view.cbor | Bin 329 -> 329 bytes .../view-missing-shard/responses.json | 18 +- .../partition-view.cbor | Bin 1293 -> 1293 bytes .../view-over-limit-leaves/responses.json | 18 +- .../view-over-limit-size/partition-view.cbor | Bin 16902 -> 16902 bytes .../view-over-limit-size/responses.json | 18 +- .../partition-view.cbor | Bin 518 -> 518 bytes .../view-overlapping-prefix/responses.json | 18 +- .../view-reordered/partition-view.cbor | Bin 518 -> 518 bytes .../v1/negative/view-reordered/responses.json | 18 +- .../view-trailing-bytes/partition-view.cbor | Bin 519 -> 519 bytes .../view-trailing-bytes/responses.json | 18 +- .../view-truncated/partition-view.cbor | Bin 517 -> 517 bytes .../v1/negative/view-truncated/responses.json | 18 +- .../view-version-zero/partition-view.cbor | Bin 518 -> 518 bytes .../negative/view-version-zero/responses.json | 18 +- .../view-wrong-partition/partition-view.cbor | Bin 518 -> 518 bytes .../view-wrong-partition/responses.json | 18 +- .../view-wrong-version/partition-view.cbor | Bin 518 -> 518 bytes .../view-wrong-version/responses.json | 18 +- .../v1/nil-vs-empty/context.json | 6 +- .../v1/nil-vs-empty/expected.json | 24 +- .../v1/nil-vs-empty/partition-view.cbor | Bin 348 -> 348 bytes .../v1/nil-vs-empty/requests.json | 8 +- .../v1/nil-vs-empty/response-v1.cbor | Bin 633 -> 633 bytes .../v1/nil-vs-empty/response-v2.cbor | Bin 986 -> 986 bytes .../v1/nil-vs-empty/responses.json | 10 +- .../v1/nil-vs-empty/shard-configs/0.cbor | Bin 173 -> 173 bytes .../v1/nil-vs-empty/shard-configs/1.cbor | Bin 173 -> 173 bytes .../v1/nil-vs-empty/trust-base.cbor | Bin 190 -> 268 bytes .../v1/nil-vs-empty/ucs/0.cbor | Bin 546 -> 546 bytes .../v1/nil-vs-empty/ucs/1.cbor | Bin 580 -> 580 bytes .../uc-consolidation/v1/shards-1/context.json | 4 +- .../v1/shards-1/expected.json | 24 +- .../v1/shards-1/partition-view.cbor | Bin 159 -> 159 bytes .../v1/shards-1/requests.json | 10 +- .../v1/shards-1/response-v1.cbor | Bin 599 -> 599 bytes .../v1/shards-1/response-v2.cbor | Bin 762 -> 762 bytes .../v1/shards-1/responses.json | 12 +- .../v1/shards-1/shard-configs/root.cbor | Bin 173 -> 173 bytes .../v1/shards-1/trust-base.cbor | Bin 190 -> 268 bytes .../v1/shards-1/ucs/root.cbor | Bin 512 -> 512 bytes .../shards-4-timeout-unchanged/context.json | 10 +- .../shards-4-timeout-unchanged/expected.json | 36 +- .../partition-view.cbor | Bin 588 -> 588 bytes .../shards-4-timeout-unchanged/requests.json | 14 +- .../response-v1.cbor | Bin 667 -> 667 bytes .../response-v2.cbor | Bin 1260 -> 1260 bytes .../shards-4-timeout-unchanged/responses.json | 16 +- .../shard-configs/00.cbor | Bin 173 -> 173 bytes .../shard-configs/01.cbor | Bin 173 -> 173 bytes .../shard-configs/10.cbor | Bin 173 -> 173 bytes .../shard-configs/11.cbor | Bin 173 -> 173 bytes .../trust-base.cbor | Bin 190 -> 268 bytes .../v1/shards-4-timeout-unchanged/ucs/00.cbor | Bin 510 -> 510 bytes .../v1/shards-4-timeout-unchanged/ucs/01.cbor | Bin 580 -> 580 bytes .../v1/shards-4-timeout-unchanged/ucs/10.cbor | Bin 614 -> 614 bytes .../v1/shards-4-timeout-unchanged/ucs/11.cbor | Bin 580 -> 580 bytes .../uc-consolidation/v1/shards-4/context.json | 10 +- .../v1/shards-4/expected.json | 40 +- .../v1/shards-4/partition-view.cbor | Bin 518 -> 518 bytes .../v1/shards-4/requests.json | 16 +- .../v1/shards-4/response-v1.cbor | Bin 667 -> 667 bytes .../v1/shards-4/response-v2.cbor | Bin 1190 -> 1190 bytes .../v1/shards-4/responses.json | 18 +- .../v1/shards-4/shard-configs/00.cbor | Bin 173 -> 173 bytes .../v1/shards-4/shard-configs/01.cbor | Bin 173 -> 173 bytes .../v1/shards-4/shard-configs/10.cbor | Bin 173 -> 173 bytes .../v1/shards-4/shard-configs/11.cbor | Bin 173 -> 173 bytes .../v1/shards-4/trust-base.cbor | Bin 190 -> 268 bytes .../uc-consolidation/v1/shards-4/ucs/00.cbor | Bin 580 -> 580 bytes .../uc-consolidation/v1/shards-4/ucs/01.cbor | Bin 510 -> 510 bytes .../uc-consolidation/v1/shards-4/ucs/10.cbor | Bin 510 -> 510 bytes .../uc-consolidation/v1/shards-4/ucs/11.cbor | Bin 614 -> 614 bytes .../uc-consolidation/v1/shards-8/context.json | 18 +- .../v1/shards-8/expected.json | 68 +-- .../v1/shards-8/partition-view.cbor | Bin 1066 -> 1066 bytes .../v1/shards-8/requests.json | 26 +- .../v1/shards-8/response-v1.cbor | Bin 701 -> 701 bytes .../v1/shards-8/response-v2.cbor | Bin 1772 -> 1772 bytes .../v1/shards-8/responses.json | 28 +- .../v1/shards-8/shard-configs/000.cbor | Bin 173 -> 173 bytes .../v1/shards-8/shard-configs/001.cbor | Bin 173 -> 173 bytes .../v1/shards-8/shard-configs/010.cbor | Bin 173 -> 173 bytes .../v1/shards-8/shard-configs/011.cbor | Bin 173 -> 173 bytes .../v1/shards-8/shard-configs/100.cbor | Bin 173 -> 173 bytes .../v1/shards-8/shard-configs/101.cbor | Bin 173 -> 173 bytes .../v1/shards-8/shard-configs/110.cbor | Bin 173 -> 173 bytes .../v1/shards-8/shard-configs/111.cbor | Bin 173 -> 173 bytes .../v1/shards-8/trust-base.cbor | Bin 190 -> 268 bytes .../uc-consolidation/v1/shards-8/ucs/000.cbor | Bin 648 -> 648 bytes .../uc-consolidation/v1/shards-8/ucs/001.cbor | Bin 544 -> 544 bytes .../uc-consolidation/v1/shards-8/ucs/010.cbor | Bin 614 -> 614 bytes .../uc-consolidation/v1/shards-8/ucs/011.cbor | Bin 544 -> 544 bytes .../uc-consolidation/v1/shards-8/ucs/100.cbor | Bin 544 -> 544 bytes .../uc-consolidation/v1/shards-8/ucs/101.cbor | Bin 648 -> 648 bytes .../uc-consolidation/v1/shards-8/ucs/110.cbor | Bin 544 -> 544 bytes .../uc-consolidation/v1/shards-8/ucs/111.cbor | Bin 648 -> 648 bytes .../v1/witness-alt/context.json | 10 +- .../v1/witness-alt/expected.json | 40 +- .../v1/witness-alt/partition-view.cbor | Bin 518 -> 518 bytes .../v1/witness-alt/requests.json | 16 +- .../v1/witness-alt/response-v1.cbor | Bin 667 -> 667 bytes .../v1/witness-alt/response-v2.cbor | Bin 1190 -> 1190 bytes .../v1/witness-alt/responses.json | 18 +- .../v1/witness-alt/shard-configs/00.cbor | Bin 173 -> 173 bytes .../v1/witness-alt/shard-configs/01.cbor | Bin 173 -> 173 bytes .../v1/witness-alt/shard-configs/10.cbor | Bin 173 -> 173 bytes .../v1/witness-alt/shard-configs/11.cbor | Bin 173 -> 173 bytes .../v1/witness-alt/trust-base.cbor | Bin 190 -> 268 bytes .../v1/witness-alt/ucs/00.cbor | Bin 580 -> 580 bytes .../v1/witness-alt/ucs/01.cbor | Bin 510 -> 510 bytes .../v1/witness-alt/ucs/10.cbor | Bin 510 -> 510 bytes .../v1/witness-alt/ucs/11.cbor | Bin 614 -> 614 bytes 350 files changed, 2082 insertions(+), 1961 deletions(-) create mode 100644 src/test/resources/integration/docker/.gitignore create mode 100644 src/test/resources/integration/docker/aggregator.Dockerfile rename src/test/resources/integration/{ => docker}/docker-compose.yml (62%) create mode 100644 src/test/resources/integration/stack.env create mode 100755 src/test/resources/integration/support/build-images.sh diff --git a/.gitignore b/.gitignore index b022edfa..34d1fc85 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ build src/test/resources/docker/aggregator/mongo-data # Genesis the integration stack generates per run -src/test/resources/integration/data/ +src/test/resources/integration/docker/data/ +src/test/resources/integration/docker/build/ diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java b/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java index 49cde2f5..8006bb0e 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/TrustBaseTestUtils.java @@ -76,4 +76,24 @@ public static byte[] fetchServedBundle(String aggregatorUrl) throws java.io.IOEx throw new java.io.IOException(e); } } + + /** + * Open the bundle of a local deployment as a session, the way an application opens its own + * network, and return the session's history. The bundle is the deployment's authority; this is + * never a way to authenticate a public network. + */ + public static org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView openLocal( + byte[] bundle) throws java.io.IOException { + try { + return org.unicitylabs.sdk.api.bft.trustbase.TrustBaseSession.openLocal(bundle, + new org.unicitylabs.sdk.api.bft.trustbase.MemoryTrustBaseStore(), + org.unicitylabs.sdk.api.bft.trustbase.TrustBaseSessionOptions.of(Runnable::run)) + .get().getSession().history(); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new java.io.IOException(e); + } catch (java.util.concurrent.ExecutionException e) { + throw new java.io.IOException("the bundle does not open as a local session", e); + } + } } diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java b/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java index 6e4bb6b6..529d0622 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/CorpusSupport.java @@ -110,30 +110,11 @@ static ShardId shard(String bits) { } /** - * The consolidation corpus authority, a Go version-1 record (tag 39000 [version, network, epoch, - * epochStart, [[id, key, stake]...], quorum, ...]), as the one genesis entry of a history. The - * entry rules apply: the recorded quorum must be the exact threshold for the weights. + * The consolidation corpus authority: a trust base v2 bundle (tag 39015) of one genesis entry, + * opened as a history pinned by that entry's identity. */ - static TrustBaseHistoryView trustBase(byte[] cbor) { - List data = CborDeserializer.decodeArray(CborDeserializer.decodeTag(cbor).getData()); - List members = new ArrayList<>(); - for (byte[] node : CborDeserializer.decodeArray(data.get(4))) { - List fields = CborDeserializer.decodeArray(node, 3); - members.add(new TrustBaseMember(CborDeserializer.decodeTextString(fields.get(0)), - CborDeserializer.decodeByteString(fields.get(1)), - CborDeserializer.decodeUnsignedInteger(fields.get(2)).asLong())); - } - long epoch = CborDeserializer.decodeUnsignedInteger(data.get(2)).asLong(); - TrustBaseHistory history = TrustBaseTestUtils.genesis( - NetworkId.fromId((short) CborDeserializer.decodeUnsignedInteger(data.get(1)).asLong()), - epoch == 0 ? 1 : epoch, - CborDeserializer.decodeUnsignedInteger(data.get(3)).asLong(), members); - long quorum = CborDeserializer.decodeUnsignedInteger(data.get(5)).asLong(); - if (history.getTip().get().getQuorumThreshold() != quorum) { - throw new IllegalArgumentException("the corpus quorum " + quorum - + " is not the entry threshold " + history.getTip().get().getQuorumThreshold()); - } - return history; + static TrustBaseHistoryView trustBase(byte[] bundle) { + return TrustBaseTestUtils.fromBundle(bundle); } /** Certification data inside a Go certification request (tag 39030). */ diff --git a/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java b/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java index 97615c12..14b0658c 100644 --- a/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java +++ b/src/test/java/org/unicitylabs/sdk/e2e/TokenE2ETest.java @@ -39,7 +39,7 @@ void setUp() throws IOException { this.client = new StateTransitionClient(this.aggregatorClient); // the trust base history the aggregator under test serves (the local-network setup) this.context = new VerificationContext( - TrustBaseTestUtils.fromBundle(TrustBaseTestUtils.fetchServedBundle(aggregatorUrl)), + TrustBaseTestUtils.openLocal(TrustBaseTestUtils.fetchServedBundle(aggregatorUrl)), PredicateVerifierService.create(), new MintJustificationVerifierService(), new TokenIssuanceVerifierService(false)); } diff --git a/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java b/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java index 20ef1dbd..3e07b951 100644 --- a/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java +++ b/src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java @@ -7,6 +7,8 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.util.HashMap; +import java.util.Map; import java.util.UUID; import java.time.Duration; import java.util.concurrent.TimeUnit; @@ -18,10 +20,13 @@ import org.testcontainers.containers.ComposeContainer; import org.testcontainers.containers.wait.strategy.Wait; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; +import org.unicitylabs.sdk.util.HexConverter; /** - * The aggregator stack the integration suite runs against: a BFT root node, mongodb, redis and a - * pinned aggregator build, from the same compose file the TypeScript SDK uses. + * The aggregator stack the integration suite runs against: a BFT root node, mongodb, redis and an + * aggregator, from the same compose file, image pins and build script the TypeScript SDK's + * integration job uses (both images are built from exact commits of the ristik forks, because only + * those speak the signed trust base history). * *

The chain starts empty on every run and the aggregator takes an ephemeral port, so concurrent * runs cannot collide. There is deliberately no way to point the suite at a stack it did not @@ -34,7 +39,8 @@ public final class AggregatorStack implements AutoCloseable { /** Genesis, a replica-set election and the first certified round, on a cold start. */ private static final Duration STARTUP = Duration.ofMinutes(4); - private static final Path COMPOSE_DIR = Paths.get("src", "test", "resources", "integration"); + private static final Path INTEGRATION_DIR = Paths.get("src", "test", "resources", "integration"); + private static final Path COMPOSE_DIR = INTEGRATION_DIR.resolve("docker"); private static final Path DATA_DIR = COMPOSE_DIR.resolve("data"); private final ComposeContainer environment; @@ -68,6 +74,8 @@ public static AggregatorStack start() throws IOException, InterruptedException { Files.createDirectories(DATA_DIR.resolve("genesis")); Files.createDirectories(DATA_DIR.resolve("genesis-root")); + Map images = buildImages(); + String project = "stsdk" + UUID.randomUUID().toString().replace("-", "").substring(0, 10); ComposeContainer environment = new ComposeContainer( project, @@ -77,6 +85,8 @@ public static AggregatorStack start() throws IOException, InterruptedException { // Port 0 publishes on an ephemeral host port, so concurrent runs and CI jobs cannot // collide on a fixed one. .withEnv("AGGREGATOR_PORT", "0") + .withEnv("AGGREGATOR_IMAGE", images.get("aggregator")) + .withEnv("BFT_CORE_IMAGE", images.get("bft-core")) .withEnv("USER_UID", String.valueOf(currentUid())) .withEnv("USER_GID", String.valueOf(currentGid())) .withExposedService("aggregator", AGGREGATOR_PORT, @@ -105,6 +115,35 @@ public static AggregatorStack start() throws IOException, InterruptedException { } } + /** + * Build the stack's images from the commits pinned in stack.env (an image the daemon already has + * is not rebuilt; nothing is pulled prebuilt) and return their tags. + * + * @return image tags by name: {@code aggregator} and {@code bft-core} + * @throws IOException if the script cannot run or fails + * @throws InterruptedException if the wait is interrupted + */ + private static Map buildImages() throws IOException, InterruptedException { + Map pins = new HashMap<>(); + for (String line : Files.readAllLines(INTEGRATION_DIR.resolve("stack.env"), + StandardCharsets.UTF_8)) { + if (line.matches("^[A-Z_]+=.*")) { + pins.put(line.substring(0, line.indexOf('=')), line.substring(line.indexOf('=') + 1)); + } + } + Process build = new ProcessBuilder("bash", + INTEGRATION_DIR.resolve("support").resolve("build-images.sh").toString()) + .redirectErrorStream(true).start(); + String output = new String(build.getInputStream().readAllBytes(), StandardCharsets.UTF_8); + if (build.waitFor() != 0) { + throw new IOException("building the stack images failed:\n" + output); + } + Map images = new HashMap<>(); + images.put("aggregator", "sdk-it/aggregator:" + pins.get("AGGREGATOR_SHA").substring(0, 12)); + images.put("bft-core", "sdk-it/bft-core:" + pins.get("BFT_CORE_SHA").substring(0, 12)); + return images; + } + /** * Tear down a stack whose startup failed, without losing the failure that caused it. * @@ -173,13 +212,22 @@ public byte[] fetchTrustBaseBundle() throws IOException { /** * Open the trust base history the aggregator of this run serves (see - * {@link #fetchTrustBaseBundle()}), pinned by the identity of its own genesis entry. + * {@link #fetchTrustBaseBundle()}) as a local-deployment session, the way an application opens + * its own network, and check that its genesis is the one the stack's genesis step wrote. * * @return trust base - * @throws IOException if the bundle cannot be fetched + * @throws IOException if the bundle cannot be fetched or the session cannot be opened */ public TrustBaseHistoryView getTrustBase() throws IOException { - return TrustBaseTestUtils.fromBundle(fetchTrustBaseBundle()); + TrustBaseHistoryView history = TrustBaseTestUtils.openLocal(fetchTrustBaseBundle()); + String genesisId = new String(Files.readAllBytes( + DATA_DIR.resolve("genesis").resolve("utb").resolve("genesis.id")), + StandardCharsets.UTF_8).trim(); + byte[] expected = HexConverter.decode(genesisId); + if (!java.util.Arrays.equals(expected, history.getEntries().get(0).entryId())) { + throw new IOException("the served history does not start at the genesis the stack wrote"); + } + return history; } @Override diff --git a/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java b/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java index 7e483acd..0ce9b2b5 100644 --- a/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java +++ b/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java @@ -63,7 +63,7 @@ void fileSetAndHashesMatchTheSourceLock() throws Exception { Map actual = actualFiles(); assertEquals(locked, actual, "vendored file set or contents differ from the lock"); assertEquals( - "a4adc4d06fa1f03572d7fd675909df21e36060e7d094365b77a373f052ae64cf", manifestPin); + "559db36b6d0145f61f6751e992a58c88fa7c518123e8e384cbcbd62fc5fd2977", manifestPin); assertEquals(manifestPin, actual.get("manifest.json")); } diff --git a/src/test/java/org/unicitylabs/sdk/shared/UcConsolidationCorpusLockTest.java b/src/test/java/org/unicitylabs/sdk/shared/UcConsolidationCorpusLockTest.java index 835b4f94..ab92964b 100644 --- a/src/test/java/org/unicitylabs/sdk/shared/UcConsolidationCorpusLockTest.java +++ b/src/test/java/org/unicitylabs/sdk/shared/UcConsolidationCorpusLockTest.java @@ -63,7 +63,7 @@ void fileSetAndHashesMatchTheSourceLock() throws Exception { Map actual = actualFiles(); assertEquals(locked, actual, "vendored file set or contents differ from the lock"); assertEquals( - "159e007448df8b35fa18d8cee951ce3960be60a6c157a10e502bc3576a90b749", manifestPin); + "39188cf6344211747be164524fa226533cbdcb595f6e1a1972476ab46c58c114", manifestPin); assertEquals(manifestPin, actual.get("manifest.json")); } diff --git a/src/test/resources/integration/docker/.gitignore b/src/test/resources/integration/docker/.gitignore new file mode 100644 index 00000000..c3cb2a17 --- /dev/null +++ b/src/test/resources/integration/docker/.gitignore @@ -0,0 +1,2 @@ +data/ +build/ diff --git a/src/test/resources/integration/docker/aggregator.Dockerfile b/src/test/resources/integration/docker/aggregator.Dockerfile new file mode 100644 index 00000000..7d464293 --- /dev/null +++ b/src/test/resources/integration/docker/aggregator.Dockerfile @@ -0,0 +1,16 @@ +# The aggregator of the integration stack, from the source tree build-images.sh checked out at the pinned commit (no RocksDB: the stack uses the memory SMT). +# base images by digest (the index digest of the tag on 2026-11-05): the application code is pinned by commit, so the layers under it are pinned too +FROM golang:1.25-bookworm@sha256:3b4a11519ad929d1e1d261a12cff056f0c85b735253d7d861346b9c6f8b36437 AS build +WORKDIR /src +COPY go.mod go.sum ./ +RUN go mod download +COPY . . +RUN CGO_ENABLED=1 go build -trimpath -o /out/aggregator ./cmd/aggregator + +FROM debian:bookworm-slim@sha256:734a72b3d6142a71993b4bc580ca01d8ca687f77a2c422d96a961d3376b179bc +RUN apt-get update \ + && apt-get install -y --no-install-recommends ca-certificates wget \ + && rm -rf /var/lib/apt/lists/* +WORKDIR /app +COPY --from=build /out/aggregator /app/aggregator +EXPOSE 3000 diff --git a/src/test/resources/integration/docker-compose.yml b/src/test/resources/integration/docker/docker-compose.yml similarity index 62% rename from src/test/resources/integration/docker-compose.yml rename to src/test/resources/integration/docker/docker-compose.yml index 83ae8af6..46a3a4d7 100644 --- a/src/test/resources/integration/docker-compose.yml +++ b/src/test/resources/integration/docker/docker-compose.yml @@ -1,93 +1,82 @@ # Local aggregator stack the integration suite runs against. # -# Kept byte-for-byte in step with the TypeScript SDK's copy at -# tests/integration/docker/docker-compose.yml. The two suites must exercise the -# same service build, or "passes against a real aggregator" means something -# different in each repo. +# Mirrors the topology of aggregator-go's own docker-compose.yml, with these +# deliberate differences: both the BFT root and the aggregator are built from +# exact commits of the ristik forks (src/test/resources/integration/stack.env, built by +# src/test/resources/integration/support/build-images.sh, nothing pulled prebuilt) because +# only those speak the signed trust-base history (version 2), the root runs the +# handoff profile with that history from its genesis, and DEFAULT_REQUEST_TTL is +# short enough that the service-assigned request deadline can be observed within +# a test. # -# Mirrors the topology of aggregator-go's own docker-compose.yml, with two -# deliberate differences: the aggregator runs from a pinned prebuilt image -# instead of a local rocksdb build, and DEFAULT_REQUEST_TTL is short enough -# that the service-assigned request deadline can be observed within a test. -# -# Testcontainers drives it, from AggregatorStack.java: that creates the writable -# genesis directories this file mounts, publishes the aggregator on an ephemeral -# port, and waits for consensus to produce a reference time before any test runs. +# Testcontainers drives it, from src/test/java/org/unicitylabs/sdk/integration/AggregatorStack.java: +# that creates the writable genesis directories this file mounts, publishes the +# aggregator on an ephemeral port, waits for consensus to produce a reference +# time, and fetches the trust-base history the aggregator serves; the suite +# derives its pin from that bundle (TrustBaseSession.openLocal). x-bft: &bft-base platform: linux/amd64 user: "${USER_UID:-1001}:${USER_GID:-1001}" - # https://github.com/unicitynetwork/bft-core/pkgs/container/bft-core - image: ghcr.io/unicitynetwork/bft-core:ceceacd11b7a735de74ce17884a3a45e0db1748d + image: ${BFT_CORE_IMAGE:?run src/test/resources/integration/support/build-images.sh} services: - bft-root: + # One genesis for the whole deployment, made once and before any node starts: + # the root and its trust base, the aggregator's shard, and the genesis entry of + # the signed trust-base history (the version 2 entry of the epoch-1 trust base) + # with its EntryID, the pin. The root runs the handoff profile, which refuses + # PUT /api/v1/configurations, so the shard configuration is handed to the root + # by flag and nothing is uploaded afterwards. + bft-genesis: <<: *bft-base volumes: - ./data/genesis-root:/genesis/root - ./data/genesis:/genesis - healthcheck: - test: ["CMD", "nc", "-zv", "bft-root", "8002"] - interval: 2s - timeout: 3s - retries: 30 entrypoint: ["/busybox/sh", "-c"] command: - | - if [ -f /genesis/root/node-info.json ] && [ -f /genesis/trust-base.json ] && [ -f /genesis/root/trust-base-signed.json ]; then - echo "Genesis files already exist, skipping initialization." + if [ -s /genesis/utb/genesis.id ]; then + echo "Genesis already exists, skipping initialization." else echo "Creating root genesis..." && ubft root-node init --home /genesis/root -g && echo "Creating root trust base..." && ubft trust-base generate --home /genesis --network-id 3 --node-info /genesis/root/node-info.json && echo "Signing root trust base..." && - ubft trust-base sign --home /genesis/root --trust-base /genesis/trust-base.json + ubft trust-base sign --home /genesis/root --trust-base /genesis/trust-base.json && + echo "Creating aggregator genesis..." && + ubft shard-node init --home /genesis/aggregator --generate && + echo "Creating aggregator partition configuration..." && + ubft shard-conf generate --home /genesis --t2-timeout 5000 --network-id 3 --partition-id 7 --partition-type-id 7 --epoch-start 10 --node-info=/genesis/aggregator/node-info.json && + echo "Creating the signed trust-base history genesis..." && + out=$$(ubft trust-base utb-manifest --trust-base /genesis/trust-base.json --out-dir /genesis/utb) && + echo "$$out" && + id=$$(echo "$$out" | sed -n 's/^utb genesis id *//p') && + [ -n "$$id" ] && + echo "$$id" > /genesis/utb/genesis.id fi - echo "Starting root node..." && - exec ubft root-node run --home /genesis/root --address "/ip4/$(hostname -i)/tcp/8000" --trust-base /genesis/trust-base.json --rpc-server-address "$(hostname -i):8002" + chmod -R 755 /genesis/aggregator /genesis/root /genesis/utb + chmod 644 /genesis/shard-conf-7_0.json /genesis/trust-base.json + echo "Genesis ready." - bft-aggregator-genesis-gen: + bft-root: <<: *bft-base volumes: - ./data/genesis-root:/genesis/root - ./data/genesis:/genesis depends_on: - bft-root: - condition: service_healthy + bft-genesis: + condition: service_completed_successfully + healthcheck: + test: ["CMD", "nc", "-zv", "bft-root", "8002"] + interval: 2s + timeout: 3s + retries: 30 entrypoint: ["/busybox/sh", "-c"] command: - | - if [ -f /genesis/aggregator/node-info.json ] && [ -f /genesis/shard-conf-7_0.json ]; then - echo "Aggregator genesis and config already exist, skipping initialization." - else - echo "Creating aggregator genesis..." && - ubft shard-node init --home /genesis/aggregator --generate && - echo "Creating aggregator partition configuration..." && - ubft shard-conf generate --home /genesis --t2-timeout 5000 --network-id 3 --partition-id 7 --partition-type-id 7 --epoch-start 10 --node-info=/genesis/aggregator/node-info.json - fi - chmod -R 755 /genesis/aggregator - chmod 644 /genesis/shard-conf-7_0.json - chmod 644 /genesis/trust-base.json - chmod -R 755 /genesis/root - echo "Genesis ready." - - upload-configurations: - image: curlimages/curl:8.13.0 - user: "${USER_UID:-1001}:${USER_GID:-1001}" - depends_on: - bft-root: - condition: service_healthy - bft-aggregator-genesis-gen: - condition: service_completed_successfully - restart: on-failure - volumes: - - ./data/genesis:/genesis - command: | - /bin/sh -c " - echo Uploading aggregator configuration && - curl -sf -X PUT -H 'Content-Type: application/json' -d @/genesis/shard-conf-7_0.json http://bft-root:8002/api/v1/configurations - " + echo "Starting root node..." && + exec ubft root-node run --home /genesis/root --address "/ip4/$$(hostname -i)/tcp/8000" --trust-base /genesis/trust-base.json --rpc-server-address "$$(hostname -i):8002" --profile-3 --shard-conf /genesis/shard-conf-7_0.json --utb-genesis /genesis/utb/utb-genesis.cbor --utb-genesis-id "$$(tr -d '[:space:]' < /genesis/utb/genesis.id)" redis: image: redis:7-alpine @@ -113,7 +102,8 @@ services: start_period: 5s aggregator: - image: ghcr.io/unicitynetwork/aggregator-go:${AGGREGATOR_IMAGE_TAG:-sha-ae08165} + # built by src/test/resources/integration/support/build-images.sh from the commit pinned in src/test/resources/integration/stack.env; never pulled + image: ${AGGREGATOR_IMAGE:?run src/test/resources/integration/support/build-images.sh} restart: on-failure ports: - "${AGGREGATOR_PORT:-3000}:3000" @@ -165,7 +155,12 @@ services: BFT_ENABLED: "true" BFT_SHARD_CONF_FILE: "/app/bft-config/shard-conf-7_0.json" BFT_TRUST_BASE_FILES: "/app/bft-config/trust-base.json" - BFT_RPC_ADDRESS: "http://127.0.0.1:8002" + # In the signed trust-base history mode the aggregator builds no root REST + # client. The history it serves on GET /api/v1/trustbases starts at the + # genesis entry below, pinned by the EntryID the genesis step wrote. + BFT_RPC_ADDRESS: "http://127.0.0.1:1" + UTB_GENESIS_FILE: "/app/bft-config/utb/utb-genesis.cbor" + UTB_ENTRIES_DB: "/tmp/utb-entries.db" entrypoint: ["/bin/sh", "-c"] command: - | @@ -175,12 +170,13 @@ services: exit 1 fi export BFT_BOOTSTRAP_ADDRESSES="/dns4/bft-root/tcp/8000/p2p/$$ROOT_NODE_ID" + export UTB_GENESIS_ID="$$(tr -d '[:space:]' < /app/bft-config/utb/genesis.id)" exec /app/aggregator depends_on: - bft-aggregator-genesis-gen: - condition: service_completed_successfully - upload-configurations: + bft-genesis: condition: service_completed_successfully + bft-root: + condition: service_healthy redis: condition: service_healthy mongodb: diff --git a/src/test/resources/integration/stack.env b/src/test/resources/integration/stack.env new file mode 100644 index 00000000..0b44f22e --- /dev/null +++ b/src/test/resources/integration/stack.env @@ -0,0 +1,6 @@ +# The stack the integration suite runs against is built from these exact commits of the ristik forks (src/test/resources/integration/support/build-images.sh); no prebuilt +# image is pulled and nothing is published. The aggregator's go.mod pins bft-core at BFT_CORE_SHA, so the root and the aggregator speak the same GetTrustBase wire. +BFT_CORE_REPO=https://github.com/ristik/bft-core.git +BFT_CORE_SHA=12f16641d74f19e8e9df823a9867a6313e322e10 +AGGREGATOR_REPO=https://github.com/ristik/aggregator-go.git +AGGREGATOR_SHA=3710e0403b9ec79a686893c68c262a68dac974e7 diff --git a/src/test/resources/integration/support/build-images.sh b/src/test/resources/integration/support/build-images.sh new file mode 100755 index 00000000..acef76b7 --- /dev/null +++ b/src/test/resources/integration/support/build-images.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash +# Build the images of the integration stack from the exact commits in src/test/resources/integration/stack.env. Nothing is pulled prebuilt and nothing is pushed: +# the images stay in the local Docker daemon, tagged sdk-it/:. An image that already exists is not rebuilt. +set -euo pipefail + +here=$(cd "$(dirname "$0")" && pwd) +root=$(cd "$here/.." && pwd) +src="$root/docker/build" +# shellcheck source=../stack.env +source "$root/stack.env" + +# fetch REPO SHA DIR: the tree of exactly that commit, checked by hash +fetch() { + rm -rf "$3" + mkdir -p "$3" + git -C "$3" init -q + git -C "$3" remote add origin "$1" + git -C "$3" fetch -q --depth 1 origin "$2" + git -C "$3" checkout -q FETCH_HEAD + [ "$(git -C "$3" rev-parse HEAD)" = "$2" ] || { echo "build-images: $1 did not give commit $2" >&2; exit 1; } +} + +# pin_from FILE TAGGED DIGEST: replace the base image TAGGED in a FROM line of FILE by the same image at DIGEST; the line must be there exactly +pin_from() { + local file=$1 tagged=$2 digest=$3 text + text=$(cat "$file") + [[ $text == *"FROM $tagged"* ]] || { echo "build-images: $file has no 'FROM $tagged' to pin" >&2; exit 1; } + printf '%s\n' "${text//FROM $tagged/FROM $tagged@$digest}" >"$file" +} + +build() { # NAME REPO SHA DOCKERFILE (relative to the checkout, or absolute) + local name=$1 repo=$2 sha=$3 dockerfile=$4 tag="sdk-it/$1:${3:0:12}" + if docker image inspect "$tag" >/dev/null 2>&1; then + echo "build-images: $tag exists" + return + fi + [[ $sha =~ ^[0-9a-f]{40}$ ]] || { echo "build-images: $name needs a 40-hex commit, got '$sha'" >&2; exit 1; } + fetch "$repo" "$sha" "$src/$name" + if [ "$name" = bft-core ]; then + # the checkout is the pinned commit (checked above); only its base images are pinned further, by digest + pin_from "$src/bft-core/scripts/Dockerfile" golang:1.24-bookworm sha256:1a6d4452c65dea36aac2e2d606b01b4a029ec90cc1ae53890540ce6173ea77ac + pin_from "$src/bft-core/scripts/Dockerfile" gcr.io/distroless/base-debian12:debug-nonroot sha256:9162795c8ec16d4f83921e4c173d07ce366a5d6eef9c461e707dbef4f81146b9 + fi + echo "build-images: building $tag" + docker build --platform linux/amd64 -t "$tag" -f "$dockerfile" "$src/$name" +} + +build bft-core "$BFT_CORE_REPO" "$BFT_CORE_SHA" "$src/bft-core/scripts/Dockerfile" +build aggregator "$AGGREGATOR_REPO" "$AGGREGATOR_SHA" "$root/docker/aggregator.Dockerfile" diff --git a/src/test/resources/org/unicitylabs/sdk/payment/split-payload/README.md b/src/test/resources/org/unicitylabs/sdk/payment/split-payload/README.md index e9d3f6eb..c8017d61 100644 --- a/src/test/resources/org/unicitylabs/sdk/payment/split-payload/README.md +++ b/src/test/resources/org/unicitylabs/sdk/payment/split-payload/README.md @@ -37,3 +37,5 @@ Copied unchanged from `unicitynetwork/state-transition-sdk-rust` main at `ae0a58a` (`tests/vectors/split-payload/`), itself generated from `state-transition-sdk-js` `6bd409bcdd2d312c814f7b9b8b91982c2c16253c`. Consumed by `SplitPayloadVectorsTest`; do not edit by hand, re-vendor instead. + +The generator (a Jest test, copied into the JS repo's `tests/functional/payment/` to run) already uses the 4.0.0 API: it takes the trust base history from the JS test aggregator (`aggregator.rootTrustBase`, a `TrustBaseHistory`) and no JSON trust base. Checked against the JS 4.0.0 branch (`upstream-pr/utb-v2` at 85c61d4): it runs unchanged and reproduces every value in `split_payload.json` except `sourceToken` (a wall-clock inclusion proof, see above), so the vector is still produced by this generator and stays as it is. diff --git a/src/test/resources/shared/non-inclusion-v2.lock b/src/test/resources/shared/non-inclusion-v2.lock index e8ea1812..9ea66b08 100644 --- a/src/test/resources/shared/non-inclusion-v2.lock +++ b/src/test/resources/shared/non-inclusion-v2.lock @@ -1,104 +1,104 @@ # Source lock of src/test/resources/shared/non-inclusion/v2 (vendored byte for byte, never regenerated here). -source-repo: ristik/aggregator-go (branch risto/ni-corpus-utb-authority; the authorities are trust base v2 bundles, no JSON trust base) -source-commit: 7a28461a0c3960f8ba223d338174ff2f6bdfb413 +source-repo: ristik/aggregator-go (branch risto/ni-corpus-utb-authority; the authorities are trust base v2 bundles on the local network, no JSON or version-1 trust base) +source-commit: 427da05c4a735bfa8773927988b3d68aad638b61 source-path: testdata/non-inclusion/v2 -manifest-sha256: a4adc4d06fa1f03572d7fd675909df21e36060e7d094365b77a373f052ae64cf -generator-commit: 7350e8fd1782d54fbe338e839434f06064841a94 (recorded in manifest.json) +manifest-sha256: 559db36b6d0145f61f6751e992a58c88fa7c518123e8e384cbcbd62fc5fd2977 +generator-commit: b420fd193d2b84cd98f5d39b1f586895eb7a9599 (recorded in manifest.json) # , every file including manifest.json de07966f5959d8cabeae425fbd4d060e8d3ed3c685e13e1892588beea3c65749 SPEC.md -31a558469d4f5937f66d52bb599d20c58ce6ec2d125abeacf0acd924078de29b authority/big-epoch.cbor -4899e137401e7c7b79063d35d547c26dfc21ec464a9be65342efccec536a60c6 authority/late-epoch-start.cbor -f86f68516add6c7e686a75977b08c53f68d92e5904becc17ea282a49d4052858 authority/other-epoch.cbor +772d0255116f708e5ea8718bef8ae386b4e5bb1ce6cd02700ca34f491cfc2979 authority/big-epoch.cbor +3f8261b4a27425b9bc04be6b6a505aeb15a257a96edf34e3ecad0254ae8a174a authority/late-epoch-start.cbor +ff35dcfff9b45e28251921d37069c2a48973f267253fdb306e7db734b9ff3921 authority/other-epoch.cbor 75465c5f27dc263bd95110a93e1559c0ef4c03d1b6717476b071ed0ea3f8b746 authority/other-network.cbor -1ed76c9443af00e170a25b7fa227502f85520466b6723c6e2c2ebe17af67ac97 authority/trust-base.cbor -b84a82963741c3aac4cd8856882d0a629d9a533dbd322dc370c279df6d1c1cbf authority/untrusted-keys.cbor -9f55864476c74079412c2d11ab9ba6a476349668235294e22dc5ff4daa8f117c cases/depth-0.json -c3ee9b948cc78ebb63350fe6a477c4abe9867413be521b451896ca7063e29301 cases/depth-255.json -2af20475c771fead59ef05134f4d2826744785c364a8c17ee54d1335df94bb04 cases/diverges-in-compressed-edge.json -29b6e8f5926f80a042be1ea9c25d2c1c2509e456b98ea6b2b37aef71593c7b4f cases/empty-tree.json -c1fdaca83552b1e298bb03de0842e343ac99351a4b20d19ef44038a7c7ec3c21 cases/full-depth-chain-included.json -8c9437df54b4551f420cc8736d9ae727ba99f7503476e498815b409ce75e20ac cases/full-depth-chain.json -f33a8d8d7abd4f8995285882de57acf51a51364fcba4725a2efd3df5b569fa6f cases/golden-two-leaf.json -58b4bf03055639261c767eb79b20f36502d57b4c32651c0caa2266d75c01c9ae cases/historical-snapshot-absent.json -986961ede5310261701745be1ab1e1fa72f6db57f1f59e90ec42d2ca577a612e cases/large-uint64-fields.json -0895cc59da73ef82f12f346784a3716c2f4a9425be7d95b8c43b6fa1adfa19d1 cases/later-snapshot-included.json -f2017016221dc26e68dbf842c10f3e2c333b5402a091d0c08ec029b19f7fb9d1 cases/random-16.json -89838fa7b2d3e662d8ebc3bb39d14c98e436601e62d591f9e38092df2be33ff2 cases/random-5.json -f3d4dfb0149fe499e5c1ecd09aa817bf0a5229f43428110bc2ae7aaab85fb94f cases/random-64.json -f484fced82a30fd926f7ffa802d0d50927b7a06a86d80c626e2cf3cdd4d90d46 cases/sharded-absent.json -529236252305dc0d6d4eb7e27d6e54bb71d6af346b87a3db47adcdf3e6dcffc6 cases/sharded-empty-tree.json -d0daed3b4a4477c034a53413992a3acec465a45c06903c3547a519115f6ee117 cases/sharded-included.json -69e208c0cdd9254bd8174bd5f380541bfa72286817c08ddcb8995fbdd8b69ce5 cases/sharded-random-16.json -aedec1deacb29a042d04f15c7db28c4a264882c29071b9609c1512d6c805b3af cases/sharded-same-seal-00.json -3647f9c1e6cb6de18df8be5a571d4dec894a3cb7ad49c9a1681fda6da295eb87 cases/sharded-same-seal-01.json -186526c64232c2ef26766206454104c725c920e1d4d849e41d4dffb93a98e2b2 cases/sharded-shard-01-absent.json -1799cfd670a66aad25f3132f1524b2d619ac2bb35bdc3350649ff76ae4ea249c cases/sharded-shard-11-singleton.json -2064f6824e6a0fa87bd37463859c69a377f46903ac876eca008d918839deb5bf cases/shared-prefix-included.json -c418503e282915e71c4583120b239ca096f05a441567bde782479c4495e6c942 cases/shared-prefix.json -f3e87f64a7787096f0469396a94bac5a532308b9f790d7ef780a17d1bf63da8c cases/singleton-included.json -6338ace5cfb846d770a0d5ca02cb124f6dff4224cd9ef28866527615215bf143 cases/singleton.json -f139b7d2307da7f5281796387bc52c26e6268d0b78f3a63bee3d3181c4dbdbc9 cases/under-quorum.json -8426ecf4c47226898f3012987cfde8fb9a9b91f7a5d9acedd0ff0ddd67c6f7ed cases/zero-root.json -a4fb22a0aa7e460f064c6f366b5d9c718174bd91ca8674a6f15e4d3735cf2e06 contexts.json -3a54213083d1885b2acf8b3af04357956cab2e4b68327aba39744e9565bc0f3a direct-unsharded/latest.json -a4adc4d06fa1f03572d7fd675909df21e36060e7d094365b77a373f052ae64cf manifest.json -608191f8953d8177c928514f634a5bc76977f4000cf6fefae415ed1b18863125 negative/cert-bitmap-bit-moved.json -99cf2a97dae40a3626b5581748a3ed8bb021c97d88ad5aa2401832b3cd4b5b6e negative/cert-bitmap-extra-bit.json -af61d3c7beb2667539c092c959772975de180a1977781069d9650cfe82fadf3c negative/cert-empty-against-nonempty-root.json -d5d4409918d66782a6e0d26440f80fcfe6da6b1b19eeb5202d437b4496c07ddb negative/cert-nonempty-against-empty-root.json -034f288695095eba84e2f4a1a68781882f4123aa813e1d2ebe7d4a1f581d8d15 negative/cert-oversized.json -d3d827bc56fef4ab6d1fc17fc42ea74724ca2cd7c13e98d8507bfcfa91be4a4a negative/cert-sibling-flipped.json -e10ed78fbea3418582feb711db05aab63fb0464adbddfac2f8dea602fff89c11 negative/cert-terminal-key-flipped.json -d5ca81a5567e9d939a6d85a3578efb32e50015044ca2d61c785bc41edcaf7373 negative/cert-terminal-value-31-bytes.json -a6b149e1f0bb9a50a161604613bbb9479343d6aa30393e68c8e39adfe544c5b8 negative/cert-terminal-value-flipped.json -f516b3b8b9d99b785ab1eabf193b69df00b907a72023344bc053c597f03db4b9 negative/cert-trailing-byte.json -a8291df828f8f9ddcae3df3bf2f63cb56c016d04f8e160666d859f6fab0a16d1 negative/cert-truncated.json -5032d301c210d1afe672f62040fa48bf48174266824b71d5e5403786b01e62c6 negative/ctx-before-epoch-start.json -ca9e3f4ba9417167f794a985140cb43ca91e3e59f70a4e003da8a5f89deea635 negative/ctx-config-pin-ok.json -3529c52b172ea0a94cc7730b116995d5f4fc4cac20b015327760347860e7fcc0 negative/ctx-config-pin-other.json -ff2564d187340b4dc7a3c4cbc7dca5797914642800b97f42e668118ce6396a09 negative/ctx-epoch-end-after.json -5d9b6ff84a927d5c93af1174f16a6df7ea6f671b3645e8c03a6b359c080139b8 negative/ctx-epoch-end-at-round.json -8cab4fb917f5b943273a1ed8a85953ecfcb15b270dd075616b3083e405874e6e negative/ctx-shard-00.json -60f4810dedeb487bde466f489ae993bb0db75c927c537f26e4c2101039a63fcf negative/ctx-untrusted-authority.json -d9d1c701aa2f5e541efab4b0e19f8c47be07a22810366df4c1d77448bf0b12fa negative/ctx-wrong-epoch.json -80b7c5446c6d96253cfc88d416e3f5e3e5297881eb8abdcd0a724b98aa8f48a4 negative/ctx-wrong-network.json -9b6623024597c2fef297634bd147007c77cfecbd48ea2d68a2b26441dc7c7275 negative/query-diverges-at-last-junction.json -b7dda1327dcb212773a54d98946ce68c4985df88067ea4642062ebfde14d1f8a negative/query-is-terminal.json -23fca5b047ee10e42e5bc8c61a09500715dcd9f33e75bac234dd1636733fef47 negative/query-other-branch.json -9cd3ac16ed4c81da64e5c0963fab8f8e5c72c84a267132c5a68699357f69a95d negative/shard-config-pin-ok.json -68eb34becce92f82ed55e91167340e1624eb24ee76b5bd4bfb58e5ee34443a98 negative/shard-config-pin-other.json -dd814fa06d5053bca6ca5c83629b808c74a0c7365cee53bf27c88ea2e3d0eecd negative/shard-context-of-another-shard.json -73e1b93144439b1b11fc845d98d669cfb5c1748778c2d17c4822e3f95c3ddffd negative/shard-id-claims-another-shard.json -1b1d7d6e77eca1dd2b43dce5c2c600cb8e720875c3c8b8ff56ea93b5a79d24d9 negative/shard-path-missing.json -facadac2529943273d5658061e8f52c3639af810960604bb2782c48423397607 negative/shard-path-short.json -5ca132e0cb30e5bbb333c72f5c5cb721484270d9e16eb6dd4163ead214ba69ec negative/shard-path-sibling-altered.json -c846e06085af45c4b9f41dbdf286f52126e0477673825b2fac01bd9039910620 negative/shard-same-seal-other-shard-reversed.json -7da7aac8d73866da05062d1dc7df6037f3b6f75b48fa37747461c89b154a4283 negative/shard-same-seal-other-shard.json -7533b3752329feac0c38e7ef28551302c1ccb7d78fe2ebc28f806eeb23c4d1df negative/shard-unsharded-context.json -03c7c6700d876419010882de2896a64a5614d6ea040a2659f9021ffff3347838 negative/sharded-query-outside-shard.json -2affa5b769f7eef084e4c3a050d403a033b9df3c781dc1e15f666bf7b246dd73 negative/sharded-terminal-outside-shard.json -e10e8553dc0081514ba042c632fb3d72218fc0527c76349e90fcddbe08b97057 negative/uc-empty-root-as-empty-byte-string.json -e41cfb3a94f02c8e73e122061bd7e36beb93085fedfd4ea16232e76aec4a8ca9 negative/uc-empty-shard-id-with-sibling.json -009688cba6928ab8bd1a1221d0e9d15b31d27f973cc3f15a1ac4f4b435642c3e negative/uc-input-record-altered.json -89a9f1c1903acd1db2668ac49faa473bcab036ad570c1fda12045259ed58c5c2 negative/uc-no-unicity-tree-certificate.json -b1c716a120770d9e5f992d3418efabdad2b5684627ea21daefd01801c8476efd negative/uc-nonempty-shard-id-without-path.json -440bb0bd917f2cb0f7a7c21a212c5218e22ba9d48bf8cc5cb921ad1d8a7ecfeb negative/uc-null-partition-path-step.json -c137eb0b2f8d3b1f801e22d253033dc6d5ab633238239af72571d9d4ff7015e7 negative/uc-self-signed.json -dde112186285b31c24a296b10dbac33e4a2e4dc8c4c87a2ecafe4ba24ccac457 negative/uc-signature-altered.json -3498d9aa27ee2d5b1fab23777b7bd1210588e2847a010596e6039611a629f3ec negative/uc-signatures-removed-below-quorum.json -0c9e02b2b97c32edf2b629ced0a144511cc17b84e34a414ad70ceaaf21c663a0 negative/uc-wrong-partition-sharded-validly-signed.json -613c7fca75a4c441678dcb79b16bb1b9bead5a2b8a4304446268a55ba12eb4bc negative/uc-wrong-partition-validly-signed.json -a2b539e33bcbacfa4643bd6bade16581fe1f040b1eebcddb97d4ec01d6879b0d negative/wrapper-block-noncanonical-integer.json -0a13c5e1b9dbca1a9abb2f6ec6f544a749f18f7fd97438b79a5070eee9c0b1be negative/wrapper-certificate-as-text.json -788012e348254d589f8228a161877bbfa54f53c1a0f679a0c7c27019db241cf6 negative/wrapper-empty.json -bdd03e75172e4d3d5e4ac9cbfa1b2b8cea2574bab7721ab48ec001842bde6d73 negative/wrapper-legacy-uc-tag.json -91b6e5f6edc05fdc1a1b611e32da26742e0398b623a28c8f912d26613cb43ceb negative/wrapper-proof-two-elements.json -66c6567a26d8f2b495bb90481ae4597246a3c73b5d69955d13601cf7853b6dbd negative/wrapper-three-elements.json -6b86aa538f281d1ecc9bafda507d882f513ada5c5012a37756e01ebb63e42767 negative/wrapper-trailing-bytes.json -6e93386a7fd6fa023e2203a3de7144b1053d1f914ff61bc65f442b8f1bfdf44e negative/wrapper-uc-as-byte-string.json -44abd114596a172be98579e41485270340f15f238e18429e41e79764dd94a39b negative/wrapper-wrong-tag.json -f479fb560d0bfded488541d1bac3a36a250d08b549ff346e93bb855e7cc26788 negative/wrapper-wrong-version.json -b2556172354b49a4be0aecdd384b83c9d087d19895c1f400a3e2f684a621c9cd policy.json +00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 authority/trust-base.cbor +48ea1188b424ce3da86b33d28aa91e6e22fbff26c26c7d7183948e37ca67a480 authority/untrusted-keys.cbor +cb037afb5ef5b09ba6a8ca1a61b2a3336c19ec6f6630b09ef9900040cbdf8cc7 cases/depth-0.json +99b8bb5f26ff4cf32e9125bb42e437dc7647042c94a673b2224abbd7d19baecd cases/depth-255.json +36ebb915c517f2792850f7154545e7808f8c93d8cb4dd2ed834f54ef398f5cd2 cases/diverges-in-compressed-edge.json +7db12e2ad07654577b006a178f9bcb8a7e49b5226e6da378aa962218f5164249 cases/empty-tree.json +02ba6b775d74849c27146b20cff8a363d22a92a6d9c7402440b1a56d830e4c43 cases/full-depth-chain-included.json +5984c4197623c878fa763631b451aa314c117f230cc07378a742749e13b272b2 cases/full-depth-chain.json +8dc9689aaeccd2bdc2d798f2dfab7a103dee688e3fef97ae55a29b615209091e cases/golden-two-leaf.json +3631b3d0f585e1dfced72750f77ce1065b38011aa01d6a1c51c57af6ad2797e7 cases/historical-snapshot-absent.json +673889eb5ede827563669709941b750d6f530f159e5ca2175beb4e43b9778c4f cases/large-uint64-fields.json +91a41868d92eeaee4eceff0d6f8738eb3107bfaf73f87136b813ba3e92acaab6 cases/later-snapshot-included.json +edc92234e570d48830166a02f71f71eb83712a2307a58453cb6dab05e6120294 cases/random-16.json +3a3da09b052f12150ce30df62d4fd48e7a1fb3398b60879777e18798d3cb0249 cases/random-5.json +3a954287cc17d1b89eefd992aafd07ef6bf3d377b6972237252b5720677f03cd cases/random-64.json +04a129089a1742aa5765909f891fe06acceff19ffeca71fc9d5426070f144d5f cases/sharded-absent.json +22ffd9a5c61b09acac7f3b22a084596330355deffead47808ae45e57ac6d0ec0 cases/sharded-empty-tree.json +add8e7a5ad4324bbb611e3985b910997d30a29356f457737109cded439d37926 cases/sharded-included.json +50d74e69a4243cfb97adeb8dce7c1770a94b4ddf3b74dd76ffa269a242769a55 cases/sharded-random-16.json +79d9b9dca65d8449c12f1e7e2554e3daa63aeded5718f51d3a8e96387966689b cases/sharded-same-seal-00.json +866b4388c0b961d684d3871d0c05c178c66a721b31e9bf81f3dd2f752e736218 cases/sharded-same-seal-01.json +986041052a481d8bc3e1b12ce6ad0813439678c33ac11920d553a76155c14391 cases/sharded-shard-01-absent.json +6f347b459f8708a23dab12d893cf1490c77fc182370ae26eabb13a2116b7365d cases/sharded-shard-11-singleton.json +32a70f10b1624f7ccf276d410f89edb790f123490697cf1c1888ad1938e05c91 cases/shared-prefix-included.json +d472c017a3ca345ce1c3395f7025dbc2a0148c48917ea82c09db7422685f9bd6 cases/shared-prefix.json +f39730f309967f21810405deacb89e0dd07b5e567d53add3091b7719fe1df7d1 cases/singleton-included.json +b5898dc594aa28371aed8bac4ec1695b552e851b3979a1cc29f0d379fe75305c cases/singleton.json +9e4140a02c03b5e9d195767719d40be57ddc161bb2c49b824725daa7840399bd cases/under-quorum.json +a95b6444b53f877cf6cf5156cf5cc0c6c9bec59b1b18b32e8ef9778814abccac cases/zero-root.json +569e92f88ef0dcab7ed5025c8e36b54b924de13522d6eb1f5691a494868e9bf5 contexts.json +d02883f70cbf7f5331be4fd37e629f4eab3e2229d9554fa8b21eb37d7278468c direct-unsharded/latest.json +559db36b6d0145f61f6751e992a58c88fa7c518123e8e384cbcbd62fc5fd2977 manifest.json +d852f6d7525efb3a720f8e03224a757ae4e616b6d2311b8058de0fbd6ae49f5e negative/cert-bitmap-bit-moved.json +014fb3e8a5046fe267b116b3df15f21cf80b0dc14f9777c57c3a39e539400a8d negative/cert-bitmap-extra-bit.json +8366e83ecab9808f56832147b101b5ce34b7c95b0fe53e097a833734d472d0be negative/cert-empty-against-nonempty-root.json +64a1e1ddd6db9c2c38f2e8ae9aff5d722ae1c7baf6bc375c9b162c34460e4fc5 negative/cert-nonempty-against-empty-root.json +aeed6cea3aa493c3721cfb6bd34ae32c600bb88ba50d80f215f216a22b86b0b5 negative/cert-oversized.json +8a306be40ec13197677ce92d36930b7d897b5fd5baff09f778a51afa31d3d7e9 negative/cert-sibling-flipped.json +008a2bc017d13e20c7f138e25a894fe2ae15e6ae2196ffa450c13cbfae397077 negative/cert-terminal-key-flipped.json +19905087dd0444184913da241634a06dfdb71341d1309349bc589dd2fec0f78c negative/cert-terminal-value-31-bytes.json +f2a4292221ee10b905a0d546f72bc4e173d7f706ab4948cdf1c496e74e883088 negative/cert-terminal-value-flipped.json +e94c3a47964b248163424ddb92c5cf329ea3409c446e1012cae436aef9af0211 negative/cert-trailing-byte.json +d68207160c1f7ae928e47c27b3eb5e8798e3b773f5beab7767993eb962a3cec2 negative/cert-truncated.json +1f5f8cd1edeecb6db79412dd3098f12b5a75ab91d91ec53ec0dc569eec9be598 negative/ctx-before-epoch-start.json +8996b5bc9ef80aad12e7af391aa2cc34a8261f9b9ddb9bfb6d607c5222ba72b9 negative/ctx-config-pin-ok.json +15d8a1e72bab110cb518a36954eabe023e21df9cbc9bace8486506f56b27a705 negative/ctx-config-pin-other.json +c3dde2bea9036301bebfc4a2d8fa2e83683a973dcf45bb003a5267ce9c4a3387 negative/ctx-epoch-end-after.json +80cebf28ca36760d0b2e137d8e6b045cee6a1cdd4665a385f31d2f1f030e1f02 negative/ctx-epoch-end-at-round.json +5e9afdd1ac369b4105a8158807ccac6a75619c5bc0fbbb629270d728ed82e836 negative/ctx-shard-00.json +f2adedff58dbbf6dfb123547fa4301750951e22f75dad2d751c289056f77f289 negative/ctx-untrusted-authority.json +0af64cbc132477b9ecc5b2a862c8b108ba50ac4411eef7b0ed5bc0b77ccf196f negative/ctx-wrong-epoch.json +abaa0756d3e47689c2db17ed2ba043a65754ae15b866950c35fcbd81cff54870 negative/ctx-wrong-network.json +7575a42fa269c8aed1264cd3538e95e3d123bd1e6d2caa4aa4b72833a978962a negative/query-diverges-at-last-junction.json +3890ab73f37bea1dbebf4b87c4adbe9b9269a1f2bb65adb0f5a85eecae162fb8 negative/query-is-terminal.json +a63439a0ed055da539c8e28f0310e4174f749010524d15a5cafa9435f09ac760 negative/query-other-branch.json +132475519adc65222aa7d769b98e35a299a848a420bdc7cf2f592bdd7a7fa5ea negative/shard-config-pin-ok.json +92fea436a39e2e44d9e7e611df75b1e8abe525d21b5b3386d5fe20f6c93c751f negative/shard-config-pin-other.json +9086b89a04d0cbd80334f063737e3cd1af01c6fad80a82e24e6e995e3679409a negative/shard-context-of-another-shard.json +825422787d5bf5be1eee82b1ea0538dde09053af38cea275f5d7d540519ef73f negative/shard-id-claims-another-shard.json +0fb7dccb32f95fd0338be29daca39c295a4dbd55feb8bf1ff24dc4915cda00c5 negative/shard-path-missing.json +fcfb0ab1daef2725d4b3ad78c4b6cc709c2b013c2621f947726d2403b469e7ec negative/shard-path-short.json +b7851ec37fc330c81b0a0282c97415547630f658b2c2d9edcdfb69b2a6e02b01 negative/shard-path-sibling-altered.json +48d78e2d59d302218aa600fab6b5c8a87b7f94bcb6bc67eaa933509d42e84a3a negative/shard-same-seal-other-shard-reversed.json +3358cffdacdab867bb125060ed8fadb44f436cbeadfa1324a3d0ee1f886f56b7 negative/shard-same-seal-other-shard.json +084fa0f61a7aa07894806250ccb1af3feb0b10164defc75fee615b33ad07820f negative/shard-unsharded-context.json +82c29914c6f183e5686eeb10272f53e86323be4b2ac8ceeb27aab280f3538382 negative/sharded-query-outside-shard.json +ff8b7f1e7eed0a731ff26501d3a1d3a93fa745557570f0e822491d74d1249116 negative/sharded-terminal-outside-shard.json +7bbbbba57f2167eded72c49cbe08bf2c6a6a8ff6d8b5cc360af9614a13d9f71f negative/uc-empty-root-as-empty-byte-string.json +9ee53f4081702dcf7d50c7648f6045ba0567700029e53f4144ab252dd61e42f6 negative/uc-empty-shard-id-with-sibling.json +af6d087c43ab6d2fb19bdb6cab9646c11f2c4a8b7ac94772315732e4ffb8cabf negative/uc-input-record-altered.json +85572914beee633306f98d62afb59f1009630028054bda11b424ca12aef14410 negative/uc-no-unicity-tree-certificate.json +89a15ccb484574ca16649d2c38410456d533a3fa1f809925525f15aace0782e6 negative/uc-nonempty-shard-id-without-path.json +3432b6f12a20fc3a9e97dbf1b664efb7a6f23b8be5397d1e21f6d90b2397dad8 negative/uc-null-partition-path-step.json +dfa96d7a014a9139d5699da6f62e0310c7a97c4ed46e806c67c517d27c6eedb5 negative/uc-self-signed.json +86991506dfe05d6ff09ca90ad1045442d2f0dee71d6ab7974eeaa779739ff8e6 negative/uc-signature-altered.json +59caa7b35da18492956a918c95ab0a0e6ba841303372e8d9d227cd2866f17e51 negative/uc-signatures-removed-below-quorum.json +cf5e903d053866070dc60cc44cb23db0192e0f12582f6d130e93c9bcc1cb3708 negative/uc-wrong-partition-sharded-validly-signed.json +1fc6e330adefebd8bc64b7c39db2ed846ef8640288b3968dcf7d29b92a4eb936 negative/uc-wrong-partition-validly-signed.json +1a5526bc27949c9f4e2c82bee2210c4adf6224a2a94633c33c31975eaa7bc233 negative/wrapper-block-noncanonical-integer.json +f2f774440a52ce49ee60fd81c1347ded85f14560803d18ee0afdb3d20f798bf5 negative/wrapper-certificate-as-text.json +65aebf800916527f00926377881e7033622639f3df2f0bd6e7b857d97aba08f8 negative/wrapper-empty.json +fdf52119ae826aa38d9081d4cb3f9a3154bd2ff5c5bfc1ed2d4af52f300b4cb7 negative/wrapper-legacy-uc-tag.json +ac658cabe56579ce913fe4ff6b2d6d73b29be058c5a0738d58137f3c3e9b3092 negative/wrapper-proof-two-elements.json +f7fa3923a2e40751f0fa94c9204c9816d7cad8a3177a99ee63d955bd76343cf4 negative/wrapper-three-elements.json +fd11573ec20b26c8d18baf5f28b851b1f7397415890d0006b4b9d2c425c122d4 negative/wrapper-trailing-bytes.json +334bf784f5d49ee16a4a264f664864a451b34804febc5df8852c077f05a2f612 negative/wrapper-uc-as-byte-string.json +b0e7a233f6eab9496e38cb121d4d2d6117d924358a5d8c8e08cb79c679857251 negative/wrapper-wrong-tag.json +aae7353228a0e2734c15b4d73edccdc8e9232fb7f42f78aa85385048e22767a4 negative/wrapper-wrong-version.json +c301b2ecee7f466c6f65b365e9d1da81a117795ab2c51ef6dedb32a267c4dc27 policy.json acb9053e141a94f4f7b4dae3d8274687565b163d7176c9263da0ef31f661d0f5 rpc-errors.json -4ecd535aa5e81925e534b48c0f609833c8126c7646cd126b0177bc8a38f3e5d4 sequences.json +d5f1e4ca87ff83eba7a66af296075c8130b25477cf27d42dfcf5594f263c0803 sequences.json a585e5b96093f69d85a440b4fc8b9ad5a746556c67422c39ad8a4ccb7ec913f6 status-hints.json diff --git a/src/test/resources/shared/non-inclusion/v2/authority/big-epoch.cbor b/src/test/resources/shared/non-inclusion/v2/authority/big-epoch.cbor index e87521a955b2c80512d12d7860047bb87b8703df..19e2ff972f76b5d06d0462dfa98ba7686c4aa828 100644 GIT binary patch delta 74 zcmZ3&w1mm&=8W_XMrH=-{}AvS&WKR>ct^*iUCq(&va7sG7I&Pb_AwK^n*!1=Op{c2 T{hYU4YP>lkqKk=nqSGS)*_0&( delta 74 zcmZ3&w1mm&=8W_XMkWU7{}AvS&WKP5?`b;qr9~*Cz0Eb^czEW-6$?Df`d8QX&Rx4e U)G|e2YU9lr5nW776P+Fb05>lvLjV8( diff --git a/src/test/resources/shared/non-inclusion/v2/authority/late-epoch-start.cbor b/src/test/resources/shared/non-inclusion/v2/authority/late-epoch-start.cbor index a2373c5ccc291f11b37535490e7b2c8e55f464a5..21ac2639f92a6a162e02cad7c25048c453f27387 100644 GIT binary patch delta 58 zcmV-A0LA~10+0eS*_daD0RsR50aze-1;)0|clwDVNC#HdS@ewXXXgNy3fb)i;#&*f QN24Zz*_c?00t1mU-l%#Q$p8QV delta 58 zcmV-A0LA~10+0eS*_daD0RjL40azftz>AV#a7CE^cG75*y(c+`rgqvDSYPn3OuI2P Q0Tj%E*_c?00s@gT-mxYai2wiq diff --git a/src/test/resources/shared/non-inclusion/v2/authority/other-epoch.cbor b/src/test/resources/shared/non-inclusion/v2/authority/other-epoch.cbor index e8fba32560c851b5508d3e715fd013eec0aa8643..7ce78717e8b021794a3fc9f134af188e2c909d84 100644 GIT binary patch delta 58 zcmV-A0LA}|0*nGO*_daD0RsR60$3nD44ChQ+gCL%1poj5 delta 58 zcmV-A0LA}|0*nGO*_daD0RjL50$3n%bt2`Mn*IelA!DYwZHq7NP?3c#(+d3CHyoSR QCz_~%*_c?00s@gT+LC-2YybcN diff --git a/src/test/resources/shared/non-inclusion/v2/authority/trust-base.cbor b/src/test/resources/shared/non-inclusion/v2/authority/trust-base.cbor index b9c86199ab4a80e2cc9e8f49fd6eea5de263ed31..951ca8d2852a8ba4a30a48062f8f00021c3cf0f3 100644 GIT binary patch delta 58 zcmV-A0LA}|0*nGO*_daD0RsR50azfP&sByu5yTU{?yXFc<@|%aO1zew3G#UKMrDR8 QdXr*-*_c?00t1mU+Q5n#%m4rY delta 58 zcmV-A0LA}|0*nGO*_daD0RjL40aze+JNt%tfA?D@a=Rd@TPC_>GeRo| , every file including manifest.json -67149212d164e922e934a81c9f5a46b290c4b0fe98a34b2b64a5774c331cdc5a large-values/context.json -ff486015c6cacc49c4aa1829c5c22be7952199aa741c17e96466112696e1f2da large-values/expected.json -1b4b6c6568091fa83601065ab4b0e990dba348220a8e7e9bf3937d4c25d913c1 large-values/partition-view.cbor +937d13acc03ed180748a6a39a63a81a1a8bc1dc0eb48e2fb79adb2b4a448aa92 large-values/context.json +349169e10cba5208197814b286afe1970b4cf8b9b7eb0338560d44c3427e95be large-values/expected.json +0105eb42b266a013f13c5886f88e085d491a5c10fa2c17b94b1ba09224e6dc9f large-values/partition-view.cbor 83966003ca34bc438e7270fb25f95d82de0019132704827d1f18a846f37098ad large-values/producer.json -c937eca7b346d94d26f19ef4a2005fda1b0758606bdb59f16b2d99f766995815 large-values/requests.json -548d936f6fa8e30789fde19ca35067edc0c114d703e4c73ef0a15cf7b3f220bb large-values/response-v1.cbor -f97694e09409d40995ef0be5f47a9cef8900ca4f526318d57ba3f75d7fd913ce large-values/response-v2.cbor -05f9ada7fd7f5a6586885d9cf6b3fd183a689b40cffc0f0a6084b69813fef340 large-values/responses.json -0a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414 large-values/shard-configs/0.cbor -132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0dd large-values/shard-configs/1.cbor -a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446 large-values/trust-base.cbor -010362ab881b920e331ea1e1cafae7383b8795af286eed1a4c519bb9230edb3c large-values/ucs/0.cbor -3df966237832ea5b9064327725afb6a9979a97bd867fdb81b33a0631613898af large-values/ucs/1.cbor -159e007448df8b35fa18d8cee951ce3960be60a6c157a10e502bc3576a90b749 manifest.json -a19fc5e66abb379a9dc9ba0c3be7a8a9f0d90c3ddf7906ca27d9cad94488adab negative/context-incomplete-scheme/context.json +4d76e128e0d5e02ed3f92277f4020596e77a6cf3e07b37474383a3a3c7cc523b large-values/requests.json +700a0b8afafc4693ba0973a961c9134134b149bf316f4bc600b10b68c2049714 large-values/response-v1.cbor +86bd147f5017f3327923888bc395d9a331e5ba7a3dcc7dfb4a8bbf94796caefc large-values/response-v2.cbor +9773815a047eef6d29ac90b856bb9e3338bd1fd9662c07afdb4863350acdf426 large-values/responses.json +8fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351ab large-values/shard-configs/0.cbor +658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749c large-values/shard-configs/1.cbor +00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 large-values/trust-base.cbor +3c682ceb7ed209e097f0a59f97d9a5510673b5d17789a3facf1b617a77f127d9 large-values/ucs/0.cbor +b114da02e5806caa5d174e7c8d26083cd5683f9a0e645e85756f70a783a8e7d3 large-values/ucs/1.cbor +39188cf6344211747be164524fa226533cbdcb595f6e1a1972476ab46c58c114 manifest.json +704845b7cac638e772def327f7397f3d6be9deff4de5597673a30590acd9fc83 negative/context-incomplete-scheme/context.json 8f45a6ba0470a4350e2bb1957f8425a3fa398fc5ab5c43c1124e220409b2b1b1 negative/context-incomplete-scheme/expected.json -5f20f3f64181b495fd84c7ef13d098cd1d20957341e4006b3451521ad2ea1f03 negative/context-network-mismatch/context.json +1e391c4dc1c5e8708843ee681cc2ed01719c712461b7cf9bc7486db95cb016a1 negative/context-network-mismatch/context.json 86946a50a10bdef5a2987c30080cfa3ccada956e9d13285d6b0112a29f0d479e negative/context-network-mismatch/expected.json -79553a1c635b78aa5d9fb2a524ecab3d5d51133f44978c8d2acf0363f7d31761 negative/context-overlapping-scheme/context.json +db25d51d9686c28f74c5ca0c348417b1153486c5aabf6f62825d1de3d90b9ed7 negative/context-overlapping-scheme/context.json 44785ce76c5ed3ebae2182b0cd1ea2948634d4c4c00dc0a1c6d63b8ba394579c negative/context-overlapping-scheme/expected.json -257772318851a045d0022ec021d127a3f6e8a6bd3771570475b4f4108c04f561 negative/context-wrong-config-participant/context.json +f51fb3ff038e99ee1955a3216e75d7ff03a8eb5a5fe598ba94329ea8499e5e55 negative/context-wrong-config-participant/context.json e94a83918e1f6294986d9692cd260fc848552a80dcd5b0dfe9a5720d5f5fc4ab negative/context-wrong-config-participant/expected.json -3b2b595496194b0f338ee631c7edd23905fe5485c351d75b4b8cdc06b7f5d6dc negative/context-wrong-partition/context.json +6104be6fb5f70829898076766db52a54261af0c938bbb86c0494b4ef84646ef7 negative/context-wrong-partition/context.json c6475b9026b761e3ddee56f059681fbb2eda69f178557efa66ad32e52a0361e2 negative/context-wrong-partition/expected.json 416f36af3e9817475cb2261e34274bb367ba0915db8c23c90c28c9aea05eb4ed negative/evidence-duplicate/expected.json -992fbee1ca448bb31fba96d3a97ed959c40ba516b9a383f7956d9e49ac2f8dd6 negative/evidence-duplicate/requests.json +51bf4529126c220ac87ac6f6bec2e26b284dc49706d511842aa297b7e60d0856 negative/evidence-duplicate/requests.json 4555cc633973d6015a9f841cc9aee340a294b17ca057a0fa21628c74c587e64e negative/evidence-expired/expected.json -a355142ba528643ab1fb40f4ecfe1711da82cf20a786029848eb68fce6e3feb4 negative/evidence-expired/requests.json +73b4bba39e77ade7f2398964976bb83f439b5a64406f4d9e90ac1cefed22aff4 negative/evidence-expired/requests.json 2eba4c9273c2eb4285a5de827c6a5935213ef070e8e5642291cd9459364572bc negative/evidence-missing-for-request/expected.json -5e8200be6abdfb7221896d76cbb2567a7814f741a2143058e742027c38899a5a negative/evidence-missing-for-request/requests.json +e794f9a00159a87ff16ca60db01ea69ef1c676c01c772128b2f6a46149379aab negative/evidence-missing-for-request/requests.json 7f74e90e489a3f05ace8f8e16a7edb2d34dc80d41e166059bc98af1480cbaa16 negative/evidence-null-path-step/expected.json -0ace8bc710800bc54545d095352df69a89d1010501baf18a2b9477f63baee62f negative/evidence-null-path-step/requests.json +0e0b235d849c8dc188507ed060c5b4a18f4dd49fa9088cca92acce48c0d047c2 negative/evidence-null-path-step/requests.json 617d171d3b892ad57159456d8e05f9cdb4f8fabd31c3f030b3175e17a26e5b03 negative/evidence-reference-time-after-target/expected.json -af0cc5bce19c35d29d72405e546c87d484a54ed4b63a288fa0008d11e195f453 negative/evidence-reference-time-after-target/requests.json +e1e132a0b198945a65b934ba5af3333de6ef077905bdd6be6061d4d26d742bf8 negative/evidence-reference-time-after-target/requests.json 12d9e2caadf34d44092f5a45036b3972c3d759fc419b57a16fc765b5e53af471 negative/evidence-reference-time/expected.json -26260ec11278637fa55d61a5201d4cef3816e281a65d7c2404b2e081c1fe316a negative/evidence-reference-time/requests.json +6767df92574c41979025a8f4fe088b4a25de27a7538bebfd6ab41e26c076a8ba negative/evidence-reference-time/requests.json 72dfb1a06c5faeeabd73a04829678bdc5b1ea688f7988a35cbce56559cb9cf40 negative/peer-proof-of-other-shard/expected.json -2d0d5aec7c0e8af193657e480e89703c7dd2ccc5ed072a58d080e5227eb9d31f negative/peer-proof-of-other-shard/responses.json +9a7f44793ad5f0d1ef35bf48c40fbc40640d6cee87920fc96fd54d2123527904 negative/peer-proof-of-other-shard/responses.json 13e295d5346a4d3286d2e3ad8e5e0bfe672c4744df9d7d70efe593b94289fb74 negative/peer-root-substitution/expected.json -8b33bafb5da6733d0980fe9bd563011b26f40dad40f564e9510c40c547b5770c negative/peer-root-substitution/responses.json +f1f9040cddd8a54f1081bfe5ce445c11bf273e76f3b5ca8b45ccdc71f66a0434 negative/peer-root-substitution/responses.json 015e5379f7ab082515c555a88637590650aefbc936fe756358e7df831dab0731 negative/proof-duplicate/expected.json -a882b455145eac621f3e28d0d1ce46eb511c605793cce57a71d663d9a1e1c985 negative/proof-duplicate/responses.json +b0b5f757614e26d36db2ff86d6a959cb15724ca40644c509d2dcd6f4aa21338e negative/proof-duplicate/responses.json facf624af3ace547bbb8819feb1ea99824393819ac2685f617263b979f171945 negative/proof-missing/expected.json -899e502ef3d5342309631e43c5fab4aab84aec50105846b6084d51610d95d109 negative/proof-missing/responses.json +e25aeac3bb174b6aef0c70cd38a1a39e2d1282bca4c7c30cc42dbbf093402f48 negative/proof-missing/responses.json 619c8d48445b6dd2d720eb15fe01fb0a8b7fabe7a9fc9c8044faaced3306302a negative/proof-reference-time-after-target/expected.json -b03d42832d0c98e65bde3a9e1bd05cd14315f551fea7134193046c4d650b0261 negative/proof-reference-time-after-target/responses.json +35b47ca765ab7b53a0e1f401a9ca4456a2354a16eb70c001f5ca53cc51c43f5c negative/proof-reference-time-after-target/responses.json c87bb6c477785f9aa72941ad60bacb3352277abddd98ac37e5787d42a085f754 negative/proof-reordered/expected.json -579a6e1abff054f8bda54bbe8094539c5566322ef79193a3c64234a92e0dec62 negative/proof-reordered/responses.json +9d23f256f69dfa5f8e37dd0e420df11cf1137acb7cc97e8cf5f543bf142c1d16 negative/proof-reordered/responses.json 63a215a86768db8bb10cd2110bc8e98afeead1f192cf2f2525a28342ca6f6040 negative/proof-unrequested/expected.json -531aafc068cfab725358b439bcd4e14d69e49e6c055c9b194de226521aa9d65c negative/proof-unrequested/responses.json +be77896c68c137dae0b583d3912d7544d43808f41de6164c4af9d1c814d67bac negative/proof-unrequested/responses.json 6637901707b78853c801c1425c9d7496ef34d0034165110ebce2b0d18e6d0b06 negative/proof-wrong-certificate/expected.json -e86f9de59cd0dc4980c036cf86bad2b2807da06d0e59860a8dc674ef663c74a1 negative/proof-wrong-certificate/responses.json +000fe799280dba56cbc01cfc8d292fefe1a48376d2a8627155e5627ecb7b5222 negative/proof-wrong-certificate/responses.json 4b363ba1d87cc141baf81b1ab9ed07006004291d444fa286106b62fa9a6a4b9e negative/proof-wrong-expiry/expected.json -550bf8de2c9934331e391aea28d46f4dd18e740b29734a239aedea70474e995e negative/proof-wrong-expiry/responses.json +6bebe3267c486c6fc1231d444ec40ba86463281f12ccb6867c5ef5cbbe15180b negative/proof-wrong-expiry/responses.json 82a4d545f84d7b5a75ef92320a537dbc79efd364c6b68c1b15b3203ed5f5ecb3 negative/proof-wrong-leaf-value/expected.json -89ead36a370dde658d6b1245464da2e8b71e0d66e90856e4c5737076d226c75e negative/proof-wrong-leaf-value/responses.json +88813377a5147a180b76f2c898eea3eb4cff8d2585318d5fbc45f3f4d51ad289 negative/proof-wrong-leaf-value/responses.json 2c3ba272194391b9870cf6f6153d326deac8cbaddd636acfc569181b91383789 negative/proof-wrong-reference-time/expected.json -176b9ebde8fd5b43f0d3c887d34533c5adf79daef6468d5733c3868ca3fb57e0 negative/proof-wrong-reference-time/responses.json +391c5facec8ed01d1c0c714db791d5454acc38d1c61e91b4ae5cab1eaf3cca9f negative/proof-wrong-reference-time/responses.json 988c4e31d602bd252ca5118e494b61a6697b57d38e606855e88d2f7ba163e012 negative/request-differs-from-evidence/expected.json -bfd8610eb8f7137755d93a4dcfd70d63716b1eff319583a10d06ea813073feef negative/request-differs-from-evidence/requests.json +0741dafbeadafecdc8e09511d2f8864a6fc9a7517266579e98d823d55e81b0b4 negative/request-differs-from-evidence/requests.json 6e4d399ee948ce53b83a3c76974a96b594260c1889f3e86d0b98a752195e443d negative/request-wrong-state-id/expected.json -6f537498db09863ca5905a495e5032d05a8340bbab5be8fde24422c3589df68d negative/request-wrong-state-id/requests.json +4134eaa064f577d63869d9d5e18d2a7e5f34b520097ef0d48814d265d48ab627 negative/request-wrong-state-id/requests.json 346d7bc296c33b88105596d02d858f37501466bdbd14a59fc84c2a5fc235ba16 negative/rmin-master-stale/expected.json -e1f3d4a86a287734b31f95f8e6bbeade10b9cab94b3d95a9870d6180cbd241b2 negative/rmin-master-stale/requests.json +81b807eb291a6147578eee1c60f13499685ecad336926080730eb0ac13684f4d negative/rmin-master-stale/requests.json 0bd4be14c35caac49d32033a80f7d3ec22972cb98bba89b1f382960c7ea6b393 negative/rmin-unknown/expected.json 5e97af7d3d2682f2b60a098c300595864fe2db816a0dd74eb246f4e1f564a891 negative/rmin-unknown/requests.json b598c5f8a340885b204f0d15f5e6705d9c84d3dd840892c99ee5125001824675 negative/rpc-master-busy-active-requests/expected.json -8f3223d89d3cce0407a667ce91e04af807f30688b33dd6e1d536cae7f092427b negative/rpc-master-busy-active-requests/responses.json +526ad4e607ba1e8849a6e6b4094cf2108e9160819148836d2990f38079c54928 negative/rpc-master-busy-active-requests/responses.json 097beb25bf4fbc200588bc8b7d7b18a39e26d0ebe44ea297f1f8683f1d1d5826 negative/rpc-master-busy-bare/expected.json -18464901abd58f5f1f0e8c1c7c03256bc49153a76d77f1b8172471985548cfed negative/rpc-master-busy-bare/responses.json +8bb07cbc4a9dd8e007a604e014993374344b612ea8ac8873e49ac8fef5b9e15a negative/rpc-master-busy-bare/responses.json 521f273ff30c9fe9355927a0fdad631165ee44387e5fa0ee83ff11ed75ec8781 negative/rpc-master-busy-deadline/expected.json -2d27e65c76a799e17e77ae205e8bd33c9611de9afd18cc56c0b164d064968a0e negative/rpc-master-busy-deadline/responses.json +efe2313563a35c6fad1acac6165c6115bf7f3aab02da64250dc44adf1400d0db negative/rpc-master-busy-deadline/responses.json 780b8a8a9f1be018947576125e781c57587e3db129ca07eb685636efe9e33b3b negative/rpc-master-busy-pinned-views/expected.json -0eac40620a27d0b458168f90e629527e86bf3613eb12230fac7ce7009842e274 negative/rpc-master-busy-pinned-views/responses.json +6ff4e7804f84cdef626437de87114944a79c687446e9e74e79ec06927b9695c2 negative/rpc-master-busy-pinned-views/responses.json 7b008da8e2c5399ecfe26a21d178a90baa3240e7b11c2e4ac3d2079cf7899aaa negative/rpc-master-busy-retention-budget/expected.json -06de86eb262696648ebdf4bd9d061c6044f94df467a8150c38474084ced34274 negative/rpc-master-busy-retention-budget/responses.json +431b5dd8035f220356947529719a512dd108b482457f3ffc066d14d92ab887d5 negative/rpc-master-busy-retention-budget/responses.json ee1a7996b7bfd56498d726c37316d4e5fda3a5668a717f93b0186fd2a312f14d negative/rpc-master-database-error/expected.json -4c69847fb4e0b31a5b0621ddc6129379c992fdc6fb38b09321bfd5536d767ce7 negative/rpc-master-database-error/responses.json +c6971888551f762f654148a142bf4d8e307d687b1ef822e5c06209466a9e4c29 negative/rpc-master-database-error/responses.json e541473560e8270b03758ba7d412c52deb0c6dbfba39b6b3bedbc436834e8ab5 negative/rpc-master-invalid-duplicate-state-id/expected.json -f8721f3a5af50bf2396d4cd49ab38b19bf32d5cdb4e64ac4fc225b52ccf11299 negative/rpc-master-invalid-duplicate-state-id/responses.json +0302ef19840654dc8dab7f9e3367cbbd53ab1b54fe6db4786bb32fa34c39f2e3 negative/rpc-master-invalid-duplicate-state-id/responses.json fed3cc212aae21d62176633470a980b4c05a2c8af9fa32e2fd2e91dfc4b0ee38 negative/rpc-master-invalid-wrong-shard/expected.json -9d2492ac8a5f31b1a22269ceac366959f3e86ac8ba12df6c49b35d43ba139c7f negative/rpc-master-invalid-wrong-shard/responses.json +da0597ece644dfb11d94b420729ed698106eff0eb06845187f8221f2bf7f2b82 negative/rpc-master-invalid-wrong-shard/responses.json dbc93a5ab97d237c4f2a8e6dc88b780a518d2a8561ecae1e7bbdc3b47b7888b2 negative/rpc-master-limit-request-bytes/expected.json -33ef9d9e9ebb0c5cbf68a1fc41336af127f8c8d29ab772fda580c2adb39edc05 negative/rpc-master-limit-request-bytes/responses.json +95ad846820254606eacbc0caba9d803e94291c90d2f413469d2dc4af6b3a5953 negative/rpc-master-limit-request-bytes/responses.json 1a062189a600fe7db4e666e40a04755ba33206d4bdbca74062b81ae270b7df87 negative/rpc-master-limit-response-bytes/expected.json -610740611788f2a7992cbe03ee281fa43b4d8cdbb737d22279241df709f1c891 negative/rpc-master-limit-response-bytes/responses.json +595f9b7ae75b950e381bd962b335a1b51525627dabdc5b9cb4e998ca91cccf6c negative/rpc-master-limit-response-bytes/responses.json 764cbe602c95cdc4dcc23cc782c70f80cfa5e95ecf5b0de41dff8643706c4a5e negative/rpc-master-limit-state-count/expected.json -9a300e70310217b0b994ba7344f5a023e6c029ec440b57bbfe0cd80335cacd53 negative/rpc-master-limit-state-count/responses.json +ddfee25585e64b733499c21646ed6ae28de1e6ef8d1faebd6a66ceb222969c1a negative/rpc-master-limit-state-count/responses.json 7896e118a556ad082fbae16803a85494414b2aee2b03348a63a39479988f0e00 negative/rpc-master-method-not-found/expected.json -574c03efdbdab9fbadd89268ba779800291466d97743abfae0228ae830ff9a13 negative/rpc-master-method-not-found/responses.json +04b52cff09896fb65cfd46ea835a45ab6514224bbf5fa82e0ea9bf6b4aa6703f negative/rpc-master-method-not-found/responses.json 91294f9df0bee1456ba5b0695e5d64290dcb48edcc4f01e2f9538e8faa2385a4 negative/rpc-master-no-finalized-view/expected.json -184e06d6c3b3580def34f228afd716b538bb83f18f8bcfe894c78cc7606c0d5f negative/rpc-master-no-finalized-view/responses.json +893684820c8a1aaf84150c6b4637ae7a1f5dbc582e6f31d472cb1c2fa0af5991 negative/rpc-master-no-finalized-view/responses.json 4f3c3050626a31049025d5fe37738170039f62dc63f0dc456999de57c029fde9 negative/rpc-master-partition-view-unavailable/expected.json -ffc9ca11b2d9d41ceebf47372f507ca3e4092714fba864170988e5343d72c893 negative/rpc-master-partition-view-unavailable/responses.json +0fc89265e48dc8c8db5bf9a50b38a006c7d4bf7b0fbe7a03eb489db1cda49869 negative/rpc-master-partition-view-unavailable/responses.json c98dc80ec49a4b4e685a05d27ecceac7c728cb89202522065f8ecdca24146e52 negative/rpc-master-state-expired/expected.json -26d25b716b43284e6f9fa135d2dcd9a3d0552ccd7f9f49a3f3b0fc64ce91564a negative/rpc-master-state-expired/responses.json +fbee18d17569004e7e95d87636daea4011ba7b7753ea3308b5432bd5441dfd67 negative/rpc-master-state-expired/responses.json 2765d603cbd7f30eb8568371a9c0c080c5c42a3a091526b8d7fbd277fb5af145 negative/rpc-master-state-pending/expected.json -38154bfc0d98dd5203d97a4b466aa420b078594e4d8b72ec5b591acff6390226 negative/rpc-master-state-pending/responses.json +b14364aaba4d0b1133db28a4d75579ac09a5b514ef054ef17c48e5bdb0873f3c negative/rpc-master-state-pending/responses.json 9053bfd7f3650cb35e5bb5e8c4b6033bf7373ec369c420ffc065b75e17cc665e negative/rpc-master-state-unknown/expected.json -ee42daf45e7efc283203368a5b4709abe56ef1c97b0ab6c4011d72fb2265588e negative/rpc-master-state-unknown/responses.json +e2ea6a5c70ebab3ea61303b392f5dc436da7e97ec5df99d6a337c01ccf4f46db negative/rpc-master-state-unknown/responses.json ce39148715340a02919efd98020139e59afdcd506015c7851ee04b699fe776d7 negative/rpc-master-unsupported-configuration/expected.json -b1fc84875974386f951879269111be4b72c6169b780dad83cdf6d64ba5877402 negative/rpc-master-unsupported-configuration/responses.json +f43cecbef87d7323fc7ef47c50f70491e14abef73e4ac1d80fcf178d63cdba88 negative/rpc-master-unsupported-configuration/responses.json 6fe231251720efb7d82ce600ca345badc1307e5c678fedeaa1379aadfb4e1d5e negative/rpc-master-view-not-retained/expected.json -69a9c18563ff46ccd9cc849df9d53d815d264be35f850884da7f8ce646af1e1f negative/rpc-master-view-not-retained/responses.json +822a1570ee80aba36aaf757835bb60cacf0a450d0d08fa1872011f3bf7e58989 negative/rpc-master-view-not-retained/responses.json 56fab02a8212fbc3f95afb6115036b92726f2cd7f2a483648c0f5229890511b7 negative/rpc-peer-busy-pinned-views/expected.json -19f78d1a5eb0ae7a98f2f05756e921056bcfd121b3215897952dbdd3a78eec6f negative/rpc-peer-busy-pinned-views/responses.json +d8dfa874cbbc29cb1071d7feebc5987b055738c86dce3b80b23054623c4e156e negative/rpc-peer-busy-pinned-views/responses.json e5df898a4bbe3d21c99079797f7670f94a1cd3e94c340f3f30647064ac028975 negative/rpc-peer-limit-response-bytes/expected.json -8a45fc0334d8ee441b577f3d99dca3d8dd2935c3f04887b0066de71e252123f1 negative/rpc-peer-limit-response-bytes/responses.json +3995ac3f937c8a5eb2618c0e344e8e32b2a9a08f5c118edf0cf7b829820732c6 negative/rpc-peer-limit-response-bytes/responses.json 40eb1a02aa095aa05fa5cfaf1e31c146914b59462de81fa1b8f5264029b6c05a negative/rpc-peer-state-not-in-root/expected.json -58096a2080a74514523f9812d3a333922af6834fc5773a3b919c7c23b107d439 negative/rpc-peer-state-not-in-root/responses.json +68ce574928aa6942078dda03fde9db68c97c4b62f1fe6a42376e6a42bed4baad negative/rpc-peer-state-not-in-root/responses.json 15e53b24316bbd5c0ea958c6b8cfa233209597b5fa22d7c319a527ee93519a9c negative/rpc-peer-unsupported-configuration/expected.json -e2699b1075624f577632f7844fe9321a61e2ac96c9d02e0fdc04e05016e3a13d negative/rpc-peer-unsupported-configuration/responses.json +ec1540b474cc20313beca7f60d3cdf3683184b919a5964fc8d05a93843a9cd40 negative/rpc-peer-unsupported-configuration/responses.json 4f20e9c11b64cf7be3c365d682c9ddd8f75048b00e848b150d80d99b36a97a3a negative/rpc-peer-view-not-retained/expected.json -349fa1150adb17bd1b02090e3f14476338035f033f4ec0a439afd0a53efc9666 negative/rpc-peer-view-not-retained/responses.json +a9eedbabf316448aeded00d9f1a8bc79ed4483f2ba85752366e72e1dc8253194 negative/rpc-peer-view-not-retained/responses.json a6545e42ce3e0dc79d76f272e8e2f315c5044ca65d19f6fb8e31676203655401 negative/seal-epoch/expected.json -bb92b6c718ac7dcbfe5f503b8b3f90aa654c124de22202dacedcaf1743834cc4 negative/seal-epoch/responses.json +0ef29e7641feaa01dd5cd306854390a0ded2ac46b53b857742db7179a35c3765 negative/seal-epoch/responses.json 76ae534b3377e82c63886b4958dd7f6544828912a6de2e47141c89a00084e1a1 negative/seal-hash/expected.json -61cc637738ae0927d72cb320ba32d35bbc4c9dae0fd2460c7fd3aae4088846eb negative/seal-hash/responses.json +bc3484a32e6c9cabc04ecbf66fe0708ac3dbd41d178e5e5ea37e5b0a3e3d05b5 negative/seal-hash/responses.json 7305251715eed0918e1d60e2a003d22fcd461d80ac2c3547bcefd2d22b05d4d2 negative/seal-network/expected.json -f5c69be43148c15503ac252ea79ea75e61c49fe0eae71efa4a9b2f7f8d01beef negative/seal-network/responses.json +e4c6a339df29549982fe84d8ca71408ec2dff3a05857c644942b70d36b513495 negative/seal-network/responses.json 473e9f4a25b01eace77d5324d0cb5b2197f2177256600046213e886db39f4ba9 negative/seal-previous-hash/expected.json -78e28f76f97853ed2ffbc6671a89c3e05e993210e15496204f997614b9698e52 negative/seal-previous-hash/responses.json +ed7d23c8b26db41df99f307ab853ae2ac04e788951c14198d0c73a231fe8d65d negative/seal-previous-hash/responses.json 1063580967c6f8a97cee0fe96d4be6cafae6b5ac331dc77f2522eb80fc15c813 negative/seal-round/expected.json -d7f337f8aa1c6f2d69285527042fd91e6b0bf72ee9d8064c610a8669b2fd4872 negative/seal-round/responses.json +b369fd64a32d6fdc556f00c90178a509fbcf1db177f8778b65d9f8bd4ac58fd6 negative/seal-round/responses.json 1fa08507ac4e58dffff7ab3248f5efe960e8546d7538bbf5382cf287f906cc4b negative/seal-signature-alien-key/expected.json -c6421db2521dc6957248dad74d6b8c1ea24cc2f1b9efa34ff6255facc60884bd negative/seal-signature-alien-key/responses.json +b516322419309d1aa90a2abc43b0e6476adc18fdcc70226d286a28bcd1007d12 negative/seal-signature-alien-key/responses.json 3ebae00e985c482fe97d8719d5197c1e4abae27b059aa7e0b2059a246fa800e2 negative/seal-signature-bytes/expected.json -d69849aa985a353ed916747e8cc909331b5bd1d90d15ef6f14136dd07b5a08f2 negative/seal-signature-bytes/responses.json +9fabd6c8506866f75e4d2c255c73e46b6c0a14649014284cffc9c9b1e7913131 negative/seal-signature-bytes/responses.json 6be39880448dffc6a9e0768ea1a28e9bce405812e953692cf76b858a8a8bd522 negative/seal-signatures-below-quorum/expected.json -a1d643c32113593753bf92d7e9265f49cef2f5d8604a12274b51c68ebeaa982b negative/seal-signatures-below-quorum/responses.json +f67ad23e7480b3bc6ece092b98e428967dfc98e3ed0938c09dc36aef3a75f821 negative/seal-signatures-below-quorum/responses.json 629bf4be1a9786a94586b08cce03dd47e49d6104f81eac5758541482e5186aa6 negative/seal-signatures-missing/expected.json -0c5fd3cc2bc06f411f26f9b75453697dbde63295ee2ff6693dfb0da1b6831449 negative/seal-signatures-missing/responses.json +98b7ff772f96387d031ee4424ab6c113852e16ea96b32a8c4748be1b20e3d1c1 negative/seal-signatures-missing/responses.json 9ad6c02d40a0ef9f609778c1183bc57cb0f3836abd1adca0e503b271fcb923d1 negative/seal-timestamp/expected.json -44a33b89400732a0ae808ab2fef469d829bb580efc41a203115cfba8b1da4c46 negative/seal-timestamp/responses.json +849027ee2978890eac0e58bc79dafea6376f934e7f4835dbcec814fd79dd2f2e negative/seal-timestamp/responses.json 2e12038b407a32070134b9e2dba58194c27cd20fd5c262e06449fdb6f1bbe48e negative/seal-version/expected.json -95f637b3de632b5de8c48353ca8cb84cc77e27ea44e4804a1e3b06e526d95030 negative/seal-version/responses.json +7ed396404a99a10696a4b7279382a98bd87566c5cb7237f1a312d8a165b1ff13 negative/seal-version/responses.json 38f9615aa28a283f3f46ee83ba415880fc7c29b2398c2c098327867cb34ec16e negative/trust-base-other-authority/expected.json -22eecdb90df3cc7b7d522ebe950e9de1d1a497049ab2698a1d1c9f36430e5278 negative/trust-base-other-authority/trust-base.cbor +bc2b1ff8c6d9837ce80242874586eb0c5cd8df913f0db0f62bdfac3075dc8df7 negative/trust-base-other-authority/trust-base.cbor 4fdd13594aab8af8f9a443a16a9f28b79d696f20c9c039081889d91eed664b19 negative/trust-base-other-epoch/expected.json -40d8223f44a3d0adccda98a75d372265cd45a7a1e20bf0f8e8d589829919b691 negative/trust-base-other-epoch/trust-base.cbor -5f20f3f64181b495fd84c7ef13d098cd1d20957341e4006b3451521ad2ea1f03 negative/trust-base-other-network/context.json +ff35dcfff9b45e28251921d37069c2a48973f267253fdb306e7db734b9ff3921 negative/trust-base-other-epoch/trust-base.cbor +1e391c4dc1c5e8708843ee681cc2ed01719c712461b7cf9bc7486db95cb016a1 negative/trust-base-other-network/context.json 68caf48f6ad686ac4470f8495744519a681525aee2530a33eaa7e01dbc1d8034 negative/trust-base-other-network/expected.json -f3bb14b06515e037ddadd2449f27f52269ed853c84085e2f64b6e28fe25b3ea7 negative/trust-base-other-network/trust-base.cbor +e1dcb3c9889a42c6516783669e40a3f154e4622b3a79c3629b30ce2895dc5d37 negative/trust-base-other-network/trust-base.cbor 3adc9884968da13cb905483be36c8643f7c0c9a123ae2a93c03ebfb30dbb4e37 negative/uc-flip-partition-path-hash/expected.json -ece576eff9be0157e4c6a1f6093f0ea0f7bf1b07b43e45791428522ec2f0aa5a negative/uc-flip-partition-path-hash/responses.json +fc14ad9f8a3841fe00493c0955a2353d775b23e891533dd18437363b8ffdfbb8 negative/uc-flip-partition-path-hash/responses.json acded80fd24b362a496866e4819ea3d2ece406030b9c03ae9735466bbaaffe03 negative/uc-flip-shard-sibling/expected.json -39a574cd74734f6b043f770dec501439eb75d240f978f967e7330b979822702c negative/uc-flip-shard-sibling/responses.json +c3586ef4a125502dd3d9062945c1e1ce3cbbb6ba9bf07f23d0660792349a7ab0 negative/uc-flip-shard-sibling/responses.json 20e3a54faacfe5fd97c4a70d941c640f7dadcab9a493d769e5529500cfd89ce2 negative/uc-null-partition-path-step/expected.json -bab117a70c8d77af3ba1abebfcef4f5ceb1172f19708f8e716708f689993d206 negative/uc-null-partition-path-step/responses.json +3d53ca0a134b8b4a9b8f6c75bb69962279ffe0cd9c7f5456c66ef83da2acb3a5 negative/uc-null-partition-path-step/responses.json 7fd2ed1525e2ede014eef9019f57ec2f1f36dab12934f4da58e5639e03b63ef9 negative/uc-swap-partition-certificate/expected.json -9943131b4cd01bfd662d906e9ec9f2d1248f68dff581c01a1bed7ae7e771fb57 negative/uc-swap-partition-certificate/responses.json -f80b293218fc24e6dca35d3807a5889c8d336ef7ae475096b372603754946485 negative/validly-signed-other-partition/context.json +c3f68bb20b3b4ce4e9fc23eff671c0a26e19678c24dfc5ef3e3afdb55ce238a2 negative/uc-swap-partition-certificate/responses.json +493b9578b12318b255a8f8526798851a1836dde16ff347b5f089e2be88ce507e negative/validly-signed-other-partition/context.json b7257e39ca8e132534bb01fe42255abb2e3a5d15f8af9ab40af9a8974737429f negative/validly-signed-other-partition/expected.json -16872bbd0e798c1b3d360f07794c7560aeddfdab6d000618a160e1097a65161d negative/validly-signed-other-partition/partition-view.cbor +82afd8bd3427ecdc71518dc70df4ad5227dced95531e22bcdba0ac9a30adfdf0 negative/validly-signed-other-partition/partition-view.cbor adb63debd65ada7c2ebbdb2385be7a6bba8b7a47adb2a3963fd5266749de2800 negative/validly-signed-other-partition/producer.json -c340fdfdc7597aa3c7fcb8d87f16c2db81638939ea23a1ded8e6902c3812897e negative/validly-signed-other-partition/requests.json -18733d6206dc721d1bc2200c2dba03f71fc8ef493ff78eddd6ea6d5314ee1cd7 negative/validly-signed-other-partition/response-v1.cbor -f4899d990f7d72ff43cb24875278553076ce8a125e8f57303dc7a71c25a66fad negative/validly-signed-other-partition/response-v2.cbor -4a4b8fdf3813a671fcbddf28138adbae299c79aa4958670330ffca3e78c633d7 negative/validly-signed-other-partition/responses.json -853f23e9457a0c40a5be0a95db8e0a8b6e1524650043b691dce733905e733ab4 negative/validly-signed-other-partition/shard-configs/00.cbor -5da391a6520614ec0919acbd855935a6004a1cdb3e3caaf017730126fbb0f491 negative/validly-signed-other-partition/shard-configs/01.cbor -5646ec9503dcdd9c9302294f441d7dad9e624f53f804994d165c827002095216 negative/validly-signed-other-partition/shard-configs/10.cbor -dc3eac36c4a940b49966607d433e2e0b9c540507991a4b2f8cb656758154c433 negative/validly-signed-other-partition/shard-configs/11.cbor -f3e3d190d6d30ae1cf601a5e7a9c5a12afe6d32dbccab19fdfe9ffda8e5338d9 negative/validly-signed-other-partition/ucs/00.cbor -2ad60cd62b8912d99a5c83ca6f638e44869c3f87c69a54511d05f61e46f56b17 negative/validly-signed-other-partition/ucs/01.cbor -cb92f7e70be805c981bec4d615ebb1797f38af35bc93f9c54d8c4366d03bd770 negative/validly-signed-other-partition/ucs/10.cbor -b95fb373db97912b597b0df85103918e85505a5f43f4394ea87967514d53177f negative/validly-signed-other-partition/ucs/11.cbor +a1c6d6b48879de08c20c82084e7b12feaf7f3a0f072ccf97c5272e08f48508c5 negative/validly-signed-other-partition/requests.json +08eda5f275479d8cc01f574a8543c880036f017bed58dba44cfde662bfeb89d0 negative/validly-signed-other-partition/response-v1.cbor +3ccfab021ad0d65bb320908652ad42316323e8a0a18df94ce06ed0b1ecb49aa6 negative/validly-signed-other-partition/response-v2.cbor +d82e3d044907adefd42a15055ab7c290f52d9c9948763fe8c37766b30670fcc9 negative/validly-signed-other-partition/responses.json +9f4739e3008e1245a73fd00e07e9938553ae786ec38bc2745d72cbb90d89dd74 negative/validly-signed-other-partition/shard-configs/00.cbor +00ee312dd9a01654ee50e0bac5a624cb958e08a40a1b69d6b41b94eafda17060 negative/validly-signed-other-partition/shard-configs/01.cbor +fe6100d729dede517d859988e27bb881b578b439870eafcbe3ca6eb103344641 negative/validly-signed-other-partition/shard-configs/10.cbor +3ef53257e101b8cfbbb37d150b14ef383be9b3f32196d14b9928e4c9bc5abd48 negative/validly-signed-other-partition/shard-configs/11.cbor +27d326f2470d8c6fd441ed4d631502ebe7d12001bc5d7eec9bb057aed80026cd negative/validly-signed-other-partition/ucs/00.cbor +31e1ff0919f7c4317271dfb5ebf382da5c7b4ec9fef9fc7b7b4d43f42829c1ec negative/validly-signed-other-partition/ucs/01.cbor +c6550b5a7a4b4fa1a2c8f4cd66ec3f12fbe43c5aa69b1d39e65ed031f423d0e0 negative/validly-signed-other-partition/ucs/10.cbor +8283fc526b810217a50f606dc30a04cbe0c36e32b740f046c5a277f1ebbb2a34 negative/validly-signed-other-partition/ucs/11.cbor f97e99c4677623ec572613f6a824391b50cbd4a3d90da386b96ee726a5da0c1e negative/view-absent/expected.json -1755c7c0faf3e4644a7e9f4a9662af1fe028e75abc3134f503b68a2d0bc660a9 negative/view-absent/responses.json +afa8bfc23c0f7902403aa2fa23d0067ebd809e1575d5a2aa8097fce6cdb8e8c3 negative/view-absent/responses.json 3d51a6659acec6d0cdc75fd13c6d37beb5c20726c1c50e28a4a0cd778c408ac5 negative/view-duplicate-shard/expected.json -bdbd94f18e93906799bb187b2c497fad2180570368c1154e67276b271ef72591 negative/view-duplicate-shard/partition-view.cbor -ea47a8a92423662fda2835d513fe2a31b2658b15171e2c4a6dac2e953d6a09c8 negative/view-duplicate-shard/responses.json +b7f39793f4c54d7b23a156438e789aac00b387b25b05ed03022ae4a4c85b9a8f negative/view-duplicate-shard/partition-view.cbor +bff4ef9755259ed12301252974b771a67ab970a99c866946671b8d0f36b7e878 negative/view-duplicate-shard/responses.json 3f9c4195822d46e0b638f4f4b807c5753afcba8a242a3193a12c7c55225d51d6 negative/view-extra-shard/expected.json -39ad3efa4d1b9d4a776e715cc16f90c3e453db0684a02a59f47c64834d989aa3 negative/view-extra-shard/partition-view.cbor -63acc8fa2faff1005d8d4a20cfaf5e520cd40757f12c8473f21053e1524c0d88 negative/view-extra-shard/responses.json +69b8c571f62809f6f5510108be9de3be8e9a4e6099df901b0d3523b5575ad1c3 negative/view-extra-shard/partition-view.cbor +2b46d5668aabb41a14937ec7b2698eb96151a215b669325c8d451526be984b12 negative/view-extra-shard/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-block-hash/expected.json -0b2226b2a1a317c7a0caee336176b32282ba329cefc21ae63463d748717f2288 negative/view-flip-block-hash/partition-view.cbor -023636d66c09d0877b24629b436963d5ed2cafd73e533f27336da4e73c93c882 negative/view-flip-block-hash/responses.json +344b2f56b54635b3f12b4b031a99134a90546ffda8c03b2d59994f82a3fc4aec negative/view-flip-block-hash/partition-view.cbor +f570b4985c99952111305f8b3b5a55d6ff24333b414e0f06822a55bab441a2fd negative/view-flip-block-hash/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-epoch/expected.json -cc387c3e23442725631162695b108f883631399fd4a272774b66e6394d081e31 negative/view-flip-epoch/partition-view.cbor -1bfaa5f19458427d08a378b384df82f01c74b34db644f7e6dc552c4b7b5fc7fd negative/view-flip-epoch/responses.json +eb8534c29a5a4b6fc0a552d85dfe9b64fbf85a5e6682cd8a095639f662949503 negative/view-flip-epoch/partition-view.cbor +c687b2cccb14be263dec134485fe676fee5eac3f0c84ad7eb0c275db13d9ee1f negative/view-flip-epoch/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-et-hash/expected.json -1087d9ba6e381fad2b7c145a49240bf0b8fe3567e55506280469e7487176be33 negative/view-flip-et-hash/partition-view.cbor -d4f7f4d38b13b432129690a464268f4d9c7345af72d6ba05f70055a68b3d6da1 negative/view-flip-et-hash/responses.json +0dce257bff78f78621fe07946847d418f2e34d46f1ad266fd00d43b21584e0eb negative/view-flip-et-hash/partition-view.cbor +779c2278742f4a51d214915aceb04d045bdec4a355d5ce241bb65abed0c125bf negative/view-flip-et-hash/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-fees/expected.json -7ff7010ad379cc23db1df68ffae8c315c3828011651a53d2f48cb7581a042510 negative/view-flip-fees/partition-view.cbor -02497440c8778a3394b646cf20ce7efc083792bec4dbe1996af6baabf625f482 negative/view-flip-fees/responses.json +b3e9d692b3a342e87bfe6e96c5b6552104e81fbc22e1ee27696c04369d655431 negative/view-flip-fees/partition-view.cbor +2fd0d29933b67fdabf21741d5b92832e265581f859f4ac3b715b39a5b3eaac2d negative/view-flip-fees/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-previous-hash/expected.json -8022caf83b07fb24706ee4920fc057689cbedba158e6b0407d6e4340c12a9f4b negative/view-flip-previous-hash/partition-view.cbor -cf8fa8fb1681b867a50f242c4310619714fb9da680e897af8b087f08b3926090 negative/view-flip-previous-hash/responses.json +fc664e1c2a03a0c1e4996b2b1d3cd1ed8d811261e18d993300a62e90bb6d195a negative/view-flip-previous-hash/partition-view.cbor +0b4a10c33ba78d7d710a386f4d7e32100a20a3a1fbbb50c294b3756999fbe150 negative/view-flip-previous-hash/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-round/expected.json -c259bd4a3421ffc86fa193a83214544c9e5046f50cd846fd81f038a01923e4c7 negative/view-flip-round/partition-view.cbor -760c63879bf51360e0b6679f9cf1fb2cb1ab2d1874ae6a2b7a19dc0dbb4343b5 negative/view-flip-round/responses.json +71f4f70124c378dd1c3c946f93b983e4d1a33fe31e89d545a2f19767f3e41817 negative/view-flip-round/partition-view.cbor +901bf930f766eb634d7d31d7bd8fc271be05d488859f6b3979bf641a8457d7f2 negative/view-flip-round/responses.json cf39ad20bf8998ad1046eaa6489c56ea46176bd0649db0ea5e7eff791334ed72 negative/view-flip-shard-conf-hash/expected.json -8fb2b2068c50882cd08a6d06354fa02507369eefdf25a5cb3bdec03f04fcbd16 negative/view-flip-shard-conf-hash/partition-view.cbor -f6649752d1ce3b5e3f6f1a5ca83f6e4a8bfbb73bc7ed4bb6e349717f47fa1653 negative/view-flip-shard-conf-hash/responses.json +00beaa256fc3e4d6916b466dcbcfe162e2680abc03c538d7f850f9079021d939 negative/view-flip-shard-conf-hash/partition-view.cbor +0cb82ff71b7c601754d34fb0eb70b19a464c69e1fee2ec03c9c00091c390af1d negative/view-flip-shard-conf-hash/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-state-hash/expected.json -f24df89390e8592ed4c3db3077c9970227b1151f23c7f6ae3dec257b2cf356ee negative/view-flip-state-hash/partition-view.cbor -b63919453436e1ec3e1b72bcdc852a6f35efd7b348c0285b9e7fac80548de46f negative/view-flip-state-hash/responses.json +e0a5b3f9351776eeda6bc6911e677436aaefaf96023353c77641567d91c8f187 negative/view-flip-state-hash/partition-view.cbor +cdab9e75cc4b46cdc2e64a4bebc4608adddf9df816d882a3fb214937eaed0523 negative/view-flip-state-hash/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-summary-value/expected.json -52431ca4607253d51f9e79885c9fe4357255033aa77abe78cc510cc3c655bceb negative/view-flip-summary-value/partition-view.cbor -ab99cb885cad661cff3152f0a01151ffefa0f719015d86065025561fb2dc2a6d negative/view-flip-summary-value/responses.json +7ed7f5110b35fd342796b28aca91f0e2d9642f7e5139794562f205a9cafbdd13 negative/view-flip-summary-value/partition-view.cbor +5910380cc81327ce8a7af79c126694ed68593b25142278312648af04552da3d1 negative/view-flip-summary-value/responses.json 9890f69eef8e96d76d9e1b0cd094bf1c33a2713fb0c5bfa1d7b77baefb7bfa68 negative/view-flip-timestamp/expected.json -5d449bcc988ae93f41f594f1e4d9af10606186f61d39f4ba3857e38a8b163ce7 negative/view-flip-timestamp/partition-view.cbor -f229d168478f3ad5d78a25c8e3531e1929467b36ab0bdfa043135740e0657cf2 negative/view-flip-timestamp/responses.json +feacaa433d0bed2f136694e98f70bf013ee476199be2848c7112e4cf31fae21f negative/view-flip-timestamp/partition-view.cbor +6174732c12128e1e69bb4275b6ccfa26b3ba221adb92eb770e6eb947212b246d negative/view-flip-timestamp/responses.json 91ca25179269dfb008340cd37210230939a69eb08996d942c60660712583f636 negative/view-flip-tr-hash/expected.json -844e5a64cc71f66d3bcbdde7850b7aad8236cd6eac0d05841d9f634a075e301c negative/view-flip-tr-hash/partition-view.cbor -af240bf4fef959447a095bca495e1a2cfd55bfdc40c646c0c36a9f760ab5bc52 negative/view-flip-tr-hash/responses.json +56529e74a9d6f7e097b3867e332a3a18045bca46e301b65a3c1e60378ff7f557 negative/view-flip-tr-hash/partition-view.cbor +ad1da102453373dfa7ac5f6011569d95683cfd21af40b0c1a268f2ca724d6dab negative/view-flip-tr-hash/responses.json 588c17a729c4ac687854ce226c029cafb06eede26a6f312a616f5cf8c898c1be negative/view-incomplete-prefix-coverage/expected.json -9fe88928148331938c32ede41d108d9270ac47a657fc27ed4ecaa653e97d1d92 negative/view-incomplete-prefix-coverage/partition-view.cbor -ec6f6dfc8134008b0afd4fc99f580a8235169e15623939818885b402023517dd negative/view-incomplete-prefix-coverage/responses.json +adda05c8e69306f6e777c7176063a8b3004f9bc2190e055fdfe21d59ac63aa1f negative/view-incomplete-prefix-coverage/partition-view.cbor +dddf0fae39e5acfa5e997853ccb49438e29279d2e3cec1854a61750ec49890e8 negative/view-incomplete-prefix-coverage/responses.json 0691bf858bc316ece278b36edb8c9f08a94c705f426f309268fc1c051a07efef negative/view-input-record-version/expected.json -167aa434aaf6ae55be3a6ace8c898417b50b38612f3ae68201e0496ab8d7a0e3 negative/view-input-record-version/partition-view.cbor -27783af2cbdecabe133273d5240098d6f137283e7a69c13b2200f0bdc45c8fa2 negative/view-input-record-version/responses.json +caceb3a7d786227614d2619d08916fc8639ea7a5992b67208b69fdd865e2ae9e negative/view-input-record-version/partition-view.cbor +ce3cef570ef78f893b7818bc6b6b5360bf59df6bf38ec41cb4a2e4693efeb0b0 negative/view-input-record-version/responses.json 202d1681b7b3cad67ec1e99710d8d28239d571235d617b48aae9bf4b56404994 negative/view-malformed-end-marker/expected.json -a50789538f48bab56f120e4dfad0d3498ad4d131e974179d343be79699fa9219 negative/view-malformed-end-marker/partition-view.cbor -37a7f02f2732421041a08004640e9d48685374ac12fbcfc2c80f860dcff74eb8 negative/view-malformed-end-marker/responses.json +efd81ad8f66a928f390608ce81fa506a8a2fa533ff321d35c4b22287a6c78d05 negative/view-malformed-end-marker/partition-view.cbor +7f33a90439ebd52dbbcccee55c5fc098706064459f8689ea7ed0237045245e70 negative/view-malformed-end-marker/responses.json c8c085b49541b59050ceffb2bae63bfd6a56735aebfa5acda037047a025d0903 negative/view-missing-shard/expected.json -382bc89c42157a0d44653be1244347ca32a90c1afbb453543ad09160238536ac negative/view-missing-shard/partition-view.cbor -b56082d615978eddfa666b7f79a51e87c4721e99d1b9cde6272844d86738e6d5 negative/view-missing-shard/responses.json +baea5764e49af1f2f865d07f499e75221989e971b449196023354fb0a46f8eb8 negative/view-missing-shard/partition-view.cbor +2009ab9359e6d9bf126a3cbc5b55525f7edbf0fb9d3055fbe1d0781acd3cca61 negative/view-missing-shard/responses.json 18a8f86b117b16ff31fc083ae505ab56acde2675a797df9d0a6e6ea73cec1140 negative/view-over-limit-leaves/expected.json -66b7bdbf6dfbb3e86feb35cab63500cc12c3aa09798e13daed45e4a8afc5bc0d negative/view-over-limit-leaves/partition-view.cbor -6bb490a06aa634fe9aa3209b9d0247e5bbddc991d09919254a033cf30a2ab62e negative/view-over-limit-leaves/responses.json +786856f0091738c0553656fa0f930e88208217435a3db1178b566203fd78ec38 negative/view-over-limit-leaves/partition-view.cbor +b8d627178e5924db40db68112fe8e691a29434a484b234e5140c2bc8e66963c2 negative/view-over-limit-leaves/responses.json 27d161ca6fdf12325e5bdc25b4d6ec214b44ec933867e2984dda44b2bb126937 negative/view-over-limit-size/expected.json -7a2598abb1f8388582a74b4d8d410d7d9afd2b661c7c25334a5beff4c507f66e negative/view-over-limit-size/partition-view.cbor -1009339caeb5ef11326384befee7d4a14b91282e69c4f4e24368eeba0e787947 negative/view-over-limit-size/responses.json +22bb4738e57558948d532d36b757b77342deec17f6b4782a71f2a1ef1e79ae83 negative/view-over-limit-size/partition-view.cbor +1b88fc55d903b40d3410c247558e410dfb01c9ff53bd5f74c5504fa698a181e9 negative/view-over-limit-size/responses.json f399476e03cfa820c500e8f73fb9008b3d23189f7fe84c8b88e30a7fd347920e negative/view-overlapping-prefix/expected.json -cb8a22ac14a68a1f1953493e753552b2795f04c812e1a9b9017d55c60bdee9dd negative/view-overlapping-prefix/partition-view.cbor -6b4d5b24bfc2f160f311edf131a23d90424dffeb2f6d878ab32c00181e91d1cc negative/view-overlapping-prefix/responses.json +1c878b68f1d5b2567bb0ef7494e6da44dda2117f17b941599a71a60484a8d66a negative/view-overlapping-prefix/partition-view.cbor +f52ce468d649f2ab9102b326d75a98e2e91df431199f1dfe701e44e1102aa46b negative/view-overlapping-prefix/responses.json 13377d732ff802d8ff9a68ccca37e83510e500b3193faf1c2770eb048e537a04 negative/view-reordered/expected.json -59e6b0cf4e2a0b51f1f615f254d31c5394c5a2c10c5563b2aed7b2104ee58ec2 negative/view-reordered/partition-view.cbor -93550b9b865ef0e69175485c34a6640eb8d488dce507382ee845ce2a3a5ab76f negative/view-reordered/responses.json +62c22a40ce163a2f0a8ae99b1bbdebef8552aa4b798f0ab0b32b5b79b03c3d60 negative/view-reordered/partition-view.cbor +0d0e45f8f266562e8d2374d5c4cfa3c3c170a292d89a4e27d5183454d07e4e20 negative/view-reordered/responses.json e4b8b691c34ceaca2087b0d5f98b0db8732898cec29eb3bfe2404de6096ad562 negative/view-trailing-bytes/expected.json -f689f8b86593f9626b433dfea4dae301c99c9c6553dd70cd36fe1928146eb415 negative/view-trailing-bytes/partition-view.cbor -80c1b7bf9b0c4730c0cbb7c324bd9a215204dcbfdabe5408e3c5e9df73d0ce49 negative/view-trailing-bytes/responses.json +8205e42ce931bdae17b7d501c167de8e7039aba1069d50951c1047ebeb68654b negative/view-trailing-bytes/partition-view.cbor +9fa869614e34e1b32d1d7fbbc7a9eb9f596293b52c87f3dbdc8f5433ba68a8e1 negative/view-trailing-bytes/responses.json ca2a5a8199941bb9de8edb7ea5809663d18fd6c469f7b72ffb51251f694d7b94 negative/view-truncated/expected.json -b9a71c325b687b5cac949b4071a47a6eb28382ee7e55bc1b1724a489ba248103 negative/view-truncated/partition-view.cbor -1bfdba4b7420c2236c01e4296f1ac70024a6ebf50a2c43fb190fd0da6924c565 negative/view-truncated/responses.json +1466a49121ac5996c29475e1294738b6ef88cd98183789793674f5453e2f729b negative/view-truncated/partition-view.cbor +aa94835b771f17205bb23412b84640ba30c09fded9e09b5dbe48dd4ed670b787 negative/view-truncated/responses.json fa0e03a23c0dbc29e25d27d230cadb162206b3b9a1ac3ce754059688fc0ac2b3 negative/view-version-zero/expected.json -7db039fb5773975455fdb027724734c7d90792f9b3dddf49043ad8502b72ff3b negative/view-version-zero/partition-view.cbor -d1681b0abef4b77c3be6a7fcce447797b2a6476eaa25e03b76d578bdac3232d1 negative/view-version-zero/responses.json +ca564a7949e0ed51cccf365da906853f65ba121c9171632d9eef5c06aa482596 negative/view-version-zero/partition-view.cbor +affe0e423a8c4e21a425cf90b29463bb7b3c4fc9de06f71d4e3858a472aea3e0 negative/view-version-zero/responses.json 1e1dfb2d25bae039487da482666825edd641e768485d7131a20f52f35414c83a negative/view-wrong-partition/expected.json -30619bed77932f6fd9a1b022b94c3126db8e17aeb7dc56ffd6bbb90354969b36 negative/view-wrong-partition/partition-view.cbor -104ac2f509c624414a339f190e07e29ad627e25115d2daa2e0aa9029feb824e1 negative/view-wrong-partition/responses.json +e2be09eab18bce600664278bca5d83e09a350a9e83b08842fac0023af511f0c7 negative/view-wrong-partition/partition-view.cbor +914853f6078508e538b5c144c784d38b1605d16a059dd8cc7df52ca7290c221e negative/view-wrong-partition/responses.json b8e8a2ab259619098d370cf2b9979191f60bff7774c3198e1840bb10e92aa9e7 negative/view-wrong-version/expected.json -29ee365fb6dd9912d6651f67237541dbf8b3e57ed3e9462a2d12d0763677cc7f negative/view-wrong-version/partition-view.cbor -bfd7a38d45fa7ee476cac0909b5baac51bbe738a76b6e4ab4ce595e2519833d9 negative/view-wrong-version/responses.json -9094db0ec4f9ea216b7d9ec059bfa79008e4fb2b459b8aed346594403f341da3 nil-vs-empty/context.json -f89b1863c75ee732907a5e451f9154a07b6c5a33eee3d7ef9b47407e9c67c63d nil-vs-empty/expected.json -cc4f2abe050fb7d7bea7eb1668a53154db209fe9356abe563af38cfee4e83641 nil-vs-empty/partition-view.cbor +657a5b64c6c44b84bb9f1a0ba251d56fbe4c6195cc9d067f4c2f94a3d4fc7969 negative/view-wrong-version/partition-view.cbor +315be1a392a1a013ead8fd22b961bc0bc82c12fd3bbe7889c989c51707641c83 negative/view-wrong-version/responses.json +b7a40e7ded577af9b767ee4870fdb290c105279b25343b9638b55b37248966a0 nil-vs-empty/context.json +dcc0d3b183bc0fd4aeca4a248c6bf9c993065180108ac6a905bafc5c5a2034c1 nil-vs-empty/expected.json +ead7af5982c3f0cafa2e4c708414ba364853f42102396cfd0eefe969379755f6 nil-vs-empty/partition-view.cbor 9f18d84acc86c67cfa9a6caf0828d60c7dc777d0043ea09f48b9d66b63d2f151 nil-vs-empty/producer.json -063759eff5e636647f0eb199970e95749a87577cc51c6069d26bc3f0e1160e2e nil-vs-empty/requests.json -655fd8ec81d1ac4338dc622b6eaa199a24050a09109e6dcb90439dac9566bd70 nil-vs-empty/response-v1.cbor -dca714a4a8306c28cd849d52b3ef28c148031ec29d15ada5cf1433074779a754 nil-vs-empty/response-v2.cbor -9b1754df630ec29602745cee6431959c8517e1ada349a7eaba7c50b4ed2c4087 nil-vs-empty/responses.json -0a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414 nil-vs-empty/shard-configs/0.cbor -132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0dd nil-vs-empty/shard-configs/1.cbor -a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446 nil-vs-empty/trust-base.cbor -c77d07e22bfde03eeb9a451487188d2895530c6520509272f5982c47d2883f3d nil-vs-empty/ucs/0.cbor -53d49b7182c888bc72cc3e9a6f7565d88e76b11d2e00095554cfbb0f48f3f881 nil-vs-empty/ucs/1.cbor -4bb5f69319a67a337148faa5fa9ecf23e91bfa422f7210242768f77d48e86b37 shards-1/context.json -bdc0ad378d169d9d0cf0733666387078e4baeacef995f5def494de55283354f5 shards-1/expected.json -bed37a4bd35b845092031f8e1dc28138759998f40f96593725ccb7cf55fad8b1 shards-1/partition-view.cbor +3571ee2a880c8bcfab4a5f2e78141cbce049730dd484deb296dae32d6bcafc91 nil-vs-empty/requests.json +4c0912ac92686a74237cf8e0e05a12de3fec4c7e51ff36fb7947619ea5abbe10 nil-vs-empty/response-v1.cbor +6752a8789ac112e09d4b3a74661120465dbd95d46a39452b914e1457c1a12f2b nil-vs-empty/response-v2.cbor +d94a75cb510d3a1810553ac06137c88f04f8ae7826524c6464aa477f7e7acd31 nil-vs-empty/responses.json +8fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351ab nil-vs-empty/shard-configs/0.cbor +658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749c nil-vs-empty/shard-configs/1.cbor +00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 nil-vs-empty/trust-base.cbor +8fe69aa0d2f36542dd22e2428757d4c5c9f836b6d0f35b214f1f432b030a3aa0 nil-vs-empty/ucs/0.cbor +f2abd01174d4f0d86d2ffeed0ef537b353868f3add69ef6f39f6740d8248cefe nil-vs-empty/ucs/1.cbor +ebc8ec51c1587cf08ce79396ef01acbac3965167fbc8cabc5baf2b6481c9db8a shards-1/context.json +7020976ffbab1a87ca2d8092ce8def71d2ed56e4391a4a75af2b412d4a37b920 shards-1/expected.json +5c16c74f31b5bf9c2c6412420bde08785e25d3b042df1cc6aabd961ef52e49fa shards-1/partition-view.cbor 44a28f3580c45f6e0c789cb1f5390bc941f5c198c61fd71fb7789a24d9cf1bbb shards-1/producer.json -44c926553ba3209d0d66d7f049874e2706717ec99c3c13eba234d285569b08f3 shards-1/requests.json -1a3f0abcf33d965310bc7ee1561c5dd37ae8fc9bf2c3b543fd2d09c5d6eda650 shards-1/response-v1.cbor -0469a9449158687b785b9eae0836f41708e9062661782d62ae776b880b9846dc shards-1/response-v2.cbor -e5d6bced9b54bbf62b8c670d9428d4181cd0f5f770ec2b23cb40b8dd1eb1f232 shards-1/responses.json -7243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1 shards-1/shard-configs/root.cbor -a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446 shards-1/trust-base.cbor -512e6bc9cac9e1c799d26addb04234ebf6cdd1bad59cb26e6af94c89750792fe shards-1/ucs/root.cbor -2f8f523ee6f5dee174da67aeaed3c058d41ca1cc7335c26a530d130bbd5887b7 shards-4-timeout-unchanged/context.json -92166c403288c83f8378341213748f25a3fd2a7bbe35873059218e2cfa4e03c8 shards-4-timeout-unchanged/expected.json -142a785d95b149216e654de021b2473c53dfff7bbd78f0a277e512034562a782 shards-4-timeout-unchanged/partition-view.cbor +8e57624c46e31854a99cc0e17cf10556bf1086b38338787ae293139083c756c8 shards-1/requests.json +a0b3db52472dc0518cdb41cffa5b9fec076d286d3ac2bc73b0e7e674dd3c86ac shards-1/response-v1.cbor +0b184daf3cacebb0f6a6910b15be8208f48fb561acc373b294800f015615b8cc shards-1/response-v2.cbor +f1ba5431ea3cbb6fdb0226204d2da2357a2b39902a3d3e294c6240d5f12caf97 shards-1/responses.json +b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2 shards-1/shard-configs/root.cbor +00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 shards-1/trust-base.cbor +b745cc482342df88211b4ee2172ad60cd8755b0704c1529fdd2e1752bcd4d515 shards-1/ucs/root.cbor +93f7b70c4aaef5abf1e0579db4f0e17205e2b8990ac7a42e370554b186fb144d shards-4-timeout-unchanged/context.json +3d94aabda134ef20573f492ff5c892e4662a62276cfb375244eca8d86726ec29 shards-4-timeout-unchanged/expected.json +51193e9b99cbcf399430384b76af9bb70cf17f4bc666b764687d2671f5632b65 shards-4-timeout-unchanged/partition-view.cbor 76c0712007ad41bd91e49bd32f4c54a6f3ed5e5f154b390977e4ba6138844877 shards-4-timeout-unchanged/producer.json -d2c83d085ed51d41a2ca3a88f248e1b925744d3c1671622143cc1f24ee70dfab shards-4-timeout-unchanged/requests.json -cb7761d23730b6d8b4e33729cf2053d8ac46e65c4e5e4c4ee8e1365e698f11e6 shards-4-timeout-unchanged/response-v1.cbor -f567bf0aecd43b70aaabf96d9a71a7f037e871323fe61211968e81958a31aa47 shards-4-timeout-unchanged/response-v2.cbor -79aee9679cfbb644b3aad51e7bb45834084a19b7c0e435c297e335ac3e5a216c shards-4-timeout-unchanged/responses.json -87cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112 shards-4-timeout-unchanged/shard-configs/00.cbor -a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34 shards-4-timeout-unchanged/shard-configs/01.cbor -3f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d shards-4-timeout-unchanged/shard-configs/10.cbor -866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582 shards-4-timeout-unchanged/shard-configs/11.cbor -a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446 shards-4-timeout-unchanged/trust-base.cbor -cf3cb0c0a794b6403e90d55bc06513488ff465ea33adcab9aaab89d3ca72414f shards-4-timeout-unchanged/ucs/00.cbor -1bd000f707c125a1686b6a38cb5cfe4bf0d28e4f19e71a517d639b9bd09e8d16 shards-4-timeout-unchanged/ucs/01.cbor -23bc9ecc123c49a99ee2541654ff2ddc00223250eb285ee221b237b1e781faf0 shards-4-timeout-unchanged/ucs/10.cbor -76e86cdbcb37643866da1daa209ebf0c5f780bd611d9aa47ff2c5d699e3727b4 shards-4-timeout-unchanged/ucs/11.cbor -85e50a32642db449172744ab9bc73ebd76013a6bfeb4d52e2c2d10e48d2dfd6e shards-4/context.json -36619e2589a866bb5062aeaeb89c7c683003ec759f76a1808a0663c8d5d4d781 shards-4/expected.json -5d390b695bff11cb73bc7e366a0d22751b5a7f5319c8aa7fb32b86ef1179032a shards-4/partition-view.cbor +32c766927a1224ec0e0a67b2f2f567b745aa843e1e2186dda24ab1795904043b shards-4-timeout-unchanged/requests.json +813e9754526fc63864561c3d291369c8623d1da8d8fdac4a96faac4f7020feb0 shards-4-timeout-unchanged/response-v1.cbor +41e143ed87a676578f49284f4d160084be5db711c8d1541b4d9131213b75d99c shards-4-timeout-unchanged/response-v2.cbor +f41a3120508859c81808b3429a87a7fecf7efbaba01f0fb8eec44daeecc2b5e4 shards-4-timeout-unchanged/responses.json +e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373 shards-4-timeout-unchanged/shard-configs/00.cbor +9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f shards-4-timeout-unchanged/shard-configs/01.cbor +f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d2 shards-4-timeout-unchanged/shard-configs/10.cbor +72b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631 shards-4-timeout-unchanged/shard-configs/11.cbor +00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 shards-4-timeout-unchanged/trust-base.cbor +f06fae468952b87acc548d635d9ced311af7021ae1c001404192c0def5bb5c2d shards-4-timeout-unchanged/ucs/00.cbor +138ca40884fa8eeacca708dc913f819a81802ee3be38ea55bb5dbf711d042475 shards-4-timeout-unchanged/ucs/01.cbor +77b3dc6ca3f65fb2b7c3fd2d79b488d9dda15f6c85c9efadb47c5cadaa3342bf shards-4-timeout-unchanged/ucs/10.cbor +48b54ef9fec36fff87f4d2ce40391d10568e25cd3886c1f765a350f481ef871f shards-4-timeout-unchanged/ucs/11.cbor +6a050a84c05a603e4eb807bda4548c3844b54b57fd0f895267a8351d9e1a0677 shards-4/context.json +a96bf7f7ccfed97ac5292bdde1fafd71d9decfe415d11c53025bed44262f8c1d shards-4/expected.json +77cd23773d0722c1d63f52955e20f270c403a89d5b562866c261c745e71e3340 shards-4/partition-view.cbor b2b5c2d2199ab7ff15747f1a1bd070848e93c055cb56423c9a3af1975b5822e9 shards-4/producer.json -1e83bd2e2dc7fbdfccbade66c0210b5c3197d80f928b218cb251ad1e2730f2eb shards-4/requests.json -f5e071964bceb6a7e90d729fed5f101cc3e332e7ccfb56fbfa65820658a5ca8e shards-4/response-v1.cbor -6bf2ba1abedb8c43f1a522e317e7a50be5ffdc3ac0ef40c606fc33a427fbe05b shards-4/response-v2.cbor -5f98e44eb8b6fbf01fbf581985429a75810565ac4125366cfa1d82d839d66092 shards-4/responses.json -87cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112 shards-4/shard-configs/00.cbor -a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34 shards-4/shard-configs/01.cbor -3f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d shards-4/shard-configs/10.cbor -866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582 shards-4/shard-configs/11.cbor -a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446 shards-4/trust-base.cbor -6da023d6b930e40b7700b9bd80a5f9c16bbdf30b144c6c571d41778a37cefc3b shards-4/ucs/00.cbor -4f85a81ad65dd2dc7769488e0c335c690bdc9ce18e5f771b976cb26fb532728f shards-4/ucs/01.cbor -1332dcc5bc643e7cf641b619111818b063e301b30c624aee6bc92202e97a176b shards-4/ucs/10.cbor -812c2c90ef5a76e1352c2647d1e27aeaefe5353aa012688dba378a857787d75b shards-4/ucs/11.cbor -37c2d55b730d6b8a42455808bc51f9a2721fbe28bdb9a67b14627b38f662b811 shards-8/context.json -a3bba5ea0784afc84922c8a313bb158bf55752c5aa9ec7c53bf6cb4e1e67c54a shards-8/expected.json -cbeefd619e5e4a005030194a68a126438c1507b36a06e49fec0a78cb03ca9a86 shards-8/partition-view.cbor +55edff72db1f7303f63dfb91299798f219de1be999dd15fd4144b3deea624c98 shards-4/requests.json +9dd9108e98868aba53e5aedf6f583548b51b04d11cc9fc6addded62d72be97f7 shards-4/response-v1.cbor +808348d49341740f3be8a50e39fc6c8f0caf380549e784b706da533aba52ebc6 shards-4/response-v2.cbor +aaef16164ee6848c2e8ce8ff99ec391101719602a3d0548c86d88a3c9245c6fd shards-4/responses.json +e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373 shards-4/shard-configs/00.cbor +9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f shards-4/shard-configs/01.cbor +f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d2 shards-4/shard-configs/10.cbor +72b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631 shards-4/shard-configs/11.cbor +00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 shards-4/trust-base.cbor +64ab6d2671927c357944a501fc87df525f47182934c9652d6f3fb2947570eb10 shards-4/ucs/00.cbor +c9c161a7e34b1d4c00204be4e025e0f97330298f0b6207dd38e22c073b8b1bd9 shards-4/ucs/01.cbor +063fb85e1f716398965fb0a08604ab844540d512a40c27e427ee322f24bc0197 shards-4/ucs/10.cbor +42c38f12ae52d0617392c8bf404f37bf3a02e45877b883188c1d5f0f34612cc7 shards-4/ucs/11.cbor +b1407ec6e8be2712e6c239e67d545e0dc295fa700eae2010d4a7748402e3e3e7 shards-8/context.json +632ded3b279582f7f23bbf385aa1120678974706c3de13bbee9397daa1ca3055 shards-8/expected.json +f15ab7c2a15ff8b588231ae9f025ffbd656d89962c2a4dd152070a1e0e14a6ba shards-8/partition-view.cbor 1faef5615c5030a2a8892c315164fc300dc00580c850e07bf8430ba397ff749b shards-8/producer.json -be9dde292a38a0353b12f92cee15ebbb7d0337e50924bc29895d7e54f3d35a63 shards-8/requests.json -40352321c96d3962d00766fc24657906911fa4adc51c6128d4e32a96539bb6be shards-8/response-v1.cbor -7529a8c20defa69fa3f98a4d3e341b2b880e3f17e2fe541ca78b7dbcf05d2b99 shards-8/response-v2.cbor -0107c2b6ac36f2d48f268e0289cf8bea7985b52f9273b23469f27ba8057b540f shards-8/responses.json -c983e31d3c1cc6a5b97bfcb8c3283cacf436c2f05efa4cfd707eeeda6d8d54cb shards-8/shard-configs/000.cbor -ec83152ddec1cee14cf7823e221f04c98da3c73dcb939b4a057065aa4a0f92a7 shards-8/shard-configs/001.cbor -8168493f01af819e91654cda79d43ce4eaaae1f5df17306fb219f8945cf4d449 shards-8/shard-configs/010.cbor -1976a12d8028bf816dd797a089c41bcdc39270041a576b8786b6a0c0c0677bef shards-8/shard-configs/011.cbor -a7164fc0553d198ed82b4dc46bcd4249615d76079806881b9529307ff3bcc951 shards-8/shard-configs/100.cbor -17b3383c7da9a5d78921210d81821b181d54699fc515da4993c4dd50c7082982 shards-8/shard-configs/101.cbor -3626cac1253d43ef16b225092bb42b9b6d0efc9865d9f6976526c6955296b004 shards-8/shard-configs/110.cbor -496e049f0404e97759096bd3dbf0d810244468adcd98d47b01830d4ccde382b6 shards-8/shard-configs/111.cbor -a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446 shards-8/trust-base.cbor -0bba022dc41d269c2fd2b861f178461269c4ac3685d56ee74d0be91aab57ec9a shards-8/ucs/000.cbor -e30a1848e402e6f52a948fc92bebb7ca9ff9653086508f45885110bca8c56a38 shards-8/ucs/001.cbor -9cca93720ceb226b2b6e2d4898cf5e907f175c92de3b6ac9d1db89454619ef5e shards-8/ucs/010.cbor -ca0b76da295d0291e9e6a3fd08c1576f43e8754e4b31ff7dc50e73b9e7617d03 shards-8/ucs/011.cbor -574c5e6e3f3810f70e56bea96d3e71d599a45b85f6dc448b9ea9e23d77a70472 shards-8/ucs/100.cbor -8c605e06857a58d7e51029f8d323769b11a1c79f4b4e996cd32839dbd98f0685 shards-8/ucs/101.cbor -36730ca5c991befcadabe2e446d149aae5f337f84dafcf23fd00cee90be073da shards-8/ucs/110.cbor -2f5c713d1fe42d279640b529a324b5562771fff38c3670e559884951b94b7d05 shards-8/ucs/111.cbor -85e50a32642db449172744ab9bc73ebd76013a6bfeb4d52e2c2d10e48d2dfd6e witness-alt/context.json -bfaf03d5bfe4b6c6facd34143eca7336afcbf778be67633d9053ad85207b941e witness-alt/expected.json -5d390b695bff11cb73bc7e366a0d22751b5a7f5319c8aa7fb32b86ef1179032a witness-alt/partition-view.cbor +79b674328f71476a9f3c28891a7f3b132000db555d9e334ac519ee12b7aea7a7 shards-8/requests.json +4092f049e16fdc7663dd49818628f69cd01eff52a8d8c8313ed0993bf4c62163 shards-8/response-v1.cbor +6b373aff436aef9d43833f279388beed683da63d44dbebdd70f4476442cf54c5 shards-8/response-v2.cbor +3fa308ee4f490d074ee1ff58a1a51eeb804f2b1dc0a6eeec47a55f5d928aee7c shards-8/responses.json +7d2e71ac86a93337e48eb94ba2c99779dbddfac39c2302a392c1abb57b04948e shards-8/shard-configs/000.cbor +ccabe0eb3183c661dad9086982eec3b687f31ab6f3714a72c3de1d89cddd54e2 shards-8/shard-configs/001.cbor +aa9ad5d4e249bcc0f9c9812871e7a51704c34938ca7c5263c2ba9c4faf91f39e shards-8/shard-configs/010.cbor +a6e8517e38665ff9c1d46e2a8c750af689362d11bd4f435af976b65fc71534d7 shards-8/shard-configs/011.cbor +d4c118c7f1553dbaf98a59938a571dfee2c8894a44532414febf8d46d3d2dff5 shards-8/shard-configs/100.cbor +10ed19ad300767e0a42b2681b78f2f738bed7e2b3e22b4f7497ccd74b0ce021c shards-8/shard-configs/101.cbor +25b8194ff8f1dd63b23143341181f436294eed29fb40491e24fd6bd5f54738c5 shards-8/shard-configs/110.cbor +01a8c06784d8cebed1d174c7c18a09f58624ccfa126111bd17f34fb85ed8ecd1 shards-8/shard-configs/111.cbor +00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 shards-8/trust-base.cbor +f6d0249920c4bca7b648efd4fa05277aa415017ee543357c03dd3d5dcefd549e shards-8/ucs/000.cbor +5cc19d1c3cdd73ff61f6ebffa3a70a76bd4a744a6726e55c143688306c745fec shards-8/ucs/001.cbor +73a058a3062793a9e7f61bcafc9357caa9d250a4e53d102cfa3b15428c1230c1 shards-8/ucs/010.cbor +95d549706c0a88362f59fa763d689e2fd6895152012e7a019cc958a5f07d1a52 shards-8/ucs/011.cbor +01c55ab964dfb817cb877809ebb6f06ce41350999072c77c95e4ee079204ce95 shards-8/ucs/100.cbor +0cbc623d8529c4d7b271780461624eca26a2f5b4c539dc378aff061a90b28a0b shards-8/ucs/101.cbor +42cb47d440c09b272ffbef8d320bc6b9fb31bbe4f748d82ba34700dbbaff70dc shards-8/ucs/110.cbor +d03c5a0293a9e90316ebe35d62222a8c58c148f9ff82f36d095ac12e34f22758 shards-8/ucs/111.cbor +6a050a84c05a603e4eb807bda4548c3844b54b57fd0f895267a8351d9e1a0677 witness-alt/context.json +a282b09cc550b6b8e78574a0c45633a0c6b00e0dc28c9bcbd9a94f834585c6e5 witness-alt/expected.json +77cd23773d0722c1d63f52955e20f270c403a89d5b562866c261c745e71e3340 witness-alt/partition-view.cbor a2f312db2946e3f92806eb4791e93af687babda79db710d866ca7a3050ddab0a witness-alt/producer.json -1e83bd2e2dc7fbdfccbade66c0210b5c3197d80f928b218cb251ad1e2730f2eb witness-alt/requests.json -49410d976c42501347ec11f156f1ec0a8ea952c8bc3aa53ac8faa542cc8e2c97 witness-alt/response-v1.cbor -dd4e4ca584af3a8d75bf2a2e981f2c0f962ff59e89da5349e36bf568960d1936 witness-alt/response-v2.cbor -ba0b6ee6b0901d28649c20380bef320eab10132e2c5e3abe45b339ddbdedb039 witness-alt/responses.json -87cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112 witness-alt/shard-configs/00.cbor -a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34 witness-alt/shard-configs/01.cbor -3f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d witness-alt/shard-configs/10.cbor -866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582 witness-alt/shard-configs/11.cbor -a2909914b7a076efbeb839650f273ade6802f236970461c5dcb19dcbdd204446 witness-alt/trust-base.cbor -af7091bb7bf478f4f1773910067c4574e0c5b94704767112e9a54bd50171bdef witness-alt/ucs/00.cbor -8a120a7a0bfe7aec134097dd63311a3c54584e797f6a362f618ada393bcf03cc witness-alt/ucs/01.cbor -d28ffeba13ef3e925f2d150899d73a4164e7046313b16a3ce27c32d9f9dcea8b witness-alt/ucs/10.cbor -b7023b388fda09c78b4b93720f7cdf10750ef72fb72943348543ac2c6d8cf458 witness-alt/ucs/11.cbor +55edff72db1f7303f63dfb91299798f219de1be999dd15fd4144b3deea624c98 witness-alt/requests.json +251982db5eea788255de50c70986f6c207aec35d28675b195a89cfd64bd20532 witness-alt/response-v1.cbor +d1863ca4d07e1705c6e15a65f2cb5f8780c8ef27b27f9377a8032d3b45db0a6a witness-alt/response-v2.cbor +bcc2b47c96942334890d2671bcdbea3263b1922b855828fe8906252e1e62bcc7 witness-alt/responses.json +e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373 witness-alt/shard-configs/00.cbor +9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f witness-alt/shard-configs/01.cbor +f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d2 witness-alt/shard-configs/10.cbor +72b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631 witness-alt/shard-configs/11.cbor +00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 witness-alt/trust-base.cbor +40200cad194f94be27a868d94f9424245ee7fd3c2e9cd314ca1a64f781c8aac4 witness-alt/ucs/00.cbor +2931a509638d90980b683e326cd6c188c87a74fdfb3ad6c6f16b132783324860 witness-alt/ucs/01.cbor +d7d1142aa7db3ad8f5c782524cf12870ece2f3544951907689709f6d7584f2a0 witness-alt/ucs/10.cbor +e78d08895bb88474e9fb0a463805798fbc23cf89d596d63ffe6feea5e2268793 witness-alt/ucs/11.cbor diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/context.json b/src/test/resources/shared/uc-consolidation/v1/large-values/context.json index 8cbae46a..6d38dfea 100644 --- a/src/test/resources/shared/uc-consolidation/v1/large-values/context.json +++ b/src/test/resources/shared/uc-consolidation/v1/large-values/context.json @@ -1,6 +1,6 @@ { "corpusVersion": 1, - "networkId": 2, + "networkId": 3, "partitionId": 7, "shards": [ "0", @@ -10,12 +10,12 @@ { "shard": "0", "file": "shard-configs/0.cbor", - "hash": "0a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414" + "hash": "8fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351ab" }, { "shard": "1", "file": "shard-configs/1.cbor", - "hash": "132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0dd" + "hash": "658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749c" } ], "master": "1", diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/expected.json b/src/test/resources/shared/uc-consolidation/v1/large-values/expected.json index 415009e8..98a50001 100644 --- a/src/test/resources/shared/uc-consolidation/v1/large-values/expected.json +++ b/src/test/resources/shared/uc-consolidation/v1/large-values/expected.json @@ -15,41 +15,41 @@ { "shard": "1", "stateRoot": "71f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac", - "ucSha256": "3df966237832ea5b9064327725afb6a9979a97bd867fdb81b33a0631613898af", + "ucSha256": "b114da02e5806caa5d174e7c8d26083cd5683f9a0e645e85756f70a783a8e7d3", "proofSha256": [ - "7fb4c477422b74186fd95f10bd231a4992d5f2f9413a09449e939d5153076565", - "99027b86d7cb597c3f0d884811c3906d0b36f54b27cd2183ec1d31ef815cb616", - "3ea4a3b4d38642f1a1172fc3a078ab8aab0b2553e27709ec50689d559ec7fe51" + "81d457cc6efea2a17230be90f935d78e4212194e9d267d406050503ae0c5969c", + "483d610303e47dc7d937a85cab693b47a328b7e8113c1abb0b706917b756ce7d", + "5230021da6ef1af1b0e2c5773c511690e59ae5e9afe3e11941f7c74d586af0d0" ] }, { "shard": "0", "stateRoot": "87ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3", - "ucSha256": "010362ab881b920e331ea1e1cafae7383b8795af286eed1a4c519bb9230edb3c", + "ucSha256": "3c682ceb7ed209e097f0a59f97d9a5510673b5d17789a3facf1b617a77f127d9", "proofSha256": [ - "a4517f93f9f23d572eb9e80d034a78dd7f36892483b5caea080f99c36ba1bed3", - "93d73c4fbb503c9991c52717265a29fc5c38a527d79ecbe3c564823179518c58", - "3058fc84263372ae3f339b0b066e378a5c1c0d50588cbbf61748df2f858d6a92" + "d87532e3b8940b0b73ccacd598debaa8809bbd3cbf3cf837f4957db697b57f29", + "8522eb33a69f0943364706ee9fe2982514b5efbcc4464850cda0bc2c6fd4f796", + "ff45a405f6109ba690d813479a60c7812edac26b09d113147fd659f0d900cbd8" ] } ], "bundle": [ { "shard": "1", - "uc": "d998598701d9985a8a010300582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000c8f600f6582084fd50647a88edf4a4d058c29edebe7e42b0347951e1ec22ab239ac77a09c0365820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c08158203ffa8b59cad65673582f3c6648dfbd81faa968e42d654ee33a258d2a153f0422d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011b100000000000012c58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbd5820c1708e0f4d9fcde29ed34cc57063551d40483c117a2ddb61db85d85346cc54d1a366726f6f742d315841d9e0285d9045bfb8e805013e3370a8357a9648ea2568ebd19b6a4630baae9c2762d51a73fd5c2accbcfabc4b9a501b18d14595cb53a21b5c31c8351559f8879f0166726f6f742d325841a420571087c5eaa418e7ce1c81b3ccfdbaadf11c64cbd6aeb6a596d58b369af7473cd9cde1240ebd7ee347d314f1e78ed6fe24e560683fcf6edeb6b530b44b370166726f6f742d335841938ee310ae4798b0bbd29a6b700aa15494b9a895dda32211059f5c0d278ba69f53d4f9e16f810706b4c0ba26ed5b42c62d842dd25854883f41b3801fed7f2d0a01", + "uc": "d998598701d9985a8a010300582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000c8f600f6582084fd50647a88edf4a4d058c29edebe7e42b0347951e1ec22ab239ac77a09c0365820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d0486623bd24badd3238dff7aee2d9b092442446826054f8c0e95ff40efe5ec9d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011b100000000000012c58201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cf582010724df7f207de116e247adee6f2bc14df428cb6325cc4e1a7501cdc1a7a3a66a366726f6f742d3158414b0c93eff59de9a6205d448c44b5395854fdf2ec042f9a709be29a3c15941a171aaae650f5cd145f513402df40944f586608f26d2f77fa982d2f778f235b39750166726f6f742d325841bf25520c421e3a6a9ef0eaea9d8b3333f082293686abff685e7363a2dd3e367a222263f8d230dd375cb20b5412dc533c60c10bc1d7a15066ed5df59145088d480066726f6f742d3358419fd97b37c2ce59a8a7facbb266648b53e5c758a195471cf1c27a801a2dd81b634ec72cee78a47c896c19d4f65acdeb2be4a84e9b0960306bdbc4cb541be0a40e00", "proofs": [ - "8203d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b1582043041e22ffd69e41d5b3ccfcb0008559cf2c85717e975f527e0c43d6e4d07cd95820e59b40c696e169684c72ae23e2badca1171cba66e330ec4fd6ebad2ecd0e81aff658411248f43a33d1486cd5575f80e5316059de02f2e638f5b0082f8dc77fdc8cdd84de36255481003bf7c372cfa621a02ff33f60f1369cbb35b0c0b7dc016720fa111b1a6734a7805860280000000000000000000000000000000000000000000000000000000000000089b8acccbcebad6d509ea180c65b8bd16110ca0ad3bd67f8e6bf1d2da23da508a093dade5a76b23f97daf8965bfa2073eae0ec5c2088ec88c7847e0efb33a434d998598701d9985a8a010300582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000c8f600f6582084fd50647a88edf4a4d058c29edebe7e42b0347951e1ec22ab239ac77a09c0365820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c08158203ffa8b59cad65673582f3c6648dfbd81faa968e42d654ee33a258d2a153f0422d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011b100000000000012c58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbd5820c1708e0f4d9fcde29ed34cc57063551d40483c117a2ddb61db85d85346cc54d1a366726f6f742d315841d9e0285d9045bfb8e805013e3370a8357a9648ea2568ebd19b6a4630baae9c2762d51a73fd5c2accbcfabc4b9a501b18d14595cb53a21b5c31c8351559f8879f0166726f6f742d325841a420571087c5eaa418e7ce1c81b3ccfdbaadf11c64cbd6aeb6a596d58b369af7473cd9cde1240ebd7ee347d314f1e78ed6fe24e560683fcf6edeb6b530b44b370166726f6f742d335841938ee310ae4798b0bbd29a6b700aa15494b9a895dda32211059f5c0d278ba69f53d4f9e16f810706b4c0ba26ed5b42c62d842dd25854883f41b3801fed7f2d0a01", - "8203d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203b8c6bdd1952e2fbd30c15bf077f7466ded5ca4107826565d001049e2f9505e158202b078a8e25eb410eed7ba509aa7c3883bfdeb9ebbad1e55803c8eaf2c49c848ff658412555f56d1ff1d151bc4141739cc692d6e5339615a8dfd723f779f018bc5d1d0a6552e5dd0605ab263cdd46470c585140c71fef2a675c39772d61cc4dc59ec4321b1b100000000000006458402000000000000000000000000000000000000000000000000000000000000000bf2425fda709f94f8329726add39010524f98d7e72e3518e1a16bb7f10f93c61d998598701d9985a8a010300582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000c8f600f6582084fd50647a88edf4a4d058c29edebe7e42b0347951e1ec22ab239ac77a09c0365820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c08158203ffa8b59cad65673582f3c6648dfbd81faa968e42d654ee33a258d2a153f0422d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011b100000000000012c58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbd5820c1708e0f4d9fcde29ed34cc57063551d40483c117a2ddb61db85d85346cc54d1a366726f6f742d315841d9e0285d9045bfb8e805013e3370a8357a9648ea2568ebd19b6a4630baae9c2762d51a73fd5c2accbcfabc4b9a501b18d14595cb53a21b5c31c8351559f8879f0166726f6f742d325841a420571087c5eaa418e7ce1c81b3ccfdbaadf11c64cbd6aeb6a596d58b369af7473cd9cde1240ebd7ee347d314f1e78ed6fe24e560683fcf6edeb6b530b44b370166726f6f742d335841938ee310ae4798b0bbd29a6b700aa15494b9a895dda32211059f5c0d278ba69f53d4f9e16f810706b4c0ba26ed5b42c62d842dd25854883f41b3801fed7f2d0a01", - "8203d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203ed68efcfeb35aa094a18a34554fa7bdbde2131101a65d48da4e19fab524e80e5820fb3cb4d9a69f9ef95d7d025d24c7c5600ab10f2e5b182aa64693c21c0b5e9c13f658418859a17653d14da465451ebd866f67c5724a6c40933b506bc2ae06482389e91daa47c07a03cbfe9f72f26e0fdfb08135dd8844a60aefb123edce3e80533a49051b1b10000000000000645860280000000000000000000000000000000000000000000000000000000000000089b8acccbcebad6d509ea180c65b8bd16110ca0ad3bd67f8e6bf1d2da23da508b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27fd998598701d9985a8a010300582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000c8f600f6582084fd50647a88edf4a4d058c29edebe7e42b0347951e1ec22ab239ac77a09c0365820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c08158203ffa8b59cad65673582f3c6648dfbd81faa968e42d654ee33a258d2a153f0422d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011b100000000000012c58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbd5820c1708e0f4d9fcde29ed34cc57063551d40483c117a2ddb61db85d85346cc54d1a366726f6f742d315841d9e0285d9045bfb8e805013e3370a8357a9648ea2568ebd19b6a4630baae9c2762d51a73fd5c2accbcfabc4b9a501b18d14595cb53a21b5c31c8351559f8879f0166726f6f742d325841a420571087c5eaa418e7ce1c81b3ccfdbaadf11c64cbd6aeb6a596d58b369af7473cd9cde1240ebd7ee347d314f1e78ed6fe24e560683fcf6edeb6b530b44b370166726f6f742d335841938ee310ae4798b0bbd29a6b700aa15494b9a895dda32211059f5c0d278ba69f53d4f9e16f810706b4c0ba26ed5b42c62d842dd25854883f41b3801fed7f2d0a01" + "8203d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b1582043041e22ffd69e41d5b3ccfcb0008559cf2c85717e975f527e0c43d6e4d07cd95820e59b40c696e169684c72ae23e2badca1171cba66e330ec4fd6ebad2ecd0e81aff658411248f43a33d1486cd5575f80e5316059de02f2e638f5b0082f8dc77fdc8cdd84de36255481003bf7c372cfa621a02ff33f60f1369cbb35b0c0b7dc016720fa111b1a6734a7805860280000000000000000000000000000000000000000000000000000000000000089b8acccbcebad6d509ea180c65b8bd16110ca0ad3bd67f8e6bf1d2da23da508a093dade5a76b23f97daf8965bfa2073eae0ec5c2088ec88c7847e0efb33a434d998598701d9985a8a010300582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000c8f600f6582084fd50647a88edf4a4d058c29edebe7e42b0347951e1ec22ab239ac77a09c0365820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d0486623bd24badd3238dff7aee2d9b092442446826054f8c0e95ff40efe5ec9d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011b100000000000012c58201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cf582010724df7f207de116e247adee6f2bc14df428cb6325cc4e1a7501cdc1a7a3a66a366726f6f742d3158414b0c93eff59de9a6205d448c44b5395854fdf2ec042f9a709be29a3c15941a171aaae650f5cd145f513402df40944f586608f26d2f77fa982d2f778f235b39750166726f6f742d325841bf25520c421e3a6a9ef0eaea9d8b3333f082293686abff685e7363a2dd3e367a222263f8d230dd375cb20b5412dc533c60c10bc1d7a15066ed5df59145088d480066726f6f742d3358419fd97b37c2ce59a8a7facbb266648b53e5c758a195471cf1c27a801a2dd81b634ec72cee78a47c896c19d4f65acdeb2be4a84e9b0960306bdbc4cb541be0a40e00", + "8203d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203b8c6bdd1952e2fbd30c15bf077f7466ded5ca4107826565d001049e2f9505e158202b078a8e25eb410eed7ba509aa7c3883bfdeb9ebbad1e55803c8eaf2c49c848ff658412555f56d1ff1d151bc4141739cc692d6e5339615a8dfd723f779f018bc5d1d0a6552e5dd0605ab263cdd46470c585140c71fef2a675c39772d61cc4dc59ec4321b1b100000000000006458402000000000000000000000000000000000000000000000000000000000000000bf2425fda709f94f8329726add39010524f98d7e72e3518e1a16bb7f10f93c61d998598701d9985a8a010300582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000c8f600f6582084fd50647a88edf4a4d058c29edebe7e42b0347951e1ec22ab239ac77a09c0365820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d0486623bd24badd3238dff7aee2d9b092442446826054f8c0e95ff40efe5ec9d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011b100000000000012c58201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cf582010724df7f207de116e247adee6f2bc14df428cb6325cc4e1a7501cdc1a7a3a66a366726f6f742d3158414b0c93eff59de9a6205d448c44b5395854fdf2ec042f9a709be29a3c15941a171aaae650f5cd145f513402df40944f586608f26d2f77fa982d2f778f235b39750166726f6f742d325841bf25520c421e3a6a9ef0eaea9d8b3333f082293686abff685e7363a2dd3e367a222263f8d230dd375cb20b5412dc533c60c10bc1d7a15066ed5df59145088d480066726f6f742d3358419fd97b37c2ce59a8a7facbb266648b53e5c758a195471cf1c27a801a2dd81b634ec72cee78a47c896c19d4f65acdeb2be4a84e9b0960306bdbc4cb541be0a40e00", + "8203d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203ed68efcfeb35aa094a18a34554fa7bdbde2131101a65d48da4e19fab524e80e5820fb3cb4d9a69f9ef95d7d025d24c7c5600ab10f2e5b182aa64693c21c0b5e9c13f658418859a17653d14da465451ebd866f67c5724a6c40933b506bc2ae06482389e91daa47c07a03cbfe9f72f26e0fdfb08135dd8844a60aefb123edce3e80533a49051b1b10000000000000645860280000000000000000000000000000000000000000000000000000000000000089b8acccbcebad6d509ea180c65b8bd16110ca0ad3bd67f8e6bf1d2da23da508b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27fd998598701d9985a8a010300582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000c8f600f6582084fd50647a88edf4a4d058c29edebe7e42b0347951e1ec22ab239ac77a09c0365820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d0486623bd24badd3238dff7aee2d9b092442446826054f8c0e95ff40efe5ec9d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011b100000000000012c58201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cf582010724df7f207de116e247adee6f2bc14df428cb6325cc4e1a7501cdc1a7a3a66a366726f6f742d3158414b0c93eff59de9a6205d448c44b5395854fdf2ec042f9a709be29a3c15941a171aaae650f5cd145f513402df40944f586608f26d2f77fa982d2f778f235b39750166726f6f742d325841bf25520c421e3a6a9ef0eaea9d8b3333f082293686abff685e7363a2dd3e367a222263f8d230dd375cb20b5412dc533c60c10bc1d7a15066ed5df59145088d480066726f6f742d3358419fd97b37c2ce59a8a7facbb266648b53e5c758a195471cf1c27a801a2dd81b634ec72cee78a47c896c19d4f65acdeb2be4a84e9b0960306bdbc4cb541be0a40e00" ] }, { "shard": "0", - "uc": "d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b830141408158202f12d0578a6ecd8a1cb7799f2ad694bbd0fe9f9298f9481e1014cc343ff9290fd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011b100000000000012c58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbd5820c1708e0f4d9fcde29ed34cc57063551d40483c117a2ddb61db85d85346cc54d1a366726f6f742d315841d9e0285d9045bfb8e805013e3370a8357a9648ea2568ebd19b6a4630baae9c2762d51a73fd5c2accbcfabc4b9a501b18d14595cb53a21b5c31c8351559f8879f0166726f6f742d325841a420571087c5eaa418e7ce1c81b3ccfdbaadf11c64cbd6aeb6a596d58b369af7473cd9cde1240ebd7ee347d314f1e78ed6fe24e560683fcf6edeb6b530b44b370166726f6f742d335841938ee310ae4798b0bbd29a6b700aa15494b9a895dda32211059f5c0d278ba69f53d4f9e16f810706b4c0ba26ed5b42c62d842dd25854883f41b3801fed7f2d0a01", + "uc": "d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b830141408158201baa2a3a792981620cd948bb396481879c93c4a89e373d7d4133984792346323d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011b100000000000012c58201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cf582010724df7f207de116e247adee6f2bc14df428cb6325cc4e1a7501cdc1a7a3a66a366726f6f742d3158414b0c93eff59de9a6205d448c44b5395854fdf2ec042f9a709be29a3c15941a171aaae650f5cd145f513402df40944f586608f26d2f77fa982d2f778f235b39750166726f6f742d325841bf25520c421e3a6a9ef0eaea9d8b3333f082293686abff685e7363a2dd3e367a222263f8d230dd375cb20b5412dc533c60c10bc1d7a15066ed5df59145088d480066726f6f742d3358419fd97b37c2ce59a8a7facbb266648b53e5c758a195471cf1c27a801a2dd81b634ec72cee78a47c896c19d4f65acdeb2be4a84e9b0960306bdbc4cb541be0a40e00", "proofs": [ - "8202d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058201caf562d4c459a96fa9bd1f5f82eef15c35459b34febae88956bdacca03c956f58205c1f448d08d96bd9b39be6c19106be7aff2b997ea596511c35ee5866cd502356f65841b0fdd1de18c29e9e3acfbe0757f34258fa367fbb1f908480e21dfedf504ba343289182740f7c78068753c08bd7e15f4c71c7380937bd99eb184a3083f75c2e141b1a6734a780586060000000000000000000000000000000000000000000000000000000000000000fd1a76d36be3d3f3d35b29f2b3a015d052e46dc7b6672703e4fa0d8abb9e30439ab188fc45f8c4b177d36cc258ec0b645feb0d29f8a5ee7dcaa21913bba64f3d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b830141408158202f12d0578a6ecd8a1cb7799f2ad694bbd0fe9f9298f9481e1014cc343ff9290fd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011b100000000000012c58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbd5820c1708e0f4d9fcde29ed34cc57063551d40483c117a2ddb61db85d85346cc54d1a366726f6f742d315841d9e0285d9045bfb8e805013e3370a8357a9648ea2568ebd19b6a4630baae9c2762d51a73fd5c2accbcfabc4b9a501b18d14595cb53a21b5c31c8351559f8879f0166726f6f742d325841a420571087c5eaa418e7ce1c81b3ccfdbaadf11c64cbd6aeb6a596d58b369af7473cd9cde1240ebd7ee347d314f1e78ed6fe24e560683fcf6edeb6b530b44b370166726f6f742d335841938ee310ae4798b0bbd29a6b700aa15494b9a895dda32211059f5c0d278ba69f53d4f9e16f810706b4c0ba26ed5b42c62d842dd25854883f41b3801fed7f2d0a01", - "8202d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f6542705820f1c761dd1edc7ba0250ea61a9d56331e3b0c8cc64e05f26a5122d38790cabcd45820164342e395890e0539b957e1f9f7229a88346142bf8aa9cc6d62d873bc0453e0f65841dceb80940029506f5b87568d2f04769e3f7042b2ebef2e4f90e897824cedf6888576f6f98b521f6521609cac0467c24e8837cdacedaa7331b7932c6bc5cd89031b1a6734a78058404000000000000000000000000000000000000000000000000000000000000000e425d492a68671916d9a51baf778c120449860ec1948a3dae9928ef155c594d2d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b830141408158202f12d0578a6ecd8a1cb7799f2ad694bbd0fe9f9298f9481e1014cc343ff9290fd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011b100000000000012c58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbd5820c1708e0f4d9fcde29ed34cc57063551d40483c117a2ddb61db85d85346cc54d1a366726f6f742d315841d9e0285d9045bfb8e805013e3370a8357a9648ea2568ebd19b6a4630baae9c2762d51a73fd5c2accbcfabc4b9a501b18d14595cb53a21b5c31c8351559f8879f0166726f6f742d325841a420571087c5eaa418e7ce1c81b3ccfdbaadf11c64cbd6aeb6a596d58b369af7473cd9cde1240ebd7ee347d314f1e78ed6fe24e560683fcf6edeb6b530b44b370166726f6f742d335841938ee310ae4798b0bbd29a6b700aa15494b9a895dda32211059f5c0d278ba69f53d4f9e16f810706b4c0ba26ed5b42c62d842dd25854883f41b3801fed7f2d0a01", - "8202d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058202e61a8acebbea3aa960d93123f8e88d743ee31652fa8191affd29d79b62c973f58204c308965ac50122a8407ecf7944c577eca20c0a1f9590a7146e1aaa8e5ae6672f658411eddbbe23620fa959af42eeb731305e06d64c7a69178d40c8d9a1019fb62a1a5da8edc420b5e9a34557e96879d0113287dda1bbfe62f161fe8b70c2185af4c941b1b1000000000000064586060000000000000000000000000000000000000000000000000000000000000000fd1a76d36be3d3f3d35b29f2b3a015d052e46dc7b6672703e4fa0d8abb9e304104f6c476a3a1ff0e432e59627f6fcadbdf42e403b18080052ea9d210228f164d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b830141408158202f12d0578a6ecd8a1cb7799f2ad694bbd0fe9f9298f9481e1014cc343ff9290fd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011b100000000000012c58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbd5820c1708e0f4d9fcde29ed34cc57063551d40483c117a2ddb61db85d85346cc54d1a366726f6f742d315841d9e0285d9045bfb8e805013e3370a8357a9648ea2568ebd19b6a4630baae9c2762d51a73fd5c2accbcfabc4b9a501b18d14595cb53a21b5c31c8351559f8879f0166726f6f742d325841a420571087c5eaa418e7ce1c81b3ccfdbaadf11c64cbd6aeb6a596d58b369af7473cd9cde1240ebd7ee347d314f1e78ed6fe24e560683fcf6edeb6b530b44b370166726f6f742d335841938ee310ae4798b0bbd29a6b700aa15494b9a895dda32211059f5c0d278ba69f53d4f9e16f810706b4c0ba26ed5b42c62d842dd25854883f41b3801fed7f2d0a01" + "8202d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058201caf562d4c459a96fa9bd1f5f82eef15c35459b34febae88956bdacca03c956f58205c1f448d08d96bd9b39be6c19106be7aff2b997ea596511c35ee5866cd502356f65841b0fdd1de18c29e9e3acfbe0757f34258fa367fbb1f908480e21dfedf504ba343289182740f7c78068753c08bd7e15f4c71c7380937bd99eb184a3083f75c2e141b1a6734a780586060000000000000000000000000000000000000000000000000000000000000000fd1a76d36be3d3f3d35b29f2b3a015d052e46dc7b6672703e4fa0d8abb9e30439ab188fc45f8c4b177d36cc258ec0b645feb0d29f8a5ee7dcaa21913bba64f3d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b830141408158201baa2a3a792981620cd948bb396481879c93c4a89e373d7d4133984792346323d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011b100000000000012c58201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cf582010724df7f207de116e247adee6f2bc14df428cb6325cc4e1a7501cdc1a7a3a66a366726f6f742d3158414b0c93eff59de9a6205d448c44b5395854fdf2ec042f9a709be29a3c15941a171aaae650f5cd145f513402df40944f586608f26d2f77fa982d2f778f235b39750166726f6f742d325841bf25520c421e3a6a9ef0eaea9d8b3333f082293686abff685e7363a2dd3e367a222263f8d230dd375cb20b5412dc533c60c10bc1d7a15066ed5df59145088d480066726f6f742d3358419fd97b37c2ce59a8a7facbb266648b53e5c758a195471cf1c27a801a2dd81b634ec72cee78a47c896c19d4f65acdeb2be4a84e9b0960306bdbc4cb541be0a40e00", + "8202d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f6542705820f1c761dd1edc7ba0250ea61a9d56331e3b0c8cc64e05f26a5122d38790cabcd45820164342e395890e0539b957e1f9f7229a88346142bf8aa9cc6d62d873bc0453e0f65841dceb80940029506f5b87568d2f04769e3f7042b2ebef2e4f90e897824cedf6888576f6f98b521f6521609cac0467c24e8837cdacedaa7331b7932c6bc5cd89031b1a6734a78058404000000000000000000000000000000000000000000000000000000000000000e425d492a68671916d9a51baf778c120449860ec1948a3dae9928ef155c594d2d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b830141408158201baa2a3a792981620cd948bb396481879c93c4a89e373d7d4133984792346323d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011b100000000000012c58201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cf582010724df7f207de116e247adee6f2bc14df428cb6325cc4e1a7501cdc1a7a3a66a366726f6f742d3158414b0c93eff59de9a6205d448c44b5395854fdf2ec042f9a709be29a3c15941a171aaae650f5cd145f513402df40944f586608f26d2f77fa982d2f778f235b39750166726f6f742d325841bf25520c421e3a6a9ef0eaea9d8b3333f082293686abff685e7363a2dd3e367a222263f8d230dd375cb20b5412dc533c60c10bc1d7a15066ed5df59145088d480066726f6f742d3358419fd97b37c2ce59a8a7facbb266648b53e5c758a195471cf1c27a801a2dd81b634ec72cee78a47c896c19d4f65acdeb2be4a84e9b0960306bdbc4cb541be0a40e00", + "8202d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058202e61a8acebbea3aa960d93123f8e88d743ee31652fa8191affd29d79b62c973f58204c308965ac50122a8407ecf7944c577eca20c0a1f9590a7146e1aaa8e5ae6672f658411eddbbe23620fa959af42eeb731305e06d64c7a69178d40c8d9a1019fb62a1a5da8edc420b5e9a34557e96879d0113287dda1bbfe62f161fe8b70c2185af4c941b1b1000000000000064586060000000000000000000000000000000000000000000000000000000000000000fd1a76d36be3d3f3d35b29f2b3a015d052e46dc7b6672703e4fa0d8abb9e304104f6c476a3a1ff0e432e59627f6fcadbdf42e403b18080052ea9d210228f164d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b830141408158201baa2a3a792981620cd948bb396481879c93c4a89e373d7d4133984792346323d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011b100000000000012c58201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cf582010724df7f207de116e247adee6f2bc14df428cb6325cc4e1a7501cdc1a7a3a66a366726f6f742d3158414b0c93eff59de9a6205d448c44b5395854fdf2ec042f9a709be29a3c15941a171aaae650f5cd145f513402df40944f586608f26d2f77fa982d2f778f235b39750166726f6f742d325841bf25520c421e3a6a9ef0eaea9d8b3333f082293686abff685e7363a2dd3e367a222263f8d230dd375cb20b5412dc533c60c10bc1d7a15066ed5df59145088d480066726f6f742d3358419fd97b37c2ce59a8a7facbb266648b53e5c758a195471cf1c27a801a2dd81b634ec72cee78a47c896c19d4f65acdeb2be4a84e9b0960306bdbc4cb541be0a40e00" ] } ] diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/large-values/partition-view.cbor index db6449e0bcb365c3d2d39d13cf2bfc0996edf7f0..519480d7ccec8b33954938f8e225e548a0b12fd5 100644 GIT binary patch delta 75 zcmV-R0JQ(>0_y^htRRorm*iXVn+-w}6_D1QS&M!_4t0_y^htRM=A+C;NUGXEk~QR<4NofjU>``MX%nW4nZ%Wx5@gcOm?e;^Yk hN6hzPu;=v0=Fd@ZFXhCQ<+Z diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/requests.json b/src/test/resources/shared/uc-consolidation/v1/large-values/requests.json index e7c45270..3bdebed8 100644 --- a/src/test/resources/shared/uc-consolidation/v1/large-values/requests.json +++ b/src/test/resources/shared/uc-consolidation/v1/large-values/requests.json @@ -20,27 +20,27 @@ "evidence": [ { "request": "d99876840158209a33fec7d17a8fe9a21ef4b264e1d5431fbc0676f65d3214ab3f9365950e82cdd998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b1582043041e22ffd69e41d5b3ccfcb0008559cf2c85717e975f527e0c43d6e4d07cd95820e59b40c696e169684c72ae23e2badca1171cba66e330ec4fd6ebad2ecd0e81aff658411248f43a33d1486cd5575f80e5316059de02f2e638f5b0082f8dc77fdc8cdd84de36255481003bf7c372cfa621a02ff33f60f1369cbb35b0c0b7dc016720fa111b00", - "proof": "8201d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b1582043041e22ffd69e41d5b3ccfcb0008559cf2c85717e975f527e0c43d6e4d07cd95820e59b40c696e169684c72ae23e2badca1171cba66e330ec4fd6ebad2ecd0e81aff658411248f43a33d1486cd5575f80e5316059de02f2e638f5b0082f8dc77fdc8cdd84de36255481003bf7c372cfa621a02ff33f60f1369cbb35b0c0b7dc016720fa111b1a6734a78058200000000000000000000000000000000000000000000000000000000000000000d998598701d9985a8a010100f65820b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27f401a6734a78058208bfb7d9db5a2b8bc3762fe8915e91b3c15a929d13c979d5f827460ede05f30ff1b8000000000000001f65820bcf7fd238bd29137145f9d5fa3db7f6534e8b0512fd9bec5e5b6adc55c7fa50a5820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c08158208dffeddcb0a6e017941adf25959e8b14aca0d3d022ed79b705f489ad7c7698abd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010205011b10000000000000645820515bed557eeff1454a5da983baeeec20dc750b56a2165cc90be7514f4cb416c55820f739853404e96cc75928797c981e14fb1036bfc08f26bd32393a393fea0414eea366726f6f742d3158419c2d1632c5f3d55289a02f66c964414216b269bb0de6f308db03db19db18558721dbe44f8dfe443039dfa46ef7f5a0eccafd8094e5b90e650d17f5cad101bfda0066726f6f742d3258416ae963fbf2f04676c56b336dd693dddcd790f97678c43e98dc63fcc309844ad25c9b41561d143b14597616696fb47556a2576a8d2bf1c8befd153cb96ed915990066726f6f742d335841c4e489b85381f76e7596c82c4f590163cdb4b90df87da64ee1018659eadd9a66283497851346e5cff72564826c797f8ccf6f30b1e5eb9b254eff771c86cd99e501" + "proof": "8201d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b1582043041e22ffd69e41d5b3ccfcb0008559cf2c85717e975f527e0c43d6e4d07cd95820e59b40c696e169684c72ae23e2badca1171cba66e330ec4fd6ebad2ecd0e81aff658411248f43a33d1486cd5575f80e5316059de02f2e638f5b0082f8dc77fdc8cdd84de36255481003bf7c372cfa621a02ff33f60f1369cbb35b0c0b7dc016720fa111b1a6734a78058200000000000000000000000000000000000000000000000000000000000000000d998598701d9985a8a010100f65820b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27f401a6734a78058208bfb7d9db5a2b8bc3762fe8915e91b3c15a929d13c979d5f827460ede05f30ff1b8000000000000001f65820bcf7fd238bd29137145f9d5fa3db7f6534e8b0512fd9bec5e5b6adc55c7fa50a5820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c08158200c8f3ae487a85b5fea593a59f142126579ac7f18ca1b743fbb7bec12c519ad40d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010305011b10000000000000645820cb2efa8e59e92205186334e789a517a313b5d4e1cfada7926e5b26a05508fc7c582012d181564c456d03516be7090e15efaa5cbdd9204452188b82a8df4b4cff3ad3a366726f6f742d315841cd29f3b82d445d07dc43e6e499bdba2ff791f40022fc068ad881fe70005923454a18152c5e5acca1980fa865b38a6cf4dd5e0ae745546abad494ab9ce0a2ee140066726f6f742d3258411651a89c8df937776b2e90752c5cba8e1d8ee3adede9bffb2a78344f1cf074d752b8962a825c165d4ef6514abc2d77668403534a2e03966e0c820793f7672c690166726f6f742d335841038ce8ff91f9afd9a4bfed1b5d748d91713262bd97bda62072c3758ae980054663dc705743626c290d02ec182eda360232ce253610e3d41941712c896cc8d6e800" }, { "request": "d99876840158202c981fbc5b1a92abc9dfeec5a880b10b6d1d42b2bab2c496f853630d9d4e80ebd998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058201caf562d4c459a96fa9bd1f5f82eef15c35459b34febae88956bdacca03c956f58205c1f448d08d96bd9b39be6c19106be7aff2b997ea596511c35ee5866cd502356f65841b0fdd1de18c29e9e3acfbe0757f34258fa367fbb1f908480e21dfedf504ba343289182740f7c78068753c08bd7e15f4c71c7380937bd99eb184a3083f75c2e141b00", - "proof": "8201d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058201caf562d4c459a96fa9bd1f5f82eef15c35459b34febae88956bdacca03c956f58205c1f448d08d96bd9b39be6c19106be7aff2b997ea596511c35ee5866cd502356f65841b0fdd1de18c29e9e3acfbe0757f34258fa367fbb1f908480e21dfedf504ba343289182740f7c78068753c08bd7e15f4c71c7380937bd99eb184a3083f75c2e141b1a6734a780584040000000000000000000000000000000000000000000000000000000000000000fd1a76d36be3d3f3d35b29f2b3a015d052e46dc7b6672703e4fa0d8abb9e304d998598701d9985a8a010100f6582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720401a6734a7805820acda249b426a09b80de20961a01f4ff664be1bae364886219b75ec54e4d200501b8000000000000000f658208713ea36f2945d680fdb1c4163dbf240fd8c1e4e0054dd80a12f780cc73ab8fa58200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b830141408158201015542f6bff4e7671d490260e4c41f130b0d5333361c45cfb5bbdfc3554d8f4d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010205011b10000000000000645820515bed557eeff1454a5da983baeeec20dc750b56a2165cc90be7514f4cb416c55820f739853404e96cc75928797c981e14fb1036bfc08f26bd32393a393fea0414eea366726f6f742d3158419c2d1632c5f3d55289a02f66c964414216b269bb0de6f308db03db19db18558721dbe44f8dfe443039dfa46ef7f5a0eccafd8094e5b90e650d17f5cad101bfda0066726f6f742d3258416ae963fbf2f04676c56b336dd693dddcd790f97678c43e98dc63fcc309844ad25c9b41561d143b14597616696fb47556a2576a8d2bf1c8befd153cb96ed915990066726f6f742d335841c4e489b85381f76e7596c82c4f590163cdb4b90df87da64ee1018659eadd9a66283497851346e5cff72564826c797f8ccf6f30b1e5eb9b254eff771c86cd99e501" + "proof": "8201d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058201caf562d4c459a96fa9bd1f5f82eef15c35459b34febae88956bdacca03c956f58205c1f448d08d96bd9b39be6c19106be7aff2b997ea596511c35ee5866cd502356f65841b0fdd1de18c29e9e3acfbe0757f34258fa367fbb1f908480e21dfedf504ba343289182740f7c78068753c08bd7e15f4c71c7380937bd99eb184a3083f75c2e141b1a6734a780584040000000000000000000000000000000000000000000000000000000000000000fd1a76d36be3d3f3d35b29f2b3a015d052e46dc7b6672703e4fa0d8abb9e304d998598701d9985a8a010100f6582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720401a6734a7805820acda249b426a09b80de20961a01f4ff664be1bae364886219b75ec54e4d200501b8000000000000000f658208713ea36f2945d680fdb1c4163dbf240fd8c1e4e0054dd80a12f780cc73ab8fa58208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b8301414081582019542b07362a3d83af5f25a8d6dd1e5db68267cdc7eea8733ea48d601821dd0fd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010305011b10000000000000645820cb2efa8e59e92205186334e789a517a313b5d4e1cfada7926e5b26a05508fc7c582012d181564c456d03516be7090e15efaa5cbdd9204452188b82a8df4b4cff3ad3a366726f6f742d315841cd29f3b82d445d07dc43e6e499bdba2ff791f40022fc068ad881fe70005923454a18152c5e5acca1980fa865b38a6cf4dd5e0ae745546abad494ab9ce0a2ee140066726f6f742d3258411651a89c8df937776b2e90752c5cba8e1d8ee3adede9bffb2a78344f1cf074d752b8962a825c165d4ef6514abc2d77668403534a2e03966e0c820793f7672c690166726f6f742d335841038ce8ff91f9afd9a4bfed1b5d748d91713262bd97bda62072c3758ae980054663dc705743626c290d02ec182eda360232ce253610e3d41941712c896cc8d6e800" }, { "request": "d998768401582073404874874688057560acf0c9382f3ce783b540a2b35feacc2dcc4b383648fbd998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f6542705820f1c761dd1edc7ba0250ea61a9d56331e3b0c8cc64e05f26a5122d38790cabcd45820164342e395890e0539b957e1f9f7229a88346142bf8aa9cc6d62d873bc0453e0f65841dceb80940029506f5b87568d2f04769e3f7042b2ebef2e4f90e897824cedf6888576f6f98b521f6521609cac0467c24e8837cdacedaa7331b7932c6bc5cd89031b00", - "proof": "8201d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f6542705820f1c761dd1edc7ba0250ea61a9d56331e3b0c8cc64e05f26a5122d38790cabcd45820164342e395890e0539b957e1f9f7229a88346142bf8aa9cc6d62d873bc0453e0f65841dceb80940029506f5b87568d2f04769e3f7042b2ebef2e4f90e897824cedf6888576f6f98b521f6521609cac0467c24e8837cdacedaa7331b7932c6bc5cd89031b1a6734a78058404000000000000000000000000000000000000000000000000000000000000000104f6c476a3a1ff0e432e59627f6fcadbdf42e403b18080052ea9d210228f164d998598701d9985a8a010100f6582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720401a6734a7805820acda249b426a09b80de20961a01f4ff664be1bae364886219b75ec54e4d200501b8000000000000000f658208713ea36f2945d680fdb1c4163dbf240fd8c1e4e0054dd80a12f780cc73ab8fa58200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b830141408158201015542f6bff4e7671d490260e4c41f130b0d5333361c45cfb5bbdfc3554d8f4d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010205011b10000000000000645820515bed557eeff1454a5da983baeeec20dc750b56a2165cc90be7514f4cb416c55820f739853404e96cc75928797c981e14fb1036bfc08f26bd32393a393fea0414eea366726f6f742d3158419c2d1632c5f3d55289a02f66c964414216b269bb0de6f308db03db19db18558721dbe44f8dfe443039dfa46ef7f5a0eccafd8094e5b90e650d17f5cad101bfda0066726f6f742d3258416ae963fbf2f04676c56b336dd693dddcd790f97678c43e98dc63fcc309844ad25c9b41561d143b14597616696fb47556a2576a8d2bf1c8befd153cb96ed915990066726f6f742d335841c4e489b85381f76e7596c82c4f590163cdb4b90df87da64ee1018659eadd9a66283497851346e5cff72564826c797f8ccf6f30b1e5eb9b254eff771c86cd99e501" + "proof": "8201d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f6542705820f1c761dd1edc7ba0250ea61a9d56331e3b0c8cc64e05f26a5122d38790cabcd45820164342e395890e0539b957e1f9f7229a88346142bf8aa9cc6d62d873bc0453e0f65841dceb80940029506f5b87568d2f04769e3f7042b2ebef2e4f90e897824cedf6888576f6f98b521f6521609cac0467c24e8837cdacedaa7331b7932c6bc5cd89031b1a6734a78058404000000000000000000000000000000000000000000000000000000000000000104f6c476a3a1ff0e432e59627f6fcadbdf42e403b18080052ea9d210228f164d998598701d9985a8a010100f6582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720401a6734a7805820acda249b426a09b80de20961a01f4ff664be1bae364886219b75ec54e4d200501b8000000000000000f658208713ea36f2945d680fdb1c4163dbf240fd8c1e4e0054dd80a12f780cc73ab8fa58208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b8301414081582019542b07362a3d83af5f25a8d6dd1e5db68267cdc7eea8733ea48d601821dd0fd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010305011b10000000000000645820cb2efa8e59e92205186334e789a517a313b5d4e1cfada7926e5b26a05508fc7c582012d181564c456d03516be7090e15efaa5cbdd9204452188b82a8df4b4cff3ad3a366726f6f742d315841cd29f3b82d445d07dc43e6e499bdba2ff791f40022fc068ad881fe70005923454a18152c5e5acca1980fa865b38a6cf4dd5e0ae745546abad494ab9ce0a2ee140066726f6f742d3258411651a89c8df937776b2e90752c5cba8e1d8ee3adede9bffb2a78344f1cf074d752b8962a825c165d4ef6514abc2d77668403534a2e03966e0c820793f7672c690166726f6f742d335841038ce8ff91f9afd9a4bfed1b5d748d91713262bd97bda62072c3758ae980054663dc705743626c290d02ec182eda360232ce253610e3d41941712c896cc8d6e800" }, { "request": "d9987684015820a5d9482fb3f54cbb1ede2a70ad7aad1fb2e8b013382047a533f7b0ab59d11884d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203b8c6bdd1952e2fbd30c15bf077f7466ded5ca4107826565d001049e2f9505e158202b078a8e25eb410eed7ba509aa7c3883bfdeb9ebbad1e55803c8eaf2c49c848ff658412555f56d1ff1d151bc4141739cc692d6e5339615a8dfd723f779f018bc5d1d0a6552e5dd0605ab263cdd46470c585140c71fef2a675c39772d61cc4dc59ec4321b00", - "proof": "8202d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203b8c6bdd1952e2fbd30c15bf077f7466ded5ca4107826565d001049e2f9505e158202b078a8e25eb410eed7ba509aa7c3883bfdeb9ebbad1e55803c8eaf2c49c848ff658412555f56d1ff1d151bc4141739cc692d6e5339615a8dfd723f779f018bc5d1d0a6552e5dd0605ab263cdd46470c585140c71fef2a675c39772d61cc4dc59ec4321b1b100000000000006458402000000000000000000000000000000000000000000000000000000000000000bf2425fda709f94f8329726add39010524f98d7e72e3518e1a16bb7f10f93c61d998598701d9985a8a0102005820b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27f582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000645820f9c5c57747ee27ed36454475d11614157c483371371d7a74c04562d007ce71911b8000000000000001f6582026667743dc7e949bc7fee91ad254127a9eb2df255f535c06724eeadd450db74c5820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c08158203ffa8b59cad65673582f3c6648dfbd81faa968e42d654ee33a258d2a153f0422d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011b10000000000000c85820f739853404e96cc75928797c981e14fb1036bfc08f26bd32393a393fea0414ee58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbda366726f6f742d3158416bf17fd344c206c441e122f36f59dcf3a1b6e6a66da26c126c04c9554d0e6a2e40328ddf34af905a59853b99c5a326bc5e2dd598aba1e694a8bcef0e6337c06c0166726f6f742d32584112c1b100e6a26c7ac5211cdd77c9a87e76378f29cc33ea30884c8788928210ed4e318933f68ae52b25aeb9bf239425b56a6bad9b58003ee5b13931765e6ea0a10166726f6f742d335841543fc643ca67a852f2a2549cfc4e2714878c8b4fe4c5ea166d2411a320e277725955384cec7a2d4bda7f22f2baaaf137af69e67689edf372927c5450ceed655800" + "proof": "8202d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203b8c6bdd1952e2fbd30c15bf077f7466ded5ca4107826565d001049e2f9505e158202b078a8e25eb410eed7ba509aa7c3883bfdeb9ebbad1e55803c8eaf2c49c848ff658412555f56d1ff1d151bc4141739cc692d6e5339615a8dfd723f779f018bc5d1d0a6552e5dd0605ab263cdd46470c585140c71fef2a675c39772d61cc4dc59ec4321b1b100000000000006458402000000000000000000000000000000000000000000000000000000000000000bf2425fda709f94f8329726add39010524f98d7e72e3518e1a16bb7f10f93c61d998598701d9985a8a0102005820b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27f582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000645820f9c5c57747ee27ed36454475d11614157c483371371d7a74c04562d007ce71911b8000000000000001f6582026667743dc7e949bc7fee91ad254127a9eb2df255f535c06724eeadd450db74c5820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d0486623bd24badd3238dff7aee2d9b092442446826054f8c0e95ff40efe5ec9d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011b10000000000000c8582012d181564c456d03516be7090e15efaa5cbdd9204452188b82a8df4b4cff3ad358201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cfa366726f6f742d315841ee422b8c0aa8feb7d990e302f58a1891e87448fc35033a5911d3cb3e67085d593f10383dfccd4d904912aee8921a979bb2fcfc52b79566732a8baefb0fc738780166726f6f742d32584111af5ab62aa3fd4ec1799f3b66b61bd28dee51356435155b2526f90bee340424333b655fd9c1bf5454aae3fa9ede64a30b9325586fc867b1173eaa342ed64e5f0166726f6f742d335841ae6cbb98e5f85da1029024a85a3ef603d8be795e327b6e0e87b841059b48a0417a025811eb4e2582f321fea7e07d544d8a57036883752d17dd25c91b7081274201" }, { "request": "d998768401582092d9a092df07b83c8eea9551bfb77d06f944087fe94f6a9d30a1c51f69072d67d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203ed68efcfeb35aa094a18a34554fa7bdbde2131101a65d48da4e19fab524e80e5820fb3cb4d9a69f9ef95d7d025d24c7c5600ab10f2e5b182aa64693c21c0b5e9c13f658418859a17653d14da465451ebd866f67c5724a6c40933b506bc2ae06482389e91daa47c07a03cbfe9f72f26e0fdfb08135dd8844a60aefb123edce3e80533a49051b00", - "proof": "8202d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203ed68efcfeb35aa094a18a34554fa7bdbde2131101a65d48da4e19fab524e80e5820fb3cb4d9a69f9ef95d7d025d24c7c5600ab10f2e5b182aa64693c21c0b5e9c13f658418859a17653d14da465451ebd866f67c5724a6c40933b506bc2ae06482389e91daa47c07a03cbfe9f72f26e0fdfb08135dd8844a60aefb123edce3e80533a49051b1b10000000000000645860280000000000000000000000000000000000000000000000000000000000000089b8acccbcebad6d509ea180c65b8bd16110ca0ad3bd67f8e6bf1d2da23da508b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27fd998598701d9985a8a0102005820b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27f582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000645820f9c5c57747ee27ed36454475d11614157c483371371d7a74c04562d007ce71911b8000000000000001f6582026667743dc7e949bc7fee91ad254127a9eb2df255f535c06724eeadd450db74c5820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c08158203ffa8b59cad65673582f3c6648dfbd81faa968e42d654ee33a258d2a153f0422d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011b10000000000000c85820f739853404e96cc75928797c981e14fb1036bfc08f26bd32393a393fea0414ee58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbda366726f6f742d3158416bf17fd344c206c441e122f36f59dcf3a1b6e6a66da26c126c04c9554d0e6a2e40328ddf34af905a59853b99c5a326bc5e2dd598aba1e694a8bcef0e6337c06c0166726f6f742d32584112c1b100e6a26c7ac5211cdd77c9a87e76378f29cc33ea30884c8788928210ed4e318933f68ae52b25aeb9bf239425b56a6bad9b58003ee5b13931765e6ea0a10166726f6f742d335841543fc643ca67a852f2a2549cfc4e2714878c8b4fe4c5ea166d2411a320e277725955384cec7a2d4bda7f22f2baaaf137af69e67689edf372927c5450ceed655800" + "proof": "8202d998798501d998778602d99878830141015821022b733d703e6844461d404e3a2d1d8c134d2b7d10fc30e583a9b49be3833057b158203ed68efcfeb35aa094a18a34554fa7bdbde2131101a65d48da4e19fab524e80e5820fb3cb4d9a69f9ef95d7d025d24c7c5600ab10f2e5b182aa64693c21c0b5e9c13f658418859a17653d14da465451ebd866f67c5724a6c40933b506bc2ae06482389e91daa47c07a03cbfe9f72f26e0fdfb08135dd8844a60aefb123edce3e80533a49051b1b10000000000000645860280000000000000000000000000000000000000000000000000000000000000089b8acccbcebad6d509ea180c65b8bd16110ca0ad3bd67f8e6bf1d2da23da508b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27fd998598701d9985a8a0102005820b0413aafaffee6a97c9be0fb6f4c22d9e49ab767c6516760cc3be45a9bb1a27f582071f7a15cb620abcf29679269d7fbe8069d3c6d6441359be3b194e5099afc8aac401b10000000000000645820f9c5c57747ee27ed36454475d11614157c483371371d7a74c04562d007ce71911b8000000000000001f6582026667743dc7e949bc7fee91ad254127a9eb2df255f535c06724eeadd450db74c5820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d0486623bd24badd3238dff7aee2d9b092442446826054f8c0e95ff40efe5ec9d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011b10000000000000c8582012d181564c456d03516be7090e15efaa5cbdd9204452188b82a8df4b4cff3ad358201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cfa366726f6f742d315841ee422b8c0aa8feb7d990e302f58a1891e87448fc35033a5911d3cb3e67085d593f10383dfccd4d904912aee8921a979bb2fcfc52b79566732a8baefb0fc738780166726f6f742d32584111af5ab62aa3fd4ec1799f3b66b61bd28dee51356435155b2526f90bee340424333b655fd9c1bf5454aae3fa9ede64a30b9325586fc867b1173eaa342ed64e5f0166726f6f742d335841ae6cbb98e5f85da1029024a85a3ef603d8be795e327b6e0e87b841059b48a0417a025811eb4e2582f321fea7e07d544d8a57036883752d17dd25c91b7081274201" }, { "request": "d998768401582000d1594402e48368a4fde6bd9ade28b08c4a0127fd5a2bb00d42e1cd21336c00d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058202e61a8acebbea3aa960d93123f8e88d743ee31652fa8191affd29d79b62c973f58204c308965ac50122a8407ecf7944c577eca20c0a1f9590a7146e1aaa8e5ae6672f658411eddbbe23620fa959af42eeb731305e06d64c7a69178d40c8d9a1019fb62a1a5da8edc420b5e9a34557e96879d0113287dda1bbfe62f161fe8b70c2185af4c941b00", - "proof": "8202d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058202e61a8acebbea3aa960d93123f8e88d743ee31652fa8191affd29d79b62c973f58204c308965ac50122a8407ecf7944c577eca20c0a1f9590a7146e1aaa8e5ae6672f658411eddbbe23620fa959af42eeb731305e06d64c7a69178d40c8d9a1019fb62a1a5da8edc420b5e9a34557e96879d0113287dda1bbfe62f161fe8b70c2185af4c941b1b1000000000000064586060000000000000000000000000000000000000000000000000000000000000000fd1a76d36be3d3f3d35b29f2b3a015d052e46dc7b6672703e4fa0d8abb9e304104f6c476a3a1ff0e432e59627f6fcadbdf42e403b18080052ea9d210228f164d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b8301414081582089cb97ca12eb821829f9be109c3a660cd2d00aa472d9561cf14766b678e9956dd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011b10000000000000c85820f739853404e96cc75928797c981e14fb1036bfc08f26bd32393a393fea0414ee58209a3a1a9afb29014eb03cd95129f17f2b0f79648dc3e9dbf18487fdaa74a64bbda366726f6f742d3158416bf17fd344c206c441e122f36f59dcf3a1b6e6a66da26c126c04c9554d0e6a2e40328ddf34af905a59853b99c5a326bc5e2dd598aba1e694a8bcef0e6337c06c0166726f6f742d32584112c1b100e6a26c7ac5211cdd77c9a87e76378f29cc33ea30884c8788928210ed4e318933f68ae52b25aeb9bf239425b56a6bad9b58003ee5b13931765e6ea0a10166726f6f742d335841543fc643ca67a852f2a2549cfc4e2714878c8b4fe4c5ea166d2411a320e277725955384cec7a2d4bda7f22f2baaaf137af69e67689edf372927c5450ceed655800" + "proof": "8202d998798501d998778602d9987883014101582102e59973dfdd57df78d9165c450c901068367c282737138c789e11a3d92f65427058202e61a8acebbea3aa960d93123f8e88d743ee31652fa8191affd29d79b62c973f58204c308965ac50122a8407ecf7944c577eca20c0a1f9590a7146e1aaa8e5ae6672f658411eddbbe23620fa959af42eeb731305e06d64c7a69178d40c8d9a1019fb62a1a5da8edc420b5e9a34557e96879d0113287dda1bbfe62f161fe8b70c2185af4c941b1b1000000000000064586060000000000000000000000000000000000000000000000000000000000000000fd1a76d36be3d3f3d35b29f2b3a015d052e46dc7b6672703e4fa0d8abb9e304104f6c476a3a1ff0e432e59627f6fcadbdf42e403b18080052ea9d210228f164d998598701d9985a8a010200582076b120090b2a7d4812965ff5b842ffff0e30fd1fbccf38033f27fc9086b1f720582087ef74b1b316ad9f82b32a2baa6743f9cb776a726fe8ba2f755b6ec777c6eff3401b10000000000000645820dd3d3331e9ce92c107710b6b656d5ed1f87137e0d597983c66bcdc617ac2b45f1b8000000000000000f65820a559793be2b6c4101de27cd82c1816541e47b5a17b4973fc0e70e8f93b92981658208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b83014140815820d6c4f6abc81576418c42a6d393d2fe98c0052ed67343fe4bf3c4fd929bcfa99fd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011b10000000000000c8582012d181564c456d03516be7090e15efaa5cbdd9204452188b82a8df4b4cff3ad358201209caa289fb7132afdf595877396f28944d466a3c52472a38a1873f220251cfa366726f6f742d315841ee422b8c0aa8feb7d990e302f58a1891e87448fc35033a5911d3cb3e67085d593f10383dfccd4d904912aee8921a979bb2fcfc52b79566732a8baefb0fc738780166726f6f742d32584111af5ab62aa3fd4ec1799f3b66b61bd28dee51356435155b2526f90bee340424333b655fd9c1bf5454aae3fa9ede64a30b9325586fc867b1173eaa342ed64e5f0166726f6f742d335841ae6cbb98e5f85da1029024a85a3ef603d8be795e327b6e0e87b841059b48a0417a025811eb4e2582f321fea7e07d544d8a57036883752d17dd25c91b7081274201" } ] } diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/large-values/response-v1.cbor index 2af0e065084666812112ad49b5c7f533501f19f4..219e16971dd09369b743cba3ee3f352c5c56a81f 100644 GIT binary patch delta 435 zcmV;k0ZjgZ1%U;S*nee#6^5JW%;U~p3Xe47Y3#rjavJ+sYjU81Hr}Uo1 z!I93TeC$p#L$?2}qtu`d{|-<1VpaoSngm|chg0}KHh5Ptvw00001ELb2C3Cg00 z`*AX_-&t69Id3SGO-5=wQb#H{p@%;r0#VOcAP{m*_wonc5pE=U-sbYW6yHLOwlZAA z;ipg>+!}g1W}{|uZ*O!hF<3!M43qEmo$00^T||sTwK-T+{qpPtFPdKI%=Nq z>gt_~Gc)jlDK>_y|7c!wW1`(YHhLl=WBAfA-8Wpa3se%^Q#@e73&Gc+P-g92^^rvg zjYt4ya&K>REi+g_pV@mi!p>Q!r~1pXW@L*~<;Pf|l`Kab@xpq58ZFoxV@}5`?s%kp diEJ6v_FB#BE99t7n+aerYum)jR2$%=4gg#q$HV{t delta 435 zcmV;k0ZjgZ1%U;S*nblyN6hzPu;=v0=Fd@ZH&%TY~{X zz=2pGKl+PV%GOqMST8(gNZ-AI`l)E-EoDyQIwg%N6+Z+b*_d2|0SAGC2Us9Svw=6` zdXrm{V>jHWly(EhY6~tA(L980ALPy<1d;#Qm|chg0t^8g5Ptvw00001ELb3#IvSe$ zDFIHfJlRnx@qa51d1Q^l>D%#yhyAK_rc1q8Ai;2s4^5xV;-1q?#c*R)9Y9Dt5qd4# zVcUh+Q%1~G(W7Q^Z*O!hF<3#_;3!>?MZdV{1pz)YaHutUmPqO)XzS6NYDO@+uAC=g z)f#jCTq?}G`hUDjnot`U(M6TZQ=%JOF~~I)S@?&a0cLVZBOw z&K!ZW%>BBp@f>8!)~>dtmeq?kn)gRM+0Ef34!wTkN7EGX=Z@C?B;{aeKhJL7wzV*{ zOE&>#a&K>REi+g_laAvMu1A=#yV9C#a0;PRl)0#t-7KRb5e1)I4JV7HpHtNN;ctNl d2DHGsChc27#w~;`(pXf8KS8sAAMJlF3IXKR$}<1} diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/large-values/response-v2.cbor index b7fec45ab5a70661d251af008abdaf2d26bf374f..3ffa4a69b64a14556e1ac0f6ea1fd8cc25b7fc05 100644 GIT binary patch delta 511 zcmey!{*isct@_kP(YDzy&OAOB$JKB0IP=W`u_CG85!poxn#}I@PA{2rb4GMCqvL_b z2!#tCY07(5cHK3yxc`0KqnjHhxv01`C4~Gq@G|}j-@mw%H)q5&GqN`}u}3HvzR6(y zeQ@Hrr8RH-jGVXqU$^+m0>1xz0S<~Mc$kd+rh}p!ze9K&j139IuQy&oTnCb z{w_3He?Ky!+%jKdimzLiO^~~m#lm)bC8ogh5efoDzTZEw-xJJJsk-;<(;kugPCeU< zVvamq9w2i^s>&*DaavJ+eu=JOgrhgl(b-0)iNUF@258``m+jVKbmDD zIz>ucYSpuVuV+Q#15N6g?mJBJk4WSAl&fFw)fOeteNp2e*vc+sXMSN_R4MV5*GZ_bGAU}WN9loqIG00Bmw2!&ZzQnP+* zGWu<>xf!VWv0j_MGNt$M%iAAY+W)R9S?0YrLg8RRAHVPXvybLo_BmRR94hPJVIx?j zdpq%V>y2QyGa(ljrxoSrm*^TsINp4q5j(+k|Be@|jCRHaD@?1VdAw51cztnpmYcz@ zb#v5{u1XdEjnO)@=U4q6?^yxT5*J;ko(^6l9bxR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/shard-configs/1.cbor b/src/test/resources/shared/uc-consolidation/v1/large-values/shard-configs/1.cbor index e814d3f6b14232a918b5491cb4af4d03b7e91456..d5c8ff6e316c11d8e89d1cd09caf2583466969f9 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/trust-base.cbor b/src/test/resources/shared/uc-consolidation/v1/large-values/trust-base.cbor index 603ae1e01e19147ff6673509a47d3b183240e451..951ca8d2852a8ba4a30a48062f8f00021c3cf0f3 100644 GIT binary patch delta 95 zcmdnT*u!LWb4GdxBQpadV}!!|^Pz3#f=7h+zFX@v>FJ;5y%Wgc`1Qn4B1G#Ib?x{oRh?;o;N*xK{J>~k~Cu@*_d2|0SAGC2Us96>}Uo1 z!I93TeC$p#L$?2}qtu`d{|-<1VpaoSngm|chg0}KHh5Ptvw00001ELb2C3Cg00 z`*AX_-&t69Id3SGO-5=wQb#H{p@%;r0#VOcAP{m*_wonc5pE=U-sbYW6yHLOwlZAA z;ipg>+!}g1W}{|uZ*O!hF<3!M43qEmo$00^T||sTwK-T+{qpPtFPdKI%=Nq z>gt_~Gc)jlDK>_y|7c!wW1`(YHhLl=WBAfA-8Wpa3se%^Q#@e73&Gc+P-g92^^rvg zjYt4ya&K>REi+g_pV@mi!p>Q!r~1pXW@L*~<;Pf|l`Kab@xpq58ZFoxV@}5`?s%kp diEJ6v_FB#BE99t7n+aerYum)jR2$%=4giRP!czbM delta 435 zcmV;k0ZjhW1k(hNs(%WI+C;NUGXEk~QR<4NofjU>``MX%nW4nZ%Wx5@gcRABTY~{X zK!I2wFA~sKif+w{9JhI&D%O;{(Egv2nE6N^5ERTbKlv#S*_d2|0SAGC2Us9Svw=6` zdXrm{V>jHWly(EhY6~tA(L980ALPy<1d;#Qm|chg0t^8g5Ptvw00001ELb3#IvSe$ zDFIHfJlRnx@qa51d1Q^l>D%#yhyAK_rc1q8Ai;2s4^5xV;-1q?#c*R)9Y9Dt5qd4# zVcUh+Q%1~G(W7Q^Z*O!hF<3#_;3!>?MZdV{1pz)YaHutUmPqO)XzS6NYDO@+uAC=g z)f#jCTq?}G`hUDjnot`U(M6TZQ=%JOF~~I)S@?&a0cLVZBOw z&K!ZW%>BBp@f>8!)~>dtmeq?kn)gRM+0Ef34!wTkN7EGX=Z@C?B;{aeKhJL7wzV*{ zOE&>#a&K>REi+g_laAvMu1A=#yV9C#a0;PRl)0#t-7KRb5e1)I4JV7HpHtNN;ctNl d2DHGsChc27#w~;`(pXf8KS8sAAMJlF3IVb^%WnVx diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/ucs/1.cbor b/src/test/resources/shared/uc-consolidation/v1/large-values/ucs/1.cbor index b30cae2893aeff3ae9601a8f987a52a32fac8a64..3ab55e33525a2c63fc6b2cc717cd86c37157f764 100644 GIT binary patch delta 435 zcmV;k0Zjg?1gZp(fq!Lz6^5JW%;U~p3Xe47Y3#rjavJ+sYjU81Hr}Uo1 z!I93TeC$p#L$?2}qtu`d{|-<1VpaoSngm|chg0}KHh5Ptvw00001ELb2C3Cg00 z`*AX_-&t69Id3SGO-5=wQb#H{p@%;r0#VOcAP{m*_wonc5pE=U-sbYW6yHLOwlZAA z;ipg>+!}g1W}{|uZ*O!hF<3!M43qEmo$00^T||sTwK-T+{qpPtFPdKI%=Nq z>gt_~Gc)jlDK>_y|7c!wW1`(YHhLl=WBAfA-8Wpa3se%^Q#@e73&Gc+P-g92^^rvg zjYt4ya&K>REi+g_pV@mi!p>Q!r~1pXW@L*~<;Pf|l`Kab@xpq58ZFoxV@}5`?s%kp diEJ6v_FB#BE99t7n+aerYum)jR2$%=4ggV~$Grdm delta 435 zcmV;k0Zjg?1gZp(fqxSwN6hzPu;=v0=Fd@ZH&%TY~{X zz=2pGKl+PV%GOqMST8(gNZ-AI`l)E-EoDyQIwg%N6+Z+b*_d2|0SAGC2Us9Svw=6` zdXrm{V>jHWly(EhY6~tA(L980ALPy<1d;#Qm|chg0t^8g5Ptvw00001ELb3#IvSe$ zDFIHfJlRnx@qa51d1Q^l>D%#yhyAK_rc1q8Ai;2s4^5xV;-1q?#c*R)9Y9Dt5qd4# zVcUh+Q%1~G(W7Q^Z*O!hF<3#_;3!>?MZdV{1pz)YaHutUmPqO)XzS6NYDO@+uAC=g z)f#jCTq?}G`hUDjnot`U(M6TZQ=%JOF~~I)S@?&a0cLVZBOw z&K!ZW%>BBp@f>8!)~>dtmeq?kn)gRM+0Ef34!wTkN7EGX=Z@C?B;{aeKhJL7wzV*{ zOE&>#a&K>REi+g_laAvMu1A=#yV9C#a0;PRl)0#t-7KRb5e1)I4JV7HpHtNN;ctNl d2DHGsChc27#w~;`(pXf8KS8sAAMJlF3IWvl#EI>r39tsATv^h` X(|B`6L>CjwM7C`z5ef_hz_)JzelZ)E delta 17 ZcmeBS+Q-Otb4ElLBlAR~ZA{-5001}O2D|_O diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/uc-flip-partition-path-hash/responses.json b/src/test/resources/shared/uc-consolidation/v1/negative/uc-flip-partition-path-hash/responses.json index 580e4b73..dddca9e7 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/uc-flip-partition-path-hash/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/uc-flip-partition-path-hash/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582046b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582046b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582046b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582046b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582046b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582030ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582030ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582030ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582030ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582030ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ], - "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e348441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582" + "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f8441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/uc-flip-shard-sibling/responses.json b/src/test/resources/shared/uc-consolidation/v1/negative/uc-flip-shard-sibling/responses.json index 1c47cdfa..eaf9ceb7 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/uc-flip-shard-sibling/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/uc-flip-shard-sibling/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820ae60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820ae60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820ae60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820ae60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820ae60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203e41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203e41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203e41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203e41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203e41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ], - "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e348441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582" + "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f8441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/uc-null-partition-path-step/responses.json b/src/test/resources/shared/uc-consolidation/v1/negative/uc-null-partition-path-step/responses.json index 4c8e6115..d275679a 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/uc-null-partition-path-step/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/uc-null-partition-path-step/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83010781f6d9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83010781f6d9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83010781f6d9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83010781f6d9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83010781f6d9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83010781f6d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83010781f6d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83010781f6d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83010781f6d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83010781f6d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ], - "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e348441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582" + "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f8441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/uc-swap-partition-certificate/responses.json b/src/test/resources/shared/uc-consolidation/v1/negative/uc-swap-partition-certificate/responses.json index 55d1eae0..5495584f 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/uc-swap-partition-certificate/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/uc-swap-partition-certificate/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83011a01010101818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83011a01010101818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83011a01010101818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83011a01010101818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c83011a01010101818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83011a01010101818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83011a01010101818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83011a01010101818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83011a01010101818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c83011a01010101818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ], - "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e348441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582" + "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f8441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/context.json b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/context.json index 8d8bbdb1..5e417255 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/context.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/context.json @@ -1,6 +1,6 @@ { "corpusVersion": 1, - "networkId": 2, + "networkId": 3, "partitionId": 7, "shards": [ "00", @@ -12,22 +12,22 @@ { "shard": "00", "file": "shard-configs/00.cbor", - "hash": "853f23e9457a0c40a5be0a95db8e0a8b6e1524650043b691dce733905e733ab4" + "hash": "9f4739e3008e1245a73fd00e07e9938553ae786ec38bc2745d72cbb90d89dd74" }, { "shard": "01", "file": "shard-configs/01.cbor", - "hash": "5da391a6520614ec0919acbd855935a6004a1cdb3e3caaf017730126fbb0f491" + "hash": "00ee312dd9a01654ee50e0bac5a624cb958e08a40a1b69d6b41b94eafda17060" }, { "shard": "10", "file": "shard-configs/10.cbor", - "hash": "5646ec9503dcdd9c9302294f441d7dad9e624f53f804994d165c827002095216" + "hash": "fe6100d729dede517d859988e27bb881b578b439870eafcbe3ca6eb103344641" }, { "shard": "11", "file": "shard-configs/11.cbor", - "hash": "dc3eac36c4a940b49966607d433e2e0b9c540507991a4b2f8cb656758154c433" + "hash": "3ef53257e101b8cfbbb37d150b14ef383be9b3f32196d14b9928e4c9bc5abd48" } ], "master": "00", diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/partition-view.cbor index aed9dceeff2ecb57b070ef4f3c4b4a9f10f88692..d2041e36da5687616c4eabd6621b79760ed58e27 100644 GIT binary patch delta 148 zcmV;F0Biq-1cn5Ve;}VnIpYA15=Ey!&<+RblZ8{Rcy7as!gO77%ef7S-E@(kH6Q@) zF)i7k7F6y~;JU@8B+HeK2&4)dY1XtGl9g}8meEU@DCEh!TD?eT C&`3=H delta 148 zcmV;F0Biq-1cn5Ve;|cFBk4tY3_zv63YFWA3X5(PBxL|YwvpWDGmu_$I<%3WH6UH1 zk)~1x6zmBZti6R`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAn$>S42>7k{OU*>zAY92OerWnHcivm1^-fF z`xW7fs#qZBpUzM>{5d5bMTmsPL=A-Ci?Z#xC84=Fii)DvDapK}W^!+DbS*JhK?CR@ z$YUOGEv53Zihnn5!fUb~LDD|b-?PSW9mO)njvp3QMMXHJ=9;4gt+HDkAyWR2StE^A z(AWN1BeptBcREiza^E2l#L%CR(&bDZ-}14M$7L-si{(SUL7p0Q($yvC`k zF_7lFQXsKeltWgE&Y9ZYwScGH(siI~ROUru(lr4F07_CNxEW3c-gZ-Je8#=8#Rru#F&Qal%GDDul{A08!yio HBKO$=O#rO=sNbM>9^j7;$KL-UFSmYBr=%(9t$REiza^IhBd$Gx*ax3(c_}R31<}i6mGb?)^bMKMlJ=<1?!Na0ZL|aZ*O!hGgv|M7p=06usbRW zh27x^?pU`k+tptR=5vbwN}=$TB;Hnhq66>?gb~F|_Bx*_=}L7k&dhN16%(-B_&RIY HjQ}_R^Ag%w diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/response-v2.cbor index 4c6f09fd10d68eae4737c625c6f4a97077393f5a..8c40cf25dcacd15e1557ef403aee9e699cd5dc59 100644 GIT binary patch delta 613 zcmZ3+xr}qdwfgz)mX8_wgj|=~U*KbZIk`1>T}9sE?n5Q9MW=W2cHS+yIU~B6(NUo( zLZSc6zW2{JpFA$p%VD_Qd}gKpZoz%tuVyE5l}}{9x9_iSgu<$;CQIKb3IsMgs?R;B z`G1AUqFL)hCo(wfXw7h1{Z9V)%^5Mxj2w+k91#kJZ!%baADnouere4cKO^UD|JN

Fuo(w|oz())D97<@D}?96;G z-(dY8l=NHlVfU&Ch3E6n1(^S_RF!w_XgTJ>+w!1$)7zb@3wK&}buGH4d2-Lu_V(GJ4i&@uh zik4Lj`qv+++#7n~`oBo!ZB{-NuNWXk8AUj1FL(NXYNN@-;yIuFnO&MDIe)V>zSvOs zcHYM1o;}A_t~Q+TYgqoVO{5D-nzH7Vfo!lr3WNBkp|Da?CP6=)}J7NFZlwRn{8K)1JGM+$(NwcC?wgR72Xdcm0tWZLg-x zx0|*8U+Oez{qqt^-)}Nbp3BsvKqxvV+cTRgFuXI=y}3XvBExmfd-nosTW5AWs@~DKwPK59JKy@#k5A=oWHxbgocxk` ou7cfHqwt4}JI?RkTr0{g^4`Mw<>t?d(=K|?)Od1oPt;xy0Kmp2Jpcdz delta 613 zcmZ3+xr}qdwfa_j<(IBiJPu3uaZSD5$JL!Ds*=j!ylvv0=f)G_imkTXoDtp3=%~;X zq0s6kVDrN2+p?G2@3lRO_t+Er-08iF(Tsm`Jc^UpmM>i$q2L~W>-()+#}4K^n%Kb9 zVt=#lL`X~f(%Pn@zrGm;=)LW~IU}Z-k)yGR1E_R!qxs{i$eT0|%~d#?J~rJX1z(7i+~O>XJk-@xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/shard-configs/01.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/shard-configs/01.cbor index c753f944eb433366a73c6bdb58ab191ba6ab7dc2..0827884ff7ff11259fc12aa285e6633f71b1e8b5 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/shard-configs/10.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/shard-configs/10.cbor index a91765b04ca18ee2573d573ad135e012cceee278..c393d189fa6f14ae8bd2656894c7403234ae2cd7 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/shard-configs/11.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/shard-configs/11.cbor index 4b3fa500154e3229add941653fb14ac77b73e960..c3f65bd5bf99f09fac1ac704a5a594eefa8d85e5 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/ucs/00.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/ucs/00.cbor index 182099b860fa0006bb6600135aea98749129f6cc..d278dd71bee6b77051e0e0f4968037f4fd9ddd28 100644 GIT binary patch delta 465 zcmV;?0WSW;1jGc8eSe=vIpYA15=Ey!&<+RblZ8{Rcy7as!gO77%ef7S-E`TQTY~{X zAc9yRkIcUB=d;Pj9E}JuuQ!=_PrDJmOX{0p3U`qQ-oE`!SRks^G^Oq#5K)6cC!N75 z|EM&gny*!n06@5fXhN&*AII64T!R4!fr1EFATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAn$>S42>7k{OU*>zAY92OerWnHcivm1^-fF z`xW7fs#qZBpUzM>{5d5bMTmsPL=A-Ci?Z#xC84=Fii)DvDapK}W^!+DbS*JhK?CR@ z$YUOGEv53Zihnn5!fUb~LDD|b-?PSW9mO)njvp3QMMXHJ=9;4gt+HDkAyWR2StE^A z(AWN1BeptBcREiza^E2l#L%CR(&bDZ-}14M$7L-si{(SUL7p0Q($yvC`k zF_7lFQXsKeltWgE&Y9ZYwScGH(siI~ROUru(lr4F07_CNxEW3c-gZ-Je8#=8#Rru#F&Qal%GDDul{A08!yio HBKO$=L9pFE delta 465 zcmV;?0WSW;1jGc8eSd{NBk4tY3_zv63YFWA3X5(PBxL|YwvpWDGmu_$I<(oCTY~{X zAc9yRg+>rO=sNbM>9^j7;$KL-UFSmYBr=%(9t$REiza^IhBd$Gx*ax3(c_}R31<}i6mGb?)^bMKMlJ=<1?!Na0ZL|aZ*O!hGgv|M7p=06usbRW zh27x^?pU`k+tptR=5vbwN}=$TB;Hnhq66>?gb~F|_Bx*_=}L7k&dhN16%(-B_&RIY HjQ}_R=fK)h diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/ucs/01.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/ucs/01.cbor index b82af649f25e1a9728d3900eb8d565f8adcf0726..e8be0d046d461d71d8e826c5becea174d0a8b3d1 100644 GIT binary patch delta 465 zcmV;?0WSXj1O5Y$H-7-`F)i7k7F6y~;JU@8B+HeK2&4)dY1XtGlUC_iKCjP^{xp+uN%1sSRks^G^Oq#5K)6cC!N75 z|EM&gny*!n06@5fXhN&*AII64T!R4!fr1EFATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAn$>S42>7k{OU*>zAY92OerWnHcivm1^-fF z`xW7fs#qZBpUzM>{5d5bMTmsPL=A-Ci?Z#xC84=Fii)DvDapK}W^!+DbS*JhK?CR@ z$YUOGEv53Zihnn5!fUb~LDD|b-?PSW9mO)njvp3QMMXHJ=9;4gt+HDkAyWR2StE^A z(AWN1BeptBcREiza^E2l#L%CR(&bDZ-}14M$7L-si{(SUL7p0Q($yvC`k zF_7lFQXsKeltWgE&Y9ZYwScGH(siI~ROUru(lr4F07_CNxEW3c-gZ-Je8#=8#Rru#F&Qal%GDDul{A08!yio HBKO$=3N+oM delta 465 zcmV;?0WSXj1O5Y$H-BBDk)~1x6zmBZti6R$REiza^IhBd$Gx*ax3(c_}R31<}i6mGb?)^bMKMlJ=<1?!Na0ZL|aZ*O!hGgv|M7p=06usbRW zh27x^?pU`k+tptR=5vbwN}=$TB;Hnhq66>?gb~F|_Bx*_=}L7k&dhN16%(-B_&RIY HjQ}_RR2ADd diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/ucs/10.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/ucs/10.cbor index 618e78a4f984c6c438fed3bd792e9e3f2437477d..2968096bb50df3d87d37a7749c480dbecd087a3a 100644 GIT binary patch delta 465 zcmV;?0WSXj1O5Y$H-G+N0M{wr-cfypnTXG+n#FxSRg}CCz>kfWgi1x%P)v4 z3DCPca*Q@kgJaD|88i60^7Yx6T!R4!fr1EFATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAn$>S42>7k{OU*>zAY92OerWnHcivm1^-fF z`xW7fs#qZBpUzM>{5d5bMTmsPL=A-Ci?Z#xC84=Fii)DvDapK}W^!+DbS*JhK?CR@ z$YUOGEv53Zihnn5!fUb~LDD|b-?PSW9mO)njvp3QMMXHJ=9;4gt+HDkAyWR2StE^A z(AWN1BeptBcREiza^E2l#L%CR(&bDZ-}14M$7L-si{(SUL7p0Q($yvC`k zF_7lFQXsKeltWgE&Y9ZYwScGH(siI~ROUru(lr4F07_CNxEW3c-gZ-Je8#=8#Rru#F&Qal%GDDul{A08!yio HBKO$=EmPjh delta 465 zcmV;?0WSXj1O5Y$H-A<}?3DxD-JFvGDNjTleXX8iPgD2=nN1d4f^Y%}QWn{mTY~{X zpn_N+V1A*kV$REiza^IhBd$Gx*ax3(c_}R31<}i6mGb?)^bMKMlJ=<1?!Na0ZL|aZ*O!hGgv|M7p=06usbRW zh27x^?pU`k+tptR=5vbwN}=$TB;Hnhq66>?gb~F|_Bx*_=}L7k&dhN16%(-B_&RIY HjQ}_RLQUB^ diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/ucs/11.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/ucs/11.cbor index 98baf9cf2004087e40a16f6d35f3ace2144aace2..1b777b0192be66a9129b70bfc787f273369b0352 100644 GIT binary patch delta 465 zcmV;?0WSXL1m*;gpMO5}GFRaNxX-(@eH9B7?>IZ@v-2UA(My>qkfWgi1x%P)v4 z3DCPca*Q@kgJaD|88i60^7Yx6T!R4!fr1EFATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAn$>S42>7k{OU*>zAY92OerWnHcivm1^-fF z`xW7fs#qZBpUzM>{5d5bMTmsPL=A-Ci?Z#xC84=Fii)DvDapK}W^!+DbS*JhK?CR@ z$YUOGEv53Zihnn5!fUb~LDD|b-?PSW9mO)njvp3QMMXHJ=9;4gt+HDkAyWR2StE^A z(AWN1BeptBcREiza^E2l#L%CR(&bDZ-}14M$7L-si{(SUL7p0Q($yvC`k zF_7lFQXsKeltWgE&Y9ZYwScGH(siI~ROUru(lr4F07_CNxEW3c-gZ-Je8#=8#Rru#F&Qal%GDDul{A08!yio HBKO$=F?HTF delta 465 zcmV;?0WSXL1m*;gpMTswtTx1{K(v`=V0}YAE(@Gg1qYcLOD~MJR&{|?#538LTY~{X z;DT5n#3ZEXJPe&9x;bE=;#+>&`)f;S$g-}gWz&iYs3v?tSRijP7p(XkK<&=|e6LvU zEac0h$REiza^IhBd$Gx*ax3(c_}R31<}i6mGb?)^bMKMlJ=<1?!Na0ZL|aZ*O!hGgv|M7p=06usbRW zh27x^?pU`k+tptR=5vbwN}=$TB;Hnhq66>?gb~F|_Bx*_=}L7k&dhN16%(-B_&RIY HjQ}_Rq?y_g diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/view-absent/responses.json b/src/test/resources/shared/uc-consolidation/v1/negative/view-absent/responses.json index c2defae3..9b978e16 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/view-absent/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/view-absent/responses.json @@ -4,11 +4,11 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ] } }, @@ -20,9 +20,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/view-duplicate-shard/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/view-duplicate-shard/partition-view.cbor index 970e906c0338ce7221cb6fbc0055ce2febf2a326..df7f03391ee27a9dd139769b1b15782f03cf1fdf 100644 GIT binary patch delta 149 zcmX@Za)xC>y~2wQTOFmvQi1!JyBEwj#BfHl$F-lkoiE!&Lg#F<@aE!)^Q#G}nQX;q zs_^5M;%0;02d7=+o4I*elNe+3rd-7-kpg{_9A=j?{!F?wxu0>aLeVy9#y+Zr>bZ4H=_d6z>`Xk+uy8g^jzpBSCtPL}k{FX_b)8i;Kaeg&HHIuCv zO%?3T#1}nNjG7XA>c2Nnf99;o`s?@Y_k5fM+^ bvf^CXnfJHX)b7~n`D43;|I#ID>R+1x+AB&L diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/view-duplicate-shard/responses.json b/src/test/resources/shared/uc-consolidation/v1/negative/view-duplicate-shard/responses.json index a813f8ff..36d359bc 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/view-duplicate-shard/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/view-duplicate-shard/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ], - "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c41128441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582" + "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b3738441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/view-extra-shard/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/view-extra-shard/partition-view.cbor index 9aa5f74ca0ff9233036dcbb563f8ceb87872d076..09d4befd121b26e435589058b83ec49ee37f0a42 100644 GIT binary patch delta 185 zcmZ3;x{!53y~2wQTOFmvQi1!JyBEwj#BfHl$F-lkoiE!&Lg#F<@aE!)^Gy}zTDJRG z8(%#9^k=x{F~tC9-}un@Peps{b+u;%=Du^8KkFGwIS~PsX_lMcbqq&#r6uH046yg!%Fpj6J$j3&gC~I7C}+nVWv= Nnc-wMrfPyN0st+AP!j+E delta 185 zcmZ3;x{!53y+Zr>bZ4H=_d6z>`Xk+uy8g^jzpBSCtPL}k{FX_b)8i;KalWa-vglCL zKZ0K-$2^$vT=H)%>!Ht2*Ow?xE&mu@z423$pUK28rV93E;)|XsMoo!5_1~MPKXcY( z{q_5Hd_Vi$@=o*y&cdU$lRX*dDzxPZ8*p{&h=?a{S#hrH%=_DGYIp4P{IOlaf9Vo6 O^{-8n*_f&cx(EQ)JY3NL diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/view-extra-shard/responses.json b/src/test/resources/shared/uc-consolidation/v1/negative/view-extra-shard/responses.json index 82ac8020..bac3e7ce 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/view-extra-shard/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/view-extra-shard/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ], - "partitionView": "83010785844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e348441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582844110d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112" + "partitionView": "83010785844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f8441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631844110d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/view-flip-block-hash/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/view-flip-block-hash/partition-view.cbor index d907906310266e2e1b62359fb135b8b919055fac..4fbb8c9e5808e0b9544bb4b69146be72f97e9d5c 100644 GIT binary patch delta 148 zcmV;F0Biq-1cn5Ve<0|HJuD)l8d1Iji=ddo0L&?jMUM-I4r??REX`vRvvZN3H6Wci zhfF&&(Zl8WS1HCJP(w{$RbTRQy?-q$m{D!+M4yrLH6ZxfA+s>M!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0lpw|wi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7Bz CsX}-F delta 148 zcmV;F0BirJ1g8X$e;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Uowi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CfkGAl delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0iGaowi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BK CsX`b4 delta 148 zcmV;F0Biq;1cwBWe;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ RZ6TCd5RQ^Sn{@&CV$xoWF=qe( delta 111 zcmV-#0FeL50?7i9e;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRW>gAeHukfP7R!3>ERNy}5?gcXrF`UutaqZ`B=gT&c&^endyt#Pdd{c$FmhC>) z#upDi{TZ%#OfkUOH$F7}Q_(Kczuv+Ei@O}WrFVZQtYV~_6C0x|0~4$+od=BD3z PW;l5vQ#C;s4Ms%(oYsmI delta 333 zcmeC>>gAeHuh4!z-I?d}{f-Hz{z!MEu0M0suj=s&Yr~8szhzSA^f(GloNubIEIQQm zkKmWdF%M=um;77Hdg$}h^(Bf^%Rfd}Z~T>?bRm^@@mqVb@?uUjk@PhnKQxVcIAw-`^Qq$Vfz Ng0m3<^*@s!0t@FCP8k3I diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/view-over-limit-size/responses.json b/src/test/resources/shared/uc-consolidation/v1/negative/view-over-limit-size/responses.json index bf298cb9..769cb2e6 100644 --- a/src/test/resources/shared/uc-consolidation/v1/negative/view-over-limit-size/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/negative/view-over-limit-size/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ], - "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e348441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f58200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f8441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae63100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/view-overlapping-prefix/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/view-overlapping-prefix/partition-view.cbor index 73f25ffb72cc3132b05acc8c17f2cfeab1fa3fca..9a3754c3996a0b908c62873d6f31e5d99728c6d2 100644 GIT binary patch delta 148 zcmV;F0Biq-1cn5Ve<0|HJuD)l8d1Iji=ddo0L&?jMUM-I4r??REX`vRvvZN3H6Wci zhfF&&(Zl8WS1HCJP(w{$RbTRQy?-q$m{D!+M4yrLH6ZxfA+s>M!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWu|bpiQe(vwL6ogi|y8v)I(fbx{kj*y=p&@)JjWpEZdtUy~iw4G<# F<}oRpLPr1q delta 151 zcmV;I0BHY)1cn5VIUuH6RW zXG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@x;PppgeMAU`%2qUIr5lwHdIOAL=` znv*ZDzPR_z_c`2KunBR+eUnK6ogjv86EF&kEEE@Ew5ZN@%M!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Xowi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U79; DxWGaf delta 149 zcmV;G0BZk-1cwBWe;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Rmwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7C{ BLE!)Z delta 147 zcmV;E0Brw-1cd~Ue;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRWM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRW``MX%nW4nZ%Wx5@gcOmVogfn? hN6hzPu;=v0=Fd@ZEm)CHMdU diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/requests.json b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/requests.json index c69473c4..156a7e41 100644 --- a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/requests.json +++ b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/requests.json @@ -18,19 +18,19 @@ "evidence": [ { "request": "d998768401582074e7b8c3472a718d576dea2edb96e91a8f62e019228f1254f7054aa301e23ab0d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c90058201c8830847e4333c1f95298c78535b34159643f746bebcea50cdc1a39a4b86de55820c96c126de6ed010fad843886ccb47ecd80d0a7e011f260f59cf05d6c3c786fc1f658417d0b54b72684dc7b50ae77befdf0e06f7615a80c1e08c796739e638c1a5adf4b59997323bfbade70ac7f8ccaa620a1bd74dec32ebc8d4eaae2f2baf9fc9bab3b1b00", - "proof": "8201d998798501d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c90058201c8830847e4333c1f95298c78535b34159643f746bebcea50cdc1a39a4b86de55820c96c126de6ed010fad843886ccb47ecd80d0a7e011f260f59cf05d6c3c786fc1f658417d0b54b72684dc7b50ae77befdf0e06f7615a80c1e08c796739e638c1a5adf4b59997323bfbade70ac7f8ccaa620a1bd74dec32ebc8d4eaae2f2baf9fc9bab3b1b1a6734a78058200000000000000000000000000000000000000000000000000000000000000000d998598701d9985a8a010100f65820ddc34ad60e5593550a4e029e3d3bd8e7255c840fd2b6db92b288cfbbb70f588f401a6734a7805820a79f45f2fc4f47f32a7317895a3180163e663e06dbdbae1b116f6023f775be8a1833f6582023113a69f7f50c4c953e2f68d73b62b524e89fe99a4cf992c3f5996c03b2c4ca58200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b83014140815820871c0f73b43771449c4ba717f3a0618eb76527d1e4a6e4045d3ece748e9cb9edd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010205011a6734a7e45820515bed557eeff1454a5da983baeeec20dc750b56a2165cc90be7514f4cb416c558205521f8ac47b4921ab0adb6dbd518b5bfeb2903f6233c4d76373d73a66c2c4367a366726f6f742d315841d3d654cad829144ed163019ed65b91a71f77ae56a1f981349ef8ca1fdc8c9bbf6e2a75b8635fd1d5055fdf8a178aacaa01890ff30795a294a948f147004b29440066726f6f742d325841858301a6a64d459e61421dcbe4011cf3fec37a1938d78b2a17b9693dc41634796f7c68666fcfbf4ae7ff83c83cdcc642f31565fb1d0529b29ffb8c1757fcdff00166726f6f742d3358410bb615ee270570bb2289cfab16e9ed816dd4cbcfb25fe66d5e53f1d2785b4d4c54695c87a6c47be64d19a3f6c6889c9cb4c25a0632ea63e13f00dca13e5cca3a00" + "proof": "8201d998798501d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c90058201c8830847e4333c1f95298c78535b34159643f746bebcea50cdc1a39a4b86de55820c96c126de6ed010fad843886ccb47ecd80d0a7e011f260f59cf05d6c3c786fc1f658417d0b54b72684dc7b50ae77befdf0e06f7615a80c1e08c796739e638c1a5adf4b59997323bfbade70ac7f8ccaa620a1bd74dec32ebc8d4eaae2f2baf9fc9bab3b1b1a6734a78058200000000000000000000000000000000000000000000000000000000000000000d998598701d9985a8a010100f65820ddc34ad60e5593550a4e029e3d3bd8e7255c840fd2b6db92b288cfbbb70f588f401a6734a7805820a79f45f2fc4f47f32a7317895a3180163e663e06dbdbae1b116f6023f775be8a1833f6582023113a69f7f50c4c953e2f68d73b62b524e89fe99a4cf992c3f5996c03b2c4ca58208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b830141408158209216c2f1ebf8ebefe6a351c1e5db478c1a29c12eac721872455df09a9b82bd44d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010305011a6734a7e45820cb2efa8e59e92205186334e789a517a313b5d4e1cfada7926e5b26a05508fc7c58203d4395f7cf4fc2ebaf6d0f5fe225b173da85697c429ba71f19e591d3afa7310ca366726f6f742d315841dfcc216b1cbe397b32db82012359f60c24f38663ee27d043c03b497bd11e0fb20ef02ea351c03fe225aae831612d96624dff4deb765006b841dcc87555ff44540066726f6f742d325841bcb51d2b3519440734d9e76d204cecaf8677bec9eb548dfdf5cf3b3285734f0e67a9a5501b8dceb358ac5389b0f8f04cd5979ee30933411ac48ed95787cc62840066726f6f742d33584145cc7d322c8f252d91460fcf3fc9d9900aa626864a9a30ac40a960ee701c833424fc8b53976ca7b2ebc1a69f703aa05883e6d2f9446ee52b2141e6600c14fe7b00" }, { "request": "d9987684015820f8f8e3cf76124cb3dc1f0170d85de72d5f92f5ed881178336c3b1f50d483175dd998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b493958203d972220a7143ff39d5e46239de332d826c77cc988cf4b42ff045b88207bee5558205d603d3ee7b6e05f19b3e5a48afe95626e950d482c687ce038eca836a6e7817df65841bf7a90718d94200549b50338ef8ce6cbf28275396bdee30b5570136d4d8f640e9257021a6f62682047dd20bde2c8abb78fdc26da4e428fe0ed8494351a54888d1b00", - "proof": "8201d998798501d998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b493958203d972220a7143ff39d5e46239de332d826c77cc988cf4b42ff045b88207bee5558205d603d3ee7b6e05f19b3e5a48afe95626e950d482c687ce038eca836a6e7817df65841bf7a90718d94200549b50338ef8ce6cbf28275396bdee30b5570136d4d8f640e9257021a6f62682047dd20bde2c8abb78fdc26da4e428fe0ed8494351a54888d1b1a6734a78058200000000000000000000000000000000000000000000000000000000000000000d998598701d9985a8a010100f65820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b401a6734a7805820ddb30b9cb54fbd32541e3448913e42b3eb94ee7cc86775c9a94f6a29db9aa73b1834f658201f455fbfea064e53615de31ebad9a85a7c463dcdd380658e4999b33d898c2fee5820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c0815820112c0e78293865e48ed7471a150de0032e1e63fc2871e2faaa984446028df616d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010205011a6734a7e45820515bed557eeff1454a5da983baeeec20dc750b56a2165cc90be7514f4cb416c558205521f8ac47b4921ab0adb6dbd518b5bfeb2903f6233c4d76373d73a66c2c4367a366726f6f742d315841d3d654cad829144ed163019ed65b91a71f77ae56a1f981349ef8ca1fdc8c9bbf6e2a75b8635fd1d5055fdf8a178aacaa01890ff30795a294a948f147004b29440066726f6f742d325841858301a6a64d459e61421dcbe4011cf3fec37a1938d78b2a17b9693dc41634796f7c68666fcfbf4ae7ff83c83cdcc642f31565fb1d0529b29ffb8c1757fcdff00166726f6f742d3358410bb615ee270570bb2289cfab16e9ed816dd4cbcfb25fe66d5e53f1d2785b4d4c54695c87a6c47be64d19a3f6c6889c9cb4c25a0632ea63e13f00dca13e5cca3a00" + "proof": "8201d998798501d998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b493958203d972220a7143ff39d5e46239de332d826c77cc988cf4b42ff045b88207bee5558205d603d3ee7b6e05f19b3e5a48afe95626e950d482c687ce038eca836a6e7817df65841bf7a90718d94200549b50338ef8ce6cbf28275396bdee30b5570136d4d8f640e9257021a6f62682047dd20bde2c8abb78fdc26da4e428fe0ed8494351a54888d1b1a6734a78058200000000000000000000000000000000000000000000000000000000000000000d998598701d9985a8a010100f65820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b401a6734a7805820ddb30b9cb54fbd32541e3448913e42b3eb94ee7cc86775c9a94f6a29db9aa73b1834f658201f455fbfea064e53615de31ebad9a85a7c463dcdd380658e4999b33d898c2fee5820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820bad2c5adca4bcf6b65146b61851a2e54af6696503f6883210ee0e3d751a89c24d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010305011a6734a7e45820cb2efa8e59e92205186334e789a517a313b5d4e1cfada7926e5b26a05508fc7c58203d4395f7cf4fc2ebaf6d0f5fe225b173da85697c429ba71f19e591d3afa7310ca366726f6f742d315841dfcc216b1cbe397b32db82012359f60c24f38663ee27d043c03b497bd11e0fb20ef02ea351c03fe225aae831612d96624dff4deb765006b841dcc87555ff44540066726f6f742d325841bcb51d2b3519440734d9e76d204cecaf8677bec9eb548dfdf5cf3b3285734f0e67a9a5501b8dceb358ac5389b0f8f04cd5979ee30933411ac48ed95787cc62840066726f6f742d33584145cc7d322c8f252d91460fcf3fc9d9900aa626864a9a30ac40a960ee701c833424fc8b53976ca7b2ebc1a69f703aa05883e6d2f9446ee52b2141e6600c14fe7b00" }, { "request": "d998768401582014fa3a73da34f96fc22c3c55529688afd87e91cc9380dc20be69ea0009b31a10d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c9005820d4507f0b96fed06bd8a980b81710a2c79642eb5d785bead6a1646ccedc17d378582093b0c5ec2b341881a78a80e4fcbad79d7469f446bc88f702a83d0f6f72902c48f658414d355b2652418172a64eb3cf4715611d442afdb6974fdc2fe303655002a334b1d9f9af6bafd8b13d08809c7763653c6d1a1b8cff98a3a13124e11c5ab2f1ede81b00", - "proof": "8202d998798501d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c9005820d4507f0b96fed06bd8a980b81710a2c79642eb5d785bead6a1646ccedc17d378582093b0c5ec2b341881a78a80e4fcbad79d7469f446bc88f702a83d0f6f72902c48f658414d355b2652418172a64eb3cf4715611d442afdb6974fdc2fe303655002a334b1d9f9af6bafd8b13d08809c7763653c6d1a1b8cff98a3a13124e11c5ab2f1ede81b1a6734a7e458404000000000000000000000000000000000000000000000000000000000000000ddc34ad60e5593550a4e029e3d3bd8e7255c840fd2b6db92b288cfbbb70f588fd998598701d9985a8a0102005820ddc34ad60e5593550a4e029e3d3bd8e7255c840fd2b6db92b288cfbbb70f588f58202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b401a6734a7e45820eec95a9f70fd0052673d313f080c293ae2c583696083be6c6064dbe94966098b1833405820d4e56332b0b681b253dba7614a6367c304f8fb6ce1291de504ef6dae1b0fc18458200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b8301414081582022c73ff594c3bfd559a0e568898f0ac7368e3833ba7ee29013cf5b26bdd0eae3d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a84858205521f8ac47b4921ab0adb6dbd518b5bfeb2903f6233c4d76373d73a66c2c436758209266b9eca13a3c900e0fd9b49c80648ae2f171dbb5672a7601b68ea6cd740ffca366726f6f742d31584168b89c54a79786d3892d458daabfd9e38a12cede8c5430ee1e66c63b907cbd6b34fa625940f07647757594cff69f530eda04a42e7359cbddd51004acca7dbbcf0066726f6f742d325841eacb3438591df440f61fd3dd5cdcff6ccfe5fe9c849a5a3ef07d826ba786e0494dfebeccd5abb4c9d197515cae9726ea75f9acd2be7a888a99a3cd934aa5786b0166726f6f742d335841d1822749e05e0d4faa7307a8cd7854eeb7d7e36c2374e36fc8d61bc4b042a19e3e22a8c91c8d4d26e806569874352162a8d7ef5179f21738aa9ebf747f7fa15401" + "proof": "8202d998798501d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c9005820d4507f0b96fed06bd8a980b81710a2c79642eb5d785bead6a1646ccedc17d378582093b0c5ec2b341881a78a80e4fcbad79d7469f446bc88f702a83d0f6f72902c48f658414d355b2652418172a64eb3cf4715611d442afdb6974fdc2fe303655002a334b1d9f9af6bafd8b13d08809c7763653c6d1a1b8cff98a3a13124e11c5ab2f1ede81b1a6734a7e458404000000000000000000000000000000000000000000000000000000000000000ddc34ad60e5593550a4e029e3d3bd8e7255c840fd2b6db92b288cfbbb70f588fd998598701d9985a8a0102005820ddc34ad60e5593550a4e029e3d3bd8e7255c840fd2b6db92b288cfbbb70f588f58202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b401a6734a7e45820eec95a9f70fd0052673d313f080c293ae2c583696083be6c6064dbe94966098b1833405820d4e56332b0b681b253dba7614a6367c304f8fb6ce1291de504ef6dae1b0fc18458208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b830141408158208abcf597aa963d7054919ba18f3dd493e1bdbd075cc6916de3509b8c28cfa0dcd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858203d4395f7cf4fc2ebaf6d0f5fe225b173da85697c429ba71f19e591d3afa7310c5820edb10cc1ed3be9fef9f2e9d1eb6a075521a3761b8b0084635f04fef2a00a7a62a366726f6f742d315841d5a3310e98d0baddc5194583c3a95f0f15cc636b83c18535ba9dd67503928a836cde013c96ac0fc21692b4802c4e2a8a037452b380c07eaaacfe934b5eeef72d0166726f6f742d3258412589fb8dc63defd8acc9e61d4f7773b077116c1f594ec71fba8a4ebf68dbc7891fd80e06e4c1b1571c57d72b608d38b10d7484d9c1d50a71fc6b49829026c4a50066726f6f742d3358410d492f3939d112e8dcd1bd4997d0678a20186687ebcd117b7a66a7cb35959a2324cbe9344a86ebc1b5d0f27734b75f23953d706be12268498e492d52e3756e9000" }, { "request": "d9987684015820b236d313854c9a556c9c8c648d26af6b5f474cc090270c3456564a3ed15f79acd998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b49395820abb71faa8359a1ee48acd3b0c2c0351594b53f39d6568470f1a62df0093d54a658203a61a324dc76b25ea103e129bf8c838a3c14aecc59003b5608fc5ea7f00f1630f658413c1400323d6ed4e2e0a18c8e85f08aaa1a1c23146c6db77c14c0d2978476ee2002ecf9b48ac2a1673f5b8f10f0567725492f3b1683af962a39b3dc9ffcae49fe1b00", - "proof": "8202d998798501d998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b49395820abb71faa8359a1ee48acd3b0c2c0351594b53f39d6568470f1a62df0093d54a658203a61a324dc76b25ea103e129bf8c838a3c14aecc59003b5608fc5ea7f00f1630f658413c1400323d6ed4e2e0a18c8e85f08aaa1a1c23146c6db77c14c0d2978476ee2002ecf9b48ac2a1673f5b8f10f0567725492f3b1683af962a39b3dc9ffcae49fe1b1a6734a7e458404000000000000000000000000000000000000000000000000000000000000000f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23bd998598701d9985a8a0102005820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b58203abb37231d38a592c4cabb0c454b04c182b0d8894b3cd95f959a02845b36bcaf401a6734a7e458200a6013ffc485f234c109b3936407afd921ec2b89f4ea4e629a92416b5a94cf111834f658203fb433b0847474233622f615e5999298a004a6d03384e8095465cb516ad959725820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c0815820979921773ddb372c7ed505e4e241147f0282d431256371c7772235e002b66591d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a84858205521f8ac47b4921ab0adb6dbd518b5bfeb2903f6233c4d76373d73a66c2c436758209266b9eca13a3c900e0fd9b49c80648ae2f171dbb5672a7601b68ea6cd740ffca366726f6f742d31584168b89c54a79786d3892d458daabfd9e38a12cede8c5430ee1e66c63b907cbd6b34fa625940f07647757594cff69f530eda04a42e7359cbddd51004acca7dbbcf0066726f6f742d325841eacb3438591df440f61fd3dd5cdcff6ccfe5fe9c849a5a3ef07d826ba786e0494dfebeccd5abb4c9d197515cae9726ea75f9acd2be7a888a99a3cd934aa5786b0166726f6f742d335841d1822749e05e0d4faa7307a8cd7854eeb7d7e36c2374e36fc8d61bc4b042a19e3e22a8c91c8d4d26e806569874352162a8d7ef5179f21738aa9ebf747f7fa15401" + "proof": "8202d998798501d998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b49395820abb71faa8359a1ee48acd3b0c2c0351594b53f39d6568470f1a62df0093d54a658203a61a324dc76b25ea103e129bf8c838a3c14aecc59003b5608fc5ea7f00f1630f658413c1400323d6ed4e2e0a18c8e85f08aaa1a1c23146c6db77c14c0d2978476ee2002ecf9b48ac2a1673f5b8f10f0567725492f3b1683af962a39b3dc9ffcae49fe1b1a6734a7e458404000000000000000000000000000000000000000000000000000000000000000f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23bd998598701d9985a8a0102005820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b58203abb37231d38a592c4cabb0c454b04c182b0d8894b3cd95f959a02845b36bcaf401a6734a7e458200a6013ffc485f234c109b3936407afd921ec2b89f4ea4e629a92416b5a94cf111834f658203fb433b0847474233622f615e5999298a004a6d03384e8095465cb516ad959725820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d1186a8319e8a16f4b7656cd2101537aff84d9b1af063112c61fed482b04455cd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858203d4395f7cf4fc2ebaf6d0f5fe225b173da85697c429ba71f19e591d3afa7310c5820edb10cc1ed3be9fef9f2e9d1eb6a075521a3761b8b0084635f04fef2a00a7a62a366726f6f742d315841d5a3310e98d0baddc5194583c3a95f0f15cc636b83c18535ba9dd67503928a836cde013c96ac0fc21692b4802c4e2a8a037452b380c07eaaacfe934b5eeef72d0166726f6f742d3258412589fb8dc63defd8acc9e61d4f7773b077116c1f594ec71fba8a4ebf68dbc7891fd80e06e4c1b1571c57d72b608d38b10d7484d9c1d50a71fc6b49829026c4a50066726f6f742d3358410d492f3939d112e8dcd1bd4997d0678a20186687ebcd117b7a66a7cb35959a2324cbe9344a86ebc1b5d0f27734b75f23953d706be12268498e492d52e3756e9000" } ] } diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/response-v1.cbor index 9c1dc622ec6c333a5e63303156e38a6724f689dd..4c26b92da8aaa41fd10e1455a9c1d695632ec1d9 100644 GIT binary patch delta 431 zcmV;g0Z{(=1o;Gz)PIlIm*iXVn+-w}6_D1QS&M!_4t}Uo1 z!I93TeC$p#L$?2}qtu`d{|-<1VpaoSngm|chg0}KHgXMZ%PtXLrJu?)fOJL&%U z^6Am*Y6n#zqjnpM0EA;-1pe}%3VLE#Ag2DIlNUld*_$-+;Ce&$7GnKIdLmCjT1%t# zGFE|}?xSXMZ*O!hF<3#zJW@lOfF8Y6{=*{bS-h6D{o+hR16VSkCS8O;G>{87cT&uR zT6d05J;$<)rGFgF|I-@QTbTlvIcIREi+g_1&d?UN@T0W9eIuP?T%AviMw%=J7BUtekiL#w_$mPzDXV?S5jEGdBZoB ZV5$oVwg=U~Ac-D_eWO=VLz&3F+yO}0&Y=JR delta 431 zcmV;g0Z{(=1o;Gz)PD+y+C;NUGXEk~QR<4NofjU>``MX%nW4nZ%Wx5@gcRABTY~{X zK!I2wBF8`Vl*7N(S)k=;iH{1$HjX$mx_;u26VF>Fz0m68*_d2|0SAGC2Us9Svw=6` zdXrm{V>jHWly(EhY6~tA(L980ALPy<1d;#Qm|chg0t^8fXMZ%PtXLqDX1VO4Iy{gL z581SwfMkl|@p0R=XDW69wvMLFbPxPkAe{3zi!#y;=&G^5h^;2*qKPp(^V6_*uXMeT zskMAv!=q+$Z*O!hF<3$Gzkzdvt9$Nmu;dX*6o=m@ED1)>1}*?EmNSs#&!Z154`>T+ zhai?|pCYG041XAW(}PRFa-}n}pX#+eM=WV-0A_M;Z*(m(SV5(;uP4kzd!q8{>Z2O& zo)Vp1{V5*57}xtVYIB6{MdbqX5murd_pcHyy+PJvV{TXqqWI4=K)TXS*tWsIwt@j> za&K>REi+g_|H6*#5qQW}dk$=x#n?oD;HKgV%4i%XT_{<$oj8iPc~o68K`Q-A|M(_Y Z+#tze!8zhsCMqp3MLD$O46!(l5CG?S&5Qs5 diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/response-v2.cbor index 975588428731ff1ed784a7dd193bbbde6f81dd42..8359ec025dc47c31f22a224349441a68661d0fbe 100644 GIT binary patch delta 505 zcmcb`ev5s=wfg=W)1O3toXzVbEIQ%Z+{o@aN50zLOENh>E5E$z3l3a;b4GMCqoYG( zghJPzuhUmevn>djID28g?Ul(7_wHqnIW{r(alq^zjq?lc+?)~9%*fu@#2%qw_$Gt( z_rZzhme#!SGjiVcf8F9M3;6!?1vvB_@^mh|6?t<;YzHGV52I9iy~&C-5ejcN@*I3? z{qo<>PcJXN&SDQ$TwEsI&Crq@&+_ln0?*kZ+m=G&(eCCv;QwkU5lQ{G~F`2f$6OgR|o^dD5D6+Hj~@G<)`u~ ze#!YA9Ob{UZPENN!#PS}Vq6QKTvd@@_D169wo|g}Hl6M1db^;b?9ELvOVLY#5m^&Y zUd-NQbo+uQBg7=*2uIfLqjnz)u6D!;HdCIAU z2Sx0tJZwHKVHG#$HukFr6guVFYZr$HI?p_@?+)YSYNjRyLXkCDmU*s1YNKe|>=$Pq epNr$_H+h`-=73m{)bEJwq6JN6cYCLo%mDz>+4AuK delta 505 zcmcb`ev5s=wR*0OTP~Zujs7cz2EOWAI#*oo?C+a1Yi2Gya`tqA;Hnmpn=_)D866!O zBNUX5+kc&Mc>mSN1y3_N`?-#r^;sD2s(Um+_o9eL^{YA!c>A1qpGylMWct+wtunOO`Fql_XPmu_CKe#WJG z(Wh6h7E8UGCp0(qucq97iR-_Ovx-~Zxjtq3EEu*(_WODv-Mx<2l9TfyxEB35Z{o1) zlHZMO2M=s(VuYAv9O3x?P~Tg@iW6bgd^xj@-f*dZuz#xtgg-fly>kmSvu+Agtzo=6lkH fSBqOVtL7yAVOk%Ny2nzl;Po5Ejfp#1KimZX5l``# diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/responses.json b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/responses.json index edeaeec3..41ab7887 100644 --- a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/responses.json @@ -4,10 +4,10 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c90058201c8830847e4333c1f95298c78535b34159643f746bebcea50cdc1a39a4b86de55820c96c126de6ed010fad843886ccb47ecd80d0a7e011f260f59cf05d6c3c786fc1f658417d0b54b72684dc7b50ae77befdf0e06f7615a80c1e08c796739e638c1a5adf4b59997323bfbade70ac7f8ccaa620a1bd74dec32ebc8d4eaae2f2baf9fc9bab3b1b1a6734a78058404000000000000000000000000000000000000000000000000000000000000000519b6c504565d09499ab6c803f00b1a656ff8866a15776a3302945a1b63772cbd998598701d9985a8a01030058202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b58202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b401a6734a848f600405820100871a916c73e326240904bcc6664c7ab7c7448055a16670aed1384629ef26158200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b8301414081582022c73ff594c3bfd559a0e568898f0ac7368e3833ba7ee29013cf5b26bdd0eae3d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58209266b9eca13a3c900e0fd9b49c80648ae2f171dbb5672a7601b68ea6cd740ffc58209cf3378b32d20de8aab1bf88ad26e8a289313bf3d3b077af74bd90a9b57c5dc3a366726f6f742d315841efbf817384ab7bee6fb0e411491487df272c0946cf062e002f963390e4cfa30f2d0f680b6e872096699f22a7410c187cd3834bc172a533b29feab53d472c696a0066726f6f742d325841a5b3af27cc447ba2f2eaeaa31aee9e129d5dfd291ebf18d7fb336a7384ee45e502f31156a21df7af122dbd41d663636e580aa2f8cf3440bad24ed8b6c1c0b6820166726f6f742d335841ffc28eed1178c8567b0e6c9ac5d8447fe0a6e20aca681c275d59b69d388ab879545d32412afd4bfff82658dc20c961c139e258262a2d304539b4e40cb1388e1000", - "8203d998798501d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c9005820d4507f0b96fed06bd8a980b81710a2c79642eb5d785bead6a1646ccedc17d378582093b0c5ec2b341881a78a80e4fcbad79d7469f446bc88f702a83d0f6f72902c48f658414d355b2652418172a64eb3cf4715611d442afdb6974fdc2fe303655002a334b1d9f9af6bafd8b13d08809c7763653c6d1a1b8cff98a3a13124e11c5ab2f1ede81b1a6734a7e458404000000000000000000000000000000000000000000000000000000000000000ddc34ad60e5593550a4e029e3d3bd8e7255c840fd2b6db92b288cfbbb70f588fd998598701d9985a8a01030058202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b58202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b401a6734a848f600405820100871a916c73e326240904bcc6664c7ab7c7448055a16670aed1384629ef26158200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa8414d9985b8301414081582022c73ff594c3bfd559a0e568898f0ac7368e3833ba7ee29013cf5b26bdd0eae3d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58209266b9eca13a3c900e0fd9b49c80648ae2f171dbb5672a7601b68ea6cd740ffc58209cf3378b32d20de8aab1bf88ad26e8a289313bf3d3b077af74bd90a9b57c5dc3a366726f6f742d315841efbf817384ab7bee6fb0e411491487df272c0946cf062e002f963390e4cfa30f2d0f680b6e872096699f22a7410c187cd3834bc172a533b29feab53d472c696a0066726f6f742d325841a5b3af27cc447ba2f2eaeaa31aee9e129d5dfd291ebf18d7fb336a7384ee45e502f31156a21df7af122dbd41d663636e580aa2f8cf3440bad24ed8b6c1c0b6820166726f6f742d335841ffc28eed1178c8567b0e6c9ac5d8447fe0a6e20aca681c275d59b69d388ab879545d32412afd4bfff82658dc20c961c139e258262a2d304539b4e40cb1388e1000" + "8203d998798501d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c90058201c8830847e4333c1f95298c78535b34159643f746bebcea50cdc1a39a4b86de55820c96c126de6ed010fad843886ccb47ecd80d0a7e011f260f59cf05d6c3c786fc1f658417d0b54b72684dc7b50ae77befdf0e06f7615a80c1e08c796739e638c1a5adf4b59997323bfbade70ac7f8ccaa620a1bd74dec32ebc8d4eaae2f2baf9fc9bab3b1b1a6734a78058404000000000000000000000000000000000000000000000000000000000000000519b6c504565d09499ab6c803f00b1a656ff8866a15776a3302945a1b63772cbd998598701d9985a8a01030058202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b58202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b401a6734a848f600405820100871a916c73e326240904bcc6664c7ab7c7448055a16670aed1384629ef26158208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b830141408158208abcf597aa963d7054919ba18f3dd493e1bdbd075cc6916de3509b8c28cfa0dcd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820edb10cc1ed3be9fef9f2e9d1eb6a075521a3761b8b0084635f04fef2a00a7a625820a6fea19317423ad99b34f1e07a43f61662fd467a224f415a4ba3f53256819eeea366726f6f742d315841c73c52439b801ebd54fec322ea59bc96b5fde24c43035832a0265d844034900b377752cc845a778e4f3dc7b28ca51ccdffd31ad65b99029739678002ed320a540066726f6f742d3258418634dbfb1f950e21f46cfb535a4fb186a29f56319c2256160aa1e4d5241fa6ec18c5b6ca1daeb2cd8c8aeda08876ecd9163915d251586a91c9d16bba32dbd0490166726f6f742d335841058b63d44a64abc51d798df4ed8e536989bb71933b60b23e7eab42b7617986be491e26575258b879c3379660aa0b09b607d5c020891e877da357514399c8bedc01", + "8203d998798501d998778602d998788301410158210205b7ef0ed690fb132206bec06f20de4949d2aa302a16e9001b530fee21a7c9005820d4507f0b96fed06bd8a980b81710a2c79642eb5d785bead6a1646ccedc17d378582093b0c5ec2b341881a78a80e4fcbad79d7469f446bc88f702a83d0f6f72902c48f658414d355b2652418172a64eb3cf4715611d442afdb6974fdc2fe303655002a334b1d9f9af6bafd8b13d08809c7763653c6d1a1b8cff98a3a13124e11c5ab2f1ede81b1a6734a7e458404000000000000000000000000000000000000000000000000000000000000000ddc34ad60e5593550a4e029e3d3bd8e7255c840fd2b6db92b288cfbbb70f588fd998598701d9985a8a01030058202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b58202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b401a6734a848f600405820100871a916c73e326240904bcc6664c7ab7c7448055a16670aed1384629ef26158208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351abd9985b830141408158208abcf597aa963d7054919ba18f3dd493e1bdbd075cc6916de3509b8c28cfa0dcd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820edb10cc1ed3be9fef9f2e9d1eb6a075521a3761b8b0084635f04fef2a00a7a625820a6fea19317423ad99b34f1e07a43f61662fd467a224f415a4ba3f53256819eeea366726f6f742d315841c73c52439b801ebd54fec322ea59bc96b5fde24c43035832a0265d844034900b377752cc845a778e4f3dc7b28ca51ccdffd31ad65b99029739678002ed320a540066726f6f742d3258418634dbfb1f950e21f46cfb535a4fb186a29f56319c2256160aa1e4d5241fa6ec18c5b6ca1daeb2cd8c8aeda08876ecd9163915d251586a91c9d16bba32dbd0490166726f6f742d335841058b63d44a64abc51d798df4ed8e536989bb71933b60b23e7eab42b7617986be491e26575258b879c3379660aa0b09b607d5c020891e877da357514399c8bedc01" ], - "partitionView": "83010782844140d9985a8a01030058202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b58202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b401a6734a848f600405820100871a916c73e326240904bcc6664c7ab7c7448055a16670aed1384629ef26158200a88da44b34b32ff225551ea8aa59d171ecdfbd9997c99a1c4cdcb7011aa84148441c0d9985a8a0102005820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b58203abb37231d38a592c4cabb0c454b04c182b0d8894b3cd95f959a02845b36bcaf401a6734a7e458200a6013ffc485f234c109b3936407afd921ec2b89f4ea4e629a92416b5a94cf111834f658203fb433b0847474233622f615e5999298a004a6d03384e8095465cb516ad959725820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0dd" + "partitionView": "83010782844140d9985a8a01030058202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b58202981734d4d8831d89367a97da2bdf371ecd897ffd7a61c4db83c2c2aa372835b401a6734a848f600405820100871a916c73e326240904bcc6664c7ab7c7448055a16670aed1384629ef26158208fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351ab8441c0d9985a8a0102005820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b58203abb37231d38a592c4cabb0c454b04c182b0d8894b3cd95f959a02845b36bcaf401a6734a7e458200a6013ffc485f234c109b3936407afd921ec2b89f4ea4e629a92416b5a94cf111834f658203fb433b0847474233622f615e5999298a004a6d03384e8095465cb516ad959725820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749c" } }, "peers": [ @@ -18,8 +18,8 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b493958203d972220a7143ff39d5e46239de332d826c77cc988cf4b42ff045b88207bee5558205d603d3ee7b6e05f19b3e5a48afe95626e950d482c687ce038eca836a6e7817df65841bf7a90718d94200549b50338ef8ce6cbf28275396bdee30b5570136d4d8f640e9257021a6f62682047dd20bde2c8abb78fdc26da4e428fe0ed8494351a54888d1b1a6734a780584040000000000000000000000000000000000000000000000000000000000000000238d5c61da2951f85ef63476d6a93f78d01bde8a684f92dc127d9c3151c27c2d998598701d9985a8a0102005820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b58203abb37231d38a592c4cabb0c454b04c182b0d8894b3cd95f959a02845b36bcaf401a6734a7e458200a6013ffc485f234c109b3936407afd921ec2b89f4ea4e629a92416b5a94cf111834f658203fb433b0847474233622f615e5999298a004a6d03384e8095465cb516ad959725820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c0815820979921773ddb372c7ed505e4e241147f0282d431256371c7772235e002b66591d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a84858205521f8ac47b4921ab0adb6dbd518b5bfeb2903f6233c4d76373d73a66c2c436758209266b9eca13a3c900e0fd9b49c80648ae2f171dbb5672a7601b68ea6cd740ffca366726f6f742d31584168b89c54a79786d3892d458daabfd9e38a12cede8c5430ee1e66c63b907cbd6b34fa625940f07647757594cff69f530eda04a42e7359cbddd51004acca7dbbcf0066726f6f742d325841eacb3438591df440f61fd3dd5cdcff6ccfe5fe9c849a5a3ef07d826ba786e0494dfebeccd5abb4c9d197515cae9726ea75f9acd2be7a888a99a3cd934aa5786b0166726f6f742d335841d1822749e05e0d4faa7307a8cd7854eeb7d7e36c2374e36fc8d61bc4b042a19e3e22a8c91c8d4d26e806569874352162a8d7ef5179f21738aa9ebf747f7fa15401", - "8202d998798501d998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b49395820abb71faa8359a1ee48acd3b0c2c0351594b53f39d6568470f1a62df0093d54a658203a61a324dc76b25ea103e129bf8c838a3c14aecc59003b5608fc5ea7f00f1630f658413c1400323d6ed4e2e0a18c8e85f08aaa1a1c23146c6db77c14c0d2978476ee2002ecf9b48ac2a1673f5b8f10f0567725492f3b1683af962a39b3dc9ffcae49fe1b1a6734a7e458404000000000000000000000000000000000000000000000000000000000000000f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23bd998598701d9985a8a0102005820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b58203abb37231d38a592c4cabb0c454b04c182b0d8894b3cd95f959a02845b36bcaf401a6734a7e458200a6013ffc485f234c109b3936407afd921ec2b89f4ea4e629a92416b5a94cf111834f658203fb433b0847474233622f615e5999298a004a6d03384e8095465cb516ad959725820132647ccf762b0eaa384b3256c62fc02af5865bc392e70ebec01b161b905f0ddd9985b830141c0815820979921773ddb372c7ed505e4e241147f0282d431256371c7772235e002b66591d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a84858205521f8ac47b4921ab0adb6dbd518b5bfeb2903f6233c4d76373d73a66c2c436758209266b9eca13a3c900e0fd9b49c80648ae2f171dbb5672a7601b68ea6cd740ffca366726f6f742d31584168b89c54a79786d3892d458daabfd9e38a12cede8c5430ee1e66c63b907cbd6b34fa625940f07647757594cff69f530eda04a42e7359cbddd51004acca7dbbcf0066726f6f742d325841eacb3438591df440f61fd3dd5cdcff6ccfe5fe9c849a5a3ef07d826ba786e0494dfebeccd5abb4c9d197515cae9726ea75f9acd2be7a888a99a3cd934aa5786b0166726f6f742d335841d1822749e05e0d4faa7307a8cd7854eeb7d7e36c2374e36fc8d61bc4b042a19e3e22a8c91c8d4d26e806569874352162a8d7ef5179f21738aa9ebf747f7fa15401" + "8202d998798501d998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b493958203d972220a7143ff39d5e46239de332d826c77cc988cf4b42ff045b88207bee5558205d603d3ee7b6e05f19b3e5a48afe95626e950d482c687ce038eca836a6e7817df65841bf7a90718d94200549b50338ef8ce6cbf28275396bdee30b5570136d4d8f640e9257021a6f62682047dd20bde2c8abb78fdc26da4e428fe0ed8494351a54888d1b1a6734a780584040000000000000000000000000000000000000000000000000000000000000000238d5c61da2951f85ef63476d6a93f78d01bde8a684f92dc127d9c3151c27c2d998598701d9985a8a0102005820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b58203abb37231d38a592c4cabb0c454b04c182b0d8894b3cd95f959a02845b36bcaf401a6734a7e458200a6013ffc485f234c109b3936407afd921ec2b89f4ea4e629a92416b5a94cf111834f658203fb433b0847474233622f615e5999298a004a6d03384e8095465cb516ad959725820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d1186a8319e8a16f4b7656cd2101537aff84d9b1af063112c61fed482b04455cd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858203d4395f7cf4fc2ebaf6d0f5fe225b173da85697c429ba71f19e591d3afa7310c5820edb10cc1ed3be9fef9f2e9d1eb6a075521a3761b8b0084635f04fef2a00a7a62a366726f6f742d315841d5a3310e98d0baddc5194583c3a95f0f15cc636b83c18535ba9dd67503928a836cde013c96ac0fc21692b4802c4e2a8a037452b380c07eaaacfe934b5eeef72d0166726f6f742d3258412589fb8dc63defd8acc9e61d4f7773b077116c1f594ec71fba8a4ebf68dbc7891fd80e06e4c1b1571c57d72b608d38b10d7484d9c1d50a71fc6b49829026c4a50066726f6f742d3358410d492f3939d112e8dcd1bd4997d0678a20186687ebcd117b7a66a7cb35959a2324cbe9344a86ebc1b5d0f27734b75f23953d706be12268498e492d52e3756e9000", + "8202d998798501d998778602d998788301410158210257e7c8997b2863e40ba6785d9467c1dc2bd704cc54482766a37f3da5c57b49395820abb71faa8359a1ee48acd3b0c2c0351594b53f39d6568470f1a62df0093d54a658203a61a324dc76b25ea103e129bf8c838a3c14aecc59003b5608fc5ea7f00f1630f658413c1400323d6ed4e2e0a18c8e85f08aaa1a1c23146c6db77c14c0d2978476ee2002ecf9b48ac2a1673f5b8f10f0567725492f3b1683af962a39b3dc9ffcae49fe1b1a6734a7e458404000000000000000000000000000000000000000000000000000000000000000f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23bd998598701d9985a8a0102005820f1aa1b707a144eaccea203f221a07f197353223e3fba0df23aa8408e2058f23b58203abb37231d38a592c4cabb0c454b04c182b0d8894b3cd95f959a02845b36bcaf401a6734a7e458200a6013ffc485f234c109b3936407afd921ec2b89f4ea4e629a92416b5a94cf111834f658203fb433b0847474233622f615e5999298a004a6d03384e8095465cb516ad959725820658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749cd9985b830141c0815820d1186a8319e8a16f4b7656cd2101537aff84d9b1af063112c61fed482b04455cd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858203d4395f7cf4fc2ebaf6d0f5fe225b173da85697c429ba71f19e591d3afa7310c5820edb10cc1ed3be9fef9f2e9d1eb6a075521a3761b8b0084635f04fef2a00a7a62a366726f6f742d315841d5a3310e98d0baddc5194583c3a95f0f15cc636b83c18535ba9dd67503928a836cde013c96ac0fc21692b4802c4e2a8a037452b380c07eaaacfe934b5eeef72d0166726f6f742d3258412589fb8dc63defd8acc9e61d4f7773b077116c1f594ec71fba8a4ebf68dbc7891fd80e06e4c1b1571c57d72b608d38b10d7484d9c1d50a71fc6b49829026c4a50066726f6f742d3358410d492f3939d112e8dcd1bd4997d0678a20186687ebcd117b7a66a7cb35959a2324cbe9344a86ebc1b5d0f27734b75f23953d706be12268498e492d52e3756e9000" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/shard-configs/0.cbor b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/shard-configs/0.cbor index 46547d9bb36ee1dbe321346cc424aaa8e310314f..86d3b8677b88d0b89ee970153e4f6387b3fa5400 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/shard-configs/1.cbor b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/shard-configs/1.cbor index e814d3f6b14232a918b5491cb4af4d03b7e91456..d5c8ff6e316c11d8e89d1cd09caf2583466969f9 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/trust-base.cbor b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/trust-base.cbor index 603ae1e01e19147ff6673509a47d3b183240e451..951ca8d2852a8ba4a30a48062f8f00021c3cf0f3 100644 GIT binary patch delta 95 zcmdnT*u!LWb4GdxBQpadV}!!|^Pz3#f=7h+zFX@v>FJ;5y}Uo1 z!I93TeC$p#L$?2}qtu`d{|-<1VpaoSngm|chg0}KHgXMZ%PtXLrJu?)fOJL&%U z^6Am*Y6n#zqjnpM0EA;-1pe}%3VLE#Ag2DIlNUld*_$-+;Ce&$7GnKIdLmCjT1%t# zGFE|}?xSXMZ*O!hF<3#zJW@lOfF8Y6{=*{bS-h6D{o+hR16VSkCS8O;G>{87cT&uR zT6d05J;$<)rGFgF|I-@QTbTlvIcIREi+g_1&d?UN@T0W9eIuP?T%AviMw%=J7BUtekiL#w_$mPzDXV?S5jEGdBZoB ZV5$oVwg=U~Ac-D_eWO=VLz&3F+yRrZ&71%L delta 431 zcmV;g0Z{&;1fm3xeSZpw+C;NUGXEk~QR<4NofjU>``MX%nW4nZ%Wx5@gcRABTY~{X zK!I2wBF8`Vl*7N(S)k=;iH{1$HjX$mx_;u26VF>Fz0m68*_d2|0SAGC2Us9Svw=6` zdXrm{V>jHWly(EhY6~tA(L980ALPy<1d;#Qm|chg0t^8fXMZ%PtXLqDX1VO4Iy{gL z581SwfMkl|@p0R=XDW69wvMLFbPxPkAe{3zi!#y;=&G^5h^;2*qKPp(^V6_*uXMeT zskMAv!=q+$Z*O!hF<3$Gzkzdvt9$Nmu;dX*6o=m@ED1)>1}*?EmNSs#&!Z154`>T+ zhai?|pCYG041XAW(}PRFa-}n}pX#+eM=WV-0A_M;Z*(m(SV5(;uP4kzd!q8{>Z2O& zo)Vp1{V5*57}xtVYIB6{MdbqX5murd_pcHyy+PJvV{TXqqWI4=K)TXS*tWsIwt@j> za&K>REi+g_|H6*#5qQW}dk$=x#n?oD;HKgV%4i%XT_{<$oj8iPc~o68K`Q-A|M(_Y Z+#tze!8zhsCMqp3MLD$O46!(l5CAe@%!dE~ diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/ucs/1.cbor b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/ucs/1.cbor index b8a2acaf5fc60f1722c8e294dc3d403a52b05737..c773b17064137c7d06cfb8c51fe5ad8a0f8deb32 100644 GIT binary patch delta 431 zcmV;g0Z{(L1jGc8pMPb66^5JW%;U~p3Xe47Y3#rjavJ+sYjU81Hr}Uo1 z!I93TeC$p#L$?2}qtu`d{|-<1VpaoSngm|chg0}KHgXMZ%PtXLrJu?)fOJL&%U z^6Am*Y6n#zqjnpM0EA;-1pe}%3VLE#Ag2DIlNUld*_$-+;Ce&$7GnKIdLmCjT1%t# zGFE|}?xSXMZ*O!hF<3#zJW@lOfF8Y6{=*{bS-h6D{o+hR16VSkCS8O;G>{87cT&uR zT6d05J;$<)rGFgF|I-@QTbTlvIcIREi+g_1&d?UN@T0W9eIuP?T%AviMw%=J7BUtekiL#w_$mPzDXV?S5jEGdBZoB ZV5$oVwg=U~Ac-D_eWO=VLz&3F+yNm>&Wiv5 delta 431 zcmV;g0Z{(L1jGc8pMMi3N6hzPu;=v0=Fd@ZH&%TY~{X zz=2pGf8si&ns%hc9?O|iphpbyX-Tbj8r=^8=t8%fsk?W(*_d2|0SAGC2Us9Svw=6` zdXrm{V>jHWly(EhY6~tA(L980ALPy<1d;#Qm|chg0t^8fXMZ%PtXLqDX1VO4Iy{gL z581SwfMkl|@p0R=XDW69wvMLFbPxPkAe{3zi!#y;=&G^5h^;2*qKPp(^V6_*uXMeT zskMAv!=q+$Z*O!hF<3$Gzkzdvt9$Nmu;dX*6o=m@ED1)>1}*?EmNSs#&!Z154`>T+ zhai?|pCYG041XAW(}PRFa-}n}pX#+eM=WV-0A_M;Z*(m(SV5(;uP4kzd!q8{>Z2O& zo)Vp1{V5*57}xtVYIB6{MdbqX5murd_pcHyy+PJvV{TXqqWI4=K)TXS*tWsIwt@j> za&K>REi+g_|H6*#5qQW}dk$=x#n?oD;HKgV%4i%XT_{<$oj8iPc~o68K`Q-A|M(_Y Z+#tze!8zhsCMqp3MLD$O46!(l5CCF{%ijP1 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/context.json b/src/test/resources/shared/uc-consolidation/v1/shards-1/context.json index 58bd44e1..a06a00c9 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-1/context.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-1/context.json @@ -1,6 +1,6 @@ { "corpusVersion": 1, - "networkId": 2, + "networkId": 3, "partitionId": 7, "shards": [ "" @@ -9,7 +9,7 @@ { "shard": "", "file": "shard-configs/root.cbor", - "hash": "7243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1" + "hash": "b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2" } ], "master": "", diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/expected.json b/src/test/resources/shared/uc-consolidation/v1/shards-1/expected.json index 1e7ebe03..9ebd4a47 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-1/expected.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-1/expected.json @@ -15,26 +15,26 @@ { "shard": "", "stateRoot": "cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06", - "ucSha256": "512e6bc9cac9e1c799d26addb04234ebf6cdd1bad59cb26e6af94c89750792fe", + "ucSha256": "b745cc482342df88211b4ee2172ad60cd8755b0704c1529fdd2e1752bcd4d515", "proofSha256": [ - "1ccab1cbb4bf9c1b9b7ea8c01b66209bbce846dd0020a776ab89e39766aae4f1", - "477a92ea94fe28d982942d8fccc8458cfd965b4acbc0bcc11b06570e444698be", - "54c1493430028d873e5ae134244a36d6b0e463930acd4c3c5f3027351a70e29f", - "52292da71b036835690d6bc81d0c7bde07020eb670026f2d16ab97d550de3ceb", - "3a0e3fc903ab438ed4c206050450007809791f67d73cfe13b18c381d712595f0" + "e691c64f9d14fff062ba03918187dabcc6a602dc7a1556f67110127bdd174c65", + "8369c0a820de41a60e51bd3d50a5ab363e78c55140939111bfe1c5511ee819f3", + "70a590cf1f1c50900e6139d00278d13f31bfb235ed93296625961970eceec62a", + "2cfc1a44130c3124cd8d038262cb6fb5a4cf3dfa9ff4bcb86ffe7a8adc00ab7a", + "2ed6db1665473257a950bee4dda36006c241951bf6e78c1a21d14e23ea59aef6" ] } ], "bundle": [ { "shard": "", - "uc": "d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", + "uc": "d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", "proofs": [ - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820f0e98c9d33bf3ff1cab9ffcb15ab7b3a86e8078dcb8f9ed5c0756fbce87e45195820364e4da9544cd1ef5686f2af512c789c27a468442a4b2d2e9828976edd0f60d7f65841216967a11ac88ac6be97a8655842d643541d0b89849442ef3c972d536b82aeb1442c67a40737406953b09fba2bd47880c6d447b79d1d281561877b809588aa9f1b1a6734a7805860a0000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a663103ee73f8e65ada50c53cd6e382d2568b56493d047dfe57f3875f7902a8507cb26d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758202525cf28855dcaed742e5daee8267617890f8b7408e02626be2d0ae40698f11f5820658bbf26faeed900d6dc151145dea0e4358c867ba82d4971dd60042244a34632f6584101466fb311117e6367373090675d7a7d77d9925901a605b749c3ac073a9e52f943c56c0c057ffabff71729289c8ad49c3e72104963a0b28c516b7a480e590ae51b1a6734a780586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040b1e07235025de35206db010930e2f9670dd8349c09fcf3f265c1e132ae5c4e9dd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e17582014ffdb911d40b91d642e98b41a73cdd3fed198cd9ba8083eb3968d1c9c29b18f5820b3f632be742b4e4a7f2210ba0bafab00aad54b54d68cf0731030bc5931054c53f658410fb560a3fbb6cca07ba3509fcb06483be2d9c252a05be6d43304f4c98e7d6524745220b26d928b0b88944f08123ab6e93cec46ec3125cda0204cc52d0c3c823d1b1a6734a7e4586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040800c6823cc98611788a5e3dc66aa4697444a0045e32a2bd33b7658c494857e6bd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758209af6f8a1f5dc90b98b03991ac2a6cc709c581379e23d8c35afd42aa3625a1bbc58207caaf0d5d7838ad2f613559d1579a49c29bd4c5184f9e9bd46c433ba6c311548f65841db56ee20a58c0dfaaef03b320652a12079e636a222b191fccfaa85301422e83b30290cdad21d9560ceaf5056478a02077612dd3f870de91b0b902d985c29e6091b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f310ecd7dbffe53433628125a43b9c6d3cdde6e27d56c9228df9ea1b2dc140979d13d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820ffa132496cb493400afca56205c8d454e94653e80d10144eb0abcac16f5cab0658208b25d29f1ce38e1fe9ee59e0aa11ed2fab96cd4769c5d9e24e7b8fdbfa9f5b09f65841b7bf4d76b4aa0143484625dc74c8011b34ef579e8b03bec0a28290e182f6678820c7412473cd5b4e4436863bca4b78307e3fc4d32ce5b858be9b4fa98b3e4a171b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f31055815ece2516b6981c82e483d9453184bdd49aa2fa2c2b3d97c13766bd0e64fcd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00" + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820f0e98c9d33bf3ff1cab9ffcb15ab7b3a86e8078dcb8f9ed5c0756fbce87e45195820364e4da9544cd1ef5686f2af512c789c27a468442a4b2d2e9828976edd0f60d7f65841216967a11ac88ac6be97a8655842d643541d0b89849442ef3c972d536b82aeb1442c67a40737406953b09fba2bd47880c6d447b79d1d281561877b809588aa9f1b1a6734a7805860a0000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a663103ee73f8e65ada50c53cd6e382d2568b56493d047dfe57f3875f7902a8507cb26d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758202525cf28855dcaed742e5daee8267617890f8b7408e02626be2d0ae40698f11f5820658bbf26faeed900d6dc151145dea0e4358c867ba82d4971dd60042244a34632f6584101466fb311117e6367373090675d7a7d77d9925901a605b749c3ac073a9e52f943c56c0c057ffabff71729289c8ad49c3e72104963a0b28c516b7a480e590ae51b1a6734a780586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040b1e07235025de35206db010930e2f9670dd8349c09fcf3f265c1e132ae5c4e9dd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e17582014ffdb911d40b91d642e98b41a73cdd3fed198cd9ba8083eb3968d1c9c29b18f5820b3f632be742b4e4a7f2210ba0bafab00aad54b54d68cf0731030bc5931054c53f658410fb560a3fbb6cca07ba3509fcb06483be2d9c252a05be6d43304f4c98e7d6524745220b26d928b0b88944f08123ab6e93cec46ec3125cda0204cc52d0c3c823d1b1a6734a7e4586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040800c6823cc98611788a5e3dc66aa4697444a0045e32a2bd33b7658c494857e6bd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758209af6f8a1f5dc90b98b03991ac2a6cc709c581379e23d8c35afd42aa3625a1bbc58207caaf0d5d7838ad2f613559d1579a49c29bd4c5184f9e9bd46c433ba6c311548f65841db56ee20a58c0dfaaef03b320652a12079e636a222b191fccfaa85301422e83b30290cdad21d9560ceaf5056478a02077612dd3f870de91b0b902d985c29e6091b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f310ecd7dbffe53433628125a43b9c6d3cdde6e27d56c9228df9ea1b2dc140979d13d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820ffa132496cb493400afca56205c8d454e94653e80d10144eb0abcac16f5cab0658208b25d29f1ce38e1fe9ee59e0aa11ed2fab96cd4769c5d9e24e7b8fdbfa9f5b09f65841b7bf4d76b4aa0143484625dc74c8011b34ef579e8b03bec0a28290e182f6678820c7412473cd5b4e4436863bca4b78307e3fc4d32ce5b858be9b4fa98b3e4a171b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f31055815ece2516b6981c82e483d9453184bdd49aa2fa2c2b3d97c13766bd0e64fcd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301" ] } ] diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-1/partition-view.cbor index b8a7da199439dc72b7230baf447f6e98d4c7a25a..d36fda1516b94d158ccb6dc252c63785e8d19d0b 100644 GIT binary patch delta 39 xcmV+?0NDSZ0iOYoe;~PP$<>p(b!`|DgfM9GnQR$EPCRo94Xl&rc|Ge-D6&&L5dQ!G delta 39 xcmV+?0NDSZ0iOYoe;{&0)2zWSmJi!$t~gs*hw6R7|I diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/requests.json b/src/test/resources/shared/uc-consolidation/v1/shards-1/requests.json index 77a5f7a6..0879b924 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-1/requests.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-1/requests.json @@ -13,23 +13,23 @@ "evidence": [ { "request": "d998768401582047711e33cb620b027da68635f53d01e339b194cea59593091cd058548003b5dbd998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820f0e98c9d33bf3ff1cab9ffcb15ab7b3a86e8078dcb8f9ed5c0756fbce87e45195820364e4da9544cd1ef5686f2af512c789c27a468442a4b2d2e9828976edd0f60d7f65841216967a11ac88ac6be97a8655842d643541d0b89849442ef3c972d536b82aeb1442c67a40737406953b09fba2bd47880c6d447b79d1d281561877b809588aa9f1b00", - "proof": "8201d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820f0e98c9d33bf3ff1cab9ffcb15ab7b3a86e8078dcb8f9ed5c0756fbce87e45195820364e4da9544cd1ef5686f2af512c789c27a468442a4b2d2e9828976edd0f60d7f65841216967a11ac88ac6be97a8655842d643541d0b89849442ef3c972d536b82aeb1442c67a40737406953b09fba2bd47880c6d447b79d1d281561877b809588aa9f1b1a6734a78058408000000000000000000000000000000000000000000000000000000000000000800c6823cc98611788a5e3dc66aa4697444a0045e32a2bd33b7658c494857e6bd998598701d9985a8a010100f65820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be401a6734a780582012f5ee871a4203305676decae08009a5f45a146ac1c7481907965d7784b107e20bf65820f243321f034b44861ac21783a59c64df263b51d8694b51749f5e36dca0d8a1ec58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010205011a6734a7e45820c4463ed5a0745d72c471e84d974aaebd3ee408166a3239abb64142ce6f07ffef5820341e91841f31578e62308ed22787be94d56ffa9d8100ea74721a6dcaca3116fba366726f6f742d315841f484f73484c0584a1b41de57ddd6185f86b07c8e523e2257b3fcde00f4113312221e24ab06d89307e92eb59ee22cc094288c4628a9d12939e33d34b5fc2d3eba0166726f6f742d325841f20f01f12025e991fcbfd83dae45968227b60dd6bb1fd570fe14f0db4a57343b6286e9a91304f4e72ba55e490f16e0542f3f0debb7ed599c7ce69e626ceaee930166726f6f742d335841560c3922c75d6732b3325b748aaaca45c7cbd93d197d08de53c6f0808647079b406acbfea28817e5e546b7d06466d4b3f4e80801330ae135410fe67ed68d813801" + "proof": "8201d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820f0e98c9d33bf3ff1cab9ffcb15ab7b3a86e8078dcb8f9ed5c0756fbce87e45195820364e4da9544cd1ef5686f2af512c789c27a468442a4b2d2e9828976edd0f60d7f65841216967a11ac88ac6be97a8655842d643541d0b89849442ef3c972d536b82aeb1442c67a40737406953b09fba2bd47880c6d447b79d1d281561877b809588aa9f1b1a6734a78058408000000000000000000000000000000000000000000000000000000000000000800c6823cc98611788a5e3dc66aa4697444a0045e32a2bd33b7658c494857e6bd998598701d9985a8a010100f65820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be401a6734a780582012f5ee871a4203305676decae08009a5f45a146ac1c7481907965d7784b107e20bf65820f243321f034b44861ac21783a59c64df263b51d8694b51749f5e36dca0d8a1ec5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010305011a6734a7e45820bce70ba46bc88ad39db9934156b94ab32593dea59714271aed42be494a956ba7582076c55fc4fd2e950cba9aa64ffa8ecf735384edb1d2b732b5178885e232c2e2b0a366726f6f742d315841b7b3c36b00170bfa6e5b1f1f96691654087f79d9d32155a4a4d62836d2914f0234fee905257c11f8fb0c024daef967a61ed4ed87c06ac4ce5086a745b4aa608f0166726f6f742d3258411881bab02248616c914abfbd5f9da8691460a02c1e26f44faa94aa438b10fe3943acb4b61acbd3eaaef02b96d40381816665cbfe56e2e5ea776fb94849c7585f0166726f6f742d33584177caaddb9f49cdc8bfa3ec2e039ba443c22a11cae7d2cd4162f3f11fd420c57117bfe79dec99d3545e865b515a9f182cff2e86f6245b565e08cb4b9a5117fd8400" }, { "request": "d9987684015820a426bb9381af68552e84fbac7c9faaaafd3d3ba201f2bbc5f802c6bc7adf3bc4d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758202525cf28855dcaed742e5daee8267617890f8b7408e02626be2d0ae40698f11f5820658bbf26faeed900d6dc151145dea0e4358c867ba82d4971dd60042244a34632f6584101466fb311117e6367373090675d7a7d77d9925901a605b749c3ac073a9e52f943c56c0c057ffabff71729289c8ad49c3e72104963a0b28c516b7a480e590ae51b00", - "proof": "8201d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758202525cf28855dcaed742e5daee8267617890f8b7408e02626be2d0ae40698f11f5820658bbf26faeed900d6dc151145dea0e4358c867ba82d4971dd60042244a34632f6584101466fb311117e6367373090675d7a7d77d9925901a605b749c3ac073a9e52f943c56c0c057ffabff71729289c8ad49c3e72104963a0b28c516b7a480e590ae51b1a6734a78058408000000000000000000000000000000000000000000000000000000000000000c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f310d998598701d9985a8a010100f65820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be401a6734a780582012f5ee871a4203305676decae08009a5f45a146ac1c7481907965d7784b107e20bf65820f243321f034b44861ac21783a59c64df263b51d8694b51749f5e36dca0d8a1ec58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010205011a6734a7e45820c4463ed5a0745d72c471e84d974aaebd3ee408166a3239abb64142ce6f07ffef5820341e91841f31578e62308ed22787be94d56ffa9d8100ea74721a6dcaca3116fba366726f6f742d315841f484f73484c0584a1b41de57ddd6185f86b07c8e523e2257b3fcde00f4113312221e24ab06d89307e92eb59ee22cc094288c4628a9d12939e33d34b5fc2d3eba0166726f6f742d325841f20f01f12025e991fcbfd83dae45968227b60dd6bb1fd570fe14f0db4a57343b6286e9a91304f4e72ba55e490f16e0542f3f0debb7ed599c7ce69e626ceaee930166726f6f742d335841560c3922c75d6732b3325b748aaaca45c7cbd93d197d08de53c6f0808647079b406acbfea28817e5e546b7d06466d4b3f4e80801330ae135410fe67ed68d813801" + "proof": "8201d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758202525cf28855dcaed742e5daee8267617890f8b7408e02626be2d0ae40698f11f5820658bbf26faeed900d6dc151145dea0e4358c867ba82d4971dd60042244a34632f6584101466fb311117e6367373090675d7a7d77d9925901a605b749c3ac073a9e52f943c56c0c057ffabff71729289c8ad49c3e72104963a0b28c516b7a480e590ae51b1a6734a78058408000000000000000000000000000000000000000000000000000000000000000c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f310d998598701d9985a8a010100f65820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be401a6734a780582012f5ee871a4203305676decae08009a5f45a146ac1c7481907965d7784b107e20bf65820f243321f034b44861ac21783a59c64df263b51d8694b51749f5e36dca0d8a1ec5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010305011a6734a7e45820bce70ba46bc88ad39db9934156b94ab32593dea59714271aed42be494a956ba7582076c55fc4fd2e950cba9aa64ffa8ecf735384edb1d2b732b5178885e232c2e2b0a366726f6f742d315841b7b3c36b00170bfa6e5b1f1f96691654087f79d9d32155a4a4d62836d2914f0234fee905257c11f8fb0c024daef967a61ed4ed87c06ac4ce5086a745b4aa608f0166726f6f742d3258411881bab02248616c914abfbd5f9da8691460a02c1e26f44faa94aa438b10fe3943acb4b61acbd3eaaef02b96d40381816665cbfe56e2e5ea776fb94849c7585f0166726f6f742d33584177caaddb9f49cdc8bfa3ec2e039ba443c22a11cae7d2cd4162f3f11fd420c57117bfe79dec99d3545e865b515a9f182cff2e86f6245b565e08cb4b9a5117fd8400" }, { "request": "d9987684015820b7a20ed9c3638a9c274715324fd71ddaaa60a5f9115d68a06869fcaf0a289655d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e17582014ffdb911d40b91d642e98b41a73cdd3fed198cd9ba8083eb3968d1c9c29b18f5820b3f632be742b4e4a7f2210ba0bafab00aad54b54d68cf0731030bc5931054c53f658410fb560a3fbb6cca07ba3509fcb06483be2d9c252a05be6d43304f4c98e7d6524745220b26d928b0b88944f08123ab6e93cec46ec3125cda0204cc52d0c3c823d1b00", - "proof": "8202d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e17582014ffdb911d40b91d642e98b41a73cdd3fed198cd9ba8083eb3968d1c9c29b18f5820b3f632be742b4e4a7f2210ba0bafab00aad54b54d68cf0731030bc5931054c53f658410fb560a3fbb6cca07ba3509fcb06483be2d9c252a05be6d43304f4c98e7d6524745220b26d928b0b88944f08123ab6e93cec46ec3125cda0204cc52d0c3c823d1b1a6734a7e4586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040800c6823cc98611788a5e3dc66aa4697444a0045e32a2bd33b7658c494857e6bd998598701d9985a8a0102005820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be5820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a7e45820550381a5da7c05f186182c7a13043f912ff827363f5da9729b17c043d81635320bf65820d20444ca686737374372b05b3a6cd152b798d0dae7b4b9a27c175e6c89937f8a58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820341e91841f31578e62308ed22787be94d56ffa9d8100ea74721a6dcaca3116fb58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6ba366726f6f742d3158414fb06ea509734c4cfe6471cef2b62c53da91551cc2e224df2ddc65c6c6709d214718645776f8584962535d5469c0865966a56d5fb28935ca2710c44c5e346ef00166726f6f742d32584194ee938f0cd099b3abc0b024a3a26f31e4344e60c04c6225dd66d69a1d3f36e573bdecfb2f05b5cae7991cc13c5738d38e455f217b276013129528d8a0952e5c0066726f6f742d335841cf5d7bfa4dc6fcfe77d3dcd1c05540e8a67dba977317452d3783cdaa5829eae002d9adb51646c781da1116534eb005df0334f25f6b0ded1b3bea476afc37829800" + "proof": "8202d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e17582014ffdb911d40b91d642e98b41a73cdd3fed198cd9ba8083eb3968d1c9c29b18f5820b3f632be742b4e4a7f2210ba0bafab00aad54b54d68cf0731030bc5931054c53f658410fb560a3fbb6cca07ba3509fcb06483be2d9c252a05be6d43304f4c98e7d6524745220b26d928b0b88944f08123ab6e93cec46ec3125cda0204cc52d0c3c823d1b1a6734a7e4586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040800c6823cc98611788a5e3dc66aa4697444a0045e32a2bd33b7658c494857e6bd998598701d9985a8a0102005820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be5820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a7e45820550381a5da7c05f186182c7a13043f912ff827363f5da9729b17c043d81635320bf65820d20444ca686737374372b05b3a6cd152b798d0dae7b4b9a27c175e6c89937f8a5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a848582076c55fc4fd2e950cba9aa64ffa8ecf735384edb1d2b732b5178885e232c2e2b05820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178a366726f6f742d31584173d1ce24f2e5372772c08420cbfd03c6acacb1c5695a2c40017205d5531efd0a468c1a5f4901ff87b2c56ea503c9ad75c1803153bc15314fac4059edb24399710066726f6f742d325841b4477067c64c0661cba4a6d519d3212ca6c578d17083752e46bf27fcec2f4cf32acf373bc75bd7a95b689e53380c2eefb330f03bbd885595e2ac51b02f532fac0166726f6f742d335841b19da674ccbe869fa4d95744331ae7fe2e9c764c3e20a3fbe9f2605e66ec490935099a8417b28026b4b8c57752bf8384cbce1562b662e60fd3e497030fad97e200" }, { "request": "d99876840158207ec67379e82cdb1dc37fed8b57e7e587b65e2062a956ed5fd8b132ae8459cea4d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758209af6f8a1f5dc90b98b03991ac2a6cc709c581379e23d8c35afd42aa3625a1bbc58207caaf0d5d7838ad2f613559d1579a49c29bd4c5184f9e9bd46c433ba6c311548f65841db56ee20a58c0dfaaef03b320652a12079e636a222b191fccfaa85301422e83b30290cdad21d9560ceaf5056478a02077612dd3f870de91b0b902d985c29e6091b00", - "proof": "8202d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758209af6f8a1f5dc90b98b03991ac2a6cc709c581379e23d8c35afd42aa3625a1bbc58207caaf0d5d7838ad2f613559d1579a49c29bd4c5184f9e9bd46c433ba6c311548f65841db56ee20a58c0dfaaef03b320652a12079e636a222b191fccfaa85301422e83b30290cdad21d9560ceaf5056478a02077612dd3f870de91b0b902d985c29e6091b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f310ecd7dbffe53433628125a43b9c6d3cdde6e27d56c9228df9ea1b2dc140979d13d998598701d9985a8a0102005820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be5820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a7e45820550381a5da7c05f186182c7a13043f912ff827363f5da9729b17c043d81635320bf65820d20444ca686737374372b05b3a6cd152b798d0dae7b4b9a27c175e6c89937f8a58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820341e91841f31578e62308ed22787be94d56ffa9d8100ea74721a6dcaca3116fb58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6ba366726f6f742d3158414fb06ea509734c4cfe6471cef2b62c53da91551cc2e224df2ddc65c6c6709d214718645776f8584962535d5469c0865966a56d5fb28935ca2710c44c5e346ef00166726f6f742d32584194ee938f0cd099b3abc0b024a3a26f31e4344e60c04c6225dd66d69a1d3f36e573bdecfb2f05b5cae7991cc13c5738d38e455f217b276013129528d8a0952e5c0066726f6f742d335841cf5d7bfa4dc6fcfe77d3dcd1c05540e8a67dba977317452d3783cdaa5829eae002d9adb51646c781da1116534eb005df0334f25f6b0ded1b3bea476afc37829800" + "proof": "8202d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758209af6f8a1f5dc90b98b03991ac2a6cc709c581379e23d8c35afd42aa3625a1bbc58207caaf0d5d7838ad2f613559d1579a49c29bd4c5184f9e9bd46c433ba6c311548f65841db56ee20a58c0dfaaef03b320652a12079e636a222b191fccfaa85301422e83b30290cdad21d9560ceaf5056478a02077612dd3f870de91b0b902d985c29e6091b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f310ecd7dbffe53433628125a43b9c6d3cdde6e27d56c9228df9ea1b2dc140979d13d998598701d9985a8a0102005820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be5820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a7e45820550381a5da7c05f186182c7a13043f912ff827363f5da9729b17c043d81635320bf65820d20444ca686737374372b05b3a6cd152b798d0dae7b4b9a27c175e6c89937f8a5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a848582076c55fc4fd2e950cba9aa64ffa8ecf735384edb1d2b732b5178885e232c2e2b05820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178a366726f6f742d31584173d1ce24f2e5372772c08420cbfd03c6acacb1c5695a2c40017205d5531efd0a468c1a5f4901ff87b2c56ea503c9ad75c1803153bc15314fac4059edb24399710066726f6f742d325841b4477067c64c0661cba4a6d519d3212ca6c578d17083752e46bf27fcec2f4cf32acf373bc75bd7a95b689e53380c2eefb330f03bbd885595e2ac51b02f532fac0166726f6f742d335841b19da674ccbe869fa4d95744331ae7fe2e9c764c3e20a3fbe9f2605e66ec490935099a8417b28026b4b8c57752bf8384cbce1562b662e60fd3e497030fad97e200" }, { "request": "d998768401582072c65ac32baa37178389a4051f4eff0a5ccf997224fce428fa25643eb635d3a1d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820ffa132496cb493400afca56205c8d454e94653e80d10144eb0abcac16f5cab0658208b25d29f1ce38e1fe9ee59e0aa11ed2fab96cd4769c5d9e24e7b8fdbfa9f5b09f65841b7bf4d76b4aa0143484625dc74c8011b34ef579e8b03bec0a28290e182f6678820c7412473cd5b4e4436863bca4b78307e3fc4d32ce5b858be9b4fa98b3e4a171b00", - "proof": "8202d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820ffa132496cb493400afca56205c8d454e94653e80d10144eb0abcac16f5cab0658208b25d29f1ce38e1fe9ee59e0aa11ed2fab96cd4769c5d9e24e7b8fdbfa9f5b09f65841b7bf4d76b4aa0143484625dc74c8011b34ef579e8b03bec0a28290e182f6678820c7412473cd5b4e4436863bca4b78307e3fc4d32ce5b858be9b4fa98b3e4a171b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f31055815ece2516b6981c82e483d9453184bdd49aa2fa2c2b3d97c13766bd0e64fcd998598701d9985a8a0102005820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be5820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a7e45820550381a5da7c05f186182c7a13043f912ff827363f5da9729b17c043d81635320bf65820d20444ca686737374372b05b3a6cd152b798d0dae7b4b9a27c175e6c89937f8a58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820341e91841f31578e62308ed22787be94d56ffa9d8100ea74721a6dcaca3116fb58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6ba366726f6f742d3158414fb06ea509734c4cfe6471cef2b62c53da91551cc2e224df2ddc65c6c6709d214718645776f8584962535d5469c0865966a56d5fb28935ca2710c44c5e346ef00166726f6f742d32584194ee938f0cd099b3abc0b024a3a26f31e4344e60c04c6225dd66d69a1d3f36e573bdecfb2f05b5cae7991cc13c5738d38e455f217b276013129528d8a0952e5c0066726f6f742d335841cf5d7bfa4dc6fcfe77d3dcd1c05540e8a67dba977317452d3783cdaa5829eae002d9adb51646c781da1116534eb005df0334f25f6b0ded1b3bea476afc37829800" + "proof": "8202d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820ffa132496cb493400afca56205c8d454e94653e80d10144eb0abcac16f5cab0658208b25d29f1ce38e1fe9ee59e0aa11ed2fab96cd4769c5d9e24e7b8fdbfa9f5b09f65841b7bf4d76b4aa0143484625dc74c8011b34ef579e8b03bec0a28290e182f6678820c7412473cd5b4e4436863bca4b78307e3fc4d32ce5b858be9b4fa98b3e4a171b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f31055815ece2516b6981c82e483d9453184bdd49aa2fa2c2b3d97c13766bd0e64fcd998598701d9985a8a0102005820b20f2c65acc031cd95fb6357d67360a5b672d26874dae6d1ccdb02ee78c028be5820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a7e45820550381a5da7c05f186182c7a13043f912ff827363f5da9729b17c043d81635320bf65820d20444ca686737374372b05b3a6cd152b798d0dae7b4b9a27c175e6c89937f8a5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a848582076c55fc4fd2e950cba9aa64ffa8ecf735384edb1d2b732b5178885e232c2e2b05820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178a366726f6f742d31584173d1ce24f2e5372772c08420cbfd03c6acacb1c5695a2c40017205d5531efd0a468c1a5f4901ff87b2c56ea503c9ad75c1803153bc15314fac4059edb24399710066726f6f742d325841b4477067c64c0661cba4a6d519d3212ca6c578d17083752e46bf27fcec2f4cf32acf373bc75bd7a95b689e53380c2eefb330f03bbd885595e2ac51b02f532fac0166726f6f742d335841b19da674ccbe869fa4d95744331ae7fe2e9c764c3e20a3fbe9f2605e66ec490935099a8417b28026b4b8c57752bf8384cbce1562b662e60fd3e497030fad97e200" } ] } diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-1/response-v1.cbor index 61dd9f5b102e84c034c934369f38c9238e29bdd7..e483dc28de6e99cf9c9d9065e2d19fe4c047ce16 100644 GIT binary patch delta 397 zcmV;80doG=1lI(R)PK2Z$<>p(b!`|DgfM9GnQR$EPCRo94Xl&rc|Ge-D6-j@TY~{X zfPmSUT!R4zfr1BEATjJ{1^dB~&ZT_pPBKHb|E{Cdpbq~IP(Y5tNkehkS=pFfhyeo( z0UBpCsH|8Z#ttUz_YB<`ae>-siT(&%KJ4pl?EY@+P>&o_-hb(lcvv8K;r@8d1{p>_ zq#}6+2siU`Yt|K?5Dv`%KAM;lA9_ZkW^!+DbS*JhL71pGckNr4j4S^e9dqoAAqOl1 zR=D@F!(k_X2^MM>ngNI}0K)P!7zQX6_ULoe&|z{b*2IKY*o{NaO4j%s*8pa6Z*O!h zGFU+_pClW*)qlM+AD|a|nV{PSDx{I>fyV%ik|3iZn*FJ30nhg>#bO{&{Hf*n_V_Zc z$3)t3v!&KR=c(HtT(i^l0A_M;Z*(m)SV6nt6t04APTGDureUlxR=D$3=4bkr+aGtq rNV9BF`kFksY~(>Y8y684WL^MfdMX#tSyDN+gd2=&aR$NT8=dn3k3G1& delta 397 zcmV;80doG=1lI(R)PHhA)2zWSmJi!$t~gs*h&LISm|Jj&bhyel& z0UBpCsH|8Z3XuFKjk-ax`3x**KXsUvE4G?m6pC7F-3b!LQ-9LiYgi!4dh86OUHl|d zOfxvIxrnL|kZg;prp}C8ru+NaTr%sUW^!+DbS*JhK@Dov)e6HQ!XuFB`Vf-@O8mX| zBQqrF5r09wgRRLylZ*O!h zGFU-NI)TApvVA!35^0ZdO`-PEc3d*YO)p;>E6 zO@eq-LA0}nP<26#;2a;-0A_M;Z*(m)SV8U=oREwkrtb?Ot9*US(qG_;9>tIo*vDyM rZD4e2YYJsR8T+&QzOBrKR_Xaj0UuY`;uKc)S diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-1/response-v2.cbor index d3735242bb3e42a31d570ebf18b6e3556ed2c09c..ddaa7081656eee68279e6f641a9cae8db98774a9 100644 GIT binary patch delta 434 zcmeyx`iphKwfdb|C$CQ4Rhlay)MAkFX=aY3i=Ry~H}9Is&nslR;G!1tdoz@hJur*q-0$eS}_I~bXH z7^TupR;-CoIL4>;<~z?_$->548J+()qV3+i&VBPQ?{z@GOz^$>mlG=@6e=G6t2oOh z>1Mw~sgjMu{Bu$EHPQJ3d}kT#X3Y?muX02RWYJ*QZf_$ESTyUFBYsth{jmH^!Cn+pen)P>OHsks4x<``~{QsfWn=gNb8f6^exci~Vx~6=;TXojU64w}p?f4w}EdAHC z+w$cHJvQeA{+ea8Gv|q;m9)5^SV|m2T9uagg~%YwZ7tG0*@bKeA4|{u%s4rcsZoJY GQ~&_;QpqF$ delta 434 zcmeyx`iphKwfZ9G%WDqmPvgIxxy~XwqN8GmzUEucUAx*PGW&n;e7fV~%^A_njE)Tr zH)q5&GqN`}u}3JlZ*DYyTs1j*QnLA-6;sNXk7se~30|~m$(4U{PLXBe|C=*nI~bXG z7^TupR;-Co;F|D9y?2-6#-BVo8TO?!rfF}R6(`aam3@~}=vZ+5rQ6vN3a6^x@GOb_ zqY~_6Y_Wc4$0~sdIo+$4o$HBS_WSp(7^ByV(~9!*OLPq*9C@>@UgbKhcu0A|%U=SM zS-k%2{jO}R@=~xq>|$D+%n>&;MkAjW0#82}v%8&tFK)m2jHu^~|9jtWKmJHG?BMYp4)Yn&){kxpKU&^-;Q>YCcqm*O9E$sL^_ zeB*d#Vs1i7RyJ3vgXHhczn_#QFHQ}xmJhw8W9j)L^_90|a`1OHGsXA}ZHCE_OpOYJ Gq5=RB6U%e} diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/responses.json b/src/test/resources/shared/uc-consolidation/v1/shards-1/responses.json index 0a129040..21f486df 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-1/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-1/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820f0e98c9d33bf3ff1cab9ffcb15ab7b3a86e8078dcb8f9ed5c0756fbce87e45195820364e4da9544cd1ef5686f2af512c789c27a468442a4b2d2e9828976edd0f60d7f65841216967a11ac88ac6be97a8655842d643541d0b89849442ef3c972d536b82aeb1442c67a40737406953b09fba2bd47880c6d447b79d1d281561877b809588aa9f1b1a6734a7805860a0000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a663103ee73f8e65ada50c53cd6e382d2568b56493d047dfe57f3875f7902a8507cb26d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758202525cf28855dcaed742e5daee8267617890f8b7408e02626be2d0ae40698f11f5820658bbf26faeed900d6dc151145dea0e4358c867ba82d4971dd60042244a34632f6584101466fb311117e6367373090675d7a7d77d9925901a605b749c3ac073a9e52f943c56c0c057ffabff71729289c8ad49c3e72104963a0b28c516b7a480e590ae51b1a6734a780586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040b1e07235025de35206db010930e2f9670dd8349c09fcf3f265c1e132ae5c4e9dd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e17582014ffdb911d40b91d642e98b41a73cdd3fed198cd9ba8083eb3968d1c9c29b18f5820b3f632be742b4e4a7f2210ba0bafab00aad54b54d68cf0731030bc5931054c53f658410fb560a3fbb6cca07ba3509fcb06483be2d9c252a05be6d43304f4c98e7d6524745220b26d928b0b88944f08123ab6e93cec46ec3125cda0204cc52d0c3c823d1b1a6734a7e4586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040800c6823cc98611788a5e3dc66aa4697444a0045e32a2bd33b7658c494857e6bd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758209af6f8a1f5dc90b98b03991ac2a6cc709c581379e23d8c35afd42aa3625a1bbc58207caaf0d5d7838ad2f613559d1579a49c29bd4c5184f9e9bd46c433ba6c311548f65841db56ee20a58c0dfaaef03b320652a12079e636a222b191fccfaa85301422e83b30290cdad21d9560ceaf5056478a02077612dd3f870de91b0b902d985c29e6091b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f310ecd7dbffe53433628125a43b9c6d3cdde6e27d56c9228df9ea1b2dc140979d13d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00", - "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820ffa132496cb493400afca56205c8d454e94653e80d10144eb0abcac16f5cab0658208b25d29f1ce38e1fe9ee59e0aa11ed2fab96cd4769c5d9e24e7b8fdbfa9f5b09f65841b7bf4d76b4aa0143484625dc74c8011b34ef579e8b03bec0a28290e182f6678820c7412473cd5b4e4436863bca4b78307e3fc4d32ce5b858be9b4fa98b3e4a171b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f31055815ece2516b6981c82e483d9453184bdd49aa2fa2c2b3d97c13766bd0e64fcd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1d9985b8301418080d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58200a90fc278dba41b1f90c2c683f7598962bb69a5e148a5a6bdd0912c653d2db6b5820ca7aec0ca45dfc24534c3338afb988aa10906c8baaa6ce8c5ba6fbfbda5c32eba366726f6f742d3158410d6ad5d50ac321c22390e9fa1093044afcbdf7233324e9117f56d1665e1cc4463601324ce810e5f0330746cfef173fb3cc154998ffbdefb7c7e21556c1df87550166726f6f742d3258414b3a81c1762b34ac2a2da5f0bfd91d1af5ea798fba434be91ec52c0f216282f2014c4f5eddd4a9fb7be294a6a1596b4a4d82785441b4b3875075418de01c1fd50066726f6f742d335841ee179c908c1fa6ef0b21ab7c7dcbd25fe08a1ec59013d8c769616d60746a6b0a654019fbb3fbe47563a365503b1f55d22c3949f865ea4b196353f736215f682b00" + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820f0e98c9d33bf3ff1cab9ffcb15ab7b3a86e8078dcb8f9ed5c0756fbce87e45195820364e4da9544cd1ef5686f2af512c789c27a468442a4b2d2e9828976edd0f60d7f65841216967a11ac88ac6be97a8655842d643541d0b89849442ef3c972d536b82aeb1442c67a40737406953b09fba2bd47880c6d447b79d1d281561877b809588aa9f1b1a6734a7805860a0000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a663103ee73f8e65ada50c53cd6e382d2568b56493d047dfe57f3875f7902a8507cb26d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758202525cf28855dcaed742e5daee8267617890f8b7408e02626be2d0ae40698f11f5820658bbf26faeed900d6dc151145dea0e4358c867ba82d4971dd60042244a34632f6584101466fb311117e6367373090675d7a7d77d9925901a605b749c3ac073a9e52f943c56c0c057ffabff71729289c8ad49c3e72104963a0b28c516b7a480e590ae51b1a6734a780586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040b1e07235025de35206db010930e2f9670dd8349c09fcf3f265c1e132ae5c4e9dd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e17582014ffdb911d40b91d642e98b41a73cdd3fed198cd9ba8083eb3968d1c9c29b18f5820b3f632be742b4e4a7f2210ba0bafab00aad54b54d68cf0731030bc5931054c53f658410fb560a3fbb6cca07ba3509fcb06483be2d9c252a05be6d43304f4c98e7d6524745220b26d928b0b88944f08123ab6e93cec46ec3125cda0204cc52d0c3c823d1b1a6734a7e4586090000000000000000000000000000000000000000000000000000000000000003d073555c18e26aa43ecd760420680ecd76d2df1dfd6f467039028b1ea72f040800c6823cc98611788a5e3dc66aa4697444a0045e32a2bd33b7658c494857e6bd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e1758209af6f8a1f5dc90b98b03991ac2a6cc709c581379e23d8c35afd42aa3625a1bbc58207caaf0d5d7838ad2f613559d1579a49c29bd4c5184f9e9bd46c433ba6c311548f65841db56ee20a58c0dfaaef03b320652a12079e636a222b191fccfaa85301422e83b30290cdad21d9560ceaf5056478a02077612dd3f870de91b0b902d985c29e6091b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f310ecd7dbffe53433628125a43b9c6d3cdde6e27d56c9228df9ea1b2dc140979d13d998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301", + "8203d998798501d998778602d99878830141015821027eb8f18b6d700351b806e1ba56ee5e93838169529af58ce9d1e065a84e0d5e175820ffa132496cb493400afca56205c8d454e94653e80d10144eb0abcac16f5cab0658208b25d29f1ce38e1fe9ee59e0aa11ed2fab96cd4769c5d9e24e7b8fdbfa9f5b09f65841b7bf4d76b4aa0143484625dc74c8011b34ef579e8b03bec0a28290e182f6678820c7412473cd5b4e4436863bca4b78307e3fc4d32ce5b858be9b4fa98b3e4a171b1a6734a7e45880a8000000000000000000000000000000000000000000000000000000000000006bc3744366d59df6f7af2ca4fa3f70269ea23582196e9fe9bacd274760a66310c755794f36af5ee569b149c7ae34eb2f63a05e5eb968bb617de8baac4760f31055815ece2516b6981c82e483d9453184bdd49aa2fa2c2b3d97c13766bd0e64fcd998598701d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2d9985b8301418080d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820c60e26ecf70cdd197181da6889fe085b3eeceb6decfe6eeb508f1c53dee99178582078e1fe78cd0619463fa42279060837f3726bd6159f100ecd003e9a98131f7a46a366726f6f742d31584198a83877ed5b988c2bff1b1d73ec8c21072c0256b8f7b2c361277f09166a179a01882f00c2f23318062815f6e873d4d061722bd6c48457d88d43cf4ad6f81cd70066726f6f742d3258412e9f241bbbd5bd331fa0177b99a0db062aa491ea81c7008d9220a3229afda96b01cff72dc562204ffca9e5f9f6f832aec744da71b3a5d640e7a9db1f5cb3d3f50066726f6f742d335841bbe114ae826f4eda7e3ba661ac3156b8f355e667fa96db1f77c148b36c51fa9a3cb96ce4413a1b171116645e00667a2a17d0595239b6841b8c6b71c1e31b9df301" ], - "partitionView": "83010781844180d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e58207243d3acc12f960fdb69ae385b588878b82f29ed49baba8718698ffbb9e5b8f1" + "partitionView": "83010781844180d9985a8a0103005820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f065820cd5c0aa2812b4d279e0c7da826fd5874301a0a9ba3afef0cc57a899152fc5f06401a6734a848f600f658202fb424186a7ea54960c808c1cbd9180eefc5dbef78e0f0d91b4cee6f8739ea3e5820b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2" } }, "peers": null diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/shard-configs/root.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-1/shard-configs/root.cbor index 35541549539a02bc326eecca1b5e8a028ae1c53e..1bd21642ac0e616558f3c6955aa46d59660929fd 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/trust-base.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-1/trust-base.cbor index 603ae1e01e19147ff6673509a47d3b183240e451..951ca8d2852a8ba4a30a48062f8f00021c3cf0f3 100644 GIT binary patch delta 95 zcmdnT*u!LWb4GdxBQpadV}!!|^Pz3#f=7h+zFX@v>FJ;5yp(b!`|DgfM9GnQR$EPCRo94Xl&rc|Ge-D6-j@TY~{X zfPmSUT!R4zfr1BEATjJ{1^dB~&ZT_pPBKHb|E{Cdpbq~IP(Y5tNkehkS=pFfhyeo( z0UBpCsH|8Z#ttUz_YB<`ae>-siT(&%KJ4pl?EY@+P>&o_-hb(lcvv8K;r@8d1{p>_ zq#}6+2siU`Yt|K?5Dv`%KAM;lA9_ZkW^!+DbS*JhL71pGckNr4j4S^e9dqoAAqOl1 zR=D@F!(k_X2^MM>ngNI}0K)P!7zQX6_ULoe&|z{b*2IKY*o{NaO4j%s*8pa6Z*O!h zGFU+_pClW*)qlM+AD|a|nV{PSDx{I>fyV%ik|3iZn*FJ30nhg>#bO{&{Hf*n_V_Zc z$3)t3v!&KR=c(HtT(i^l0A_M;Z*(m)SV6nt6t04APTGDureUlxR=D$3=4bkr+aGtq rNV9BF`kFksY~(>Y8y684WL^MfdMX#tSyDN+gd2=&aR$NT8=dn3{J*!i delta 397 zcmV;80doF;1b_sPeSdO8)2zWSmJi!$t~gs*h&LISm|Jj&bhyel& z0UBpCsH|8Z3XuFKjk-ax`3x**KXsUvE4G?m6pC7F-3b!LQ-9LiYgi!4dh86OUHl|d zOfxvIxrnL|kZg;prp}C8ru+NaTr%sUW^!+DbS*JhK@Dov)e6HQ!XuFB`Vf-@O8mX| zBQqrF5r09wgRRLylZ*O!h zGFU-NI)TApvVA!35^0ZdO`-PEc3d*YO)p;>E6 zO@eq-LA0}nP<26#;2a;-0A_M;Z*(m)SV8U=oREwkrtb?Ot9*US(qG_;9>tIo*vDyM rZD4e2YYJsR8T+&QzOBrKR_Xaj0UuY`;9F4bK diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/context.json b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/context.json index 587d5119..b316ecac 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/context.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/context.json @@ -1,6 +1,6 @@ { "corpusVersion": 1, - "networkId": 2, + "networkId": 3, "partitionId": 7, "shards": [ "00", @@ -12,22 +12,22 @@ { "shard": "00", "file": "shard-configs/00.cbor", - "hash": "87cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112" + "hash": "e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373" }, { "shard": "01", "file": "shard-configs/01.cbor", - "hash": "a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34" + "hash": "9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f" }, { "shard": "10", "file": "shard-configs/10.cbor", - "hash": "3f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d" + "hash": "f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d2" }, { "shard": "11", "file": "shard-configs/11.cbor", - "hash": "866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582" + "hash": "72b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631" } ], "master": "01", diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/expected.json b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/expected.json index d1a35eff..7cb2fe9e 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/expected.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/expected.json @@ -15,43 +15,43 @@ { "shard": "01", "stateRoot": "a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae", - "ucSha256": "1bd000f707c125a1686b6a38cb5cfe4bf0d28e4f19e71a517d639b9bd09e8d16", + "ucSha256": "138ca40884fa8eeacca708dc913f819a81802ee3be38ea55bb5dbf711d042475", "proofSha256": [ - "ef3b2ca015e4bcf6d01c41b77b5817f47d654303e0f24f3b9b4d685814e53658", - "876e0612a1d73381955f88a791ba583be89314aeee2cd94a3788251eaf40a94d", - "713008349a4da7772d7368feb273b7f3f1c210907fc522b6392386a7b4b12864", - "0e549756acf71e1bb7a8f5029a333506cec9be763c28c2e26b7494106a43d1d0" + "6e2cd48879e93f33979e43caacd0e15958b76f54916fcd29d5e2de5258412120", + "f752b77d4a08c32be6530506b3d2b53485693adbdb3e1bf7cda55aaa5bc122c8", + "eea91ac8ac36768b7a7ec7bfaab0582fac0050a907d336729f00d6da412abcec", + "af0b7a1bc46bdb2cbeea2ba5c431ab7e7b8d6daa79406d80172af263446fe432" ] }, { "shard": "10", "stateRoot": "7e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f", - "ucSha256": "23bc9ecc123c49a99ee2541654ff2ddc00223250eb285ee221b237b1e781faf0", + "ucSha256": "77b3dc6ca3f65fb2b7c3fd2d79b488d9dda15f6c85c9efadb47c5cadaa3342bf", "proofSha256": [ - "5683be5b05238537bb684455182235e2af06846f3d90e2f36419a5337543a715", - "34ef5aaaa6b550e206fed6a98f24d2d7cc56d73662ddc4d2de224e9a0f8e6071", - "466360a3c8d33a408dcadaad2ccfbeff6f6d00cfe72524183ca8f19cc9d58a76" + "fdf487f3cf2e6e92b41a54de94a0dd64e6a8ec86bbd76fbc568a46a7dd87fca4", + "9bb65cbfc692588d3def3a6dc20a9149baadbac21cc69b1c7ed04f5f3ac94220", + "432c895712d8bedb533124f1a8a81daacb703ddb61ad9d060ea11a98e56c3522" ] } ], "bundle": [ { "shard": "01", - "uc": "d998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a5820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34d9985b83014160825820de09627c46a31f8709549fa23b625c668c517bded5d9f24e7a2330ab07247dea58206534b348fbc3897ec1f5ea8a4e6c97b3d4790682ac354ec48e0b3c7fea06a017d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00", + "uc": "d998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a58209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449fd9985b83014160825820ec4442fb03d330f4d7c5d386bd96edfaa5c2826260f70183b4872e572dca82d55820ee59126479133a9a0c01cba6bf517c05057f019b04bdb99f0512bc83c5b2740fd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000", "proofs": [ - "8203d998798501d998778602d9987883014101582102f151fc6a99f795f7ac289305ae618a64a4a4cd54126f4c23ac5b04d04ba580ea5820c85d860764e7cdf6826aff8ac59f78f944bacd4b2bcb733e58731c41b0b38064582074a52d40767166d695ee4c31794fb26a588bb80e88ae92799dc153e726482034f6584141aba96966d402cbe5b6122b7d24e54c300dee14211e2759255b40b13d69dff56b4d7403cd0126b85a21a32ac9af96eb724d8283da154a4f541cb36e3979a9b61b1a6734a78058803800000000000000000000000000000000000000000000000000000000000000a22df0544935895d983d25fc8f660a65a0c9ef3cef40a765fec41097915c28b8b5681e2966e4d2d2d65a9fa4d727ed15dd0f159038ba923a9d7506d2065baf6b0391186a643356a2c85b6ca3219a368bd3363875bba76946bce52000161e6634d998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a5820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34d9985b83014160825820de09627c46a31f8709549fa23b625c668c517bded5d9f24e7a2330ab07247dea58206534b348fbc3897ec1f5ea8a4e6c97b3d4790682ac354ec48e0b3c7fea06a017d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00", - "8203d998798501d998778602d9987883014101582102f151fc6a99f795f7ac289305ae618a64a4a4cd54126f4c23ac5b04d04ba580ea5820acc374ffacb40103b8a883d08becec7a64ac7a4c55f782df508f9fd0259165fa5820743cfdc0513396cc079e4ee890f202852746f782db9343a401356146a79e2d08f65841a24c0bdbd377112851ae485b0b267302361cf8d5e3639d98ac53cb5b134806e1eca0f2687eacfa6b3c24e6b5965ca068091dad043df56cb46ca19411e94561851b1a6734a78058803800000000000000000000000000000000000000000000000000000000000000a22df0544935895d983d25fc8f660a65a0c9ef3cef40a765fec41097915c28b8b5681e2966e4d2d2d65a9fa4d727ed15dd0f159038ba923a9d7506d2065baf6b1223803a158f7fe29d4aa03368a8389fdde7c7cb40cdbd2bb7231a33604f379dd998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a5820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34d9985b83014160825820de09627c46a31f8709549fa23b625c668c517bded5d9f24e7a2330ab07247dea58206534b348fbc3897ec1f5ea8a4e6c97b3d4790682ac354ec48e0b3c7fea06a017d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00", - "8203d998798501d998778602d9987883014101582102f151fc6a99f795f7ac289305ae618a64a4a4cd54126f4c23ac5b04d04ba580ea5820c762558a95d8a46bb5b028a41e63abdc8b2daf6ebff2e7911cb8246903335d29582014b72565cabab6220ae454e0e870111e42b62b124fe9d950cb49b1586dfd12bbf65841693fe35a15167d8f9a2c6bd065bcb6f54039cd2cdec2e8615b2d642b54e828fd43c92539a880ef2e8fee40df15e7d534e9bf8e1d19acb5485aa48d5a5035c5aa1b1a6734a7e458603000000000000000000000000000000000000000000000000000000000000000a22df0544935895d983d25fc8f660a65a0c9ef3cef40a765fec41097915c28b8e06a009bb0279fdc21457c8fe021e477ff0ba7bd03249148a43846ccfe08e81dd998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a5820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34d9985b83014160825820de09627c46a31f8709549fa23b625c668c517bded5d9f24e7a2330ab07247dea58206534b348fbc3897ec1f5ea8a4e6c97b3d4790682ac354ec48e0b3c7fea06a017d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00", - "8203d998798501d998778602d9987883014101582102f151fc6a99f795f7ac289305ae618a64a4a4cd54126f4c23ac5b04d04ba580ea582043a581671cc9a3f2e0ced1f2977a4944deab7679387bba96d05de0c6a6137dfd582032b861d8405c7c507338ee25f44b48a8e0ebae08dcfe2e416fe2ec7595b148b4f65841a3fd40e41ed0ed9cf5602aa03941cf14243439a6bdd5a68a7f4d47accf6fbd24790c333138ecb1c8d9b72795717978e7c036fa740c6dc9825fec092f176eb4b11b1a6734a7e458402000000000000000000000000000000000000000000000000000000000000000a922b2f6d247328a40eb64d1a1029d54a4d617e22134c666f78a0deeefa360a4d998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a5820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e34d9985b83014160825820de09627c46a31f8709549fa23b625c668c517bded5d9f24e7a2330ab07247dea58206534b348fbc3897ec1f5ea8a4e6c97b3d4790682ac354ec48e0b3c7fea06a017d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00" + "8203d998798501d998778602d9987883014101582102f151fc6a99f795f7ac289305ae618a64a4a4cd54126f4c23ac5b04d04ba580ea5820c85d860764e7cdf6826aff8ac59f78f944bacd4b2bcb733e58731c41b0b38064582074a52d40767166d695ee4c31794fb26a588bb80e88ae92799dc153e726482034f6584141aba96966d402cbe5b6122b7d24e54c300dee14211e2759255b40b13d69dff56b4d7403cd0126b85a21a32ac9af96eb724d8283da154a4f541cb36e3979a9b61b1a6734a78058803800000000000000000000000000000000000000000000000000000000000000a22df0544935895d983d25fc8f660a65a0c9ef3cef40a765fec41097915c28b8b5681e2966e4d2d2d65a9fa4d727ed15dd0f159038ba923a9d7506d2065baf6b0391186a643356a2c85b6ca3219a368bd3363875bba76946bce52000161e6634d998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a58209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449fd9985b83014160825820ec4442fb03d330f4d7c5d386bd96edfaa5c2826260f70183b4872e572dca82d55820ee59126479133a9a0c01cba6bf517c05057f019b04bdb99f0512bc83c5b2740fd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000", + "8203d998798501d998778602d9987883014101582102f151fc6a99f795f7ac289305ae618a64a4a4cd54126f4c23ac5b04d04ba580ea5820acc374ffacb40103b8a883d08becec7a64ac7a4c55f782df508f9fd0259165fa5820743cfdc0513396cc079e4ee890f202852746f782db9343a401356146a79e2d08f65841a24c0bdbd377112851ae485b0b267302361cf8d5e3639d98ac53cb5b134806e1eca0f2687eacfa6b3c24e6b5965ca068091dad043df56cb46ca19411e94561851b1a6734a78058803800000000000000000000000000000000000000000000000000000000000000a22df0544935895d983d25fc8f660a65a0c9ef3cef40a765fec41097915c28b8b5681e2966e4d2d2d65a9fa4d727ed15dd0f159038ba923a9d7506d2065baf6b1223803a158f7fe29d4aa03368a8389fdde7c7cb40cdbd2bb7231a33604f379dd998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a58209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449fd9985b83014160825820ec4442fb03d330f4d7c5d386bd96edfaa5c2826260f70183b4872e572dca82d55820ee59126479133a9a0c01cba6bf517c05057f019b04bdb99f0512bc83c5b2740fd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000", + "8203d998798501d998778602d9987883014101582102f151fc6a99f795f7ac289305ae618a64a4a4cd54126f4c23ac5b04d04ba580ea5820c762558a95d8a46bb5b028a41e63abdc8b2daf6ebff2e7911cb8246903335d29582014b72565cabab6220ae454e0e870111e42b62b124fe9d950cb49b1586dfd12bbf65841693fe35a15167d8f9a2c6bd065bcb6f54039cd2cdec2e8615b2d642b54e828fd43c92539a880ef2e8fee40df15e7d534e9bf8e1d19acb5485aa48d5a5035c5aa1b1a6734a7e458603000000000000000000000000000000000000000000000000000000000000000a22df0544935895d983d25fc8f660a65a0c9ef3cef40a765fec41097915c28b8e06a009bb0279fdc21457c8fe021e477ff0ba7bd03249148a43846ccfe08e81dd998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a58209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449fd9985b83014160825820ec4442fb03d330f4d7c5d386bd96edfaa5c2826260f70183b4872e572dca82d55820ee59126479133a9a0c01cba6bf517c05057f019b04bdb99f0512bc83c5b2740fd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000", + "8203d998798501d998778602d9987883014101582102f151fc6a99f795f7ac289305ae618a64a4a4cd54126f4c23ac5b04d04ba580ea582043a581671cc9a3f2e0ced1f2977a4944deab7679387bba96d05de0c6a6137dfd582032b861d8405c7c507338ee25f44b48a8e0ebae08dcfe2e416fe2ec7595b148b4f65841a3fd40e41ed0ed9cf5602aa03941cf14243439a6bdd5a68a7f4d47accf6fbd24790c333138ecb1c8d9b72795717978e7c036fa740c6dc9825fec092f176eb4b11b1a6734a7e458402000000000000000000000000000000000000000000000000000000000000000a922b2f6d247328a40eb64d1a1029d54a4d617e22134c666f78a0deeefa360a4d998598701d9985a8a0103005820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae5820a123c445c069ebbd79bd9d2920c163ed81264aaa3a1f45659af3a29fe3d683ae401a6734a848f600f65820e188b5ae3d205f9d2a5674457e654e5d6c6d0b7c8d4f2a87426710423d390f4a58209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449fd9985b83014160825820ec4442fb03d330f4d7c5d386bd96edfaa5c2826260f70183b4872e572dca82d55820ee59126479133a9a0c01cba6bf517c05057f019b04bdb99f0512bc83c5b2740fd9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000" ] }, { "shard": "10", - "uc": "d998598701d9985a8a0102005820e34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad20058207e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f401a6734a7e45820b2a12dbad6b388cd0a2bfc6b4d7d1cd7d6bde2e60a17e631de546479c6ebdd62182bf65820eb40a36a983e22161258290fd9ba9063258ec9d7c459198153cfdb888817d86058203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57dd9985b830141a08258201915575a33ca992d26d6bd3ac55679cec4d8567df8cdf35657a898ee964dbb0a58200fb376f62488c401974ea055312933466d1ced2f92d70d72d40f9c3cb826f3e7d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00", + "uc": "d998598701d9985a8a0102005820e34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad20058207e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f401a6734a7e45820b2a12dbad6b388cd0a2bfc6b4d7d1cd7d6bde2e60a17e631de546479c6ebdd62182bf65820eb40a36a983e22161258290fd9ba9063258ec9d7c459198153cfdb888817d8605820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d2d9985b830141a0825820e5ee3dd0fd381e98eccdb3c05676ebe4eb8d1222e08f627cb3c23feae234f6345820d0ef06ac09f88f45acae4208c78b5653fd490ec6ef8d93e650cf00cd0f185256d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000", "proofs": [ - "8202d998798501d998778602d9987883014101582102ba860a8be9dc615fe3c058752ad1580c81c58359b37f2ab259f41f416e05601b5820ab2b235a6c66fe5abcf7d1930bce1af60290c0e028aebd9633f016d4fe23a1a65820cc302c0dfce88cbdbc7b23bd84ba0f578c31477cbf136e18ea8920688bc3bbb5f6584125b3b91a5507f80ac444b715e89f8381126d2c3bcbca79cecdc226b562772c8f7293e2b472c87246a6bd35bee7195a4abf8a4ff82cfad5db015d7b804bea3a461b1a6734a78058602100000000000000000000000000000000000000000000000000000000000000a996bca9e3c17735a187bb5f3362959ce9c106461e32c7a37a78c7953f8d6ade50b439fabfb497e72d8ab35b877754abf101d76112f1e7c62e6801ce16c7d4d6d998598701d9985a8a0102005820e34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad20058207e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f401a6734a7e45820b2a12dbad6b388cd0a2bfc6b4d7d1cd7d6bde2e60a17e631de546479c6ebdd62182bf65820eb40a36a983e22161258290fd9ba9063258ec9d7c459198153cfdb888817d86058203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57dd9985b830141a08258201915575a33ca992d26d6bd3ac55679cec4d8567df8cdf35657a898ee964dbb0a58200fb376f62488c401974ea055312933466d1ced2f92d70d72d40f9c3cb826f3e7d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00", - "8202d998798501d998778602d9987883014101582102ba860a8be9dc615fe3c058752ad1580c81c58359b37f2ab259f41f416e05601b582011c861a94d91528ffbee05330e740f59b6896a12af205fd009b0580d397f9f1e58202bb660d566aa08f976a449254f8b128eb313676c134eb17bc2edbe5304fd956af658415eceb8e484496085c09bc08b7645877a57734ec61eda6e690e478e4c3e2afc746bfb870c200213d32c75813ddd757a320e02a93e2f17498aa1ce7493dde8f4471b1a6734a7e458602100000000000000000000000000000000000000000000000000000000000000a996bca9e3c17735a187bb5f3362959ce9c106461e32c7a37a78c7953f8d6adee34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad200d998598701d9985a8a0102005820e34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad20058207e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f401a6734a7e45820b2a12dbad6b388cd0a2bfc6b4d7d1cd7d6bde2e60a17e631de546479c6ebdd62182bf65820eb40a36a983e22161258290fd9ba9063258ec9d7c459198153cfdb888817d86058203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57dd9985b830141a08258201915575a33ca992d26d6bd3ac55679cec4d8567df8cdf35657a898ee964dbb0a58200fb376f62488c401974ea055312933466d1ced2f92d70d72d40f9c3cb826f3e7d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00", - "8202d998798501d998778602d9987883014101582102ba860a8be9dc615fe3c058752ad1580c81c58359b37f2ab259f41f416e05601b5820eafe73e781bca557d4c3e390777679249b38ea0b78d75c8624158003fc7dcb675820ed99fc9be92a8a842d25545c07c0974029223688aa1ec9866cfd7d67008cdc4af6584105f2551ea60e47144bbe2299f2ec27e338dbc5e92cf209e424f7a09a828964b2907cbbae1a8350a45d7e84b3f995a9fffec941b13049850b8456301cf4c6d4101b1a6734a7e4584020000000000000000000000000000000000000000000000000000000000000001e2ae5e704d0e06fea0c027ec8907aab329e77a931902324310df87ba8c1df18d998598701d9985a8a0102005820e34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad20058207e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f401a6734a7e45820b2a12dbad6b388cd0a2bfc6b4d7d1cd7d6bde2e60a17e631de546479c6ebdd62182bf65820eb40a36a983e22161258290fd9ba9063258ec9d7c459198153cfdb888817d86058203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57dd9985b830141a08258201915575a33ca992d26d6bd3ac55679cec4d8567df8cdf35657a898ee964dbb0a58200fb376f62488c401974ea055312933466d1ced2f92d70d72d40f9c3cb826f3e7d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac58201790f777cf33d64af1f6ef633d8084c5c8cbb198a654b19a3c26dedf465383e45820b9d0c39fc0f556fac2971f3aa840a724382938a7a544356757156cbbad354443a366726f6f742d315841caf83e0f79ec16e28d2d0201d8ca49f3acc8e1aa7181465bf91860082d24690178e5ccea6b0829fb1bfef7a4f0880a69595d3a588a31b3d64904692af67225cb0066726f6f742d325841c9cc89935b06e04156cc57be9196f573596789d9d3d9c80159d90dbf41d4e2aa6bd26b903466dbf48c9d97f2f91f2614d5020908c99f7a89e5578dfe3d78b1060166726f6f742d335841b1be9f0292e328c51f23fd44da2afb715b620db7b7946230bb9213a6c4dcaf3909bf8a537d33871648c694f11ef26c4381f5f88757f9ddeb3e4d80e54719283e00" + "8202d998798501d998778602d9987883014101582102ba860a8be9dc615fe3c058752ad1580c81c58359b37f2ab259f41f416e05601b5820ab2b235a6c66fe5abcf7d1930bce1af60290c0e028aebd9633f016d4fe23a1a65820cc302c0dfce88cbdbc7b23bd84ba0f578c31477cbf136e18ea8920688bc3bbb5f6584125b3b91a5507f80ac444b715e89f8381126d2c3bcbca79cecdc226b562772c8f7293e2b472c87246a6bd35bee7195a4abf8a4ff82cfad5db015d7b804bea3a461b1a6734a78058602100000000000000000000000000000000000000000000000000000000000000a996bca9e3c17735a187bb5f3362959ce9c106461e32c7a37a78c7953f8d6ade50b439fabfb497e72d8ab35b877754abf101d76112f1e7c62e6801ce16c7d4d6d998598701d9985a8a0102005820e34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad20058207e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f401a6734a7e45820b2a12dbad6b388cd0a2bfc6b4d7d1cd7d6bde2e60a17e631de546479c6ebdd62182bf65820eb40a36a983e22161258290fd9ba9063258ec9d7c459198153cfdb888817d8605820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d2d9985b830141a0825820e5ee3dd0fd381e98eccdb3c05676ebe4eb8d1222e08f627cb3c23feae234f6345820d0ef06ac09f88f45acae4208c78b5653fd490ec6ef8d93e650cf00cd0f185256d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000", + "8202d998798501d998778602d9987883014101582102ba860a8be9dc615fe3c058752ad1580c81c58359b37f2ab259f41f416e05601b582011c861a94d91528ffbee05330e740f59b6896a12af205fd009b0580d397f9f1e58202bb660d566aa08f976a449254f8b128eb313676c134eb17bc2edbe5304fd956af658415eceb8e484496085c09bc08b7645877a57734ec61eda6e690e478e4c3e2afc746bfb870c200213d32c75813ddd757a320e02a93e2f17498aa1ce7493dde8f4471b1a6734a7e458602100000000000000000000000000000000000000000000000000000000000000a996bca9e3c17735a187bb5f3362959ce9c106461e32c7a37a78c7953f8d6adee34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad200d998598701d9985a8a0102005820e34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad20058207e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f401a6734a7e45820b2a12dbad6b388cd0a2bfc6b4d7d1cd7d6bde2e60a17e631de546479c6ebdd62182bf65820eb40a36a983e22161258290fd9ba9063258ec9d7c459198153cfdb888817d8605820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d2d9985b830141a0825820e5ee3dd0fd381e98eccdb3c05676ebe4eb8d1222e08f627cb3c23feae234f6345820d0ef06ac09f88f45acae4208c78b5653fd490ec6ef8d93e650cf00cd0f185256d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000", + "8202d998798501d998778602d9987883014101582102ba860a8be9dc615fe3c058752ad1580c81c58359b37f2ab259f41f416e05601b5820eafe73e781bca557d4c3e390777679249b38ea0b78d75c8624158003fc7dcb675820ed99fc9be92a8a842d25545c07c0974029223688aa1ec9866cfd7d67008cdc4af6584105f2551ea60e47144bbe2299f2ec27e338dbc5e92cf209e424f7a09a828964b2907cbbae1a8350a45d7e84b3f995a9fffec941b13049850b8456301cf4c6d4101b1a6734a7e4584020000000000000000000000000000000000000000000000000000000000000001e2ae5e704d0e06fea0c027ec8907aab329e77a931902324310df87ba8c1df18d998598701d9985a8a0102005820e34dcf43fb2221af1874aa56cb17b107e2976f01d8f69b13816c7bfd694ad20058207e7dae4e45bc7d86701163acc049ffb0994fab7132c0c2034af441aaf8b7963f401a6734a7e45820b2a12dbad6b388cd0a2bfc6b4d7d1cd7d6bde2e60a17e631de546479c6ebdd62182bf65820eb40a36a983e22161258290fd9ba9063258ec9d7c459198153cfdb888817d8605820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d2d9985b830141a0825820e5ee3dd0fd381e98eccdb3c05676ebe4eb8d1222e08f627cb3c23feae234f6345820d0ef06ac09f88f45acae4208c78b5653fd490ec6ef8d93e650cf00cd0f185256d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac5820df738a763aea103c611cf72b41a6ae901976fb3f66628c96f709741621351b575820ed5bea913460124893b7ab32ed8d3be149eb6b34c6cd9612c3775fac754483e4a366726f6f742d315841bce80a7ba26529ecf815c4ac73e49226e6114ad0558f1b8e65e3036e50857c49163bce322d8af35622596d7d4cb02d3ef6f056fada2f287c2ab679249b46f3cf0166726f6f742d325841b79e462c19785e7a8b16dc03208b49be617a5dfc2b2b01b825a60e3d1c8745266f6914549189acf19ba79c0a4b6283ef4ba51d0e226b4dca6285c7ebffdbd6c30166726f6f742d3358417cc234a56f12811803f1538bde9773181381000f3746379cbc9cab8b063cf49078bb1fc71ad12641c629798637aa52440f22c223d48678dd6b001860116ceb4000" ] } ] diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/partition-view.cbor index d52a73ef8b253563a370cee9483bebd77f682502..bd01c1aa5cf839d7ab898b1ded8b38304fa1fb10 100644 GIT binary patch delta 148 zcmV;F0Biru1k41GIUwkWJuD)l8d1Iji=ddo0L&?jMUM-I4r??REX`vRvvZMIdmx=T zhfF&&(Zl8WS1HCJP(w{$RbTRQy?-q$m{D!+M4yrLognzyA+s>M!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zeb0ec{Fwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7CE CSwjf` delta 148 zcmV;F0Biru1k41GIUtA6XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yQ!dmyG; zRW_kHQ1Jf|{*TvI@y_W6zrNV+@VD|xow1+NNEy{w`SRn3M5@dN3I+_dt%cj3k zd<6x60hT!R4zfr1BEATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAm4L}b~@@1JYgL7D?z5NkQsLSKW1W#miGyC z79lkoS6CqJTk4TCU=m1^x2rPkjXU8<>uWT|&6X0wcVDb^M1$m`W^!+DbS*JhLA>Y+ zd!l72?D!SLtbcRlk|yR6O3+o08;)h;18z`-d`T8N&N3~E^Hw5RZGB9zEk5?}R{Gj6 zD10imc_f=g^Uncha&K>REiza^x1L5U8F*fLix%7iAd5-9VR~KsD=PuGC8iEN9EU|F zZ)p@%k%_GFo2Q%#OJalXOQjtSB5O^`Vui=+|J&BX0ZL|aZ*O!hGgv`4 z@l%W5mva~sfdCITMmLWWTm zm$TG)27;_LPQ;E2Jb&s2pcmPgT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@Ph$HAF+BW^!+DbS*JhLCW|( z4|(hs;*Bi=0e{%aN%O48;i_?gMqBw9UREiza^$;^q9TL$1kR?Jtvk(TvyS!apa)7i)YS=kN0LDb@^ zYtn0wG-liMjGdSA`5z_})dC3!$)9?OD| diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/response-v2.cbor index 4c68a5c2e23ca78630d4d9325d7bc350a92c277a..f470d11f414aedafa13a64b3e8297837ebe7fd67 100644 GIT binary patch delta 614 zcmaFE`G#}Cwfec1?LOAV7Y{%E8LoLuF~He3J~aMQ(cXGp?HPf&?_B2JoDtp3=$OzH zq437V={NIbgD=;QUT)hv?d`9nhnkWSzB4v&Y1a$aJ=JtILg8JcP)en+)hr&y)64b; z*08eHGtOq&yK_FP(4OX_n@ad^&WLGdWN&O@k5DjtlfnA?;KXzFOKaZv898tJzi#oB z1$_Vc0v!4dc{&%~io7`^wu6zGhfylsWW|~Yh5N-_Wmc~QY!YR@YdbDmH$k%Ow|!bt z&$REHC1Q%E(%}&bZ=+vLG)WNhn7n1=lhmFGdR++Zm+nh_%$yg{TH`5Zea=X?>vNb=WNxj` z23@;vAHsg!($}cb+E%GD+wJptMu<^H5susEx#>tq{R-C7EoZ|-J3XV09~-E1~rCRFT}KQ47q&GDFKWt;h`AQyh6L&{g$ zD(+@8NF)g6ympv8hsjp?MTf19(qgH=eazhpW*lNTquJxy&)v?KZ6cv_Hd%Ocaf@TZ z#JCCtLXkds3iDirAGZ`Y8|*$f?IPdI&C8m^7@IfcDo%+M=$qs)yOi-~(xu6PEY%7{ l+oT!Ku50)-XWhZCue$tl zrf&ZZv;fH95L|QnLA-6;sNXk7se~ z30|~m$(4U{PLXBe|C=*nI~bXG7^TupR;-Co5TEe9{JilsuaDo}C)+l(96fP*f*dOttdag zMAtCF@zf7H{>nFEk9u{P80&AG^8CE!#KTpEjc(CDB@#GvRWcbXo}PJ?&7t{Q`rr2@ zA3C@)BV(;1x(qj8^JK}?`c|ZRngL>zQH0~kGo6#8*&aBCoeAGJaoX47$n?&emv5e6 zjJ(Oa-|@<$RoR!aCzzz&{?apd`lp}rY9d#eI5|$vuj+gn-uutCVj~-)C&Vb@2*-{4 z<}*!ttZ`Ic`LD|@t>1;wNxa*)Pf0S^JxO@kkvr=xIrn!3*BZBrc^sSaQSMWYbK}<^ z?cqP~zP9sicxR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/shard-configs/01.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/shard-configs/01.cbor index d5fc30356370db7f34ccbbcf6e28a83ab1baa623..28aba4c6c2220314b973f01adce381b08575a2e9 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/shard-configs/10.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/shard-configs/10.cbor index 9289fadfb9f68bc99d683785babfed4f85a49db8..73198885820897baff7dfe81f37dbd7ef6f5b236 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/shard-configs/11.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/shard-configs/11.cbor index 51df65f0d14121dc3b7867a52e439f0ead5cea62..fa2939fc9c8d20aac627305fd9219fd45cdaa374 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/trust-base.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/trust-base.cbor index 603ae1e01e19147ff6673509a47d3b183240e451..951ca8d2852a8ba4a30a48062f8f00021c3cf0f3 100644 GIT binary patch delta 95 zcmdnT*u!LWb4GdxBQpadV}!!|^Pz3#f=7h+zFX@v>FJ;5yT!R4zfr1BEATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAm4L}b~@@1JYgL7D?z5NkQsLSKW1W#miGyC z79lkoS6CqJTk4TCU=m1^x2rPkjXU8<>uWT|&6X0wcVDb^M1$m`W^!+DbS*JhLA>Y+ zd!l72?D!SLtbcRlk|yR6O3+o08;)h;18z`-d`T8N&N3~E^Hw5RZGB9zEk5?}R{Gj6 zD10imc_f=g^Uncha&K>REiza^x1L5U8F*fLix%7iAd5-9VR~KsD=PuGC8iEN9EU|F zZ)p@%k%_GFo2Q%#OJalXOQjtSB5O^`Vui=+|J&BX0ZL|aZ*O!hGgv`4 z@l%W5mva~sfdCITMmL1w3fq-3gU@$Jq)UAt~s;aWWTm zm$TG)27;_LPQ;E2Jb&s2pcmPgT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@Ph$HAF+BW^!+DbS*JhLCW|( z4|(hs;*Bi=0e{%aN%O48;i_?gMqBw9UREiza^$;^q9TL$1kR?Jtvk(TvyS!apa)7i)YS=kN0LDb@^ zYtn0wG-liMjGdSA`5z_})dC3!$)9?O_kHQ1Jf|{*TvI@y_W6zrNV+@VD|xow1+NNEy{w`SRn3M5@dN3I+_dt%cj3k zd<6x60hT!R4zfr1BEATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAm4L}b~@@1JYgL7D?z5NkQsLSKW1W#miGyC z79lkoS6CqJTk4TCU=m1^x2rPkjXU8<>uWT|&6X0wcVDb^M1$m`W^!+DbS*JhLA>Y+ zd!l72?D!SLtbcRlk|yR6O3+o08;)h;18z`-d`T8N&N3~E^Hw5RZGB9zEk5?}R{Gj6 zD10imc_f=g^Uncha&K>REiza^x1L5U8F*fLix%7iAd5-9VR~KsD=PuGC8iEN9EU|F zZ)p@%k%_GFo2Q%#OJalXOQjtSB5O^`Vui=+|J&BX0ZL|aZ*O!hGgv`4 z@l%W5mva~sfdCITMmLWWTm zm$TG)27;_LPQ;E2Jb&s2pcmPgT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@Ph$HAF+BW^!+DbS*JhLCW|( z4|(hs;*Bi=0e{%aN%O48;i_?gMqBw9UREiza^$;^q9TL$1kR?Jtvk(TvyS!apa)7i)YS=kN0LDb@^ zYtn0wG-liMjGdSA`5z_})dC3!$)9?OM!IseunX{&X76F5@Z6TCd5RQ^Sn{@&CV$#`|TY~{X zpn_N+lR(9*;>x~j3;E!T_v%){>;xzU&SRl~v2CNDAk43DmLI}r; zR#W{+4#w||ljcy*0L>2=QdZfRT!R4zfr1BEATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAm4L}b~@@1JYgL7D?z5NkQsLSKW1W#miGyC z79lkoS6CqJTk4TCU=m1^x2rPkjXU8<>uWT|&6X0wcVDb^M1$m`W^!+DbS*JhLA>Y+ zd!l72?D!SLtbcRlk|yR6O3+o08;)h;18z`-d`T8N&N3~E^Hw5RZGB9zEk5?}R{Gj6 zD10imc_f=g^Uncha&K>REiza^x1L5U8F*fLix%7iAd5-9VR~KsD=PuGC8iEN9EU|F zZ)p@%k%_GFo2Q%#OJalXOQjtSB5O^`Vui=+|J&BX0ZL|aZ*O!hGgv`4 z@l%W5mva~sfdCITMmLAQCf2<=#a4OF#MoAS_|5ZHSE!iomQA|~SRfCxcJ?HQ!~vI1pj9y` zGe&J3?Jtto4RX{EoIJQD^XJ)^T!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@Ph$HAF+BW^!+DbS*JhLCW|( z4|(hs;*Bi=0e{%aN%O48;i_?gMqBw9UREiza^$;^q9TL$1kR?Jtvk(TvyS!apa)7i)YS=kN0LDb@^ zYtn0wG-liMjGdSA`5z_})dC3!$)9?O2=QdZfRT!R4zfr1BEATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtAm4L}b~@@1JYgL7D?z5NkQsLSKW1W#miGyC z79lkoS6CqJTk4TCU=m1^x2rPkjXU8<>uWT|&6X0wcVDb^M1$m`W^!+DbS*JhLA>Y+ zd!l72?D!SLtbcRlk|yR6O3+o08;)h;18z`-d`T8N&N3~E^Hw5RZGB9zEk5?}R{Gj6 zD10imc_f=g^Uncha&K>REiza^x1L5U8F*fLix%7iAd5-9VR~KsD=PuGC8iEN9EU|F zZ)p@%k%_GFo2Q%#OJalXOQjtSB5O^`Vui=+|J&BX0ZL|aZ*O!hGgv`4 z@l%W5mva~sfdCITMmLPh$HAF+BW^!+DbS*JhLCW|( z4|(hs;*Bi=0e{%aN%O48;i_?gMqBw9UREiza^$;^q9TL$1kR?Jtvk(TvyS!apa)7i)YS=kN0LDb@^ zYtn0wG-liMjGdSA`5z_})dC3!$)9?OM!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRW`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*JhLGJ_A z(Vt^SW7#Kp7Jo%WW#pyc)bQ9ktZqNT!09g*YF27l^nZkZcAzW@zv<|T?Rba=qP{=d zdCiqLOgcv&>Qn$`a&K>REiza^{t|j|uw_?z!rhK`Xz_|+p53Aw+J_EE#aegr?MX=j zbSxxapD<9fq+%n8-UFhNLuLh{1B3L$6yq*;LG|)UGXUNT_UHmF8oDzJX!WyXx7PT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@9F0UcREiza^gPo4ITV7utz!=mgCm6|hROk>P2oeg4!dLdR>DiMw zY+cdKx^H^{1lOt}6Tf_T_*Xogay|PZjSBHt=iZ%c0ZL|aZ*O!hGgv_;$pa3kp*s(5sJ4xrfbrI`ia10Fef}w+8IQzw0BKhxNo&hN72YCSO*~$<47DU! HC>_rLKT^-G diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/response-v2.cbor index 2cf5b78c8b3c8e8fbb74bce6bded2b25ce514ac6..f56ba8773b91237fd5c38ef790c9da553b6fdfbf 100644 GIT binary patch delta 613 zcmZ3+xr}qdwfYwwwmM3Sr2_XccQ2T6h~bQ8k83}7J72bmgwEMy;myT2XGAwMIw~|p zDA+rS%}H`?xi?pJSIzQ{Px?1<46bXmAAh(00`Fp((|;#NCz zvemyjy=8Ldi3GKPJ(?SePlWK@oDtK^$lln*9-(0PCWH0&!HMVUm)5-TGjiVcf8F9M z3;6!?1vvB_@^mh|6?t<;YzHGV52IAN$%-`*3VN20=0=_F_@G~{YBxXYe2tq--S+D5 zap4bRPOu$#EB+=zL9qMA-KadT)EcK-^SwAPFIVGndh^-f`dyab3YA;We3vdxE6UF= z(KU>4e9wIK;{0Uy|j79c+vC+25`_JJrI+%3c0d2m{0@qX@@;LREzuQp2kb-R&#O_}G;=@9rY$TkU)v zN2AI=z4i2DD$!AipKlPbc}bFT$35mnlbq977cqBlD$@wPxaL~s^IS$Rh*8E7j=|d{ zFL%3U1?b3MdUV)Ep5J%gf32yWhM8t1hlLw9TR&60^gqTUV1-EjYDclP2AkH2?_HPL zwq7B9r|iS#eGjF)7$?tVYEmE+os;dEO%>)^w)C)tv%ySir lwn;OdUDxnw%7wlO^W`rXdvvE3h*__3h_>7^H~rQ#LjVCQZ#?{`c%^+&oRb^V#6epQcOSQ}<6`7M(=r^iv~=8WiOMn{FF z2!-_t3HG@sPpoxbA8mazvVHHR^&`e3ip*Ucy{(kgo5hA!$&G*Y>iwVhDKCf zxTf{`%|a&@&8g3loAxy(Uf%uc=8TwTM)t-g_6P;{&5h=dt0qU+Pf9kwvtmja^YJWh zJ;94MExGbf&MC4?{C{&sYzHF~52IAN$%-`*3KpAVx-NedSg}#8@NHVjfmKymYzFZW zK5|~Vj(e^KsVYS%h_+=gPW)C7_w%zhTY^lhr}k_Kg_O2+huU}cOso(~QeK=^l%HRs zYZ&2}{Q01mj#9r{QSUD8`bFoo0!p2}1um|eXdK$nlccdHZ*R=xO`azwvt76U$S9l9 zviiIHB)JQZ()kt~`NLCsOtjpG0b-OgDkk-SSTK2F}8xwUb{m&sAv4 k6E@)L))5g;+_K_a*_rpZ*VOLV>G@;3g#XedYU*E`01g2ewg3PC diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/responses.json b/src/test/resources/shared/uc-consolidation/v1/shards-4/responses.json index c39ad41a..92713144 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-4/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-4/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d31584163f3c1162c228f46728dba2ba2ce2a507542f651a37e913355888c6228bc6ebd5c93b249c99306d73ff1011d6884abf71f921ed0e2670ea0c4fc0c75c615774c0066726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d315841ef03d5d19f634763d9277916454565e4a5e0d4f0d83aac6e3fc2c0e92f166a566a59f47f847f76a02c0abfe9e88aed788806a2be3fdb79cd95384c3a471fea540066726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a01" ], - "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e348441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582" + "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f8441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/shard-configs/00.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/shard-configs/00.cbor index cb1598abfc58d83841815979a6d685c4df9ad2ae..4f1cc53bc277c971e2828cbcf3e75086ea0bef5b 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/shard-configs/01.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/shard-configs/01.cbor index d5fc30356370db7f34ccbbcf6e28a83ab1baa623..28aba4c6c2220314b973f01adce381b08575a2e9 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/shard-configs/10.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/shard-configs/10.cbor index 9289fadfb9f68bc99d683785babfed4f85a49db8..73198885820897baff7dfe81f37dbd7ef6f5b236 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/shard-configs/11.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/shard-configs/11.cbor index 51df65f0d14121dc3b7867a52e439f0ead5cea62..fa2939fc9c8d20aac627305fd9219fd45cdaa374 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/trust-base.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/trust-base.cbor index 603ae1e01e19147ff6673509a47d3b183240e451..951ca8d2852a8ba4a30a48062f8f00021c3cf0f3 100644 GIT binary patch delta 95 zcmdnT*u!LWb4GdxBQpadV}!!|^Pz3#f=7h+zFX@v>FJ;5y`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*JhLGJ_A z(Vt^SW7#Kp7Jo%WW#pyc)bQ9ktZqNT!09g*YF27l^nZkZcAzW@zv<|T?Rba=qP{=d zdCiqLOgcv&>Qn$`a&K>REiza^{t|j|uw_?z!rhK`Xz_|+p53Aw+J_EE#aegr?MX=j zbSxxapD<9fq+%n8-UFhNLuLh{1B3L$6yq*;LG|)UGXUNT_UHmF8oDzJX!WyXx7PT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@9F0UcREiza^gPo4ITV7utz!=mgCm6|hROk>P2oeg4!dLdR>DiMw zY+cdKx^H^{1lOt}6Tf_T_*Xogay|PZjSBHt=iZ%c0ZL|aZ*O!hGgv_;$pa3kp*s(5sJ4xrfbrI`ia10Fef}w+8IQzw0BKhxNo&hN72YCSO*~$<47DU! HC>_rLGyu=1 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/ucs/01.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/ucs/01.cbor index 30f8e57c122f0f45e86a62bf553e8f40d4bc3774..1f7d10aafe0b28108dc34adeaa64c51f5831f15b 100644 GIT binary patch delta 465 zcmV;?0WSXj1O5Y$H-DWuhfF&&(Zl8WS1HCJP(w{$RbTRQy?-q$m{D!+M4#E1TY~{X zV1ig6Rk)R{eKtK@U0)hAG86#U$o%xB1#UWcrEW7+)4{>zSRhf_&DMRvpjNagT+pe? zJulUlgp+B=U?xz!DX??MR1VpgT!R4zfr1BEATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*JhLGJ_A z(Vt^SW7#Kp7Jo%WW#pyc)bQ9ktZqNT!09g*YF27l^nZkZcAzW@zv<|T?Rba=qP{=d zdCiqLOgcv&>Qn$`a&K>REiza^{t|j|uw_?z!rhK`Xz_|+p53Aw+J_EE#aegr?MX=j zbSxxapD<9fq+%n8-UFhNLuLh{1BqxV$Se8y(USRf^#!^C+UJu*b$Rakn^ z)++1lp+W>HmF8oDzJX!WyXx7PT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@9F0UcREiza^gPo4ITV7utz!=mgCm6|hROk>P2oeg4!dLdR>DiMw zY+cdKx^H^{1lOt}6Tf_T_*Xogay|PZjSBHt=iZ%c0ZL|aZ*O!hGgv_;$pa3kp*s(5sJ4xrfbrI`ia10Fef}w+8IQzw0BKhxNo&hN72YCSO*~$<47DU! HC>_rL;u+6; diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/ucs/10.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/ucs/10.cbor index 7ea5827417bf6bc3b7fe245c3bf6eb025e38d3d1..10c2da2d6dc398419b34b178612c994161a1a3cd 100644 GIT binary patch delta 465 zcmV;?0WSXj1O5Y$H-GrrA+s>M!IseunX{&X76F5@Z6TCd5RQ^Sn{@&CV$#`|TY~{X zpn_N+K)tdTY+zqT{&_6BbfFxwi>!w8ZyKFmxdCILDo1rRSRf-%E`WR?$o1UOnP+Im ze&1`mVKO5Kj*J`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*JhLGJ_A z(Vt^SW7#Kp7Jo%WW#pyc)bQ9ktZqNT!09g*YF27l^nZkZcAzW@zv<|T?Rba=qP{=d zdCiqLOgcv&>Qn$`a&K>REiza^{t|j|uw_?z!rhK`Xz_|+p53Aw+J_EE#aegr?MX=j zbSxxapD<9fq+%n8-UFhNLuLh{1B9F0UcREiza^gPo4ITV7utz!=mgCm6|hROk>P2oeg4!dLdR>DiMw zY+cdKx^H^{1lOt}6Tf_T_*Xogay|PZjSBHt=iZ%c0ZL|aZ*O!hGgv_;$pa3kp*s(5sJ4xrfbrI`ia10Fef}w+8IQzw0BKhxNo&hN72YCSO*~$<47DU! HC>_rLHzUo5 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/ucs/11.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/ucs/11.cbor index ced5debb1246a7c9cd4c07df9b53318f2dc45a47..d82cf7ed7c76c9b71f430a48619ed027dc180aba 100644 GIT binary patch delta 465 zcmV;?0WSXL1m*;gpMP?;8v)I(fbx{kj*y=p&@)JjWpEZdtUy~iw4G<#<}ulrTY~{X z;DT5n6WKvpOoU{o>7WxptM7}qw620F^Q6L#$M~?NqmrpySRf-%E`WR?$o1UOnP+Im ze&1`mVKO5Kj*J`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*JhLGJ_A z(Vt^SW7#Kp7Jo%WW#pyc)bQ9ktZqNT!09g*YF27l^nZkZcAzW@zv<|T?Rba=qP{=d zdCiqLOgcv&>Qn$`a&K>REiza^{t|j|uw_?z!rhK`Xz_|+p53Aw+J_EE#aegr?MX=j zbSxxapD<9fq+%n8-UFhNLuLh{1B(YEZI%F26SRnD^F(za$R+OV^dEJp* zqA_G549B7RuKyJWv?B_-XD!*7T!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@9F0UcREiza^gPo4ITV7utz!=mgCm6|hROk>P2oeg4!dLdR>DiMw zY+cdKx^H^{1lOt}6Tf_T_*Xogay|PZjSBHt=iZ%c0ZL|aZ*O!hGgv_;$pa3kp*s(5sJ4xrfbrI`ia10Fef}w+8IQzw0BKhxNo&hN72YCSO*~$<47DU! HC>_rLeb>uO diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/context.json b/src/test/resources/shared/uc-consolidation/v1/shards-8/context.json index 482415ec..88c53729 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-8/context.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-8/context.json @@ -1,6 +1,6 @@ { "corpusVersion": 1, - "networkId": 2, + "networkId": 3, "partitionId": 7, "shards": [ "000", @@ -16,42 +16,42 @@ { "shard": "000", "file": "shard-configs/000.cbor", - "hash": "c983e31d3c1cc6a5b97bfcb8c3283cacf436c2f05efa4cfd707eeeda6d8d54cb" + "hash": "7d2e71ac86a93337e48eb94ba2c99779dbddfac39c2302a392c1abb57b04948e" }, { "shard": "001", "file": "shard-configs/001.cbor", - "hash": "ec83152ddec1cee14cf7823e221f04c98da3c73dcb939b4a057065aa4a0f92a7" + "hash": "ccabe0eb3183c661dad9086982eec3b687f31ab6f3714a72c3de1d89cddd54e2" }, { "shard": "010", "file": "shard-configs/010.cbor", - "hash": "8168493f01af819e91654cda79d43ce4eaaae1f5df17306fb219f8945cf4d449" + "hash": "aa9ad5d4e249bcc0f9c9812871e7a51704c34938ca7c5263c2ba9c4faf91f39e" }, { "shard": "011", "file": "shard-configs/011.cbor", - "hash": "1976a12d8028bf816dd797a089c41bcdc39270041a576b8786b6a0c0c0677bef" + "hash": "a6e8517e38665ff9c1d46e2a8c750af689362d11bd4f435af976b65fc71534d7" }, { "shard": "100", "file": "shard-configs/100.cbor", - "hash": "a7164fc0553d198ed82b4dc46bcd4249615d76079806881b9529307ff3bcc951" + "hash": "d4c118c7f1553dbaf98a59938a571dfee2c8894a44532414febf8d46d3d2dff5" }, { "shard": "101", "file": "shard-configs/101.cbor", - "hash": "17b3383c7da9a5d78921210d81821b181d54699fc515da4993c4dd50c7082982" + "hash": "10ed19ad300767e0a42b2681b78f2f738bed7e2b3e22b4f7497ccd74b0ce021c" }, { "shard": "110", "file": "shard-configs/110.cbor", - "hash": "3626cac1253d43ef16b225092bb42b9b6d0efc9865d9f6976526c6955296b004" + "hash": "25b8194ff8f1dd63b23143341181f436294eed29fb40491e24fd6bd5f54738c5" }, { "shard": "111", "file": "shard-configs/111.cbor", - "hash": "496e049f0404e97759096bd3dbf0d810244468adcd98d47b01830d4ccde382b6" + "hash": "01a8c06784d8cebed1d174c7c18a09f58624ccfa126111bd17f34fb85ed8ecd1" } ], "master": "010", diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/expected.json b/src/test/resources/shared/uc-consolidation/v1/shards-8/expected.json index c1356129..adcd8f46 100644 --- a/src/test/resources/shared/uc-consolidation/v1/shards-8/expected.json +++ b/src/test/resources/shared/uc-consolidation/v1/shards-8/expected.json @@ -15,81 +15,81 @@ { "shard": "010", "stateRoot": "a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf", - "ucSha256": "9cca93720ceb226b2b6e2d4898cf5e907f175c92de3b6ac9d1db89454619ef5e", + "ucSha256": "73a058a3062793a9e7f61bcafc9357caa9d250a4e53d102cfa3b15428c1230c1", "proofSha256": [ - "7791478726ef6d1df6cb895b2923b70c5baf34ccf63d78814de3e91be1950677", - "3e7e7b72846a444e46ed3fa440cf8f2c220120e6643c3bf7fe60bde634ec4462", - "94736ccd0634eca86a23bb2347d13998890371b6328284948cf12fd12492c57b", - "0118be69d1de6609dc167ac3527a380a58f3c2bbaaa40a9cf0fb6e295b33053a" + "15b0abc17f718e1b17f550b0cf93dc56a02df7e27f6d38a0bbe416f860401250", + "397c4bd1a36f2ce04ac3dd168da20512ebef1239ed9ff68722724a3f147e2904", + "6ea771a01273848a1d0844d4cb3ffdb0e7534388e7f3966d19c6872b9412bbb4", + "45608184f68016536ea399b66291981d9da67030bb6eaee1cc6d85d43be24e45" ] }, { "shard": "000", "stateRoot": "919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa", - "ucSha256": "0bba022dc41d269c2fd2b861f178461269c4ac3685d56ee74d0be91aab57ec9a", + "ucSha256": "f6d0249920c4bca7b648efd4fa05277aa415017ee543357c03dd3d5dcefd549e", "proofSha256": [ - "49372f688adde3680a984422de5c4807d521a7774d0ee7da05d216882f2c4117", - "74c33171224debcc7bad370f9c6797219c3220052660ce6d92f9d683dd059e11", - "490481c2896b311f26246eb244e8a27909090f8b514efb4756a07d0e152d8a7d" + "08db1702545df4f221a8467d6fefee8f744ea020c1332129517c67ac8b17690b", + "edb0ee390f4886aa9e767c8f9e0263bd324de638abb8619c2f6082c6ffd80cfc", + "84c6c670eb43a190407a7c08b79f27b4d17db3578c3509d6d6f7b5d5cc9f57db" ] }, { "shard": "101", "stateRoot": "dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7", - "ucSha256": "8c605e06857a58d7e51029f8d323769b11a1c79f4b4e996cd32839dbd98f0685", + "ucSha256": "0cbc623d8529c4d7b271780461624eca26a2f5b4c539dc378aff061a90b28a0b", "proofSha256": [ - "1589c1858ab1c235eadd26265d0381ec02fc0cae7db3c7c164cbf831a2ebf149", - "e0e4d5ce746de930071c4de7c9dd79fb58f310cba77f2ddf24c80edfb864d6fe", - "bd28804f7b10cd6130efe99a83a1300060f84c10bd3b9f8ec96ab3d3b1719000", - "1538f3b6a19583d907a0b01e68f9a9c376960afd59b09b4da80526f4578f0756" + "1b762aa6f14f785eb7e153df4d2f08ae09c815566bc163038c2a52286511835e", + "ad1b177bb6f71bf2be0931f30a7b8655d1b75526aa7fb05cef393cdfa7c71bf5", + "175fd238d7aa91859d9986bbee747a44658b1e9aece503061a5e2a8e15b8f2dd", + "733713cd5f9fa1a5d6ca3339325ea3a02883e609fa3344010203e91e4587018d" ] }, { "shard": "111", "stateRoot": "c5207bf52dbf91e647ca69ca26ac71b5abedadf0c106b95c617c50bff29a08c1", - "ucSha256": "2f5c713d1fe42d279640b529a324b5562771fff38c3670e559884951b94b7d05", + "ucSha256": "d03c5a0293a9e90316ebe35d62222a8c58c148f9ff82f36d095ac12e34f22758", "proofSha256": [ - "5589b1a92053acd6edc06d33d8882aaa3a5e3c9925b6fc914d26d9174e402388", - "7f7121fa0bbd8d71b4dc23e09cc4ce03ae331372b0d02f7bffe99f6ca86aa3c0" + "5cd1ba2e4e0e50d6d7f5a018803dc3a285191c2162bdeb480d9968492ee909e5", + "14ecd8752e37b23cd2692840e66b56dc9ef80956d7a73d5610a7f79f19872cd5" ] } ], "bundle": [ { "shard": "010", - "uc": "d998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a258208168493f01af819e91654cda79d43ce4eaaae1f5df17306fb219f8945cf4d449d9985b83014150835820311eeca981a38ff57af79bdcda0de4a3bfece5ad7440fa02d9ee7f5e5668957b58201481955aab48af8605fa8eb552046af2096b133e24e09def24fb897768d5e861582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", + "uc": "d998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a25820aa9ad5d4e249bcc0f9c9812871e7a51704c34938ca7c5263c2ba9c4faf91f39ed9985b83014150835820f83ce2a9def95edf0da1f7241a83163839ca15589d03c26305afafe3dc2768395820cd8d1531e3ed3dadcf7f76e13de6f4f8de2240aa37a4b24460fa34486d5d9c7558201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", "proofs": [ - "8203d998798501d998778602d99878830141015821020b43377aa1f7ddffca202f41a48a9c7e164f142f92477cb7fdfc6f3b9b31e0ba5820bdcc7979750ff4c40933a02f56598c941c4518be2c5c98b515dea916cc3080b75820614044e2d80235857bfe28b29798fda835e21533ef2b21c2aac30fde223dcc67f6584135f9264f90b01387429a56f1eb3da05b3a4db3aeb46e692bd615e83b5dd2c8daadc4dfe6678b8fc2edec6707c37bc6175bb97634c8793885808d1b1003e40ce41b1a6734a7805880150000000000000000000000000000000000000000000000000000000000000009734bd64fb97a14e1b09e314655c8a51c4e0cbb3aaebea219fbe268962398e394364c560c80c8b007c833d019371d71b387d40648c4fd15f479b8a0c420a6fda1ddacf54befe0a11e8b3784bed109fff46bbd5fc2dc1ef42a196c11e3f5c7afd998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a258208168493f01af819e91654cda79d43ce4eaaae1f5df17306fb219f8945cf4d449d9985b83014150835820311eeca981a38ff57af79bdcda0de4a3bfece5ad7440fa02d9ee7f5e5668957b58201481955aab48af8605fa8eb552046af2096b133e24e09def24fb897768d5e861582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8203d998798501d998778602d99878830141015821020b43377aa1f7ddffca202f41a48a9c7e164f142f92477cb7fdfc6f3b9b31e0ba582015c15336f136ab9eab63bdaefb93f845260ad9b790bb0163c299064a452c2cb7582047f7f8bb98aa95801fa369686c11b629c6adc251155cb5cdd3a365ce36f3c827f65841ccb68b3b17dbe444253f2d3433b3bdb1191f0749551d8352595cf7db0e70e730b056bbe3848a3d227ad2f55e656f4d8f0232f964f5701dfd05241f6b396e5e1d1b1a6734a7805880150000000000000000000000000000000000000000000000000000000000000009734bd64fb97a14e1b09e314655c8a51c4e0cbb3aaebea219fbe268962398e394364c560c80c8b007c833d019371d71b387d40648c4fd15f479b8a0c420a6fd99f57caae820a8bc738aec2b7549443e27ca4e11777ca0cae3befbe6f6a6fd55d998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a258208168493f01af819e91654cda79d43ce4eaaae1f5df17306fb219f8945cf4d449d9985b83014150835820311eeca981a38ff57af79bdcda0de4a3bfece5ad7440fa02d9ee7f5e5668957b58201481955aab48af8605fa8eb552046af2096b133e24e09def24fb897768d5e861582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8203d998798501d998778602d99878830141015821020b43377aa1f7ddffca202f41a48a9c7e164f142f92477cb7fdfc6f3b9b31e0ba582040d077a2273502c0daa59605117b5473b81eb500a2fd31647b1ae29a6d209d865820c79fdf0d0dec12fcb67d6400bf4d035a612dd11851c7692973ba3250a39daae5f65841c2dedfb32ba018f2559702c3ac057561114a86b12ec00450e13d19835cc7358e7f617a6b48dcb6ded21f04f1935ed13c5d9fda5042e87b5d0b3f370f48ccb8f91b1a6734a7e458401000000000000000000000000000000000000000000000000000000000000000d1d58a4b3960de8c94c219f9d110c2917c6a4798612edd9a4867ee395b1b2d07d998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a258208168493f01af819e91654cda79d43ce4eaaae1f5df17306fb219f8945cf4d449d9985b83014150835820311eeca981a38ff57af79bdcda0de4a3bfece5ad7440fa02d9ee7f5e5668957b58201481955aab48af8605fa8eb552046af2096b133e24e09def24fb897768d5e861582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8203d998798501d998778602d99878830141015821020b43377aa1f7ddffca202f41a48a9c7e164f142f92477cb7fdfc6f3b9b31e0ba582080e949e82b48c9e97428e261f92c8eac7b1e755a241f910ad34d73214e49fd6e5820b463e7455feecc6ce4f6a2007ae37ee878ffbb287ed565fb64e4dcf09142e3c3f65841855f1cf88fda2fcd580c4f6753b89b2cc490ac780f55b09ff4a148f23d89debb9e0d9769827726deb640ec668b49d70f51f8a7b45ff49898b41fd56caa3ac5501b1a6734a7e45860140000000000000000000000000000000000000000000000000000000000000009734bd64fb97a14e1b09e314655c8a51c4e0cbb3aaebea219fbe268962398e331c6e8a15e69517ed376acb97ebbe97e6ef9663b19d0186a05c3671d4bd297c1d998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a258208168493f01af819e91654cda79d43ce4eaaae1f5df17306fb219f8945cf4d449d9985b83014150835820311eeca981a38ff57af79bdcda0de4a3bfece5ad7440fa02d9ee7f5e5668957b58201481955aab48af8605fa8eb552046af2096b133e24e09def24fb897768d5e861582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700" + "8203d998798501d998778602d99878830141015821020b43377aa1f7ddffca202f41a48a9c7e164f142f92477cb7fdfc6f3b9b31e0ba5820bdcc7979750ff4c40933a02f56598c941c4518be2c5c98b515dea916cc3080b75820614044e2d80235857bfe28b29798fda835e21533ef2b21c2aac30fde223dcc67f6584135f9264f90b01387429a56f1eb3da05b3a4db3aeb46e692bd615e83b5dd2c8daadc4dfe6678b8fc2edec6707c37bc6175bb97634c8793885808d1b1003e40ce41b1a6734a7805880150000000000000000000000000000000000000000000000000000000000000009734bd64fb97a14e1b09e314655c8a51c4e0cbb3aaebea219fbe268962398e394364c560c80c8b007c833d019371d71b387d40648c4fd15f479b8a0c420a6fda1ddacf54befe0a11e8b3784bed109fff46bbd5fc2dc1ef42a196c11e3f5c7afd998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a25820aa9ad5d4e249bcc0f9c9812871e7a51704c34938ca7c5263c2ba9c4faf91f39ed9985b83014150835820f83ce2a9def95edf0da1f7241a83163839ca15589d03c26305afafe3dc2768395820cd8d1531e3ed3dadcf7f76e13de6f4f8de2240aa37a4b24460fa34486d5d9c7558201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8203d998798501d998778602d99878830141015821020b43377aa1f7ddffca202f41a48a9c7e164f142f92477cb7fdfc6f3b9b31e0ba582015c15336f136ab9eab63bdaefb93f845260ad9b790bb0163c299064a452c2cb7582047f7f8bb98aa95801fa369686c11b629c6adc251155cb5cdd3a365ce36f3c827f65841ccb68b3b17dbe444253f2d3433b3bdb1191f0749551d8352595cf7db0e70e730b056bbe3848a3d227ad2f55e656f4d8f0232f964f5701dfd05241f6b396e5e1d1b1a6734a7805880150000000000000000000000000000000000000000000000000000000000000009734bd64fb97a14e1b09e314655c8a51c4e0cbb3aaebea219fbe268962398e394364c560c80c8b007c833d019371d71b387d40648c4fd15f479b8a0c420a6fd99f57caae820a8bc738aec2b7549443e27ca4e11777ca0cae3befbe6f6a6fd55d998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a25820aa9ad5d4e249bcc0f9c9812871e7a51704c34938ca7c5263c2ba9c4faf91f39ed9985b83014150835820f83ce2a9def95edf0da1f7241a83163839ca15589d03c26305afafe3dc2768395820cd8d1531e3ed3dadcf7f76e13de6f4f8de2240aa37a4b24460fa34486d5d9c7558201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8203d998798501d998778602d99878830141015821020b43377aa1f7ddffca202f41a48a9c7e164f142f92477cb7fdfc6f3b9b31e0ba582040d077a2273502c0daa59605117b5473b81eb500a2fd31647b1ae29a6d209d865820c79fdf0d0dec12fcb67d6400bf4d035a612dd11851c7692973ba3250a39daae5f65841c2dedfb32ba018f2559702c3ac057561114a86b12ec00450e13d19835cc7358e7f617a6b48dcb6ded21f04f1935ed13c5d9fda5042e87b5d0b3f370f48ccb8f91b1a6734a7e458401000000000000000000000000000000000000000000000000000000000000000d1d58a4b3960de8c94c219f9d110c2917c6a4798612edd9a4867ee395b1b2d07d998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a25820aa9ad5d4e249bcc0f9c9812871e7a51704c34938ca7c5263c2ba9c4faf91f39ed9985b83014150835820f83ce2a9def95edf0da1f7241a83163839ca15589d03c26305afafe3dc2768395820cd8d1531e3ed3dadcf7f76e13de6f4f8de2240aa37a4b24460fa34486d5d9c7558201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8203d998798501d998778602d99878830141015821020b43377aa1f7ddffca202f41a48a9c7e164f142f92477cb7fdfc6f3b9b31e0ba582080e949e82b48c9e97428e261f92c8eac7b1e755a241f910ad34d73214e49fd6e5820b463e7455feecc6ce4f6a2007ae37ee878ffbb287ed565fb64e4dcf09142e3c3f65841855f1cf88fda2fcd580c4f6753b89b2cc490ac780f55b09ff4a148f23d89debb9e0d9769827726deb640ec668b49d70f51f8a7b45ff49898b41fd56caa3ac5501b1a6734a7e45860140000000000000000000000000000000000000000000000000000000000000009734bd64fb97a14e1b09e314655c8a51c4e0cbb3aaebea219fbe268962398e331c6e8a15e69517ed376acb97ebbe97e6ef9663b19d0186a05c3671d4bd297c1d998598701d9985a8a0103005820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf5820a440fbcc5d8f2490e48547e73e26d0c8c593b79a7c97b17e2e2f30234c427dbf401a6734a848f600f65820842d8a83f205a64a9c9b9c5c8d70cf1a747f11bce2a2cfb8a55536046ac6c3a25820aa9ad5d4e249bcc0f9c9812871e7a51704c34938ca7c5263c2ba9c4faf91f39ed9985b83014150835820f83ce2a9def95edf0da1f7241a83163839ca15589d03c26305afafe3dc2768395820cd8d1531e3ed3dadcf7f76e13de6f4f8de2240aa37a4b24460fa34486d5d9c7558201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701" ] }, { "shard": "000", - "uc": "d998598701d9985a8a01020058207624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac985820919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa401a6734a7e45820e26a584716450fce29a4dee9e7d395828fa23be46f1546df04de05b7e6a08ee4181ff658204206fba04bbec2b37760f110420d9c9cece6c12a2a827614356d4ee0886daff55820c983e31d3c1cc6a5b97bfcb8c3283cacf436c2f05efa4cfd707eeeda6d8d54cbd9985b8301411083582055fc51be1759316207c907334e67b25e575074012c7bbd7b5d322da02763829a5820077aa75a574e1ef463950d28fbbf260d52248e35177f1e890910a1fa9f34366e582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", + "uc": "d998598701d9985a8a01020058207624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac985820919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa401a6734a7e45820e26a584716450fce29a4dee9e7d395828fa23be46f1546df04de05b7e6a08ee4181ff658204206fba04bbec2b37760f110420d9c9cece6c12a2a827614356d4ee0886daff558207d2e71ac86a93337e48eb94ba2c99779dbddfac39c2302a392c1abb57b04948ed9985b83014110835820d2cea32312521321593081856e196e8139c896d58f9ba0c6c0a7d974e28fdf87582081687e6ffb023138f7b326514b14edba3c799214bc855a26965dbe730b819b0058201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", "proofs": [ - "8202d998798501d998778602d9987883014101582102f34cfaeba31c155f591704eed0ba5a6d496b93062c2dfb823e609b34d3a1e4585820f14ea638e902ebcf9ac98009c201e10673f41900989844d17a7e9c13d019399d58208cfca09e6ab191acf4408f5124fbb6a69fcb9faa642c0bc6bf84cf9f4b4c993af658415be881254a50e18298860c86b39a550fb1c13a89684fa8b86a2d0deace89552be0d6c1ed40d9cfefaa8e5595c7018f254b84a999f7adcc4a4e2be28240acaa721b1a6734a78058401000000000000000000000000000000000000000000000000000000000000000f30b558ec5c10b862c9b8fa8d78cb5bf811ab0dfdaf1fc4d9f721d127108d701d998598701d9985a8a01020058207624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac985820919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa401a6734a7e45820e26a584716450fce29a4dee9e7d395828fa23be46f1546df04de05b7e6a08ee4181ff658204206fba04bbec2b37760f110420d9c9cece6c12a2a827614356d4ee0886daff55820c983e31d3c1cc6a5b97bfcb8c3283cacf436c2f05efa4cfd707eeeda6d8d54cbd9985b8301411083582055fc51be1759316207c907334e67b25e575074012c7bbd7b5d322da02763829a5820077aa75a574e1ef463950d28fbbf260d52248e35177f1e890910a1fa9f34366e582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8202d998798501d998778602d9987883014101582102f34cfaeba31c155f591704eed0ba5a6d496b93062c2dfb823e609b34d3a1e4585820d23448c49c2c21b10d6a84a8bf94f91f4b7301716e73de469c1244a144c21cd45820d40326aa55b527076305e340469ac0a58e5a2b6c2da0c247b3195a2d70ca7afaf6584156d8d634eb391a13b3f95027ea1746dafa0a5403295ab018f929d804b07b67dc59fc461f61f57886d43d2cf5b7198726ab7366af1f1d3de82283a6338fac57101b1a6734a7e4586010800000000000000000000000000000000000000000000000000000000000007624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac9833b98c0865618c0147d932006b977fc00b15747a614cdecbbd9231ef97cde88bd998598701d9985a8a01020058207624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac985820919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa401a6734a7e45820e26a584716450fce29a4dee9e7d395828fa23be46f1546df04de05b7e6a08ee4181ff658204206fba04bbec2b37760f110420d9c9cece6c12a2a827614356d4ee0886daff55820c983e31d3c1cc6a5b97bfcb8c3283cacf436c2f05efa4cfd707eeeda6d8d54cbd9985b8301411083582055fc51be1759316207c907334e67b25e575074012c7bbd7b5d322da02763829a5820077aa75a574e1ef463950d28fbbf260d52248e35177f1e890910a1fa9f34366e582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8202d998798501d998778602d9987883014101582102f34cfaeba31c155f591704eed0ba5a6d496b93062c2dfb823e609b34d3a1e458582024168649192f5780f10dbc3663ed375ad7c3210e57ee2da2bd3a1938a0427be3582037d55418a83a033221738514667e77ae83cdcd54ddb28119be24df396d93edabf65841df6b1f0e320af62bbb426197430c840822d3df22af298ac725ca959ee294f9a331f0691b896f63e5f43b22b0f397719d6a70feacbf32812022eca089e855a4b01b1a6734a7e4586010800000000000000000000000000000000000000000000000000000000000007624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac9891d5bfc70ab1a65137f2b07cef68640333b26b01dcffd21ca4a9cf89d10b33afd998598701d9985a8a01020058207624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac985820919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa401a6734a7e45820e26a584716450fce29a4dee9e7d395828fa23be46f1546df04de05b7e6a08ee4181ff658204206fba04bbec2b37760f110420d9c9cece6c12a2a827614356d4ee0886daff55820c983e31d3c1cc6a5b97bfcb8c3283cacf436c2f05efa4cfd707eeeda6d8d54cbd9985b8301411083582055fc51be1759316207c907334e67b25e575074012c7bbd7b5d322da02763829a5820077aa75a574e1ef463950d28fbbf260d52248e35177f1e890910a1fa9f34366e582092317dff1b311ea319897b51d921a1a71742a3c6d8ef68689d12b59add18ff7cd9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700" + "8202d998798501d998778602d9987883014101582102f34cfaeba31c155f591704eed0ba5a6d496b93062c2dfb823e609b34d3a1e4585820f14ea638e902ebcf9ac98009c201e10673f41900989844d17a7e9c13d019399d58208cfca09e6ab191acf4408f5124fbb6a69fcb9faa642c0bc6bf84cf9f4b4c993af658415be881254a50e18298860c86b39a550fb1c13a89684fa8b86a2d0deace89552be0d6c1ed40d9cfefaa8e5595c7018f254b84a999f7adcc4a4e2be28240acaa721b1a6734a78058401000000000000000000000000000000000000000000000000000000000000000f30b558ec5c10b862c9b8fa8d78cb5bf811ab0dfdaf1fc4d9f721d127108d701d998598701d9985a8a01020058207624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac985820919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa401a6734a7e45820e26a584716450fce29a4dee9e7d395828fa23be46f1546df04de05b7e6a08ee4181ff658204206fba04bbec2b37760f110420d9c9cece6c12a2a827614356d4ee0886daff558207d2e71ac86a93337e48eb94ba2c99779dbddfac39c2302a392c1abb57b04948ed9985b83014110835820d2cea32312521321593081856e196e8139c896d58f9ba0c6c0a7d974e28fdf87582081687e6ffb023138f7b326514b14edba3c799214bc855a26965dbe730b819b0058201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8202d998798501d998778602d9987883014101582102f34cfaeba31c155f591704eed0ba5a6d496b93062c2dfb823e609b34d3a1e4585820d23448c49c2c21b10d6a84a8bf94f91f4b7301716e73de469c1244a144c21cd45820d40326aa55b527076305e340469ac0a58e5a2b6c2da0c247b3195a2d70ca7afaf6584156d8d634eb391a13b3f95027ea1746dafa0a5403295ab018f929d804b07b67dc59fc461f61f57886d43d2cf5b7198726ab7366af1f1d3de82283a6338fac57101b1a6734a7e4586010800000000000000000000000000000000000000000000000000000000000007624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac9833b98c0865618c0147d932006b977fc00b15747a614cdecbbd9231ef97cde88bd998598701d9985a8a01020058207624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac985820919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa401a6734a7e45820e26a584716450fce29a4dee9e7d395828fa23be46f1546df04de05b7e6a08ee4181ff658204206fba04bbec2b37760f110420d9c9cece6c12a2a827614356d4ee0886daff558207d2e71ac86a93337e48eb94ba2c99779dbddfac39c2302a392c1abb57b04948ed9985b83014110835820d2cea32312521321593081856e196e8139c896d58f9ba0c6c0a7d974e28fdf87582081687e6ffb023138f7b326514b14edba3c799214bc855a26965dbe730b819b0058201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8202d998798501d998778602d9987883014101582102f34cfaeba31c155f591704eed0ba5a6d496b93062c2dfb823e609b34d3a1e458582024168649192f5780f10dbc3663ed375ad7c3210e57ee2da2bd3a1938a0427be3582037d55418a83a033221738514667e77ae83cdcd54ddb28119be24df396d93edabf65841df6b1f0e320af62bbb426197430c840822d3df22af298ac725ca959ee294f9a331f0691b896f63e5f43b22b0f397719d6a70feacbf32812022eca089e855a4b01b1a6734a7e4586010800000000000000000000000000000000000000000000000000000000000007624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac9891d5bfc70ab1a65137f2b07cef68640333b26b01dcffd21ca4a9cf89d10b33afd998598701d9985a8a01020058207624b7ebeebe62b857344dc5f81d7a3ed7f9db80ab9121bc12a5e450a1d7ac985820919efefd311c847572d8a4bc91478711a46a77479c6cb768710152b5ee78eefa401a6734a7e45820e26a584716450fce29a4dee9e7d395828fa23be46f1546df04de05b7e6a08ee4181ff658204206fba04bbec2b37760f110420d9c9cece6c12a2a827614356d4ee0886daff558207d2e71ac86a93337e48eb94ba2c99779dbddfac39c2302a392c1abb57b04948ed9985b83014110835820d2cea32312521321593081856e196e8139c896d58f9ba0c6c0a7d974e28fdf87582081687e6ffb023138f7b326514b14edba3c799214bc855a26965dbe730b819b0058201a10adb8c3b145ca47dfa967e893bcf6c7a218e7d46b7bbc56a28dfbac5878c4d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701" ] }, { "shard": "101", - "uc": "d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582017b3383c7da9a5d78921210d81821b181d54699fc515da4993c4dd50c7082982d9985b830141b0835820034853c884325a03221923cf3dfe0d470ff06e1435383974fba3f1cb9d66ba0e5820ac0df406a617642fec46ba5818c039be1e8e415afc3033433b77c5d2af89717e58203b0cb9eca24ba222ddb131ac628332391509c51021dcc578fe2dfc180cb12f37d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", + "uc": "d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582010ed19ad300767e0a42b2681b78f2f738bed7e2b3e22b4f7497ccd74b0ce021cd9985b830141b083582026515fdbd3ed316df98d944ac0b8a2a07aa8107e9f573b46e8fc7ed98ba56fd8582008bc01394b3562e0c3658bbc53d46e380400325e7902acfbb9ecda70aa6a797d5820db7ad4575f665613afb90ce81d1320d225076dd80a6dcae097ecdb91c77e9788d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", "proofs": [ - "8202d998798501d998778602d9987883014101582102240713333999ed2f6410057272e249967ce89bf40335f753557483d29b41eede58209d9f07ed784db02621aff77768598219477c608bdc00531982e100a690bad78b58203dc4ad3e08f523c905415d574277b841db7c6ba25a962e77ab1f742d4fec9136f65841a97fcdfd8008cb3f1a9ba23969e9cbf5f1d351696dd8afd8fd59ed5b3e66be9efcc97a440255b4712d1ef3bfa5b330e574613e18f16dea33932e28ff5c48accf1b1a6734a78058801c000000000000000000000000000000000000000000000000000000000000002e2e4d98de027150d64c2085b4c81a52d5b9e123b830d3e55f108232ab595b9c68f5f9dd8f27fcf0f8cd6b85635df5ffa84eb1ee7964a3f38c6b9ed26746e3c721a65bb7f3b72605ed0aab8eb745c3fa28a3c3c3c3ab08656781cc8f47152177d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582017b3383c7da9a5d78921210d81821b181d54699fc515da4993c4dd50c7082982d9985b830141b0835820034853c884325a03221923cf3dfe0d470ff06e1435383974fba3f1cb9d66ba0e5820ac0df406a617642fec46ba5818c039be1e8e415afc3033433b77c5d2af89717e58203b0cb9eca24ba222ddb131ac628332391509c51021dcc578fe2dfc180cb12f37d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8202d998798501d998778602d9987883014101582102240713333999ed2f6410057272e249967ce89bf40335f753557483d29b41eede5820e57825c335f9fcbb3fa4ab919236b12fc845053302c0f0823380df8769c85f205820839a0025af673c1a93e4b051d1851533ce72492d3261df8e057a97e483a30b2ff65841ea0d4b40d37e76f6045a9bb7dcf2e86358b505903a6db47f19f81f04acf45ec160293384276df0e2a9b33e26700513354edf1d923adff6b3d013bce76ada99611b1a6734a7805840100000000000000000000000000000000000000000000000000000000000000098cbeb1d7244e51ea6c537e6668d2296af6916f32a6f2169afda170c85f74568d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582017b3383c7da9a5d78921210d81821b181d54699fc515da4993c4dd50c7082982d9985b830141b0835820034853c884325a03221923cf3dfe0d470ff06e1435383974fba3f1cb9d66ba0e5820ac0df406a617642fec46ba5818c039be1e8e415afc3033433b77c5d2af89717e58203b0cb9eca24ba222ddb131ac628332391509c51021dcc578fe2dfc180cb12f37d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8202d998798501d998778602d9987883014101582102240713333999ed2f6410057272e249967ce89bf40335f753557483d29b41eede582036e46f60ecec3bdfd6ddcd26de99c30bc3b45653f52f31f1fbfe57b42f440b4258207aece919972a1dc83fdc11e182c823c8fab53980e734456fe5be98a6f0eb69d6f65841c9c68e6c50935556c378d78111e89cfae1139697b8b2f7331546f5f4db2e256a087aa6813acf4774568408039550a00d9896387d3fa1cab6b712b10bd33efc431b1a6734a780586018000000000000000000000000000000000000000000000000000000000000002e2e4d98de027150d64c2085b4c81a52d5b9e123b830d3e55f108232ab595b9c0fa3fba88853af4bbf1bb484fe4b7d61b53423499910ee4a7c7ffa2d12ee8b08d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582017b3383c7da9a5d78921210d81821b181d54699fc515da4993c4dd50c7082982d9985b830141b0835820034853c884325a03221923cf3dfe0d470ff06e1435383974fba3f1cb9d66ba0e5820ac0df406a617642fec46ba5818c039be1e8e415afc3033433b77c5d2af89717e58203b0cb9eca24ba222ddb131ac628332391509c51021dcc578fe2dfc180cb12f37d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8202d998798501d998778602d9987883014101582102240713333999ed2f6410057272e249967ce89bf40335f753557483d29b41eede5820f976476a98ce8161693641d8b03d129ae696e463a6799f399d5a072f283e304658200e98bec9ac197f3ea0db6412afa448b80c83f31ed61de9b0fa25a5f89dca1aa4f65841376fa30231fbba4afa867d4f087f2ca19141ab017fe2441c211389c7b687f9677718ab255b83e28b5695a1205326f002eba6b8d0c49b864ef53fb51ebc4c35b51b1a6734a7e458801c000000000000000000000000000000000000000000000000000000000000002e2e4d98de027150d64c2085b4c81a52d5b9e123b830d3e55f108232ab595b9c68f5f9dd8f27fcf0f8cd6b85635df5ffa84eb1ee7964a3f38c6b9ed26746e3c725106e62d4ca363acf09e8dee644751594091ed9e65a607c85e70400bfceb994d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582017b3383c7da9a5d78921210d81821b181d54699fc515da4993c4dd50c7082982d9985b830141b0835820034853c884325a03221923cf3dfe0d470ff06e1435383974fba3f1cb9d66ba0e5820ac0df406a617642fec46ba5818c039be1e8e415afc3033433b77c5d2af89717e58203b0cb9eca24ba222ddb131ac628332391509c51021dcc578fe2dfc180cb12f37d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700" + "8202d998798501d998778602d9987883014101582102240713333999ed2f6410057272e249967ce89bf40335f753557483d29b41eede58209d9f07ed784db02621aff77768598219477c608bdc00531982e100a690bad78b58203dc4ad3e08f523c905415d574277b841db7c6ba25a962e77ab1f742d4fec9136f65841a97fcdfd8008cb3f1a9ba23969e9cbf5f1d351696dd8afd8fd59ed5b3e66be9efcc97a440255b4712d1ef3bfa5b330e574613e18f16dea33932e28ff5c48accf1b1a6734a78058801c000000000000000000000000000000000000000000000000000000000000002e2e4d98de027150d64c2085b4c81a52d5b9e123b830d3e55f108232ab595b9c68f5f9dd8f27fcf0f8cd6b85635df5ffa84eb1ee7964a3f38c6b9ed26746e3c721a65bb7f3b72605ed0aab8eb745c3fa28a3c3c3c3ab08656781cc8f47152177d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582010ed19ad300767e0a42b2681b78f2f738bed7e2b3e22b4f7497ccd74b0ce021cd9985b830141b083582026515fdbd3ed316df98d944ac0b8a2a07aa8107e9f573b46e8fc7ed98ba56fd8582008bc01394b3562e0c3658bbc53d46e380400325e7902acfbb9ecda70aa6a797d5820db7ad4575f665613afb90ce81d1320d225076dd80a6dcae097ecdb91c77e9788d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8202d998798501d998778602d9987883014101582102240713333999ed2f6410057272e249967ce89bf40335f753557483d29b41eede5820e57825c335f9fcbb3fa4ab919236b12fc845053302c0f0823380df8769c85f205820839a0025af673c1a93e4b051d1851533ce72492d3261df8e057a97e483a30b2ff65841ea0d4b40d37e76f6045a9bb7dcf2e86358b505903a6db47f19f81f04acf45ec160293384276df0e2a9b33e26700513354edf1d923adff6b3d013bce76ada99611b1a6734a7805840100000000000000000000000000000000000000000000000000000000000000098cbeb1d7244e51ea6c537e6668d2296af6916f32a6f2169afda170c85f74568d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582010ed19ad300767e0a42b2681b78f2f738bed7e2b3e22b4f7497ccd74b0ce021cd9985b830141b083582026515fdbd3ed316df98d944ac0b8a2a07aa8107e9f573b46e8fc7ed98ba56fd8582008bc01394b3562e0c3658bbc53d46e380400325e7902acfbb9ecda70aa6a797d5820db7ad4575f665613afb90ce81d1320d225076dd80a6dcae097ecdb91c77e9788d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8202d998798501d998778602d9987883014101582102240713333999ed2f6410057272e249967ce89bf40335f753557483d29b41eede582036e46f60ecec3bdfd6ddcd26de99c30bc3b45653f52f31f1fbfe57b42f440b4258207aece919972a1dc83fdc11e182c823c8fab53980e734456fe5be98a6f0eb69d6f65841c9c68e6c50935556c378d78111e89cfae1139697b8b2f7331546f5f4db2e256a087aa6813acf4774568408039550a00d9896387d3fa1cab6b712b10bd33efc431b1a6734a780586018000000000000000000000000000000000000000000000000000000000000002e2e4d98de027150d64c2085b4c81a52d5b9e123b830d3e55f108232ab595b9c0fa3fba88853af4bbf1bb484fe4b7d61b53423499910ee4a7c7ffa2d12ee8b08d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582010ed19ad300767e0a42b2681b78f2f738bed7e2b3e22b4f7497ccd74b0ce021cd9985b830141b083582026515fdbd3ed316df98d944ac0b8a2a07aa8107e9f573b46e8fc7ed98ba56fd8582008bc01394b3562e0c3658bbc53d46e380400325e7902acfbb9ecda70aa6a797d5820db7ad4575f665613afb90ce81d1320d225076dd80a6dcae097ecdb91c77e9788d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8202d998798501d998778602d9987883014101582102240713333999ed2f6410057272e249967ce89bf40335f753557483d29b41eede5820f976476a98ce8161693641d8b03d129ae696e463a6799f399d5a072f283e304658200e98bec9ac197f3ea0db6412afa448b80c83f31ed61de9b0fa25a5f89dca1aa4f65841376fa30231fbba4afa867d4f087f2ca19141ab017fe2441c211389c7b687f9677718ab255b83e28b5695a1205326f002eba6b8d0c49b864ef53fb51ebc4c35b51b1a6734a7e458801c000000000000000000000000000000000000000000000000000000000000002e2e4d98de027150d64c2085b4c81a52d5b9e123b830d3e55f108232ab595b9c68f5f9dd8f27fcf0f8cd6b85635df5ffa84eb1ee7964a3f38c6b9ed26746e3c725106e62d4ca363acf09e8dee644751594091ed9e65a607c85e70400bfceb994d998598701d9985a8a01020058201677076bda2f4e8dad0bf3109b978b06a822349433025057ecb7b7569b7e9f6b5820dbc193f80bae0bccd48f73436808538083b08e3b78908dc545d4f27ac264dda7401a6734a7e45820a86c94bfbe1c4d21362e8114cc61a1e38a3b5cd61ec6e79c2f388fee882c5a481824f65820b2bc7ea67ac8fadc453550165561922415c45510d9232f4028c95059a156271d582010ed19ad300767e0a42b2681b78f2f738bed7e2b3e22b4f7497ccd74b0ce021cd9985b830141b083582026515fdbd3ed316df98d944ac0b8a2a07aa8107e9f573b46e8fc7ed98ba56fd8582008bc01394b3562e0c3658bbc53d46e380400325e7902acfbb9ecda70aa6a797d5820db7ad4575f665613afb90ce81d1320d225076dd80a6dcae097ecdb91c77e9788d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701" ] }, { "shard": "111", - "uc": "d998598701d9985a8a0102005820b8130bd137b043642997fa2a86108625acb1d49a396742eb2e98acd0e544b91e5820c5207bf52dbf91e647ca69ca26ac71b5abedadf0c106b95c617c50bff29a08c1401a6734a7e4582056e9c8d0038d94bb3af5e12d35927c7d6486df3b25fab3bc457ab0e32a2753201826f6582007751bd06832d2bec5cfe95619beaa49c67ed34beed810b2a95fcaa7e3c749e65820496e049f0404e97759096bd3dbf0d810244468adcd98d47b01830d4ccde382b6d9985b830141f0835820e57685c826f8bbdee8da4fd8757b27306fcbb1f8c2caa3f1a2482fd0d6724c75582019d5dcb997b11e6fa5dd31d1973f46a457f171a50137f9b05b00afd5905d1c4458203b0cb9eca24ba222ddb131ac628332391509c51021dcc578fe2dfc180cb12f37d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", + "uc": "d998598701d9985a8a0102005820b8130bd137b043642997fa2a86108625acb1d49a396742eb2e98acd0e544b91e5820c5207bf52dbf91e647ca69ca26ac71b5abedadf0c106b95c617c50bff29a08c1401a6734a7e4582056e9c8d0038d94bb3af5e12d35927c7d6486df3b25fab3bc457ab0e32a2753201826f6582007751bd06832d2bec5cfe95619beaa49c67ed34beed810b2a95fcaa7e3c749e6582001a8c06784d8cebed1d174c7c18a09f58624ccfa126111bd17f34fb85ed8ecd1d9985b830141f08358202ca32af70b75628af34236c770cf4a7f56e725398f31c9da030fecddf83091f258205164dde4e6f7b739f312e82d24ccdbc8aa4e17a9e42bdced2516c0cbc86375f65820db7ad4575f665613afb90ce81d1320d225076dd80a6dcae097ecdb91c77e9788d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", "proofs": [ - "8202d998798501d998778602d99878830141015821023b15396045ec41563fcc8e12692c0d3866308445836ff288daf9a4cdeb64e27e5820f9d745060b2029b39274c297a627a53056e1b13ec92b5b4ecf130fb32063a26e58208c70e76ae476b3f11be19f35b7ca5b9bc94f004cddcc54be1de50693b90e23fff65841b0c3fcc50b671b8a9ec89ec0351ae740fd73269b5ed52e4a3093c3268651eb4ac212fd78761929f82195b20e8d2a7fc8b007e45edf62881e81d6a68a16048ca81b1a6734a78058400800000000000000000000000000000000000000000000000000000000000000f480baee849be0cdcc387d96706452727fe28491d4990fde7896f3f1d344182fd998598701d9985a8a0102005820b8130bd137b043642997fa2a86108625acb1d49a396742eb2e98acd0e544b91e5820c5207bf52dbf91e647ca69ca26ac71b5abedadf0c106b95c617c50bff29a08c1401a6734a7e4582056e9c8d0038d94bb3af5e12d35927c7d6486df3b25fab3bc457ab0e32a2753201826f6582007751bd06832d2bec5cfe95619beaa49c67ed34beed810b2a95fcaa7e3c749e65820496e049f0404e97759096bd3dbf0d810244468adcd98d47b01830d4ccde382b6d9985b830141f0835820e57685c826f8bbdee8da4fd8757b27306fcbb1f8c2caa3f1a2482fd0d6724c75582019d5dcb997b11e6fa5dd31d1973f46a457f171a50137f9b05b00afd5905d1c4458203b0cb9eca24ba222ddb131ac628332391509c51021dcc578fe2dfc180cb12f37d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700", - "8202d998798501d998778602d99878830141015821023b15396045ec41563fcc8e12692c0d3866308445836ff288daf9a4cdeb64e27e58206cd1de50c026061036ca41a34dc43d45bf4dcfcb02890756c301d27928963bf2582005c8f5cabf4a9837bc584f2eae1a867ff6add8f90f75eacd2255c8fef7a08ea0f65841e03ecd16bba4edfe17d7214fa7f541fd55826dd7a1c2d61273729099e38d266f4455b131e1d9d9f74e3d662b29bb6ed3a03e1b4aa1b8f302150debaafe4f9b1e1b1a6734a7e458400800000000000000000000000000000000000000000000000000000000000000b8130bd137b043642997fa2a86108625acb1d49a396742eb2e98acd0e544b91ed998598701d9985a8a0102005820b8130bd137b043642997fa2a86108625acb1d49a396742eb2e98acd0e544b91e5820c5207bf52dbf91e647ca69ca26ac71b5abedadf0c106b95c617c50bff29a08c1401a6734a7e4582056e9c8d0038d94bb3af5e12d35927c7d6486df3b25fab3bc457ab0e32a2753201826f6582007751bd06832d2bec5cfe95619beaa49c67ed34beed810b2a95fcaa7e3c749e65820496e049f0404e97759096bd3dbf0d810244468adcd98d47b01830d4ccde382b6d9985b830141f0835820e57685c826f8bbdee8da4fd8757b27306fcbb1f8c2caa3f1a2482fd0d6724c75582019d5dcb997b11e6fa5dd31d1973f46a457f171a50137f9b05b00afd5905d1c4458203b0cb9eca24ba222ddb131ac628332391509c51021dcc578fe2dfc180cb12f37d9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac5820fcced50d90e319018aa2eeedc75daa06ffcd9c51c8160e907b60d707fc79ba875820e1c7b0c4619771981e41a2f5a91266076d7d8ea894085184164913a7bc34fbd4a366726f6f742d315841b0efacf56556deaccb59d4a4a990744213fe6f8faee0d0ad6a7abb919d83ee31316af1133181ce7feb2c28908b1632fe383d4d4f7bffca57df60f18eb60610060166726f6f742d32584186c1c692ac416826eef9c7565d604def29b958ad0a8ea14edf83067976e392327bae1fafe87a40fae01d9dcb20cbf93663a68c50092e6752cfd6f50e1c6c1dec0166726f6f742d335841d4d698cd3475e7c47d76e1e66068ec016b045aa5ed0f170350450741389902164a9c1d7479eeb3a41ddc174b19159005e527e77753b3b627bbf3601afe3350b700" + "8202d998798501d998778602d99878830141015821023b15396045ec41563fcc8e12692c0d3866308445836ff288daf9a4cdeb64e27e5820f9d745060b2029b39274c297a627a53056e1b13ec92b5b4ecf130fb32063a26e58208c70e76ae476b3f11be19f35b7ca5b9bc94f004cddcc54be1de50693b90e23fff65841b0c3fcc50b671b8a9ec89ec0351ae740fd73269b5ed52e4a3093c3268651eb4ac212fd78761929f82195b20e8d2a7fc8b007e45edf62881e81d6a68a16048ca81b1a6734a78058400800000000000000000000000000000000000000000000000000000000000000f480baee849be0cdcc387d96706452727fe28491d4990fde7896f3f1d344182fd998598701d9985a8a0102005820b8130bd137b043642997fa2a86108625acb1d49a396742eb2e98acd0e544b91e5820c5207bf52dbf91e647ca69ca26ac71b5abedadf0c106b95c617c50bff29a08c1401a6734a7e4582056e9c8d0038d94bb3af5e12d35927c7d6486df3b25fab3bc457ab0e32a2753201826f6582007751bd06832d2bec5cfe95619beaa49c67ed34beed810b2a95fcaa7e3c749e6582001a8c06784d8cebed1d174c7c18a09f58624ccfa126111bd17f34fb85ed8ecd1d9985b830141f08358202ca32af70b75628af34236c770cf4a7f56e725398f31c9da030fecddf83091f258205164dde4e6f7b739f312e82d24ccdbc8aa4e17a9e42bdced2516c0cbc86375f65820db7ad4575f665613afb90ce81d1320d225076dd80a6dcae097ecdb91c77e9788d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701", + "8202d998798501d998778602d99878830141015821023b15396045ec41563fcc8e12692c0d3866308445836ff288daf9a4cdeb64e27e58206cd1de50c026061036ca41a34dc43d45bf4dcfcb02890756c301d27928963bf2582005c8f5cabf4a9837bc584f2eae1a867ff6add8f90f75eacd2255c8fef7a08ea0f65841e03ecd16bba4edfe17d7214fa7f541fd55826dd7a1c2d61273729099e38d266f4455b131e1d9d9f74e3d662b29bb6ed3a03e1b4aa1b8f302150debaafe4f9b1e1b1a6734a7e458400800000000000000000000000000000000000000000000000000000000000000b8130bd137b043642997fa2a86108625acb1d49a396742eb2e98acd0e544b91ed998598701d9985a8a0102005820b8130bd137b043642997fa2a86108625acb1d49a396742eb2e98acd0e544b91e5820c5207bf52dbf91e647ca69ca26ac71b5abedadf0c106b95c617c50bff29a08c1401a6734a7e4582056e9c8d0038d94bb3af5e12d35927c7d6486df3b25fab3bc457ab0e32a2753201826f6582007751bd06832d2bec5cfe95619beaa49c67ed34beed810b2a95fcaa7e3c749e6582001a8c06784d8cebed1d174c7c18a09f58624ccfa126111bd17f34fb85ed8ecd1d9985b830141f08358202ca32af70b75628af34236c770cf4a7f56e725398f31c9da030fecddf83091f258205164dde4e6f7b739f312e82d24ccdbc8aa4e17a9e42bdced2516c0cbc86375f65820db7ad4575f665613afb90ce81d1320d225076dd80a6dcae097ecdb91c77e9788d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58203be19edcd9642824b23ae5b8df7d40638e8213e079d1788d7b17b643502a56925820769295308d4d7706e9033feb01176d7afeb229f9e70d61ec942d868c4812b77fa366726f6f742d31584193b209d6ef0d6021fa25882d7b00379441628f626549bf8e4d7d32c98f7989b127d905fd008760d8f83fd78da53b61a993e1d83ab1258082ebe83ce4808b50320066726f6f742d325841db5dc731db63df81ee49174e311f61e43ec819ae12c044925b232154f1d59ba04844ab20ba585a23b11b474d1ed61bd92dce3eec2a60a138306ac6149a2610db0066726f6f742d335841747791019749d9615d7af3395c3964911bd5135842d9c9cbf73e4d5c428b11e504ef1b0d6be8a74a5626d57791f58e7af9c4a30bb267d8450b8d43d90885142701" ] } ] diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/partition-view.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/partition-view.cbor index 12911ea0d1bf7809590e429ac5f69bad5387cbde..bd31dd067916dca1b2283a0bf8c8990e4973ebd3 100644 GIT binary patch delta 300 zcmV+{0n`4f2&xE>p&)%Oajb@^GdJXpxl5wSmwDUW`oo+f0;7__tF?Osl#Y?XH6YBZ z;OjAi#$npo2x)@u!?uU>8n*LsN^-;A9f{4|RN|8s0ec{-n$^_eNxZ=M$$=mzBrsz?AIA&k@!PIUljCBh3i8d_}y-!10`F6Hn#}zc! zgh7y#8v`;R)WI0X@l`##`HESSidP-};>d|gL{lUb{=bbz)6(DdlUo9vAQ0^ttuO~? z;G`=ifwzw@bBpbMD?TE$_ep%sbg<3>9FrIWH6SIp8Bh4}-D9#bLo^YA^foC@?J4^} yNggEqYt{8fIK`7~1DzlNsK950*v`Ju(R9bbiV5|GB+U8}VG+F-^G~>5*zC~(6__6Y delta 300 zcmV+{0n`4f2&xE>p&-eF;~hL4#-+J?{J6s?JgoFK!th@DO#N_v?%HjQRLhaUH6ZMR z6)oPu&f!e=f<7W21j&t~$34rFn@R<6WvWUKlBbgv0ec{UXh}Z-uYsPCWlY+6)I8+s zs^RtD7cg(K8Tgc3^wdd{u>mzB8Fry9fGEF#ZP%BeiNqVt!;)|W8dqzFhPI%a@a z#Mzi!g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjmg8?4^4q)JfTxTY~{X zP=i>g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*ad0@bdrw diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/response-v2.cbor index cfccd70af8d6a94f92143b21e360272ad7f65ba3..7672034a485cd3113e47dd67756c3fe279cc88eb 100644 GIT binary patch delta 806 zcmaFE`-XSIwfa@Fu3mZMx#z&olZ_gM&zFj`9QL$0RTGqaXxAM7^%FnOyE!Aenb9$z zIYQxw&7+m~e#YJBUHDx^s#(m!@|0-AT;@Z`tn1f5zN4OD8KH2tSJd$FTidng>&qV6 zKKt_Ho|3~V^Cg>H5`LL@Fu>L+c@!ZmyH-1LW+y1Xxd}RUOf4%^RzC)hQg|{Ma z&WP<`WaeR%N;g@tCPKmb;k-LHQ#4dISv}oxzt$nSuSxhp<;9BLYVmE(0a{^`A{5Fd zO*QECEoXblZ2y{3Jh$rKCe5Gq&v_HyOwn!Y@etZxzc{TZKfgrRFv4;2CeCZ`c@q?W zsdngAGnh|tOzKZc_1xd*TWfT(zp`_q`c2lq4DAUwe%N2{U22`Ua`M9)RvT3tnqI%K zdD74wV8j41$tc3{cI-@}sr=2p`qkay=wyAixeAOc4y3o-IJfWO d#ggL(yEwnLshs&Glqk4Y{Ima#xEpUS0sscBiH-mO delta 806 zcmaFE`-XSIwfe>kPkYAojq@g^`rN9#V)NwHs)t|iiyP!`lKe3x=F1h&n=_)D865+f zBNPnf-mGj~-2b)e`|LZnc%LlZ|K{o15{F+*H{aFAg=I{wj!+P3oEo*-V|^RzufDB8 zELop8vxV(c9?X5O^1HJ<GRPJhzPR;<tFraTTV>hfNjXN<>*UwJ zsB-xAKz8nFh0{OHl9%-aaO$N8oxk>#PbNq94b&*(2*)eeW}G!CeSW02?BTP7j5mzg zEKy6}@{2PExUxH1%w!Vtnj>3M`EK(P**oIilA;q>pQ=AE58k{@efQ@Csei@++ZiVB zXIi3sviY&Bjm)v7JFEZfIILl_=8M^(4{^VI{ub1|yOrA;a=OLQVDep7Bjq>EqPq7E zo_px?y~$2Vp58Hi90BoFO*+Sh0js1xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/001.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/001.cbor index 010869e68cd9981dbb398caec207779a66c7e70c..922646ddc6cfcdc557ac36d1c4355f5f50ef1c3c 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/010.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/010.cbor index 6ac96981bc0b77ed891752fb4fc9989a92b0dc96..15ac3c1b85378734a080ada92364641fd9dfe99c 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/011.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/011.cbor index 1067bb0c3d49a4dda3d5ee220084bfb02cb7fd60..a839856b93b8a60f307dfd5691431adfe60b39e3 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/100.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/100.cbor index fddc71f03e7764ce6574564ec16d6dc13cf72768..d8e56ebc895252a030626d6b136d1932a86edf46 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/101.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/101.cbor index abbdd81b97687bf3373969d06b583839860af798..bfb27755a567322f5a62921c697b5ec0f17dbb20 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/110.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/110.cbor index a44f27c67d22a43905836379cc8dadc101cc5d2a..fb87dc0de7401bd81bc90b63668e9114ef341ebe 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/111.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/shard-configs/111.cbor index b1b0f4f41539d82b200a940927e1f57678aa2f17..322e85815274bf4df662da715f683fbb5c30bb26 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/trust-base.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/trust-base.cbor index 603ae1e01e19147ff6673509a47d3b183240e451..951ca8d2852a8ba4a30a48062f8f00021c3cf0f3 100644 GIT binary patch delta 95 zcmdnT*u!LWb4GdxBQpadV}!!|^Pz3#f=7h+zFX@v>FJ;5ygW(SulZxZW(TYImnjPkDH*zz^B=C;*Z~lSRjFDesB8%F*x_LCQ(Zi z?Yca9k`%m!S|*lVzHa@a z#Mzi!g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjk-R=j#9f delta 499 zcmV>g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*W%5=H>tZ diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/001.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/001.cbor index c05f04cbf0ec79ee645352a62d47affbef370591..7b90f8e5348d5eca37dfcdb5f907d1d2cb774d07 100644 GIT binary patch delta 499 zcmV8n*LsN^-;A9f{4|RN~o~TY~{X zFoRei1iNWJmn82={0^2{bf&f8f5P@~`&~#0w5KKV+iy+BSRjFDesB8%F*x_LCQ(Zi z?Yca9k`%m!S|*lVzHa@a z#Mzi!g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjlkM>Zbqz delta 499 zcmV>g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*c^-=a~Qi diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/010.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/010.cbor index 8015e5b67acb5aaa1e6d58d054793e5f165c5f29..e41142ea7f9e5909b3251ef734ec38b7acf62ac2 100644 GIT binary patch delta 499 zcmVa@a z#Mzi!g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjm5H?4AGs delta 499 zcmV^4q)JfTxTY~{X zP=i>g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*a29@azBp diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/011.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/011.cbor index 2b84850b7f0d5314246803885cf3e6cdac2dce8a..62844f2a083cd499d12f669e2f94c0e6c0173a69 100644 GIT binary patch delta 499 zcmVLt6QEwqM5;G}qafTY~{X zaD!MNa@a z#Mzi!g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjkki=raHS delta 499 zcmV>g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*Vlh>yZEe diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/100.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/100.cbor index 1036456db61b3ba67debbb4758561dc8c4bab693..691450e6f2962bf6a5af1f7a76a4d75cb0a8df45 100644 GIT binary patch delta 499 zcmVlTweit}n1zEH_?SRe?z0Xa)GV&KDNi@a0R zZa4%0GG2KCtoym_+Hk6Bd3{(Q+j`VjUuISluel899TOnZC4UEP*a~gR;Fs*%k;i_Q zh}oE2g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjlK%=HmbW delta 499 zcmVLP=p=b_bXSh#QqDFn{yB$x+#uTY~{X zkb_ttR{#jsmC^gb+n0X(25mi##-H1^wsVDy%K~=%zq4w%SRkwo^aiFEWH0PSx>y*% zIldl_L0bGUGebLf#nP{daei1JI}Ew(qD!J8-LWyOVuLa{6@LlE5Fy;fc>XQ?7!0v5 zH`$n6g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*YA0=$8Nh diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/101.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/101.cbor index a486688a7cc5e98674876d5e1a367c4e2a44746c..2884e73d8a1a17b847684ea4283d0c53b1f385c7 100644 GIT binary patch delta 499 zcmVB`HhrHz__BIdZ-Y7pI19Z==^@!i=}VaSRe?z0Xa)GV&KDNi@a0R zZa4%0GG2KCtoym_+Hk6Bd3{(Q+j`VjUuISluel899TOnZC4UEP*a~gR;Fs*%k;i_Q zh}oE2g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjtC6y*% zIldl_L0bGUGebLf#nP{daei1JI}Ew(qD!J8-LWyOVuLa{6@LlE5Fy;fc>XQ?7!0v5 zH`$n6g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*Wu_<2L{R diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/110.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/110.cbor index de06def17ccba80217679a2a8fc6e1d1d84e5642..7e0b8909803ff74aad8ec1241785d1ff041f5e4a 100644 GIT binary patch delta 499 zcmVk3?=q)77 z+sLX;7pdec-0dY6z{|*Eb@o^w+j`VjUuISluel899TOnZC4UEP*a~gR;Fs*%k;i_Q zh}oE2g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjl$kXQ?7!0v5 zH`$n6g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*W9D>M#HR diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/111.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/ucs/111.cbor index 97a8e08c8e456805da2b3737147641567e09f380..227f9564620a1e3e63ad59f7fb18d6b66dfd50cc 100644 GIT binary patch delta 499 zcmVk3?=q)77 z+sLX;7pdec-0dY6z{|*Eb@o^w+j`VjUuISluel899TOnZC4UEP*a~gR;Fs*%k;i_Q zh}oE2g8>JDf(KY2G3;ms`@xaUrF`s8GDEiiuA|hT4*w2NK#symLvh+!*_d630Rs#H z8fP@9tXLpB;hx;tWGE!EI_0?EeL!Q5f)n6*(Rht}7q&xCDprzMAa;_KFpW)j2I&Jo z>j4*Sdj7I0`G4mPVeFJGhKxuOw|}E%a&K>REiqU@ld=ic?+suf`Xz`hdjL0-L1K?$ zWl6t|O?@)Sk9mo)C)ox40Eb}M_&?W;r8{A%li}Dpu_b_l>*ze>fQwKv0A_M;Z*(m( zSV7xe$1&Su-+}H)7fvxBVdOr@8Lkq*M3P%0Ayo0zn{1#+M5`dWSXv{o8%IqZ)*IO^ z&OYoaV4*lLYQ_|rCJ@^IW^!+DbS*PjL3DSK0hdYHVO@IjIb1npksH+$SVGy!%lAG_ pTtbTx(P-caimudilho3$ka}MGK8X*$9OcCjpC+>wf?M delta 499 zcmV33NPYt!5C*bpQ{Xsykd)O!Jg4NT4Bg0|V1TY~{X z@Pk+&<#vV0CiuJF=-N-%b$cf;Z_Bax!pfuZqDU{$)^bdBSRfhI+_{&r9&e@HG0~Sl zMxXQ?7!0v5 zH`$n6g8>JDf(KY2N3(%9<9d@@l4CdAsFZdC$7%~M5z#z^Z6D;$Aq0{C*_d630RjvG z8fP@9tXLrY&eaW&;~4>pqVDa-U8)BE&74ul77mbmVAluydAf&KAmPWb#9^0lm>xl* z^{EnO2W@?hsDG3QQG^yr6Q{g1`_!Xma&K>REiqU@u3J>F@es1>ntdcixx8eI6X~Id;iK;-(c~MwgwOe0cLV+*=3r>-0c!+WrR@(F15iZ= pK{%NL7D}8Qbb0Qxq#fKBOBofA1?4B_cT=;rC%f}t8vZj-w*a1M!IseunX{&X76F5@ zZ6TCd5RQ^Sn{@&CV$zdI0i7Unwi^M>u7L8C(2kIwAJ8*Mi)C;YJFGxkIkcT;+U7BJ CVL}xE delta 148 zcmV;F0Biq-1cn5Ve;|j?XG0A0--wXP{2Pd6ugt|xdgJIjF=(Xw9A%u0K@yRlH6W&2 zRW`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*MiLH-hY zaj<1qdcxg~c7JH`ieaAJq8r+W4oJmXck=B?Ndj~%BwwE}P_v|BBZ%GuqLM>q1)>9s zvUVs{(X7^K=WPLIa&K>REi+g_Q@0t@i$!WsEFaS1!#p1kO`iWMl}RyaHgv-ifU`U1 zA=3X`NKmL0Z>vETtuV5#7rm}!hOZ!JxgFtyzTp~50ZL|aZ*O!hG+03^P5JuCT~D!k zDHl4)Fldrht3L$6yq*;LG|)UGXUNT_UHmF8oDzJX!WyXx7PT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@5sXCx0gx$#+!f5FrQ>3W~y4_O$8QlQ?W$(apMVdjSO3sv;A=e0ca*Je_hq z`y!1B@mS~HoooSSa&K>REi+g_Cgj&ZQ?|INZVN682gw5tsG&O#Zm716oq+Myv5GiE z2z~x3pc#+EcK~TuB}r?`K^5L2TTMJ(whXl-SSTIO07_AN?p)qYK#~JM+fmdx{<+)SqA-m+g~_9 HR_0CsV;9O* diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/response-v2.cbor index a2e6127c533ef12eb906cac198ac489ff94b4be2..ef6395473ad33bf61a9bdc079fc19105a79f078f 100644 GIT binary patch delta 612 zcmZ3+xr}qdwfYwwwmM3Sr2_XccQ2T6h~bQ8k83}7J72bmgwEMy;myT2XGAwMIw~|p zDA+rS%}H`?xi?pJSIzQ{Px?1<46bXmAAh(00`Fp((|;#NCz zvemyjy=8Ldi3GKPJ(?SePlWK@oDtK^$lln*9-(0PCWH0&!HMVUm)5-TGjiVcf8F9M z3;6!?1vvB_@^mh|6?t<;YzHGV52IAN$%-`*3VN20=0=_F_@G~{YBxXYe2tq--S+D5 zap4bRPOu$#EB+=zL9qMA-KadT)EcK-^SwAPFIVGndh^-f`dyab3YA;We3vdxE6UF= z(KU*2{3ldZxFI#X>d@W3vigjVU5WGVE|R|0&gXG7s{GSiPfw;29hLa`1_7IwBq?{? zV_r1LIgND@bN8k)jnIp0u4O*YWrP@I9N`$eUGj3bYgT}c{G~^SZRGiV=l$23>S>s1 zR&rRlVYBr!#Y_KVJOWmTm=wD9auS!QL3QTBjkOE%`dAXxo&;QY?AcIt$NYZr+r6DU>}#ve zoXk>ed~u6)df`f!$#a;R6$r)VWP4^)g}IjPKGwz;4?q1Gu6ax`z}YuGH2zc3-g;f_ z8G*U)T;@-n0#x+lmf~iE-3O;#M)``3uG#-Khm))@vN1Ew{`~zxB)z00lG{J^%m! delta 612 zcmZ3+xr}qdwfgq+>CQZ#?{`c%^+&oRb^V#6epQcOSQ}<6`7M(=r^iv~=8WiOMn{FF z2!-_t3HG@sPpoxbA8mazvVHHR^&`e3ip*Ucy{(kgo5hA!$&G*Y>iwVhDKCf zxTf{`%|a&@&8g3loAxy(Uf%uc=8TwTM)t-g_6P;{&5h=dt0qU+Pf9kwvtmja^YJWh zJ;94MExGbf&MC4?{C{&sYzHF~52IAN$%-`*3KpAVx-NedSg}#8@NHVjfmKymYzFZW zK5|~Vj(e^KsVYS%h_+=gPW)C7_w%zhTY^lhr}k_Kg_O2+huU}cOso(~QeK=^l%HRs zYZT$wJhyLqbX>gL0f{T>_39EQ%R^oWC~^pKbsY--w&mr`$rd@W7tij>uV!SqzDh}W ze@(@YaGSYBw!f8nxjsfbzc)9B5n_~agrnM%>kh%&cC5_f*5hVB$;`K6p*4Trifz4f z8$Mp!*k$3uQTtDGfn@)Ya)!)sRnP3xj-vOJqJ3@Rw()FLiO`Te&)^9$$|S;Zm-Mzq zg)ln{6CbV=jZ0l_0?d+4HB7UuS~tY2t`2Gy)cxGcqVE-ZAuX#%g2kQvqs^{~2fHKL z{?^`(w{Qr1<~Ml`Q?ml0*qm(7Y^tyC}bcve!*Cqf?!4zBo diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/responses.json b/src/test/resources/shared/uc-consolidation/v1/witness-alt/responses.json index a4d35643..47c637ed 100644 --- a/src/test/resources/shared/uc-consolidation/v1/witness-alt/responses.json +++ b/src/test/resources/shared/uc-consolidation/v1/witness-alt/responses.json @@ -4,13 +4,13 @@ "id": 1, "result": { "proofs": [ - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf0066726f6f742d345841ba1bb68120563e38344c0a6428d28a46100319827c029b3a85b05f25ab5285112df38d042f4a5dd0666a8c18044707f13cba91c18b5906fd7ddb5f384056e64e00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf0066726f6f742d345841ba1bb68120563e38344c0a6428d28a46100319827c029b3a85b05f25ab5285112df38d042f4a5dd0666a8c18044707f13cba91c18b5906fd7ddb5f384056e64e00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf0066726f6f742d345841ba1bb68120563e38344c0a6428d28a46100319827c029b3a85b05f25ab5285112df38d042f4a5dd0666a8c18044707f13cba91c18b5906fd7ddb5f384056e64e00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf0066726f6f742d345841ba1bb68120563e38344c0a6428d28a46100319827c029b3a85b05f25ab5285112df38d042f4a5dd0666a8c18044707f13cba91c18b5906fd7ddb5f384056e64e00", - "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112d9985b83014120825820af60603f6dc9c8ad43af5b3bd954ccacd4ae2d6d48a86c9662574d1c30e6cdc4582025a1c3c4791c3d3244e155587ad0d62aebeca142042995e66382be8161d3bbead9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d8801020c011a6734a8ac582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd552252258201586680191f6705ef9f32b06601c85492b9b18206486aec287b98c9178166223a366726f6f742d325841839d8eb75b5e5f1ec018d4272718c97754e8102108120a8ac257f6b4e9d993386c5dd1cdba6f7b0104d7aa2213bf7c78f8573c9d723dfb228d0af158e7de9d6c0166726f6f742d33584126e4d74053b6b8a96e0b2e0b07c9030ea8a13b0f6ea8b68d9d80f1d6b18a3844087dfe29a0198fc47700695725496bcb4115de225b4d3c5eb60cb52458281dcf0066726f6f742d345841ba1bb68120563e38344c0a6428d28a46100319827c029b3a85b05f25ab5285112df38d042f4a5dd0666a8c18044707f13cba91c18b5906fd7ddb5f384056e64e00" + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58201671cce468ae18b14884f764a43991e97a5e6a436706e285087ed8005f06312758204854a82b8cfb10eba81b2e4fd5877ce7d367d69519f4ba4e189d2533a511a0ccf6584115ddf77bf6de40bb6a6611a54abadd52088c878bb510f898a4bae83318a4840f99d346666fb91b51c275ef33b4fb6734c1b84e5f18ff0b9e0971ac2540bc3f941b1a6734a78058802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22f7a23162d74a2c1bfa8e367ebbfb02f89f63eae2d7b3362d2f68381d6fa23162d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a0166726f6f742d3458412b4df9fac95d4fb17a29173ac930689255add3620a15307b69a1b17da06e8e046126e450d0e349807adc37df73edbd890c07ad7accc96a2181e8da059771a94400", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c58205238f23c499e44619d204d4c774096ea82a5d4b979067e9c594acdf33d2c8cf55820815c398b21478675b35756c3807c4322a55b761ad38722028100e55e838fdc76f6584120cc4e08e11eee17ebf6783df48c5a05211a6db42276af08350452396b7a97cfdccb79d14bfc5e9f588eda66b235da384c14df4fa66ea02d5c046683ed04612b1b1a6734a78058602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf207a3859ae2860dc7da8414019acac635186e3612c4f16dc56a989f2f84a331242d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a0166726f6f742d3458412b4df9fac95d4fb17a29173ac930689255add3620a15307b69a1b17da06e8e046126e450d0e349807adc37df73edbd890c07ad7accc96a2181e8da059771a94400", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e7129cae0436278bd62378f76006f60fec5e24d4cc12b9b3966c5666da87edaa5820078f4d5f15b477a9cbdfe68a4200e955ca0edf8dd311dce9d38a9e3a7f5afae5f658415abc056f6bc2e7f61564abe53064062f51412047646f6d9f271951ed54ceb3cd99db4fd4d67ae51a6120a8c1293715213576def342f4cd0aa04313650e0b27bf1b1a6734a7e458602800000000000000000000000000000000000000000000000000000000000000b56e9c16843ef31a00728ed4abaecf410d47ac8a2f9ef252527336f839adcf20a2a24d954144f0b9a33cd0e675bc8650f16d3b27200be5f5c5ee5aa4bd1b5928d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a0166726f6f742d3458412b4df9fac95d4fb17a29173ac930689255add3620a15307b69a1b17da06e8e046126e450d0e349807adc37df73edbd890c07ad7accc96a2181e8da059771a94400", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c5820e471c14ea7f2f0b68e1024448b47cb5720e978e262a6055dca99a2f7904e2134582021996f1679322aeca21b76f0e43f5e1bd2a647db942704ab74af4679a2102066f658417170c4b80c7d92984a58e60679eeb34f69f8a47e0d03e308fc3bd4ffe038604888044e0bff7cdaa6fa78d2d7716bd9479276bff5d7175ba3d2ada9fe2be7deb71b1a6734a7e45860280000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b327fca5bb1934e96854f912781f75b50f7415ade311ee5303fb14d50db6ad227e73d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a0166726f6f742d3458412b4df9fac95d4fb17a29173ac930689255add3620a15307b69a1b17da06e8e046126e450d0e349807adc37df73edbd890c07ad7accc96a2181e8da059771a94400", + "8203d998798501d998778602d9987883014101582102e0ad861187da788df69b46c6f1b6cbaa14980665938495fe3d70bdc72250d32c582072297543b1bbb2e69ef65a326b5b4128bb1b3c99c125a5c3028619bce83589275820179f94cc25de0237d9428b1d5423a9e06ec35f41d9c3d954a5f9caa1bae59aeff65841495fddb830a2f326def93cb4fc9b2346a41636a89e5c881349554108d68b75504675a0c815c72e4452b40f0e90ec896cba83d67c413855469ee00f5dac6ba6ea1b1a6734a7e458802c0000000000000000000000000000000000000000000000000000000000000055eed0e6dbf445903b2a5a68d3e3b0c8a964e82a852409eb2fc40d8c3a60b3275db77bbd1b7223b5c057e811c46d95bd623f3a3913118f025fab76fa2b175f22d4f5e26116872d117ae9619f535b132108f181bb2d4882fc257fdbaf9deb2872d998598701d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373d9985b830141208258203f41169c624584de9d25ba7ca788f22fd86c30d72887c7eeafd00da31ccbfd93582051dacdd67dc1a056b4295cd0a9ca3d2fd597849369c8602650bc29b073c8540ed9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d8801030c011a6734a8ac58202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17ec5820118bd8dd5a6e4a657c42da9f4a09d3a7260c42ecf330d7dd04537824dae64da5a366726f6f742d325841fe127a71b065577ac2dd8e7668f18a619edda21bda870e48c55a77f2ed494902742c245f9f3050b3a4622388de03a292436605a2038bb2762855d1acd669e76d0166726f6f742d33584153b719d38b456a502c1fd2e2c33c1f0f4d9eff2a954931693674c31380b33be621d2ff5c4850a8146fab4116ad30b2ae17bdae6586af2067b91de183bee11a4a0166726f6f742d3458412b4df9fac95d4fb17a29173ac930689255add3620a15307b69a1b17da06e8e046126e450d0e349807adc37df73edbd890c07ad7accc96a2181e8da059771a94400" ], - "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa582087cf67430cf3df8890cafc1b8865afccc54e7ae3e83b3168a4fb1c659c8c4112844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820a65b5535fc11f4935ce098e719fd7d05c2f3e5af74219577f15b7bb1f2624e348441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858203f3617a2e6215a945dcaff4b0c8f699a932fafbeb8f7cdf739dc5bb00971c57d8441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582" + "partitionView": "83010784844120d9985a8a0103005820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee8091915820d08966d4bc7cfc4524e0d715ecadb9aea0e1a5cbdeb9ad4c74f823d3ee809191401a6734a848f600f658209afe3bdd267cb9224466f967f6e359d12683ce4973b93c6a0fc500e4528e46aa5820e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373844160d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab858209d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f8441a0d9985a8a010000f6f6f600f600f65820eba1744bc5cbdf36f8c239cb88f76f7f6b0a2e8853ff7d4c648acfc8498fdab85820f8da21b330bbc196d10e99b3a682160183b26d219459108e92409b7501f962d28441e0d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631" } }, "peers": [ @@ -21,9 +21,9 @@ "id": 2, "result": { "proofs": [ - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000", - "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d585820866e13300a8b2c141761b4a8ce76ccefdbac7db8b949f8b7184fa5a42627f582d9985b830141e0825820192b6f602c7d76d4342b581d02a696c5823271b9adb1f757ebd27c3d3a6416a65820fd2a7e60242e65f6d77503fb6cbf857622755549e00550e8cb0802c77bb9b60ed9985c830107818207582047b38137e37a935b926337dca8947603c76a0b2e11d13c846d1fe4ce210491ffd9985d88010209011a6734a8485820052222bcaed285a6f4e0963758808daba1e6baa37ed407fbad2b7579b1a900d9582038b35c8ad3f110a8b11671ed6674c0aa7a6a06305f584c1e4a2d41bcd5522522a366726f6f742d315841e0202b969c469a6c8f7e308b370007f349361fb27e212ddb04f520dcb4f50740123c22a7cc594c4c1106291c571423b6a7d8b471a944b69e909af8b7060bfe440066726f6f742d325841fa621defe1c7013104cbcb9218e8ac931d5f1cd81dfbb0bccd83677501f464f825bd30456c460f86340553315b3ed8d0cfb406d68da154106dc92f2f151a9fe80066726f6f742d3358411114b8eccfbffc26184ad2756889e3ca44ba252664777de5a246eab385db16516cd9f33b1c97f14c04e993dd29ceafbd58ce491ad70bf47a0aff5d2c0ab8741000" + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820b19845cce3e84c9bc43070f09317b08c3f14450eb6ba2c69d04517a4edfa21fd5820cc9b608df29c40291d0bf44e8d8d8a57214678577bb2953d7b074606346256e4f65841936dec415162543e9bc5c71a85fb5445b32c6cbe5fdac3b80676f7097853866af841a0c6324c8ab985c6d646d5cb479a94712ca995636ebe4e356290d0d590e71b1a6734a78058402000000000000000000000000000000000000000000000000000000000000000f1b7af98673e853716d6984e686476052e46e56aa2d6f3e083e9640c5a30dd1fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b58208275063b67211e89967fc22fd32a91c5d3f5063b6ac401088998b30a5fc4f29f58201b72d4150792fe6b4a3ba676ac0291387fbb711c6c0fa579f456464d26f9623af65841304b3c0736b526d97e19a010f1653974c49d160dca76a51ed5024cbb54f887a88afd014e6a9b61fd1280aa3d080669611c516430de390d0cf4cc81095871a0e41b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada77162edc6b130312e13b244f2b8f8959ca6b0fc7952205239901705836ebd023ad998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01", + "8202d998798501d998778602d9987883014101582102e2e725465a7c039df7202e53e7019020d2607eba2b2cc6df56db81c074e5712b5820c78a71c18b04821ed743027eb72fceab11d5f4224f52dc476bf697ac00e574585820579dad9c74b92dcd01e4b6d43efaa327d87da6445f1cb17240f53ff29f07724cf65841026045fd33ccf277b2fec30d2227b9ab6f4f05a388b4ea4bca8480beb61523fddef5621f49fef57a6887e3f6c17bff0d49d81c1a545a062c1d04bcfb516622521b1a6734a7e4586030000000000000000000000000000000000000000000000000000000000000003ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7cdd8427679950d5fc57b7d744ee69a2ec47d214d55b0b2615dd89fb22b47a85fd998598701d9985a8a01020058203ca819953dbac8bcdd42c2e854aea6bf943d1fcd67241733b67463b60892ada7582073b9de5084a1cb4b9ede84cb8b7219ffcd2d049fe2b2651647bb4d0c8972a79c401a6734a7e45820e4fc5de8884440248c82e9e4b6afe97f42de6f20d830d97b1db571b3418ada2d1818f65820d2ae379f193f4596b6eaa926041f4e152935bf71517d42a0308c99a132f22d58582072b61b01cdae80f294d08e909f1fd033488b6570163bac405b39b49d67dae631d9985b830141e082582013d9415a4c8464a7e9a01340abef8bb7b4ae8229f3a4c28ec7f8b0a5a392a95c58206518cf60464debb39cf2c7ac19f79de78a3af542cb0627131938cfc822a4b918d9985c830107818207582031ec6805fbc191cea57cec4e3243b6ffaea3d4a00eff0e50408ec2494371da59d9985d88010309011a6734a84858200017dd9418392c9b65783cbb564df209602de3e6b84baf807138b18751768df358202e39e29d5acb88f02f7b253e9f6acf7c461c7eb77bf75e57e15cc806c0ed17eca366726f6f742d315841b0115c9179e0278fb0bfafe65bcc7b6da8ac73c92aa40cb4adb920eea9592e6744f8d7e2cebefc722e462d327c0c3bb46bd3e29636292c345d4e601c182992180166726f6f742d3258413cb2cf4c2b2291c7da7a5c862cb55baf51d089781330765b42a47c481bce0dc05e4be1f97d2a9c8b6b8eab682797550d64716bdf87690069e929dcf7260a2c190166726f6f742d335841391dc78d3d989fe7f3cbfe06f936f534d0f0db5c5b35b5e9c7a404da023e4ac26a970536450636f4bce881d56ad16dabf39e2f5818bdd58a4507288bae0a205e01" ] } } diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/shard-configs/00.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/shard-configs/00.cbor index cb1598abfc58d83841815979a6d685c4df9ad2ae..4f1cc53bc277c971e2828cbcf3e75086ea0bef5b 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/shard-configs/01.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/shard-configs/01.cbor index d5fc30356370db7f34ccbbcf6e28a83ab1baa623..28aba4c6c2220314b973f01adce381b08575a2e9 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/shard-configs/10.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/shard-configs/10.cbor index 9289fadfb9f68bc99d683785babfed4f85a49db8..73198885820897baff7dfe81f37dbd7ef6f5b236 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/shard-configs/11.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/shard-configs/11.cbor index 51df65f0d14121dc3b7867a52e439f0ead5cea62..fa2939fc9c8d20aac627305fd9219fd45cdaa374 100644 GIT binary patch delta 14 VcmZ3>xR#Oa=8S}XM&^lZ%K;|F1qA>A delta 14 VcmZ3>xR#Oa=8S}XMy82u%K;|B1q1*9 diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/trust-base.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/trust-base.cbor index 603ae1e01e19147ff6673509a47d3b183240e451..951ca8d2852a8ba4a30a48062f8f00021c3cf0f3 100644 GIT binary patch delta 95 zcmdnT*u!LWb4GdxBQpadV}!!|^Pz3#f=7h+zFX@v>FJ;5y`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*MiLH-hY zaj<1qdcxg~c7JH`ieaAJq8r+W4oJmXck=B?Ndj~%BwwE}P_v|BBZ%GuqLM>q1)>9s zvUVs{(X7^K=WPLIa&K>REi+g_Q@0t@i$!WsEFaS1!#p1kO`iWMl}RyaHgv-ifU`U1 zA=3X`NKmL0Z>vETtuV5#7rm}!hOZ!JxgFtyzTp~50ZL|aZ*O!hG+03^P5JuCT~D!k zDHl4)Fldrht3L$6yq*;LG|)UGXUNT_UHmF8oDzJX!WyXx7PT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@5sXCx0gx$#+!f5FrQ>3W~y4_O$8QlQ?W$(apMVdjSO3sv;A=e0ca*Je_hq z`y!1B@mS~HoooSSa&K>REi+g_Cgj&ZQ?|INZVN682gw5tsG&O#Zm716oq+Myv5GiE z2z~x3pc#+EcK~TuB}r?`K^5L2TTMJ(whXl-SSTIO07_AN?p)qYK#~JM+fmdx{<+)SqA-m+g~_9 HR_0CsSH;Rs diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/ucs/01.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/ucs/01.cbor index 62af9db0333a1ddba038c96f7dc83dc5fd34c0a9..75a0cc951637b6763ae691ed31ec79e9ad28a86c 100644 GIT binary patch delta 465 zcmV;?0WSXj1O5Y$H-DWuhfF&&(Zl8WS1HCJP(w{$RbTRQy?-q$m{D!+M4#E1TY~{X zV1ig6Rk)R{eKtK@U0)hAG86#U$o%xB1#UWcrEW7+)4{>zSRhf_&DMRvpjNagT+pe? zJulUlgp+B=U?xz!DX??MR1VpgT!R4zfr1BEATjJ{1^dB~&VQwR>`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*MiLH-hY zaj<1qdcxg~c7JH`ieaAJq8r+W4oJmXck=B?Ndj~%BwwE}P_v|BBZ%GuqLM>q1)>9s zvUVs{(X7^K=WPLIa&K>REi+g_Q@0t@i$!WsEFaS1!#p1kO`iWMl}RyaHgv-ifU`U1 zA=3X`NKmL0Z>vETtuV5#7rm}!hOZ!JxgFtyzTp~50ZL|aZ*O!hG+03^P5JuCT~D!k zDHl4)FldrhtqxV$Se8y(USRf^#!^C+UJu*b$Rakn^ z)++1lp+W>HmF8oDzJX!WyXx7PT!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@5sXCx0gx$#+!f5FrQ>3W~y4_O$8QlQ?W$(apMVdjSO3sv;A=e0ca*Je_hq z`y!1B@mS~HoooSSa&K>REi+g_Cgj&ZQ?|INZVN682gw5tsG&O#Zm716oq+Myv5GiE z2z~x3pc#+EcK~TuB}r?`K^5L2TTMJ(whXl-SSTIO07_AN?p)qYK#~JM+fmdx{<+)SqA-m+g~_9 HR_0Cs1?|cs diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/ucs/10.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/ucs/10.cbor index 677ad21516058d60f71f34134f713b05a2e43349..51ad7bd598d5f1a87cb69d220b6373a237946813 100644 GIT binary patch delta 465 zcmV;?0WSXj1O5Y$H-GrrA+s>M!IseunX{&X76F5@Z6TCd5RQ^Sn{@&CV$#`|TY~{X zpn_N+K)tdTY+zqT{&_6BbfFxwi>!w8ZyKFmxdCILDo1rRSRf-%E`WR?$o1UOnP+Im ze&1`mVKO5Kj*J`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*MiLH-hY zaj<1qdcxg~c7JH`ieaAJq8r+W4oJmXck=B?Ndj~%BwwE}P_v|BBZ%GuqLM>q1)>9s zvUVs{(X7^K=WPLIa&K>REi+g_Q@0t@i$!WsEFaS1!#p1kO`iWMl}RyaHgv-ifU`U1 zA=3X`NKmL0Z>vETtuV5#7rm}!hOZ!JxgFtyzTp~50ZL|aZ*O!hG+03^P5JuCT~D!k zDHl4)Fldrht5sXCx0gx$#+!f5FrQ>3W~y4_O$8QlQ?W$(apMVdjSO3sv;A=e0ca*Je_hq z`y!1B@mS~HoooSSa&K>REi+g_Cgj&ZQ?|INZVN682gw5tsG&O#Zm716oq+Myv5GiE z2z~x3pc#+EcK~TuB}r?`K^5L2TTMJ(whXl-SSTIO07_AN?p)qYK#~JM+fmdx{<+)SqA-m+g~_9 HR_0CsTIk3w diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/ucs/11.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/ucs/11.cbor index 94e878dbe5aa6de455b6be2996360fdad44acb0f..e2b245e5982754efa4847da0a3d5b09cd3778499 100644 GIT binary patch delta 465 zcmV;?0WSXL1m*;gpMP?;8v)I(fbx{kj*y=p&@)JjWpEZdtUy~iw4G<#<}ulrTY~{X z;DT5n6WKvpOoU{o>7WxptM7}qw620F^Q6L#$M~?NqmrpySRf-%E`WR?$o1UOnP+Im ze&1`mVKO5Kj*J`pR6w*Ri9)SwRk z4p2aj!bwAM+F99{U5Eh#3;`NvG^ngtATBxLom$I?@GpBMKA&pOd`298w|n{uWXi`d;-Zc1f*LfW573Dc)03_|SlFxTA#Q+OoW=1rxeW^!+DbS*MiLH-hY zaj<1qdcxg~c7JH`ieaAJq8r+W4oJmXck=B?Ndj~%BwwE}P_v|BBZ%GuqLM>q1)>9s zvUVs{(X7^K=WPLIa&K>REi+g_Q@0t@i$!WsEFaS1!#p1kO`iWMl}RyaHgv-ifU`U1 zA=3X`NKmL0Z>vETtuV5#7rm}!hOZ!JxgFtyzTp~50ZL|aZ*O!hG+03^P5JuCT~D!k zDHl4)Fldrht(YEZI%F26SRnD^F(za$R+OV^dEJp* zqA_G549B7RuKyJWv?B_-XD!*7T!R4zfr1BEAV;%-H{*JfTYr*cH{7U{b_2(13oa4S zJcMl@5sXCx0gx$#+!f5FrQ>3W~y4_O$8QlQ?W$(apMVdjSO3sv;A=e0ca*Je_hq z`y!1B@mS~HoooSSa&K>REi+g_Cgj&ZQ?|INZVN682gw5tsG&O#Zm716oq+Myv5GiE z2z~x3pc#+EcK~TuB}r?`K^5L2TTMJ(whXl-SSTIO07_AN?p)qYK#~JM+fmdx{<+)SqA-m+g~_9 HR_0Csp`69@ From 00bd71b84d1a32b34b05730b9ec77e31067ee855 Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Mon, 9 Nov 2026 16:08:40 +0200 Subject: [PATCH 05/10] Corpora re-vendored from ristik/aggregator-go risto/ni-corpus-utb-authority f072f4a (merged up with main: the bft-core pin of #16); locks and pins updated --- .../shared/NonInclusionCorpusLockTest.java | 2 +- .../shared/UcConsolidationCorpusLockTest.java | 2 +- .../resources/shared/non-inclusion-v2.lock | 8 ++-- .../shared/non-inclusion/v2/manifest.json | 2 +- .../resources/shared/uc-consolidation-v1.lock | 40 ++++++++--------- .../v1/large-values/response-v1.cbor | Bin 641 -> 643 bytes .../v1/large-values/response-v2.cbor | Bin 1009 -> 1011 bytes .../shared/uc-consolidation/v1/manifest.json | 42 +++++++++--------- .../response-v1.cbor | Bin 667 -> 669 bytes .../response-v2.cbor | Bin 1190 -> 1192 bytes .../v1/nil-vs-empty/response-v1.cbor | Bin 633 -> 635 bytes .../v1/nil-vs-empty/response-v2.cbor | Bin 986 -> 988 bytes .../v1/shards-1/response-v1.cbor | Bin 599 -> 601 bytes .../v1/shards-1/response-v2.cbor | Bin 762 -> 764 bytes .../response-v1.cbor | Bin 667 -> 669 bytes .../response-v2.cbor | Bin 1260 -> 1262 bytes .../v1/shards-4/response-v1.cbor | Bin 667 -> 669 bytes .../v1/shards-4/response-v2.cbor | Bin 1190 -> 1192 bytes .../v1/shards-8/response-v1.cbor | Bin 701 -> 703 bytes .../v1/shards-8/response-v2.cbor | Bin 1772 -> 1774 bytes .../v1/witness-alt/response-v1.cbor | Bin 667 -> 669 bytes .../v1/witness-alt/response-v2.cbor | Bin 1190 -> 1192 bytes 22 files changed, 48 insertions(+), 48 deletions(-) diff --git a/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java b/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java index 0ce9b2b5..8d76a379 100644 --- a/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java +++ b/src/test/java/org/unicitylabs/sdk/shared/NonInclusionCorpusLockTest.java @@ -63,7 +63,7 @@ void fileSetAndHashesMatchTheSourceLock() throws Exception { Map actual = actualFiles(); assertEquals(locked, actual, "vendored file set or contents differ from the lock"); assertEquals( - "559db36b6d0145f61f6751e992a58c88fa7c518123e8e384cbcbd62fc5fd2977", manifestPin); + "73889412bf5baf9074a2a2f67a4fee7c7b7221988fc10806a7df957d2cc9f946", manifestPin); assertEquals(manifestPin, actual.get("manifest.json")); } diff --git a/src/test/java/org/unicitylabs/sdk/shared/UcConsolidationCorpusLockTest.java b/src/test/java/org/unicitylabs/sdk/shared/UcConsolidationCorpusLockTest.java index ab92964b..6066e68a 100644 --- a/src/test/java/org/unicitylabs/sdk/shared/UcConsolidationCorpusLockTest.java +++ b/src/test/java/org/unicitylabs/sdk/shared/UcConsolidationCorpusLockTest.java @@ -63,7 +63,7 @@ void fileSetAndHashesMatchTheSourceLock() throws Exception { Map actual = actualFiles(); assertEquals(locked, actual, "vendored file set or contents differ from the lock"); assertEquals( - "39188cf6344211747be164524fa226533cbdcb595f6e1a1972476ab46c58c114", manifestPin); + "58975fede900246fcf298e7b9ee9b6a28e753829f6a79cb5b603b60e9a275b2f", manifestPin); assertEquals(manifestPin, actual.get("manifest.json")); } diff --git a/src/test/resources/shared/non-inclusion-v2.lock b/src/test/resources/shared/non-inclusion-v2.lock index 9ea66b08..5976556d 100644 --- a/src/test/resources/shared/non-inclusion-v2.lock +++ b/src/test/resources/shared/non-inclusion-v2.lock @@ -1,9 +1,9 @@ # Source lock of src/test/resources/shared/non-inclusion/v2 (vendored byte for byte, never regenerated here). source-repo: ristik/aggregator-go (branch risto/ni-corpus-utb-authority; the authorities are trust base v2 bundles on the local network, no JSON or version-1 trust base) -source-commit: 427da05c4a735bfa8773927988b3d68aad638b61 +source-commit: f072f4afee319c030c263a6250e512949cc64900 source-path: testdata/non-inclusion/v2 -manifest-sha256: 559db36b6d0145f61f6751e992a58c88fa7c518123e8e384cbcbd62fc5fd2977 -generator-commit: b420fd193d2b84cd98f5d39b1f586895eb7a9599 (recorded in manifest.json) +manifest-sha256: 73889412bf5baf9074a2a2f67a4fee7c7b7221988fc10806a7df957d2cc9f946 +generator-commit: 5dc939966d12e218a0279cd6138ec731300185b0 (recorded in manifest.json) # , every file including manifest.json de07966f5959d8cabeae425fbd4d060e8d3ed3c685e13e1892588beea3c65749 SPEC.md 772d0255116f708e5ea8718bef8ae386b4e5bb1ce6cd02700ca34f491cfc2979 authority/big-epoch.cbor @@ -41,7 +41,7 @@ b5898dc594aa28371aed8bac4ec1695b552e851b3979a1cc29f0d379fe75305c cases/singleto a95b6444b53f877cf6cf5156cf5cc0c6c9bec59b1b18b32e8ef9778814abccac cases/zero-root.json 569e92f88ef0dcab7ed5025c8e36b54b924de13522d6eb1f5691a494868e9bf5 contexts.json d02883f70cbf7f5331be4fd37e629f4eab3e2229d9554fa8b21eb37d7278468c direct-unsharded/latest.json -559db36b6d0145f61f6751e992a58c88fa7c518123e8e384cbcbd62fc5fd2977 manifest.json +73889412bf5baf9074a2a2f67a4fee7c7b7221988fc10806a7df957d2cc9f946 manifest.json d852f6d7525efb3a720f8e03224a757ae4e616b6d2311b8058de0fbd6ae49f5e negative/cert-bitmap-bit-moved.json 014fb3e8a5046fe267b116b3df15f21cf80b0dc14f9777c57c3a39e539400a8d negative/cert-bitmap-extra-bit.json 8366e83ecab9808f56832147b101b5ce34b7c95b0fe53e097a833734d472d0be negative/cert-empty-against-nonempty-root.json diff --git a/src/test/resources/shared/non-inclusion/v2/manifest.json b/src/test/resources/shared/non-inclusion/v2/manifest.json index 07f51334..0e3aea24 100644 --- a/src/test/resources/shared/non-inclusion/v2/manifest.json +++ b/src/test/resources/shared/non-inclusion/v2/manifest.json @@ -639,7 +639,7 @@ "corpus": "non-inclusion", "generator": { "command": "UC_FIXTURE_AGGREGATOR_COMMIT=\u003ccommit\u003e go run ./cmd/gen-ni-fixtures -out testdata/non-inclusion/v2", - "commit": "b420fd193d2b84cd98f5d39b1f586895eb7a9599", + "commit": "5dc939966d12e218a0279cd6138ec731300185b0", "modules": { "github.com/unicitynetwork/bft-core": "v1.1.1-0.20261021121301-f8a0787aa7a1", "github.com/unicitynetwork/bft-go-base": "v1.1.1-0.20261021120522-d74b49846bb5" diff --git a/src/test/resources/shared/uc-consolidation-v1.lock b/src/test/resources/shared/uc-consolidation-v1.lock index 11293f1d..47338768 100644 --- a/src/test/resources/shared/uc-consolidation-v1.lock +++ b/src/test/resources/shared/uc-consolidation-v1.lock @@ -1,24 +1,24 @@ # Source lock of src/test/resources/shared/uc-consolidation/v1 (vendored byte for byte, never regenerated here). source-repo: ristik/aggregator-go (branch risto/ni-corpus-utb-authority; the authorities are trust base v2 bundles on the local network, no JSON or version-1 trust base) -source-commit: 427da05c4a735bfa8773927988b3d68aad638b61 +source-commit: f072f4afee319c030c263a6250e512949cc64900 source-path: testdata/uc-consolidation/v1 -manifest-sha256: 39188cf6344211747be164524fa226533cbdcb595f6e1a1972476ab46c58c114 -generator-commit: b420fd193d2b84cd98f5d39b1f586895eb7a9599 (recorded in manifest.json) +manifest-sha256: 58975fede900246fcf298e7b9ee9b6a28e753829f6a79cb5b603b60e9a275b2f +generator-commit: 5dc939966d12e218a0279cd6138ec731300185b0 (recorded in manifest.json) # , every file including manifest.json 937d13acc03ed180748a6a39a63a81a1a8bc1dc0eb48e2fb79adb2b4a448aa92 large-values/context.json 349169e10cba5208197814b286afe1970b4cf8b9b7eb0338560d44c3427e95be large-values/expected.json 0105eb42b266a013f13c5886f88e085d491a5c10fa2c17b94b1ba09224e6dc9f large-values/partition-view.cbor 83966003ca34bc438e7270fb25f95d82de0019132704827d1f18a846f37098ad large-values/producer.json 4d76e128e0d5e02ed3f92277f4020596e77a6cf3e07b37474383a3a3c7cc523b large-values/requests.json -700a0b8afafc4693ba0973a961c9134134b149bf316f4bc600b10b68c2049714 large-values/response-v1.cbor -86bd147f5017f3327923888bc395d9a331e5ba7a3dcc7dfb4a8bbf94796caefc large-values/response-v2.cbor +7dd5c83a2fc24d12456d890e0f916cee6dbaadd6004cd7b50ce22f7663517879 large-values/response-v1.cbor +ea74e61c59330d97279e3179064b40b7914bc46f78165182068d8d264015c7b1 large-values/response-v2.cbor 9773815a047eef6d29ac90b856bb9e3338bd1fd9662c07afdb4863350acdf426 large-values/responses.json 8fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351ab large-values/shard-configs/0.cbor 658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749c large-values/shard-configs/1.cbor 00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 large-values/trust-base.cbor 3c682ceb7ed209e097f0a59f97d9a5510673b5d17789a3facf1b617a77f127d9 large-values/ucs/0.cbor b114da02e5806caa5d174e7c8d26083cd5683f9a0e645e85756f70a783a8e7d3 large-values/ucs/1.cbor -39188cf6344211747be164524fa226533cbdcb595f6e1a1972476ab46c58c114 manifest.json +58975fede900246fcf298e7b9ee9b6a28e753829f6a79cb5b603b60e9a275b2f manifest.json 704845b7cac638e772def327f7397f3d6be9deff4de5597673a30590acd9fc83 negative/context-incomplete-scheme/context.json 8f45a6ba0470a4350e2bb1957f8425a3fa398fc5ab5c43c1124e220409b2b1b1 negative/context-incomplete-scheme/expected.json 1e391c4dc1c5e8708843ee681cc2ed01719c712461b7cf9bc7486db95cb016a1 negative/context-network-mismatch/context.json @@ -161,8 +161,8 @@ b7257e39ca8e132534bb01fe42255abb2e3a5d15f8af9ab40af9a8974737429f negative/valid 82afd8bd3427ecdc71518dc70df4ad5227dced95531e22bcdba0ac9a30adfdf0 negative/validly-signed-other-partition/partition-view.cbor adb63debd65ada7c2ebbdb2385be7a6bba8b7a47adb2a3963fd5266749de2800 negative/validly-signed-other-partition/producer.json a1c6d6b48879de08c20c82084e7b12feaf7f3a0f072ccf97c5272e08f48508c5 negative/validly-signed-other-partition/requests.json -08eda5f275479d8cc01f574a8543c880036f017bed58dba44cfde662bfeb89d0 negative/validly-signed-other-partition/response-v1.cbor -3ccfab021ad0d65bb320908652ad42316323e8a0a18df94ce06ed0b1ecb49aa6 negative/validly-signed-other-partition/response-v2.cbor +2ff27d11d24cb003741df566bcb13c038fb17bfcb04e5e5fe815618bf0aa73ee negative/validly-signed-other-partition/response-v1.cbor +c6a14df7a70849c4b2c5c3d8d436f950a02bdd07ee66a8f18fcfaed5af049cf8 negative/validly-signed-other-partition/response-v2.cbor d82e3d044907adefd42a15055ab7c290f52d9c9948763fe8c37766b30670fcc9 negative/validly-signed-other-partition/responses.json 9f4739e3008e1245a73fd00e07e9938553ae786ec38bc2745d72cbb90d89dd74 negative/validly-signed-other-partition/shard-configs/00.cbor 00ee312dd9a01654ee50e0bac5a624cb958e08a40a1b69d6b41b94eafda17060 negative/validly-signed-other-partition/shard-configs/01.cbor @@ -257,8 +257,8 @@ dcc0d3b183bc0fd4aeca4a248c6bf9c993065180108ac6a905bafc5c5a2034c1 nil-vs-empty/e ead7af5982c3f0cafa2e4c708414ba364853f42102396cfd0eefe969379755f6 nil-vs-empty/partition-view.cbor 9f18d84acc86c67cfa9a6caf0828d60c7dc777d0043ea09f48b9d66b63d2f151 nil-vs-empty/producer.json 3571ee2a880c8bcfab4a5f2e78141cbce049730dd484deb296dae32d6bcafc91 nil-vs-empty/requests.json -4c0912ac92686a74237cf8e0e05a12de3fec4c7e51ff36fb7947619ea5abbe10 nil-vs-empty/response-v1.cbor -6752a8789ac112e09d4b3a74661120465dbd95d46a39452b914e1457c1a12f2b nil-vs-empty/response-v2.cbor +1e062aa2b44230075ff5643f0ca0c5960125cf998a56dddcf1e72cbe842165a1 nil-vs-empty/response-v1.cbor +e4671947e69746b01a2f8b7076797e5d59dc01b6a495f859ea1ba713ce9f882b nil-vs-empty/response-v2.cbor d94a75cb510d3a1810553ac06137c88f04f8ae7826524c6464aa477f7e7acd31 nil-vs-empty/responses.json 8fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351ab nil-vs-empty/shard-configs/0.cbor 658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749c nil-vs-empty/shard-configs/1.cbor @@ -270,8 +270,8 @@ ebc8ec51c1587cf08ce79396ef01acbac3965167fbc8cabc5baf2b6481c9db8a shards-1/conte 5c16c74f31b5bf9c2c6412420bde08785e25d3b042df1cc6aabd961ef52e49fa shards-1/partition-view.cbor 44a28f3580c45f6e0c789cb1f5390bc941f5c198c61fd71fb7789a24d9cf1bbb shards-1/producer.json 8e57624c46e31854a99cc0e17cf10556bf1086b38338787ae293139083c756c8 shards-1/requests.json -a0b3db52472dc0518cdb41cffa5b9fec076d286d3ac2bc73b0e7e674dd3c86ac shards-1/response-v1.cbor -0b184daf3cacebb0f6a6910b15be8208f48fb561acc373b294800f015615b8cc shards-1/response-v2.cbor +3bc889c38244cb3ddae5989ab5999c4e03e233ee98429d94489b5f4f379fe14c shards-1/response-v1.cbor +ecdde14f3ae2d27c367920985550007987607d0ddb04c7ce398c5a9fb96173ea shards-1/response-v2.cbor f1ba5431ea3cbb6fdb0226204d2da2357a2b39902a3d3e294c6240d5f12caf97 shards-1/responses.json b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2 shards-1/shard-configs/root.cbor 00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0 shards-1/trust-base.cbor @@ -281,8 +281,8 @@ b745cc482342df88211b4ee2172ad60cd8755b0704c1529fdd2e1752bcd4d515 shards-1/ucs/r 51193e9b99cbcf399430384b76af9bb70cf17f4bc666b764687d2671f5632b65 shards-4-timeout-unchanged/partition-view.cbor 76c0712007ad41bd91e49bd32f4c54a6f3ed5e5f154b390977e4ba6138844877 shards-4-timeout-unchanged/producer.json 32c766927a1224ec0e0a67b2f2f567b745aa843e1e2186dda24ab1795904043b shards-4-timeout-unchanged/requests.json -813e9754526fc63864561c3d291369c8623d1da8d8fdac4a96faac4f7020feb0 shards-4-timeout-unchanged/response-v1.cbor -41e143ed87a676578f49284f4d160084be5db711c8d1541b4d9131213b75d99c shards-4-timeout-unchanged/response-v2.cbor +ef11264af23a0957bf9db497a1db648d3c5d8fa734b9df39005b51bf0378d621 shards-4-timeout-unchanged/response-v1.cbor +58affcb8f374a8734da7947d821e84e66afd96e9dbb5c9ee55127d5756820ae0 shards-4-timeout-unchanged/response-v2.cbor f41a3120508859c81808b3429a87a7fecf7efbaba01f0fb8eec44daeecc2b5e4 shards-4-timeout-unchanged/responses.json e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373 shards-4-timeout-unchanged/shard-configs/00.cbor 9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f shards-4-timeout-unchanged/shard-configs/01.cbor @@ -298,8 +298,8 @@ a96bf7f7ccfed97ac5292bdde1fafd71d9decfe415d11c53025bed44262f8c1d shards-4/expec 77cd23773d0722c1d63f52955e20f270c403a89d5b562866c261c745e71e3340 shards-4/partition-view.cbor b2b5c2d2199ab7ff15747f1a1bd070848e93c055cb56423c9a3af1975b5822e9 shards-4/producer.json 55edff72db1f7303f63dfb91299798f219de1be999dd15fd4144b3deea624c98 shards-4/requests.json -9dd9108e98868aba53e5aedf6f583548b51b04d11cc9fc6addded62d72be97f7 shards-4/response-v1.cbor -808348d49341740f3be8a50e39fc6c8f0caf380549e784b706da533aba52ebc6 shards-4/response-v2.cbor +cfefc539b53b92facafebff90bdb4a5dbffecc1546ff0a2fc4663ea6ce4be419 shards-4/response-v1.cbor +07181713af2fc7646005ca45ad2598fe75e99116319e1ac0470f7c292e0c88fa shards-4/response-v2.cbor aaef16164ee6848c2e8ce8ff99ec391101719602a3d0548c86d88a3c9245c6fd shards-4/responses.json e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373 shards-4/shard-configs/00.cbor 9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f shards-4/shard-configs/01.cbor @@ -315,8 +315,8 @@ b1407ec6e8be2712e6c239e67d545e0dc295fa700eae2010d4a7748402e3e3e7 shards-8/conte f15ab7c2a15ff8b588231ae9f025ffbd656d89962c2a4dd152070a1e0e14a6ba shards-8/partition-view.cbor 1faef5615c5030a2a8892c315164fc300dc00580c850e07bf8430ba397ff749b shards-8/producer.json 79b674328f71476a9f3c28891a7f3b132000db555d9e334ac519ee12b7aea7a7 shards-8/requests.json -4092f049e16fdc7663dd49818628f69cd01eff52a8d8c8313ed0993bf4c62163 shards-8/response-v1.cbor -6b373aff436aef9d43833f279388beed683da63d44dbebdd70f4476442cf54c5 shards-8/response-v2.cbor +0ad8cd865320931519c844741b2aae7bdf964417f596341933fcd45edccfb600 shards-8/response-v1.cbor +a44eb2fd3de0869d8cb742979bd602a1125763202b6179bde2ce9df1bb142b46 shards-8/response-v2.cbor 3fa308ee4f490d074ee1ff58a1a51eeb804f2b1dc0a6eeec47a55f5d928aee7c shards-8/responses.json 7d2e71ac86a93337e48eb94ba2c99779dbddfac39c2302a392c1abb57b04948e shards-8/shard-configs/000.cbor ccabe0eb3183c661dad9086982eec3b687f31ab6f3714a72c3de1d89cddd54e2 shards-8/shard-configs/001.cbor @@ -340,8 +340,8 @@ a282b09cc550b6b8e78574a0c45633a0c6b00e0dc28c9bcbd9a94f834585c6e5 witness-alt/ex 77cd23773d0722c1d63f52955e20f270c403a89d5b562866c261c745e71e3340 witness-alt/partition-view.cbor a2f312db2946e3f92806eb4791e93af687babda79db710d866ca7a3050ddab0a witness-alt/producer.json 55edff72db1f7303f63dfb91299798f219de1be999dd15fd4144b3deea624c98 witness-alt/requests.json -251982db5eea788255de50c70986f6c207aec35d28675b195a89cfd64bd20532 witness-alt/response-v1.cbor -d1863ca4d07e1705c6e15a65f2cb5f8780c8ef27b27f9377a8032d3b45db0a6a witness-alt/response-v2.cbor +2dba6c4effa17c0470002072cb46fef0ad4803acfc166b148d109d143a1ef051 witness-alt/response-v1.cbor +a611305e5a40c6db5d585a4a3819311c98db6716a5f723a2e518cebe1d7f6116 witness-alt/response-v2.cbor bcc2b47c96942334890d2671bcdbea3263b1922b855828fe8906252e1e62bcc7 witness-alt/responses.json e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373 witness-alt/shard-configs/00.cbor 9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f witness-alt/shard-configs/01.cbor diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/large-values/response-v1.cbor index 219e16971dd09369b743cba3ee3f352c5c56a81f..a9e22c68f187315b537ce5a3a5ac2b906ae387e6 100644 GIT binary patch delta 13 UcmZoZDeI^*~r+y1ON}?0>}UW diff --git a/src/test/resources/shared/uc-consolidation/v1/large-values/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/large-values/response-v2.cbor index 3ffa4a69b64a14556e1ac0f6ea1fd8cc25b7fc05..af408fb747b91cb7ba223fde96351ceabf71d2db 100644 GIT binary patch delta 20 bcmey!{+XS*nW=3fa|06-L&D}}raVRfN&W^v delta 17 Ycmey&{*j%znW<$Xa|6@nR;D~g06PH%-T(jq diff --git a/src/test/resources/shared/uc-consolidation/v1/manifest.json b/src/test/resources/shared/uc-consolidation/v1/manifest.json index 0dc50490..31d569ef 100644 --- a/src/test/resources/shared/uc-consolidation/v1/manifest.json +++ b/src/test/resources/shared/uc-consolidation/v1/manifest.json @@ -5,13 +5,13 @@ "command": "UC_FIXTURE_AGGREGATOR_COMMIT=$(git rev-parse HEAD) go run ./cmd/gen-uc-consolidation-fixtures -out testdata/uc-consolidation/v1", "toolchain": "go1.27.3", "commits": { - "aggregator-go": "b420fd193d2b84cd98f5d39b1f586895eb7a9599", - "bft-core": "f8a0787aa7a1", - "bft-go-base": "d74b49846bb5" + "aggregator-go": "5dc939966d12e218a0279cd6138ec731300185b0", + "bft-core": "f94b4b410059", + "bft-go-base": "81ee667315cb" }, "modules": { - "github.com/unicitynetwork/bft-core": "v1.1.1-0.20261021121301-f8a0787aa7a1", - "github.com/unicitynetwork/bft-go-base": "v1.1.1-0.20261021120522-d74b49846bb5" + "github.com/unicitynetwork/bft-core": "v1.1.1-0.20261107234634-f94b4b410059", + "github.com/unicitynetwork/bft-go-base": "v1.1.1-0.20261107183428-81ee667315cb" } }, "limits": { @@ -750,8 +750,8 @@ "large-values/partition-view.cbor": "0105eb42b266a013f13c5886f88e085d491a5c10fa2c17b94b1ba09224e6dc9f", "large-values/producer.json": "83966003ca34bc438e7270fb25f95d82de0019132704827d1f18a846f37098ad", "large-values/requests.json": "4d76e128e0d5e02ed3f92277f4020596e77a6cf3e07b37474383a3a3c7cc523b", - "large-values/response-v1.cbor": "700a0b8afafc4693ba0973a961c9134134b149bf316f4bc600b10b68c2049714", - "large-values/response-v2.cbor": "86bd147f5017f3327923888bc395d9a331e5ba7a3dcc7dfb4a8bbf94796caefc", + "large-values/response-v1.cbor": "7dd5c83a2fc24d12456d890e0f916cee6dbaadd6004cd7b50ce22f7663517879", + "large-values/response-v2.cbor": "ea74e61c59330d97279e3179064b40b7914bc46f78165182068d8d264015c7b1", "large-values/responses.json": "9773815a047eef6d29ac90b856bb9e3338bd1fd9662c07afdb4863350acdf426", "large-values/shard-configs/0.cbor": "8fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351ab", "large-values/shard-configs/1.cbor": "658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749c", @@ -900,8 +900,8 @@ "negative/validly-signed-other-partition/partition-view.cbor": "82afd8bd3427ecdc71518dc70df4ad5227dced95531e22bcdba0ac9a30adfdf0", "negative/validly-signed-other-partition/producer.json": "adb63debd65ada7c2ebbdb2385be7a6bba8b7a47adb2a3963fd5266749de2800", "negative/validly-signed-other-partition/requests.json": "a1c6d6b48879de08c20c82084e7b12feaf7f3a0f072ccf97c5272e08f48508c5", - "negative/validly-signed-other-partition/response-v1.cbor": "08eda5f275479d8cc01f574a8543c880036f017bed58dba44cfde662bfeb89d0", - "negative/validly-signed-other-partition/response-v2.cbor": "3ccfab021ad0d65bb320908652ad42316323e8a0a18df94ce06ed0b1ecb49aa6", + "negative/validly-signed-other-partition/response-v1.cbor": "2ff27d11d24cb003741df566bcb13c038fb17bfcb04e5e5fe815618bf0aa73ee", + "negative/validly-signed-other-partition/response-v2.cbor": "c6a14df7a70849c4b2c5c3d8d436f950a02bdd07ee66a8f18fcfaed5af049cf8", "negative/validly-signed-other-partition/responses.json": "d82e3d044907adefd42a15055ab7c290f52d9c9948763fe8c37766b30670fcc9", "negative/validly-signed-other-partition/shard-configs/00.cbor": "9f4739e3008e1245a73fd00e07e9938553ae786ec38bc2745d72cbb90d89dd74", "negative/validly-signed-other-partition/shard-configs/01.cbor": "00ee312dd9a01654ee50e0bac5a624cb958e08a40a1b69d6b41b94eafda17060", @@ -996,8 +996,8 @@ "nil-vs-empty/partition-view.cbor": "ead7af5982c3f0cafa2e4c708414ba364853f42102396cfd0eefe969379755f6", "nil-vs-empty/producer.json": "9f18d84acc86c67cfa9a6caf0828d60c7dc777d0043ea09f48b9d66b63d2f151", "nil-vs-empty/requests.json": "3571ee2a880c8bcfab4a5f2e78141cbce049730dd484deb296dae32d6bcafc91", - "nil-vs-empty/response-v1.cbor": "4c0912ac92686a74237cf8e0e05a12de3fec4c7e51ff36fb7947619ea5abbe10", - "nil-vs-empty/response-v2.cbor": "6752a8789ac112e09d4b3a74661120465dbd95d46a39452b914e1457c1a12f2b", + "nil-vs-empty/response-v1.cbor": "1e062aa2b44230075ff5643f0ca0c5960125cf998a56dddcf1e72cbe842165a1", + "nil-vs-empty/response-v2.cbor": "e4671947e69746b01a2f8b7076797e5d59dc01b6a495f859ea1ba713ce9f882b", "nil-vs-empty/responses.json": "d94a75cb510d3a1810553ac06137c88f04f8ae7826524c6464aa477f7e7acd31", "nil-vs-empty/shard-configs/0.cbor": "8fd897e45bf19b0d42131590d69d598b7e410e7d8dd21c6cf979f4ea8e5351ab", "nil-vs-empty/shard-configs/1.cbor": "658115869be8cce3ce5e0a8f34e369ecc016721afb586b72a08236dd8d97749c", @@ -1009,8 +1009,8 @@ "shards-1/partition-view.cbor": "5c16c74f31b5bf9c2c6412420bde08785e25d3b042df1cc6aabd961ef52e49fa", "shards-1/producer.json": "44a28f3580c45f6e0c789cb1f5390bc941f5c198c61fd71fb7789a24d9cf1bbb", "shards-1/requests.json": "8e57624c46e31854a99cc0e17cf10556bf1086b38338787ae293139083c756c8", - "shards-1/response-v1.cbor": "a0b3db52472dc0518cdb41cffa5b9fec076d286d3ac2bc73b0e7e674dd3c86ac", - "shards-1/response-v2.cbor": "0b184daf3cacebb0f6a6910b15be8208f48fb561acc373b294800f015615b8cc", + "shards-1/response-v1.cbor": "3bc889c38244cb3ddae5989ab5999c4e03e233ee98429d94489b5f4f379fe14c", + "shards-1/response-v2.cbor": "ecdde14f3ae2d27c367920985550007987607d0ddb04c7ce398c5a9fb96173ea", "shards-1/responses.json": "f1ba5431ea3cbb6fdb0226204d2da2357a2b39902a3d3e294c6240d5f12caf97", "shards-1/shard-configs/root.cbor": "b96ac9d593ba756d1812843068f2996c19444e3c730b0dac93e7793deb4f28b2", "shards-1/trust-base.cbor": "00d4956ae6eb07d6c6f968ce545a7aff320149ce91e70abecf7f6694a4d63dc0", @@ -1020,8 +1020,8 @@ "shards-4-timeout-unchanged/partition-view.cbor": "51193e9b99cbcf399430384b76af9bb70cf17f4bc666b764687d2671f5632b65", "shards-4-timeout-unchanged/producer.json": "76c0712007ad41bd91e49bd32f4c54a6f3ed5e5f154b390977e4ba6138844877", "shards-4-timeout-unchanged/requests.json": "32c766927a1224ec0e0a67b2f2f567b745aa843e1e2186dda24ab1795904043b", - "shards-4-timeout-unchanged/response-v1.cbor": "813e9754526fc63864561c3d291369c8623d1da8d8fdac4a96faac4f7020feb0", - "shards-4-timeout-unchanged/response-v2.cbor": "41e143ed87a676578f49284f4d160084be5db711c8d1541b4d9131213b75d99c", + "shards-4-timeout-unchanged/response-v1.cbor": "ef11264af23a0957bf9db497a1db648d3c5d8fa734b9df39005b51bf0378d621", + "shards-4-timeout-unchanged/response-v2.cbor": "58affcb8f374a8734da7947d821e84e66afd96e9dbb5c9ee55127d5756820ae0", "shards-4-timeout-unchanged/responses.json": "f41a3120508859c81808b3429a87a7fecf7efbaba01f0fb8eec44daeecc2b5e4", "shards-4-timeout-unchanged/shard-configs/00.cbor": "e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373", "shards-4-timeout-unchanged/shard-configs/01.cbor": "9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f", @@ -1037,8 +1037,8 @@ "shards-4/partition-view.cbor": "77cd23773d0722c1d63f52955e20f270c403a89d5b562866c261c745e71e3340", "shards-4/producer.json": "b2b5c2d2199ab7ff15747f1a1bd070848e93c055cb56423c9a3af1975b5822e9", "shards-4/requests.json": "55edff72db1f7303f63dfb91299798f219de1be999dd15fd4144b3deea624c98", - "shards-4/response-v1.cbor": "9dd9108e98868aba53e5aedf6f583548b51b04d11cc9fc6addded62d72be97f7", - "shards-4/response-v2.cbor": "808348d49341740f3be8a50e39fc6c8f0caf380549e784b706da533aba52ebc6", + "shards-4/response-v1.cbor": "cfefc539b53b92facafebff90bdb4a5dbffecc1546ff0a2fc4663ea6ce4be419", + "shards-4/response-v2.cbor": "07181713af2fc7646005ca45ad2598fe75e99116319e1ac0470f7c292e0c88fa", "shards-4/responses.json": "aaef16164ee6848c2e8ce8ff99ec391101719602a3d0548c86d88a3c9245c6fd", "shards-4/shard-configs/00.cbor": "e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373", "shards-4/shard-configs/01.cbor": "9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f", @@ -1054,8 +1054,8 @@ "shards-8/partition-view.cbor": "f15ab7c2a15ff8b588231ae9f025ffbd656d89962c2a4dd152070a1e0e14a6ba", "shards-8/producer.json": "1faef5615c5030a2a8892c315164fc300dc00580c850e07bf8430ba397ff749b", "shards-8/requests.json": "79b674328f71476a9f3c28891a7f3b132000db555d9e334ac519ee12b7aea7a7", - "shards-8/response-v1.cbor": "4092f049e16fdc7663dd49818628f69cd01eff52a8d8c8313ed0993bf4c62163", - "shards-8/response-v2.cbor": "6b373aff436aef9d43833f279388beed683da63d44dbebdd70f4476442cf54c5", + "shards-8/response-v1.cbor": "0ad8cd865320931519c844741b2aae7bdf964417f596341933fcd45edccfb600", + "shards-8/response-v2.cbor": "a44eb2fd3de0869d8cb742979bd602a1125763202b6179bde2ce9df1bb142b46", "shards-8/responses.json": "3fa308ee4f490d074ee1ff58a1a51eeb804f2b1dc0a6eeec47a55f5d928aee7c", "shards-8/shard-configs/000.cbor": "7d2e71ac86a93337e48eb94ba2c99779dbddfac39c2302a392c1abb57b04948e", "shards-8/shard-configs/001.cbor": "ccabe0eb3183c661dad9086982eec3b687f31ab6f3714a72c3de1d89cddd54e2", @@ -1079,8 +1079,8 @@ "witness-alt/partition-view.cbor": "77cd23773d0722c1d63f52955e20f270c403a89d5b562866c261c745e71e3340", "witness-alt/producer.json": "a2f312db2946e3f92806eb4791e93af687babda79db710d866ca7a3050ddab0a", "witness-alt/requests.json": "55edff72db1f7303f63dfb91299798f219de1be999dd15fd4144b3deea624c98", - "witness-alt/response-v1.cbor": "251982db5eea788255de50c70986f6c207aec35d28675b195a89cfd64bd20532", - "witness-alt/response-v2.cbor": "d1863ca4d07e1705c6e15a65f2cb5f8780c8ef27b27f9377a8032d3b45db0a6a", + "witness-alt/response-v1.cbor": "2dba6c4effa17c0470002072cb46fef0ad4803acfc166b148d109d143a1ef051", + "witness-alt/response-v2.cbor": "a611305e5a40c6db5d585a4a3819311c98db6716a5f723a2e518cebe1d7f6116", "witness-alt/responses.json": "bcc2b47c96942334890d2671bcdbea3263b1922b855828fe8906252e1e62bcc7", "witness-alt/shard-configs/00.cbor": "e8883d2c22a31a51be038ba098c200cc298c458f0b870e6b34182ccd6313b373", "witness-alt/shard-configs/01.cbor": "9d39874c3b33d1c3e5f95729c62150434d5f555ff272bd7f2d2b98516dee449f", diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/response-v1.cbor index bb8feae32b8bb292845f290819ff05f03d0a14c6..cb54d413c719e1b81b30fc78e4851f56581a332d 100644 GIT binary patch delta 13 UcmbQuI+vBPZ6o6>CMJdi02`kJdH?_b delta 10 RcmbQsI-8ZTWh3J(CIAuZ0~P=P diff --git a/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/negative/validly-signed-other-partition/response-v2.cbor index 8c40cf25dcacd15e1557ef403aee9e699cd5dc59..972f7ac0f05462ea39eb06d96bd56338f434d2a4 100644 GIT binary patch delta 20 bcmZ3+xq_3qnW=3f^DHJNhJ?*?nK+pMKgR`r delta 17 YcmZ3%xr~#!nW<$X^DL&#^O-oA05UQK8~^|S diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/response-v1.cbor index 4c26b92da8aaa41fd10e1455a9c1d695632ec1d9..591b94015f400ba693806c814c40d2cd84048cf4 100644 GIT binary patch delta 13 Ucmey#@|%URZ6jj^6B9!M03)vi5&!@I delta 10 Rcmey(@{@(JWg}w+695=91Fir7 diff --git a/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/nil-vs-empty/response-v2.cbor index 8359ec025dc47c31f22a224349441a68661d0fbe..5b97d34492e8b503deeeaf81b5871fe6a4ee44ab 100644 GIT binary patch delta 20 bcmcb`eutg8nW=3fa|II diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-1/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-1/response-v2.cbor index ddaa7081656eee68279e6f641a9cae8db98774a9..d34946d4f018194c30c8f0422fbfa2130ab53dcb 100644 GIT binary patch delta 19 acmeyx`iGUdnW=3fa~Km7L&D@priB1Pc?Jvs delta 16 Xcmeyv`iqshnW<$Xa~RX)Xr_e#G%^LM diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/response-v1.cbor index a118ad96470048e98263bde53969a00e33f23222..02824072c6ec9aad02557f8fa0f9ada9b70b9ca3 100644 GIT binary patch delta 13 UcmbQuI+vBPZ6o6>CMJdi02`kJdH?_b delta 10 RcmbQsI-8ZTWh3J(CIAuZ0~P=P diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4-timeout-unchanged/response-v2.cbor index f470d11f414aedafa13a64b3e8297837ebe7fd67..df6a6664e3eb5e553f2e6a5169ddaa51359d1549 100644 GIT binary patch delta 20 bcmaFE`HqvhnW=3f^DHJNhJ?*?nf#dmO1B13 delta 17 YcmaFI`G%9ZnW<$X^DL&#^O^ja06TsK?f?J) diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/response-v1.cbor index 3f91aae68205e14a42d0903eb7c2319b86325721..0bc1bbfb80375539829413d7dd19544f04dd230c 100644 GIT binary patch delta 13 UcmbQuI+vBPZ6o6>CMJdi02`kJdH?_b delta 10 RcmbQsI-8ZTWh3J(CIAuZ0~P=P diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-4/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-4/response-v2.cbor index f56ba8773b91237fd5c38ef790c9da553b6fdfbf..eda275b50410db5f866b4cbbf1994a2ee547735c 100644 GIT binary patch delta 20 bcmZ3+xq_3qnW=3f^DHJNhJ?*?nK+pMKgR`r delta 17 YcmZ3%xr~#!nW<$X^DL&#^O-oA05UQK8~^|S diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/response-v1.cbor index 5ad790ab2d6d88ec0d668040eb46b155313eede3..ecf70d9d9beb813b8deae4f884a4dde314d445d0 100644 GIT binary patch delta 13 UcmdnXx}TM?Z6o6zCMJdi03Ue+-~a#s delta 10 Rcmdnbx|fx)Wh3JrCIA$Z1AG7g diff --git a/src/test/resources/shared/uc-consolidation/v1/shards-8/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/shards-8/response-v2.cbor index 7672034a485cd3113e47dd67756c3fe279cc88eb..b69f2ef81a7e8c6817d3739561579971c73fe251 100644 GIT binary patch delta 20 bcmaFE`;M2nnW=3f^ByK9hJ?-gnRHnIOyLH6 delta 17 YcmaFI`-YdfnW<$X^B$(n2bpwP06i)O8UO$Q diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/response-v1.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/response-v1.cbor index fd02dac9263dfd3d7ab04257ff20a57766d1f485..1cda3543ebf29a64c092df67b4c1976260166366 100644 GIT binary patch delta 13 UcmbQuI+vBPZ6o6>CMJdi02`kJdH?_b delta 10 RcmbQsI-8ZTWh3J(CIAuZ0~P=P diff --git a/src/test/resources/shared/uc-consolidation/v1/witness-alt/response-v2.cbor b/src/test/resources/shared/uc-consolidation/v1/witness-alt/response-v2.cbor index ef6395473ad33bf61a9bdc079fc19105a79f078f..16763a74a9b10e7a7cff99a1f336434044938d6a 100644 GIT binary patch delta 20 bcmZ3+xq_3qnW=3f^DHJNhJ?*?nK+pMKgR`r delta 17 YcmZ3%xr~#!nW<$X^DL&#^O-oA05UQK8~^|S From f6afcdc9ed8d641ec7d3edd5608720c9d63e8ca7 Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Mon, 9 Nov 2026 16:27:04 +0200 Subject: [PATCH 06/10] Review fixes: honest sources are asked again without a fake snapshot (NOT_YET_AVAILABLE too), a successor is validated first, non-inclusion and consolidation keep the typed missing-entry cause, release pins at the merged unicity-ids ef00ff25 - TrustBaseUpdater: a source that answers a snapshot-carrying request with HISTORY_MISMATCH or NOT_YET_AVAILABLE (what aggregator-go answers for an end above its tip) is asked again from the tip without the snapshot. - TrustBaseEntry.verifySuccessor and TrustBaseHistory.append validate the entry's structure first, as Go's VerifySuccessor does. - NoTrustBaseEntryException: the typed missing-entry signal is the cause of a non-inclusion rejection and of a consolidation failure for certificate evidence. - Release pins: manifest source commit ef00ff25 (bundles unchanged, byte for byte). - Tests: the updater against the real server's answer, one test per successor rule (structure, network, epoch), the typed cause on the real testnet2 vector and in the consolidation corpus. --- .../sdk/api/NonInclusionVerifier.java | 7 +- .../sdk/api/bft/trustbase/TrustBaseEntry.java | 10 ++- .../api/bft/trustbase/TrustBaseHistory.java | 5 +- .../api/bft/trustbase/TrustBaseUpdater.java | 15 ++-- .../NoTrustBaseEntryException.java | 48 ++++++++++++ .../verification/NoTrustBaseEntryResult.java | 10 +++ .../sdk/consolidation/ProofConsolidator.java | 5 +- src/main/resources/release-pins/manifest.json | 2 +- .../unicitylabs/sdk/api/RealSealsTest.java | 25 ++++++ .../api/bft/trustbase/ReleasePinsTest.java | 6 +- .../TrustBaseSuccessorRulesTest.java | 76 +++++++++++++++++++ .../bft/trustbase/TrustBaseUpdaterTest.java | 40 +++++++++- .../UcConsolidationCorpusTest.java | 29 ++++++- 13 files changed, 258 insertions(+), 20 deletions(-) create mode 100644 src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryException.java create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSuccessorRulesTest.java diff --git a/src/main/java/org/unicitylabs/sdk/api/NonInclusionVerifier.java b/src/main/java/org/unicitylabs/sdk/api/NonInclusionVerifier.java index 85a4ca06..06b78271 100644 --- a/src/main/java/org/unicitylabs/sdk/api/NonInclusionVerifier.java +++ b/src/main/java/org/unicitylabs/sdk/api/NonInclusionVerifier.java @@ -11,6 +11,7 @@ import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; import org.unicitylabs.sdk.serializer.cbor.CborSerializationException; @@ -204,10 +205,14 @@ private static void authenticateCertificate(UnicityCertificateVerifier verifier, UnicityCertificateFailure failure = result.getFailure(); // a fault of the certificate (partition, body, paths, seal hash, pins) is uc_invalid; the // refusal of the authority (network, epoch, quorum) is authority_rejected + // a missing trust-base entry is not a verdict on the proof: the typed signal stays the cause + // (epoch of the seal, held tip), so the caller can update its history and ask again + NoTrustBaseEntryResult noEntry = NoTrustBaseEntryResult.find(result); throw new NonInclusionVerificationException( failure != null && !failure.isAuthorityRejection() ? Reason.UC_INVALID : Reason.AUTHORITY_REJECTED, - "the certificate is not authenticated by the trusted authority", null); + "the certificate is not authenticated by the trusted authority", + noEntry == null ? null : noEntry.toException()); } // the end of the authority is a statement about an authenticated seal long round = uc.getUnicitySeal().getRootChainRoundNumber(); diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntry.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntry.java index 251b8d20..83a00700 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntry.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseEntry.java @@ -613,16 +613,20 @@ public long verifySignature(byte[] data, byte[] signature, String nodeId) { } /** - * Check that this entry extends {@code previous}: not a genesis, same network, epoch previous + - * 1, a later start round, the predecessor id equal to the entry id of {@code previous}, and a - * strict quorum of {@code previous}' members signing {@link #sigBytes()}. + * Check that this entry extends {@code previous}: a valid structure (as {@link #validate()}; an + * entry built with the public constructor is not decoded, so it is not yet validated), not a + * genesis, same network, epoch previous + 1, a later start round, the predecessor id equal to the + * entry id of {@code previous}, and a strict quorum of {@code previous}' members signing + * {@link #sigBytes()}. * * @param previous the predecessor + * @throws TrustBaseInvalidException if this entry's structure is invalid * @throws TrustBaseChainException if the entry does not extend the predecessor * @throws TrustBaseSignatureException if the predecessor's members did not sign it */ public void verifySuccessor(TrustBaseEntry previous) { Objects.requireNonNull(previous, "previous cannot be null"); + this.validate(); if (this.isGenesis()) { throw new TrustBaseChainException("A genesis entry has no predecessor."); } diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistory.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistory.java index 012b722d..898ee70a 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistory.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseHistory.java @@ -131,7 +131,8 @@ public Optional getTip() { * @param entry decoded entry * @return {@link TrustBaseAppendOutcome#APPENDED}, or * {@link TrustBaseAppendOutcome#ALREADY_HELD} when the entry is already held - * @throws TrustBaseInvalidException if the first entry is not a genesis entry + * @throws TrustBaseInvalidException if the entry's structure is invalid, or the first entry is not a + * genesis entry * @throws TrustBaseChainException if the first entry is not the pinned genesis, or the entry does * not extend the tip (or its held predecessor) * @throws TrustBaseSignatureException if the predecessor's members did not sign it with a quorum @@ -140,6 +141,8 @@ public Optional getTip() { */ public TrustBaseAppendOutcome append(TrustBaseEntry entry) { Objects.requireNonNull(entry, "entry cannot be null"); + // An entry from the public constructor was never decoded, so never validated: structure first, as Go's VerifySuccessor does. + entry.validate(); synchronized (this.lock) { if (this.entries.isEmpty()) { entry.verifyGenesis(); diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java index 1dd68f88..1dbc309f 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java @@ -246,12 +246,15 @@ int run() { current++; break; } - // A source that refuses the echoed snapshot as another history may be the honest - // one: the snapshot came from whichever source answered the first page, and a - // hostile first page can announce a fake end. Drop it, start again from the tip and - // ask the same source once more without it; a mismatch without a snapshot is final, - // so this terminates. - if (page.getStatus() == TrustBaseStatus.HISTORY_MISMATCH && snapshot != null) { + // A source that refuses the echoed snapshot may be the honest one: the snapshot came + // from whichever source answered the first page, and a hostile first page can + // announce a fake end. An honest source answers an end above its own tip with + // NOT_YET_AVAILABLE (aggregator-go), and another history with HISTORY_MISMATCH; both + // say nothing against the source. Drop the snapshot, start again from the tip and ask + // the same source once more without it; a refusal without a snapshot is final, so + // this terminates. + if ((page.getStatus() == TrustBaseStatus.HISTORY_MISMATCH + || page.getStatus() == TrustBaseStatus.NOT_YET_AVAILABLE) && snapshot != null) { causes.add(new Cause(index, CauseKind.STATUS, null, page.getStatus())); snapshot = null; from = this.nextFrom(); diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryException.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryException.java new file mode 100644 index 00000000..b8db2821 --- /dev/null +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryException.java @@ -0,0 +1,48 @@ +package org.unicitylabs.sdk.api.bft.verification; + +import org.unicitylabs.sdk.util.UnsignedLongs; + +/** + * The typed "no trust-base entry for the seal's epoch" signal as the cause of a refusal that is + * reported as an exception (a non-inclusion rejection, a consolidation failure). Nothing is wrong + * with the proof as far as is known: the caller obtains the missing entries, appends them and + * verifies again. It is carried as the cause, never as a reason of its own. + */ +public final class NoTrustBaseEntryException extends RuntimeException { + + private static final long serialVersionUID = 1L; + + private final long epoch; + private final Long heldTipEpoch; + + /** + * Create the signal. + * + * @param epoch epoch of the seal, unsigned bits + * @param heldTipEpoch epoch of the held tip, null when the history is empty + */ + public NoTrustBaseEntryException(long epoch, Long heldTipEpoch) { + super("No trust-base entry for epoch " + UnsignedLongs.toDecimal(epoch) + " (held tip: " + + (heldTipEpoch == null ? "none" : UnsignedLongs.toDecimal(heldTipEpoch)) + ")."); + this.epoch = epoch; + this.heldTipEpoch = heldTipEpoch; + } + + /** + * Get the epoch the seal needs. + * + * @return epoch, unsigned bits + */ + public long getEpoch() { + return this.epoch; + } + + /** + * Get the epoch of the held tip. + * + * @return epoch, unsigned bits, or null when the history is empty + */ + public Long getHeldTipEpoch() { + return this.heldTipEpoch; + } +} diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryResult.java b/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryResult.java index 9d904aeb..3bec6573 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryResult.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/verification/NoTrustBaseEntryResult.java @@ -47,6 +47,16 @@ public Long getHeldTipEpoch() { return this.heldTipEpoch; } + /** + * The same information as an exception, for the places that report a refusal as an exception + * (non-inclusion, consolidation) and must not lose the typed signal. + * + * @return the typed cause + */ + public NoTrustBaseEntryException toException() { + return new NoTrustBaseEntryException(this.epoch, this.heldTipEpoch); + } + /** * Find the typed no-entry failure anywhere in a verification trace. * diff --git a/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java b/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java index 5be890b3..d158652f 100644 --- a/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java +++ b/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java @@ -42,6 +42,7 @@ import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.SealVerificationResult; import org.unicitylabs.sdk.api.bft.verification.SealVerificationSession; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult; import org.unicitylabs.sdk.crypto.hash.DataHash; @@ -504,7 +505,9 @@ private Evidence authenticateEvidence(List stateIds) { UnicityCertificateVerificationResult verified = verifier.verifyCertificate(trustBase, uc); evidenceBodyChecks += verifier.getStats().getBodyChecks() - bodiesBefore; if (verified.getStatus() != VerificationStatus.OK) { - throw certificateFailure("Evidence " + i, verified.getFailure(), shard, null); + NoTrustBaseEntryResult noEntry = NoTrustBaseEntryResult.find(verified); + throw certificateFailure("Evidence " + i, verified.getFailure(), shard, + noEntry == null ? null : noEntry.toException()); } String pinViolation = routing.getViewPolicy().violation(shard, uc.getShardConfigurationHash()); diff --git a/src/main/resources/release-pins/manifest.json b/src/main/resources/release-pins/manifest.json index 21d0c031..87685831 100644 --- a/src/main/resources/release-pins/manifest.json +++ b/src/main/resources/release-pins/manifest.json @@ -22,7 +22,7 @@ } ], "source": { - "commit": "513dc4fcf01ee802a97d59a5bc4e50ba64786d45", + "commit": "ef00ff25972e4db23485cc982e059a7022c2e463", "pullRequest": 11, "repository": "unicitynetwork/unicity-ids" }, diff --git a/src/test/java/org/unicitylabs/sdk/api/RealSealsTest.java b/src/test/java/org/unicitylabs/sdk/api/RealSealsTest.java index dff3f801..b29fab86 100644 --- a/src/test/java/org/unicitylabs/sdk/api/RealSealsTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/RealSealsTest.java @@ -2,6 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -16,6 +17,7 @@ import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundle; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseBundleLimits; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryException; import org.unicitylabs.sdk.serializer.cbor.CborSerializer; import org.unicitylabs.sdk.util.HexConverter; @@ -103,6 +105,29 @@ void aRealMainnetSealVerifiesThroughTheV2Bundle() { assertEquals(1, outcome.getSnapshot().getRootEpoch()); } + /** + * A seal sealed in an epoch the client does not hold yet is not a verdict on the proof: the + * rejection carries the typed missing-entry cause (epoch of the seal, held tip), where a bad + * signature or another network's bundle carries none. + */ + @Test + void aSealOfAnEpochTheHistoryDoesNotHoldKeepsTheTypedMissingEntryCause() { + NonInclusionProof proof = proofOf("testnet2", hexOf("testnet2.non-inclusion.hex")); + // the pinned history without a single entry: the certificate check gives the typed result + TrustBaseHistory empty = TrustBaseHistory.create(HexConverter.decode(TESTNET2_ID)); + NonInclusionVerificationException missing = assertThrows( + NonInclusionVerificationException.class, () -> verify(proof, empty)); + assertEquals(Reason.AUTHORITY_REJECTED, missing.getReason()); + NoTrustBaseEntryException typed = (NoTrustBaseEntryException) missing.getCause(); + assertEquals(1, typed.getEpoch()); + assertNull(typed.getHeldTipEpoch(), "the history is empty"); + + // another network's bundle holds an epoch-1 entry: refused for what it is, with no such cause + NonInclusionVerificationException other = assertThrows(NonInclusionVerificationException.class, + () -> verify(proof, historyOf("mainnet", MAINNET_ID))); + assertNull(other.getCause()); + } + @Test void controlsAnotherNetworksBundleOrDamagedSignaturesDoNotVerify() { // testnet2's seal under mainnet's bundle diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinsTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinsTest.java index bdc2af3c..a23eb4e4 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinsTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/ReleasePinsTest.java @@ -23,13 +23,13 @@ /** The release table: approved assets, the generated manifest, and the full chain of each row. */ class ReleasePinsTest { - /** The approved bundles of unicity-ids PR 11 at 513dc4fc (also shipped by the JS and Rust SDKs). */ + /** The approved bundles of unicity-ids PR 11, merged as ef00ff25 (also shipped by the JS and Rust SDKs). */ private static final String MAINNET_BUNDLE_SHA = "9d01b8713cab42dab269e1ad6e244cf11e7f8c4b580682a98402db348b37bd52"; private static final String TESTNET2_BUNDLE_SHA = "5b0a4fb7bd6c2d71068c0e65659aa60733dcc9083e9290fc22c2dd8e8e60f08a"; private static final String MANIFEST_SHA = - "7bbaad4fb41bc5e6d169a1c17d9834e792bd9cdceaf521faa8a25791d2dbe2c1"; + "56b390ab0be3c77cd9119e983965d803e4081d44a56596b2cfb64ed179a27fc7"; private static final String MAINNET_GENESIS = "0b6f8143e19e2a585be3534e8f1062f36c3b9621e506158f10abfbc9a56f4e4c"; private static final String TESTNET2_GENESIS = @@ -130,7 +130,7 @@ void theManifestIsExactlyWhatTheGeneratorWritesFromTheBundles() throws IOExcepti assertEquals(new String(current, StandardCharsets.UTF_8), generated, "regenerate with UTB_RELEASE_PINS_UPDATE=1 ./gradlew test --tests '*ReleasePinsTest'"); JsonNode manifest = new ObjectMapper().readTree(current); - assertEquals("513dc4fcf01ee802a97d59a5bc4e50ba64786d45", manifest.get("source").get("commit") + assertEquals("ef00ff25972e4db23485cc982e059a7022c2e463", manifest.get("source").get("commit") .asText()); assertEquals(11, manifest.get("source").get("pullRequest").asInt()); assertEquals("unicitynetwork/unicity-ids", manifest.get("source").get("repository").asText()); diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSuccessorRulesTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSuccessorRulesTest.java new file mode 100644 index 00000000..7612d400 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseSuccessorRulesTest.java @@ -0,0 +1,76 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.util.LinkedHashMap; +import java.util.Map; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseTestChain.Committee; + +/** + * The rules of {@link TrustBaseEntry#verifySuccessor} one at a time, each with a successor that is + * signed by the predecessor's quorum and wrong in that one respect only. A rule that is removed + * fails exactly its test; a successor of the right shape passes. + */ +class TrustBaseSuccessorRulesTest { + + private static final int NETWORK = 4; + private final Committee committee = new Committee(4, 1, 7); + private final TrustBaseEntry genesis = TrustBaseTestChain.genesis(NETWORK, 1, 10, committee); + + /** A successor built with the public constructor, signed by three of the four members. */ + private TrustBaseEntry successor(int network, long epoch, long startRound, long threshold) { + Map placeholder = Map.of("x", new byte[65]); + TrustBaseEntry unsigned = new TrustBaseEntry(network, epoch, startRound, committee.members, + threshold, null, null, genesis.entryId(), placeholder); + byte[] data = unsigned.sigBytes(); + Map signatures = new LinkedHashMap<>(); + for (String signer : TrustBaseTestChain.firstN(committee, 3)) { + signatures.put(signer, TrustBaseTestChain.sign(committee.secrets.get(signer), data)); + } + return new TrustBaseEntry(network, epoch, startRound, committee.members, threshold, null, + null, genesis.entryId(), signatures); + } + + @Test + void aSuccessorOfTheRightShapeIsAccepted() { + successor(NETWORK, 2, 20, committee.threshold()).verifySuccessor(genesis); + } + + @Test + void theSuccessorsStructureIsValidatedBeforeItsSignatures() { + // a threshold of 1 where 3 is required for weight 4, signed by a predecessor quorum + TrustBaseEntry weak = successor(NETWORK, 2, 20, 1); + TrustBaseInvalidException direct = + assertThrows(TrustBaseInvalidException.class, () -> weak.verifySuccessor(genesis)); + assertTrue(direct.getMessage().contains("hreshold"), direct.getMessage()); + + TrustBaseHistory history = TrustBaseHistory.create(genesis.entryId()); + history.append(genesis); + assertThrows(TrustBaseInvalidException.class, () -> history.append(weak)); + assertEquals(1, history.getTip().get().getEpoch(), "nothing was appended"); + // the same entry with the exact threshold is appended: it is the structure that refused it + history.append(successor(NETWORK, 2, 20, committee.threshold())); + assertEquals(2, history.getTip().get().getEpoch()); + } + + @Test + void theNetworkMustBeThePredecessors() { + // only the network differs: the predecessor id, epoch, start round and signatures are right + TrustBaseEntry other = successor(NETWORK + 1, 2, 20, committee.threshold()); + TrustBaseChainException e = + assertThrows(TrustBaseChainException.class, () -> other.verifySuccessor(genesis)); + assertTrue(e.getMessage().startsWith("Network"), e.getMessage()); + } + + @Test + void theEpochMustBeThePredecessorsPlusOne() { + // called directly, as the history's gap logic would otherwise answer first + TrustBaseEntry skipping = successor(NETWORK, 3, 20, committee.threshold()); + TrustBaseChainException e = + assertThrows(TrustBaseChainException.class, () -> skipping.verifySuccessor(genesis)); + assertTrue(e.getMessage().startsWith("Epoch"), e.getMessage()); + } +} diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java index e471cc49..368c0716 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java @@ -218,14 +218,48 @@ void nothingNewerMeansATipBelowTheRequestedEpochAndOnlyWithoutASnapshot() { // an end at or above the requested epoch is not "nothing newer" Script lying = Script.fixed(status(TrustBaseStatus.NOT_YET_AVAILABLE, 2, 2)); assertThrows(TrustBaseUpdateException.class, () -> update(history, lying)); - // with a snapshot frozen, a not-yet-available page never ends the call as current + // with a snapshot frozen, a not-yet-available page does not end the call as current by + // itself: the source is asked again without the snapshot (an honest source answers an end + // above its own tip this way), and only that answer counts TrustBaseHistory second = genesisOnly(); Script paged = new Script((n, r) -> n == 0 ? page(2, 3, 5, 4L) : status(TrustBaseStatus.NOT_YET_AVAILABLE, 4, 1)); + assertEquals(2, update(second, paged), "the authenticated prefix is kept"); + assertEquals(3, tip(second)); + assertNotNull(paged.requests.get(1).getSnapshot(), "the second request echoed the snapshot"); + assertNull(paged.requests.get(2).getSnapshot(), "the refusal was asked again without it"); + // and when that answer is not "nothing newer" either, the source is refused for good + TrustBaseHistory third = genesisOnly(); + Script refusing = new Script((n, r) -> n == 0 ? page(2, 3, 5, 4L) + : status(TrustBaseStatus.NOT_YET_AVAILABLE, 4, 9)); TrustBaseUpdateException e = assertThrows(TrustBaseUpdateException.class, - () -> update(second, paged)); + () -> update(third, refusing)); assertEquals(2, e.getAppended(), "the authenticated prefix is kept"); - assertEquals(3, tip(second)); + assertEquals(3, tip(third)); + } + + /** + * aggregator-go answers a snapshot end above its own tip with NOT_YET_AVAILABLE, not + * HISTORY_MISMATCH. A hostile first source's fake end must not make an honest source final. + */ + @Test + void anHonestSourceAnsweringNotYetAvailableToAFakeEndIsAskedAgainWithoutIt() { + TrustBaseHistory history = genesisOnly(); + byte[] fake = new byte[32]; + Script honest = new Script((n, r) -> { + if (r.getSnapshot() != null && r.getSnapshot().getEnd() > 5) { + return status(TrustBaseStatus.NOT_YET_AVAILABLE, r.getFromEpoch(), 5); + } + return page((int) r.getFromEpoch(), 5, 5, null); + }); + Script hostileFirst = new Script((n, r) -> n == 0 + ? pageRaw(2, 9, fake, List.of(entry(2).encode()), 3L) + : status(TrustBaseStatus.INVALID_REQUEST, 3, 9)); + assertEquals(4, update(history, hostileFirst, honest), "every honest entry is appended"); + assertEquals(5, tip(history)); + assertTrue(honest.requests.stream().anyMatch(r -> r.getSnapshot() != null)); + assertNull(honest.requests.get(honest.requests.size() - 1).getSnapshot(), + "the last request was made without the dropped snapshot"); } @Test diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/UcConsolidationCorpusTest.java b/src/test/java/org/unicitylabs/sdk/consolidation/UcConsolidationCorpusTest.java index beeb980d..7c7ae7b5 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/UcConsolidationCorpusTest.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/UcConsolidationCorpusTest.java @@ -24,7 +24,9 @@ import org.unicitylabs.sdk.api.InclusionProofResponse; import org.unicitylabs.sdk.api.bft.PartitionView; import org.unicitylabs.sdk.api.bft.PartitionViewException; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryException; import org.unicitylabs.sdk.api.bft.ShardConfigurationPin; import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; @@ -130,10 +132,13 @@ private static Map responses(Case c) throws IOException { } private static Observation execute(Case c) throws IOException { + return execute(c, CorpusSupport.trustBase(c.bytes("trust-base.cbor"))); + } + + private static Observation execute(Case c, TrustBaseHistoryView trustBase) throws IOException { Observation observed = new Observation(); observed.calls = CorpusSupport.newCalls(); try { - TrustBaseHistoryView trustBase = CorpusSupport.trustBase(c.bytes("trust-base.cbor")); ShardRouting routing = routing(c, responses(c), observed.calls); OperationUnicityCertificateVerifier verifier = (OperationUnicityCertificateVerifier) new UnicityCertificateVerifier().beginOperation(PartitionViewPolicy.none()); @@ -159,6 +164,28 @@ private static Observation execute(Case c) throws IOException { return observed; } + /** + * Evidence sealed in an epoch the history does not hold yet is not a verdict on the evidence: + * the consolidation is refused as unauthenticated and keeps the typed missing-entry cause, so + * the caller can update its history and ask again. + */ + @Test + void evidenceOfAnEpochTheHistoryDoesNotHoldKeepsTheTypedMissingEntryCause() throws IOException { + Case c = new Case("shards-1"); + TrustBaseHistory held = (TrustBaseHistory) CorpusSupport.trustBase(c.bytes("trust-base.cbor")); + TrustBaseHistory empty = TrustBaseHistory.create(held.entryForEpoch(1).get().entryId()); + // control: the same case with its history consolidates + assertEquals(null, execute(c, held).failure); + + ConsolidationException failure = execute(c, empty).failure; + assertEquals(ConsolidationOutcome.UNAUTHENTICATED, failure.getOutcome(), failure.getMessage()); + assertTrue(failure.getCause() instanceof NoTrustBaseEntryException, + String.valueOf(failure.getCause())); + NoTrustBaseEntryException typed = (NoTrustBaseEntryException) failure.getCause(); + assertEquals(1, typed.getEpoch()); + assertEquals(null, typed.getHeldTipEpoch()); + } + @Test void theNegativeDirectoryHoldsEveryCaseTheManifestListsAndTheSevenPositivesAreThere() throws IOException { From bb7c0201817b8824973406e7f765fef1791c725e Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Mon, 9 Nov 2026 16:30:37 +0200 Subject: [PATCH 07/10] TrustBaseUpdater: keep the call's highest announced end apart from the snapshot Dropping the snapshot after HISTORY_MISMATCH / NOT_YET_AVAILABLE no longer forgets that a higher end was announced: a not-yet-available answer without a snapshot whose end is below the next epoch counts as current only when no end at or above it was announced; otherwise it is transient and asked again in the next round. Reset where the snapshot is reset because an entry was refused or the target moved on. --- .../api/bft/trustbase/TrustBaseUpdater.java | 23 +++++++++++++++++-- .../bft/trustbase/TrustBaseUpdaterTest.java | 12 +++++++--- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java index 1dbc309f..7c7f173a 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdater.java @@ -193,6 +193,12 @@ int run() { // an entry is refused. long from = nextFrom(); TrustBaseRequest.Snapshot snapshot = null; + // The highest end any source announced in this call, kept apart from the snapshot: dropping + // the snapshot (a source refused it) does not forget that a higher end was announced, so a + // source that only knows the older tip still cannot end the call as current. It is reset + // where the snapshot is reset because an entry was refused or the target moved on. + boolean announced = false; + long announcedEnd = 0; for (int round = 0; round < this.options.getRounds(); round++) { if (round > 0 && this.pause(this.options.getBackoffMs())) { @@ -213,6 +219,7 @@ int run() { if (Long.compareUnsigned(this.nextFrom(), from) > 0) { from = this.nextFrom(); snapshot = null; + announced = false; } TrustBaseRequest request = new TrustBaseRequest(from, limits.getMaxEntries(), network, snapshot); @@ -240,10 +247,16 @@ int run() { // A source's tip is unauthenticated metadata: a lagging or hostile source must not // end the update. Only when every source says there is nothing newer is the target - // taken as current. + // taken as current, and not while an end at or above the next epoch was announced + // (and the snapshot dropped since): then the answer is transient, asked again in the + // next round. if (page.getStatus() == TrustBaseStatus.NOT_YET_AVAILABLE && snapshot == null && Long.compareUnsigned(page.getEffectiveEnd(), from) < 0) { - current++; + if (announced && Long.compareUnsigned(announcedEnd, from) >= 0) { + causes.add(new Cause(index, CauseKind.STATUS, null, page.getStatus())); + } else { + current++; + } break; } // A source that refuses the echoed snapshot may be the honest one: the snapshot came @@ -292,6 +305,7 @@ int run() { causes.add(new Cause(index, CauseKind.REFUSED, e, null)); refused = true; snapshot = null; + announced = false; from = this.nextFrom(); break; } catch (TrustBaseException e) { @@ -300,6 +314,7 @@ int run() { causes.add(new Cause(index, CauseKind.REFUSED, e, null)); refused = true; snapshot = null; + announced = false; from = this.nextFrom(); break; } @@ -310,6 +325,10 @@ int run() { if (page.getNextEpoch() == null) { return appended; } + if (!announced || Long.compareUnsigned(page.getEffectiveEnd(), announcedEnd) > 0) { + announced = true; + announcedEnd = page.getEffectiveEnd(); + } if (snapshot == null) { byte[] end = page.getEndEntryId(); snapshot = new TrustBaseRequest.Snapshot(page.getEffectiveEnd(), diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java index 368c0716..d8a1fc98 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TrustBaseUpdaterTest.java @@ -220,15 +220,21 @@ void nothingNewerMeansATipBelowTheRequestedEpochAndOnlyWithoutASnapshot() { assertThrows(TrustBaseUpdateException.class, () -> update(history, lying)); // with a snapshot frozen, a not-yet-available page does not end the call as current by // itself: the source is asked again without the snapshot (an honest source answers an end - // above its own tip this way), and only that answer counts + // above its own tip this way). And while an end at or above the next epoch was announced, the + // answer without the snapshot that only knows an older tip is transient, not "current" TrustBaseHistory second = genesisOnly(); Script paged = new Script((n, r) -> n == 0 ? page(2, 3, 5, 4L) : status(TrustBaseStatus.NOT_YET_AVAILABLE, 4, 1)); - assertEquals(2, update(second, paged), "the authenticated prefix is kept"); + TrustBaseUpdateException lagging = assertThrows(TrustBaseUpdateException.class, + () -> update(second, paged)); + assertEquals(Failure.NONE_SERVED, lagging.getFailure(), + "a source that only knows the older tip does not end the call as current"); + assertEquals(2, lagging.getAppended(), "the authenticated prefix is kept"); assertEquals(3, tip(second)); assertNotNull(paged.requests.get(1).getSnapshot(), "the second request echoed the snapshot"); assertNull(paged.requests.get(2).getSnapshot(), "the refusal was asked again without it"); - // and when that answer is not "nothing newer" either, the source is refused for good + // and when the answer without the snapshot is not "nothing newer" either, the source is + // refused for good TrustBaseHistory third = genesisOnly(); Script refusing = new Script((n, r) -> n == 0 ? page(2, 3, 5, 4L) : status(TrustBaseStatus.NOT_YET_AVAILABLE, 4, 9)); From 0c24027f6e5b5395dc822a38d910aa9cb45ffb78 Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Mon, 9 Nov 2026 16:49:45 +0200 Subject: [PATCH 08/10] Test: the cross-SDK CBOR text-string vectors (leading U+FEFF kept, invalid UTF-8 refused, BOM twin members count), generated by Go at bft-go-base dbf94198 --- .../bft/trustbase/TextStringVectorsTest.java | 91 +++++++++++++++++++ .../resources/vectors/text-string/README.md | 11 +++ .../vectors/text-string/generator_test.go.txt | 85 +++++++++++++++++ .../vectors/text-string/vectors.json | 56 ++++++++++++ 4 files changed, 243 insertions(+) create mode 100644 src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TextStringVectorsTest.java create mode 100644 src/test/resources/vectors/text-string/README.md create mode 100644 src/test/resources/vectors/text-string/generator_test.go.txt create mode 100644 src/test/resources/vectors/text-string/vectors.json diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TextStringVectorsTest.java b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TextStringVectorsTest.java new file mode 100644 index 00000000..f4248c48 --- /dev/null +++ b/src/test/java/org/unicitylabs/sdk/api/bft/trustbase/TextStringVectorsTest.java @@ -0,0 +1,91 @@ +package org.unicitylabs.sdk.api.bft.trustbase; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.IOException; +import java.io.InputStream; +import org.junit.jupiter.api.Test; +import org.unicitylabs.sdk.api.bft.UnicitySeal; +import org.unicitylabs.sdk.api.bft.verification.SealVerificationSession; +import org.unicitylabs.sdk.util.HexConverter; +import org.unicitylabs.sdk.util.verification.VerificationStatus; + +/** + * The cross-SDK CBOR text-string vectors (member ids and witness keys), generated by Go at + * bft-go-base dbf94198 and shared with the JS and Rust SDKs: a text string decodes byte for byte, a + * leading U+FEFF is part of the string, invalid UTF-8 is refused, and ids that differ only by a + * leading U+FEFF are different members whose signatures each count. + */ +class TextStringVectorsTest { + + private static final JsonNode VECTORS = load(); + + private static JsonNode load() { + try (InputStream in = TextStringVectorsTest.class + .getResourceAsStream("/vectors/text-string/vectors.json")) { + return new ObjectMapper().readTree(in); + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + private static byte[] hex(JsonNode node) { + return HexConverter.decode(node.asText()); + } + + @Test + void theCommitteeIsGenesisWithTheBomTwinAsAMemberOfItsOwn() { + JsonNode committee = VECTORS.get("committee"); + TrustBaseEntry entry = TrustBaseEntry.decode(hex(committee.get("hex"))); + assertEquals(committee.get("entryId").asText(), HexConverter.encode(entry.entryId())); + assertEquals(3, entry.getMembers().size()); + int i = 0; + for (JsonNode id : committee.get("memberIdsHex")) { + assertArrayEquals(hex(id), + entry.getMembers().get(i++).getNodeId().getBytes(java.nio.charset.StandardCharsets.UTF_8)); + } + } + + @Test + void everyDecodeVectorHasTheGoVerdict() { + int seen = 0; + for (JsonNode vector : VECTORS.get("decode")) { + String name = vector.get("name").asText(); + byte[] bytes = hex(vector.get("hex")); + if (vector.get("valid").asBoolean()) { + TrustBaseEntry entry = TrustBaseEntry.decode(bytes); + if (vector.get("reencodesIdentically").asBoolean()) { + assertArrayEquals(bytes, entry.encode(), name); + } + } else { + assertEquals("encoding", vector.get("errorClass").asText(), name); + assertThrows(TrustBaseEncodingException.class, () -> TrustBaseEntry.decode(bytes), name); + } + seen++; + } + assertTrue(seen >= 2, "both the valid and the invalid-UTF-8 vector are there"); + } + + @Test + void aQuorumThatCountsTheBomTwinAuthenticatesAndTwoOfThreeDoesNot() { + TrustBaseEntry committee = TrustBaseEntry.decode(hex(VECTORS.get("committee").get("hex"))); + TrustBaseHistory history = TrustBaseHistory.create(committee.entryId()); + history.append(committee); + SealVerificationSession session = SealVerificationSession.create(history); + int seen = 0; + for (JsonNode vector : VECTORS.get("seals")) { + String name = vector.get("name").asText(); + UnicitySeal seal = UnicitySeal.fromCbor(hex(vector.get("hex"))); + VerificationStatus status = session.authenticate(seal).getStatus(); + assertEquals(vector.get("valid").asBoolean() ? VerificationStatus.OK : VerificationStatus.FAIL, + status, name); + seen++; + } + assertEquals(2, seen); + } +} diff --git a/src/test/resources/vectors/text-string/README.md b/src/test/resources/vectors/text-string/README.md new file mode 100644 index 00000000..d40f8789 --- /dev/null +++ b/src/test/resources/vectors/text-string/README.md @@ -0,0 +1,11 @@ +# CBOR text-string vectors (member ids and witness keys) + +`vectors.json` is generated by Go, not here, and must not be edited: + +- Generator: `generator_test.go.txt`. Copy it to `types/` in `unicitynetwork/bft-go-base` at `dbf94198` (bft-go-base#20 merged) and run `TEXT_VECTORS_OUT= go test ./types -run TestTextStringVectors`. It asserts Go's own outcome for every case before writing the file. +- sha256: `941d63463d16756c6a60a888e45026987fa3440d2d0621ae2d002d0ed52ac0e6`. +- Shared with the Rust and Java SDKs (briefs: shared-fixes). + +Rule: a text string decodes byte for byte. A leading U+FEFF is part of the string, and invalid UTF-8 is refused. Ids that differ only by a leading U+FEFF are different members, and each one's signature counts. + +The committee is a genesis entry with members `node-a`, `node-b` and `U+FEFF node-a`. `decode` contains that entry (valid; re-encodes identically) and the same entry with one member id made invalid UTF-8 (refused as an encoding error). `seals` contains a quorum of 3 that counts the BOM twin (valid) and a weight of 2 (below the quorum). diff --git a/src/test/resources/vectors/text-string/generator_test.go.txt b/src/test/resources/vectors/text-string/generator_test.go.txt new file mode 100644 index 00000000..3bc3ee07 --- /dev/null +++ b/src/test/resources/vectors/text-string/generator_test.go.txt @@ -0,0 +1,85 @@ +package types + +import ( + "bytes" + "encoding/hex" + "encoding/json" + "os" + "testing" + + "github.com/stretchr/testify/require" +) + +// Generator of the CBOR text-string vectors (a member id or witness key with a leading U+FEFF, and invalid UTF-8): run with +// TEXT_VECTORS_OUT= go test ./types -run TestTextStringVectors. Not part of bft-go-base; kept with the SDK copy for provenance. +func TestTextStringVectors(t *testing.T) { + out := os.Getenv("TEXT_VECTORS_OUT") + if out == "" { + t.Skip("TEXT_VECTORS_OUT not set") + } + const bom = "\xef\xbb\xbfnode-a" + ids := []string{"node-a", "node-b", bom} // ascending by UTF-8 bytes: 0x6e.. < 0xef.. + g := &RootTrustBaseV2{Version: 2, NetworkID: 5, Epoch: 1, EpochStart: 1, RootNodes: v2Members(t, ids...), QuorumThreshold: 3, + StateHash: bytes.Repeat([]byte{0x11}, 32), PreviousEntryID: make([]byte, 32)} + require.NoError(t, g.Validate()) + gb, err := g.MarshalCBOR() + require.NoError(t, err) + gid, err := g.EntryID() + require.NoError(t, err) + back, err := DecodeRootTrustBaseV2(gb) + require.NoError(t, err) + rb, err := back.MarshalCBOR() + require.NoError(t, err) + require.Equal(t, gb, rb, "round trip") + require.Equal(t, bom, back.RootNodes[2].NodeID, "the BOM is kept") + + bad := bytes.Replace(gb, []byte("node-b"), []byte("\xffode-b"), 1) + require.NotEqual(t, gb, bad) + _, badErr := DecodeRootTrustBaseV2(bad) + require.Error(t, badErr) + + seal := func(signers ...string) (string, error) { + s := &UnicitySeal{Version: 1, NetworkID: 5, RootChainRoundNumber: 10, Epoch: 1, Timestamp: 1700000000, + PreviousHash: bytes.Repeat([]byte{0x44}, 32), Hash: bytes.Repeat([]byte{0x55}, 32)} + for _, id := range signers { + for i, m := range ids { + if m == id { + require.NoError(t, s.Sign(id, v2Key(t, byte(i+1)))) + } + } + } + b, err := s.MarshalCBOR() + require.NoError(t, err) + sb, err := s.SigBytes() + require.NoError(t, err) + return hex.EncodeToString(b), g.VerifyQuorumSignatures(sb, s.Signatures) + } + s3, err3 := seal("node-a", "node-b", bom) + require.NoError(t, err3) + s2, err2 := seal("node-a", bom) + require.Error(t, err2) + + idHex := make([]string, len(ids)) + for i, id := range ids { + idHex[i] = hex.EncodeToString([]byte(id)) + } + doc := map[string]any{ + "spec": []string{ + "CBOR text strings decode byte for byte: a leading U+FEFF (ef bb bf) is part of the string, never stripped; invalid UTF-8 is refused.", + "Member ids and witness keys that differ only by a leading U+FEFF are different ids: each is its own member and each signature counts.", + "committee: genesis, network 5, epoch 1, members node-a, node-b, U+FEFF node-a (keys 0x01.., 0x02.., 0x03.. repeated), weight 1 each, threshold 3.", + }, + "committee": map[string]any{"hex": hex.EncodeToString(gb), "entryId": hex.EncodeToString(gid[:]), "memberIdsHex": idHex}, + "decode": []map[string]any{ + {"name": "bom-twin-members", "hex": hex.EncodeToString(gb), "valid": true, "reencodesIdentically": true}, + {"name": "invalid-utf8-member-id", "hex": hex.EncodeToString(bad), "valid": false, "errorClass": "encoding", "go": badErr.Error()}, + }, + "seals": []map[string]any{ + {"name": "quorum-with-bom-twin", "committee": "committee", "hex": s3, "signers": []string{idHex[0], idHex[1], idHex[2]}, "signedWeight": 3, "valid": true}, + {"name": "bom-twin-below-quorum", "committee": "committee", "hex": s2, "signers": []string{idHex[0], idHex[2]}, "signedWeight": 2, "valid": false}, + }, + } + j, err := json.MarshalIndent(doc, "", " ") + require.NoError(t, err) + require.NoError(t, os.WriteFile(out, append(j, '\n'), 0o644)) +} diff --git a/src/test/resources/vectors/text-string/vectors.json b/src/test/resources/vectors/text-string/vectors.json new file mode 100644 index 00000000..88fe7d1c --- /dev/null +++ b/src/test/resources/vectors/text-string/vectors.json @@ -0,0 +1,56 @@ +{ + "committee": { + "entryId": "6bb4ec07e7d14498935f7101018cc27dcf296fe4981fe5f2d8d8b38ff58bb141", + "hex": "d998588a020501018383666e6f64652d615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f0183666e6f64652d625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d0766018369efbbbf6e6f64652d61582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe337010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6", + "memberIdsHex": [ + "6e6f64652d61", + "6e6f64652d62", + "efbbbf6e6f64652d61" + ] + }, + "decode": [ + { + "hex": "d998588a020501018383666e6f64652d615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f0183666e6f64652d625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d0766018369efbbbf6e6f64652d61582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe337010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6", + "name": "bom-twin-members", + "reencodesIdentically": true, + "valid": true + }, + { + "errorClass": "encoding", + "go": "trust base v2: invalid encoding: cbor: invalid UTF-8 string", + "hex": "d998588a020501018383666e6f64652d615821031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f018366ff6f64652d625821024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d0766018369efbbbf6e6f64652d61582102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe337010358201111111111111111111111111111111111111111111111111111111111111111f658200000000000000000000000000000000000000000000000000000000000000000f6", + "name": "invalid-utf8-member-id", + "valid": false + } + ], + "seals": [ + { + "committee": "committee", + "hex": "d9985d8801050a011a6553f1005820444444444444444444444444444444444444444444444444444444444444444458205555555555555555555555555555555555555555555555555555555555555555a3666e6f64652d61584136d81fe5b279298f8d2f8bd7bceb9041c0472e8ba46579f5d549c6342bb571933ea63f46eeb8e747ba8b32d9dd68fb4377d971a719cbcc3e4eb66a8af76dc20901666e6f64652d625841b824246be3f8c3865888f9884e1781e680867f1e9f5ba9d9674926ead4ba9e0f06dc7d289738dd9f258afe7958b87abb285cdbee5716a6c1eae55b1993b772670069efbbbf6e6f64652d615841bfe3b652979fa80f683822132f0856b29d8c3feaa98979865eb405bb1b12700f5091d64255e9c7ef9a688dccbc02108837d6d47f377e5a333e5a6074589fa58500", + "name": "quorum-with-bom-twin", + "signedWeight": 3, + "signers": [ + "6e6f64652d61", + "6e6f64652d62", + "efbbbf6e6f64652d61" + ], + "valid": true + }, + { + "committee": "committee", + "hex": "d9985d8801050a011a6553f1005820444444444444444444444444444444444444444444444444444444444444444458205555555555555555555555555555555555555555555555555555555555555555a2666e6f64652d61584136d81fe5b279298f8d2f8bd7bceb9041c0472e8ba46579f5d549c6342bb571933ea63f46eeb8e747ba8b32d9dd68fb4377d971a719cbcc3e4eb66a8af76dc2090169efbbbf6e6f64652d615841bfe3b652979fa80f683822132f0856b29d8c3feaa98979865eb405bb1b12700f5091d64255e9c7ef9a688dccbc02108837d6d47f377e5a333e5a6074589fa58500", + "name": "bom-twin-below-quorum", + "signedWeight": 2, + "signers": [ + "6e6f64652d61", + "efbbbf6e6f64652d61" + ], + "valid": false + } + ], + "spec": [ + "CBOR text strings decode byte for byte: a leading U+FEFF (ef bb bf) is part of the string, never stripped; invalid UTF-8 is refused.", + "Member ids and witness keys that differ only by a leading U+FEFF are different ids: each is its own member and each signature counts.", + "committee: genesis, network 5, epoch 1, members node-a, node-b, U+FEFF node-a (keys 0x01.., 0x02.., 0x03.. repeated), weight 1 each, threshold 3." + ] +} From 64a8dc5104febb3592b718483bb3de4ef3ae36ea Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Wed, 11 Nov 2026 08:47:54 +0200 Subject: [PATCH 09/10] Review fix: the master seal and the partition-view seal keep the typed missing-entry cause A consolidation checks three seals; the evidence seal already carried the typed NoTrustBaseEntryException as the cause. The other two now do too: - ProofConsolidator.authenticateDirect: a direct-target master seal of an epoch the history does not hold fails UNAUTHENTICATED with the typed cause. - PartitionViewAuthenticator: AUTHENTICATION with the typed cause; the consolidation's view path passes it on as the direct cause, as at the other two checks (the message is unchanged). Final seal failures (bad quorum, wrong network) carry no typed cause. Tests: an epoch-2 re-signed direct target (ProofConsolidator and TokenProofClient) with an epoch-1 history, control with epoch 2 appended; an epoch-2 partition view with an epoch-1 history, control with epoch 2 appended; below quorum and an alien key carry no typed cause. --- .../api/bft/PartitionViewAuthenticator.java | 11 +- .../sdk/consolidation/ProofConsolidator.java | 23 ++- .../sdk/api/InclusionProofFixture.java | 7 + .../bft/PartitionViewAuthenticatorTest.java | 34 +++++ .../sdk/api/bft/UnicityCertificateUtils.java | 17 +++ .../consolidation/ConsolidationGuardTest.java | 132 ++++++++++++++++++ 6 files changed, 217 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/unicitylabs/sdk/api/bft/PartitionViewAuthenticator.java b/src/main/java/org/unicitylabs/sdk/api/bft/PartitionViewAuthenticator.java index 111c09f8..220228a0 100644 --- a/src/main/java/org/unicitylabs/sdk/api/bft/PartitionViewAuthenticator.java +++ b/src/main/java/org/unicitylabs/sdk/api/bft/PartitionViewAuthenticator.java @@ -4,6 +4,7 @@ import java.util.List; import java.util.Objects; import java.util.concurrent.atomic.AtomicLong; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; import org.unicitylabs.sdk.api.bft.verification.SealAuthenticator; import org.unicitylabs.sdk.api.bft.verification.SealVerificationBusyException; import org.unicitylabs.sdk.api.bft.verification.SealVerificationSession; @@ -98,7 +99,10 @@ public long getMemoHits() { * @param view untrusted candidate * @param enclosing the certificate whose commitment covers the view * @return authenticated view - * @throws PartitionViewException with the failing reason; nothing is retained on failure + * @throws PartitionViewException with the failing reason; nothing is retained on failure. When + * the seal is of an epoch the history does not hold yet, the reason is {@code AUTHENTICATION} + * and the cause is a {@link + * org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryException} * @throws SealVerificationBusyException if the seal session already runs as many distinct seal * checks as it allows. That is a resource limit, not a rejection of the view: nothing is * known about it, and the call can be repeated later @@ -233,9 +237,12 @@ private AuthenticatedPartitionView run(PartitionView view, UnicityCertificate en // 4: only then the seal, under the caller's anchored authority VerificationResult sealResult = seals.authenticate(enclosing.getUnicitySeal()); if (sealResult.getStatus() != VerificationStatus.OK) { + // a seal of an epoch the history does not hold yet keeps the typed signal as the cause + NoTrustBaseEntryResult noEntry = NoTrustBaseEntryResult.find(sealResult); throw new PartitionViewException(PartitionViewException.Reason.AUTHENTICATION, "Authenticating unicity seal: " - + (sealResult.getMessage().isEmpty() ? "failed" : sealResult.getMessage()) + "."); + + (sealResult.getMessage().isEmpty() ? "failed" : sealResult.getMessage()) + ".", + noEntry == null ? null : noEntry.toException()); } List leaves = view.getLeaves(); diff --git a/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java b/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java index d158652f..1e54361d 100644 --- a/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java +++ b/src/main/java/org/unicitylabs/sdk/consolidation/ProofConsolidator.java @@ -39,10 +39,11 @@ import org.unicitylabs.sdk.api.bft.ShardId; import org.unicitylabs.sdk.api.bft.UnicityCertificate; import org.unicitylabs.sdk.api.bft.UnicitySeal; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryException; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.SealVerificationResult; import org.unicitylabs.sdk.api.bft.verification.SealVerificationSession; -import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryResult; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateFailure; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult; import org.unicitylabs.sdk.crypto.hash.DataHash; @@ -124,6 +125,18 @@ public CompletableFuture consolidate(List authenticator(PartitionViewPolicy.none()).authenticate(rotated.view, + rotated.certificate("00"))); + assertEquals(Reason.AUTHENTICATION, refused.getReason()); + assertTrue(refused.getCause() instanceof NoTrustBaseEntryException, + String.valueOf(refused.getCause())); + NoTrustBaseEntryException typed = (NoTrustBaseEntryException) refused.getCause(); + assertEquals(2, typed.getEpoch()); + assertEquals(Long.valueOf(1), typed.getHeldTipEpoch()); + + // control: with epoch 2 appended, the view authenticates + new PartitionViewAuthenticator(SealVerificationSession.create(AUTHORITY.trustBaseThrough(epoch2)), + PartitionViewPolicy.none()).authenticate(rotated.view, rotated.certificate("00")); + + // below quorum is final: no typed cause + TestChain.Sealed weak = TestChain.seal(AUTHORITY, 7, 9, TestChain.fourShards(3, NOW), 0, 1); + PartitionViewException final_ = assertThrows(PartitionViewException.class, + () -> authenticator(PartitionViewPolicy.none()).authenticate(weak.view, + weak.certificate("00"))); + assertEquals(Reason.AUTHENTICATION, final_.getReason()); + assertEquals(null, final_.getCause()); + } + @Test void aTamperedCommitmentIsRefusedBeforeAnySignatureWork() { TestChain.Sealed sealed = four(); diff --git a/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateUtils.java b/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateUtils.java index 63b02a91..e605a7da 100644 --- a/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateUtils.java +++ b/src/test/java/org/unicitylabs/sdk/api/bft/UnicityCertificateUtils.java @@ -134,4 +134,21 @@ public static UnicityCertificate generateCertificate( ) ); } + + /** + * The same certificate with its seal moved to {@code round} of {@code epoch}, re-signed as + * {@code "NODE"} by {@code signingService} (a committee rotation under the same root key). + */ + public static UnicityCertificate withSealAt(UnicityCertificate certificate, + SigningService signingService, long round, long epoch) { + UnicitySeal old = certificate.getUnicitySeal(); + UnicitySeal seal = new UnicitySeal(old.getNetworkId(), round, epoch, old.getTimestamp(), + old.getPreviousHash(), old.getHash(), null); + return new UnicityCertificate(certificate.getInputRecord(), + certificate.getTechnicalRecordHash(), certificate.getShardConfigurationHash(), + certificate.getShardTreeCertificate(), certificate.getUnicityTreeCertificate(), + seal.withSignatures(Set.of(new UnicitySeal.SignatureEntry("NODE", + signingService.sign( + new DataHasher(HashAlgorithm.SHA256).update(seal.toCbor()).digest()))))); + } } diff --git a/src/test/java/org/unicitylabs/sdk/consolidation/ConsolidationGuardTest.java b/src/test/java/org/unicitylabs/sdk/consolidation/ConsolidationGuardTest.java index 099d4e71..42c133a3 100644 --- a/src/test/java/org/unicitylabs/sdk/consolidation/ConsolidationGuardTest.java +++ b/src/test/java/org/unicitylabs/sdk/consolidation/ConsolidationGuardTest.java @@ -1,6 +1,7 @@ package org.unicitylabs.sdk.consolidation; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -19,14 +20,22 @@ import org.unicitylabs.sdk.api.CertificationResponse; import org.unicitylabs.sdk.api.CertificationStatus; import org.unicitylabs.sdk.api.InclusionProof; +import org.unicitylabs.sdk.api.InclusionProofFixture; import org.unicitylabs.sdk.api.InclusionProofBatch; import org.unicitylabs.sdk.api.InclusionProofResponse; import org.unicitylabs.sdk.api.StateId; import org.unicitylabs.sdk.api.bft.PartitionViewPolicy; +import org.unicitylabs.sdk.api.bft.UnicityCertificateUtils; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseEntry; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistory; +import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseMember; import org.unicitylabs.sdk.api.bft.trustbase.TrustBaseHistoryView; +import org.unicitylabs.sdk.api.bft.verification.NoTrustBaseEntryException; import org.unicitylabs.sdk.api.bft.verification.OperationUnicityCertificateVerifier; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerificationResult; import org.unicitylabs.sdk.api.bft.verification.UnicityCertificateVerifier; +import org.unicitylabs.sdk.crypto.hash.DataHasher; +import org.unicitylabs.sdk.crypto.hash.HashAlgorithm; import org.unicitylabs.sdk.crypto.secp256k1.SigningService; import org.unicitylabs.sdk.predicate.builtin.SignaturePredicate; import org.unicitylabs.sdk.predicate.verification.PredicateVerifierService; @@ -188,6 +197,129 @@ void aDirectTargetSealResignedByAnAlienKeyIsRefused() throws Exception { ConsolidationException viaClient = failure(tokenClient(new Batch(alien), context)); assertEquals(ConsolidationException.Kind.INTEGRITY, viaClient.getKind()); assertEquals(ConsolidationOutcome.UNAUTHENTICATED, viaClient.getOutcome()); + // a bad quorum is final: no typed missing-entry cause + assertFalse(direct.getCause() instanceof NoTrustBaseEntryException); + assertFalse(viaClient.getCause() instanceof NoTrustBaseEntryException); + } + + /** Serves the batch of {@code source} with every seal moved to {@code epoch}, re-signed. */ + private static final class EpochMoved implements BatchAggregatorClient { + private final Batch source; + private final SigningService signer; + private final long epoch; + private final long round; + + EpochMoved(TestAggregatorClient source, byte[] key, long epoch, long round) { + this.source = new Batch(source); + this.signer = new SigningService(key); + this.epoch = epoch; + this.round = round; + } + + @Override + public CompletableFuture getInclusionProofs(List stateIds, + BatchRequestOptions options) { + List proofs = new ArrayList<>(); + for (InclusionProofResponse response : source.getInclusionProofs(stateIds, options).join() + .getProofs()) { + InclusionProof p = response.getInclusionProof(); + proofs.add(InclusionProofResponse.certified(response.getBlockNumber(), + InclusionProofFixture.withCertificate(p, UnicityCertificateUtils.withSealAt( + p.getUnicityCertificate(), signer, round, epoch)))); + } + return CompletableFuture.completedFuture(new InclusionProofBatch(proofs, null, 1, null)); + } + + @Override + public CompletableFuture submitCertificationRequest( + CertificationData certificationData) { + throw new AssertionError("a consolidation never submits"); + } + + @Override + public CompletableFuture getInclusionProof(StateId stateId) { + throw new AssertionError("a batch is never emulated by single requests"); + } + + @Override + public CompletableFuture getLatestBlockNumber() { + throw new AssertionError("not needed"); + } + } + + /** + * Guard: ProofConsolidator.authenticateDirect keeps the typed missing-entry cause. The master + * seal is the newest seal of a consolidation, so after a committee rotation it is the one most + * likely to be of an epoch the history does not hold yet: that is not a verdict on the proofs, + * and the caller needs the typed signal to update its history and ask again. + */ + @Test + void aDirectTargetSealOfAnEpochTheHistoryDoesNotHoldKeepsTheTypedMissingEntryCause() + throws Exception { + // epoch 2 starts at round 2; the re-certified seals are at round 2 of epoch 2, same root key + EpochMoved rotated = new EpochMoved(reCertify(key, 0), key, 2, 2); + + ConsolidationException direct = failure(attempt(rotated)); + assertEquals(ConsolidationOutcome.UNAUTHENTICATED, direct.getOutcome(), direct.toString()); + assertTrue(direct.getCause() instanceof NoTrustBaseEntryException, + String.valueOf(direct.getCause())); + assertEquals(2, ((NoTrustBaseEntryException) direct.getCause()).getEpoch()); + assertEquals(Long.valueOf(1), ((NoTrustBaseEntryException) direct.getCause()).getHeldTipEpoch()); + + ConsolidationException viaClient = failure(tokenClient(rotated, context)); + assertEquals(ConsolidationOutcome.UNAUTHENTICATED, viaClient.getOutcome(), viaClient.toString()); + assertTrue(viaClient.getCause() instanceof NoTrustBaseEntryException, + String.valueOf(viaClient.getCause())); + + // control: with epoch 2 appended (signed by the epoch 1 quorum), the same batch consolidates + TrustBaseHistory through = (TrustBaseHistory) context.getTrustBase(); + TrustBaseEntry genesis = through.getTip().get(); + List members = genesis.getMembers(); + TrustBaseEntry unsigned = new TrustBaseEntry(genesis.getNetworkId().getId(), 2, 2, members, 1, null, + null, genesis.entryId(), java.util.Map.of("x", new byte[65])); + SigningService root = new SigningService(key); + through.append(new TrustBaseEntry(genesis.getNetworkId().getId(), 2, 2, members, 1, null, null, + genesis.entryId(), java.util.Map.of("NODE", root.sign(new DataHasher(HashAlgorithm.SHA256) + .update(unsigned.sigBytes()).digest()).encode()))); + assertEquals(ConsolidationAttempt.Status.CONSOLIDATED, + attempt(rotated).get(30, TimeUnit.SECONDS).getStatus()); + } + + /** + * Guard: a master view that does not authenticate for want of the seal's epoch keeps the typed + * missing-entry cause as the direct cause of the consolidation failure; any other view failure + * stays the cause itself. The view is the one PartitionViewAuthenticator refuses. + */ + @Test + void aMasterViewOfAnEpochTheHistoryDoesNotHoldKeepsTheTypedMissingEntryCause() { + org.unicitylabs.sdk.api.bft.TestChain.Authority epoch1 = + new org.unicitylabs.sdk.api.bft.TestChain.Authority(); + org.unicitylabs.sdk.api.bft.TestChain.Authority epoch2 = new org.unicitylabs.sdk.api.bft + .TestChain.Authority(org.unicitylabs.sdk.api.NetworkId.LOCAL, 2, 5, 2); + org.unicitylabs.sdk.api.bft.TestChain.Sealed rotated = org.unicitylabs.sdk.api.bft.TestChain + .seal(epoch2, 7, 9, org.unicitylabs.sdk.api.bft.TestChain.fourShards(3, START)); + org.unicitylabs.sdk.api.bft.PartitionViewException refused = assertThrows( + org.unicitylabs.sdk.api.bft.PartitionViewException.class, + () -> new org.unicitylabs.sdk.api.bft.PartitionViewAuthenticator( + org.unicitylabs.sdk.api.bft.verification.SealVerificationSession.create( + epoch1.trustBase()), PartitionViewPolicy.none()) + .authenticate(rotated.view, rotated.certificate("00"))); + + ConsolidationException failure = ProofConsolidator.viewFailure(refused, + org.unicitylabs.sdk.api.bft.ShardId.fromBitString("00")); + assertEquals(ConsolidationOutcome.UNAUTHENTICATED, failure.getOutcome()); + assertTrue(failure.getCause() instanceof NoTrustBaseEntryException, + String.valueOf(failure.getCause())); + assertEquals(2, ((NoTrustBaseEntryException) failure.getCause()).getEpoch()); + + // any other view failure stays the cause itself + org.unicitylabs.sdk.api.bft.PartitionViewException topology = + new org.unicitylabs.sdk.api.bft.PartitionViewException( + org.unicitylabs.sdk.api.bft.PartitionViewException.Reason.TOPOLOGY, "missing leaf"); + ConsolidationException other = ProofConsolidator.viewFailure(topology, + org.unicitylabs.sdk.api.bft.ShardId.fromBitString("00")); + assertEquals(ConsolidationOutcome.INVALID_INPUT, other.getOutcome()); + assertEquals(topology, other.getCause()); } /** From fb6fe57b3a665ab5a7fe196cefe4d38d72e8aaa2 Mon Sep 17 00:00:00 2001 From: Risto Laanoja Date: Wed, 11 Nov 2026 08:48:11 +0200 Subject: [PATCH 10/10] docs: the typed missing-entry cause of exception refusals --- docs/api-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-reference.md b/docs/api-reference.md index 531b691a..4aa87038 100644 --- a/docs/api-reference.md +++ b/docs/api-reference.md @@ -643,7 +643,7 @@ Construct `source` with `new org.unicitylabs.sdk.api.HttpTrustBaseSource(gateway `refresh` authenticates consecutive entries after the held tip and attempts to save, including an accepted prefix if a later page fails. Its integer result is not a persistence acknowledgement; inspect `isDirty()` and the `FlushResult` when persistence matters. Default update policy is two passes, 200 ms backoff and bounded pages. The first page freezes the end epoch/EntryID; later pages echo it and another source continues the same cursor. `NotYetAvailable` and zero appended entries are not authenticated freshness. Failures surface through `TrustBaseUpdateException` (wrapped by a future when applicable). -Plain verification does not fetch. `NoTrustBaseEntryResult.find(result)` identifies missing future epochs (or empty history); bad signatures, wrong network or a seal before genesis are other failures. Refresh and re-verify before accepting. `TrustBaseUpdater.verifyWithUpdate` provides a one-update/one-retry helper but does not persist; callers must flush any accepted prefix, including on update failure. +Plain verification does not fetch. `NoTrustBaseEntryResult.find(result)` identifies missing future epochs (or empty history); bad signatures, wrong network or a seal before genesis are other failures. Where the refusal is an exception (non-inclusion, consolidation, partition view), the same signal is its cause, a `NoTrustBaseEntryException` with the seal's epoch and the held tip. Refresh and re-verify before accepting. `TrustBaseUpdater.verifyWithUpdate` provides a one-update/one-retry helper but does not persist; callers must flush any accepted prefix, including on update failure. ### Persistence and conflict handling