dash-platform-sdk 1.6.0-dev.2 → 1.6.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/README.md +33 -15
  2. package/bundle.min.js +1 -1
  3. package/index.d.ts +3 -1
  4. package/index.js +2 -1
  5. package/package.json +2 -2
  6. package/proto/generated/platform.d.ts +128 -2
  7. package/proto/generated/platform.js +266 -8
  8. package/src/DashPlatformSDK.d.ts +19 -1
  9. package/src/DashPlatformSDK.js +28 -10
  10. package/src/QueryExecutor.d.ts +122 -0
  11. package/src/QueryExecutor.js +205 -0
  12. package/src/constants.d.ts +6 -0
  13. package/src/constants.js +6 -0
  14. package/src/contestedResources/getContestedResourceVoteState.d.ts +2 -1
  15. package/src/contestedResources/getContestedResourceVoteState.js +69 -49
  16. package/src/contestedResources/index.d.ts +4 -1
  17. package/src/contestedResources/index.js +5 -2
  18. package/src/dataContracts/getDataContractByIdentifier.d.ts +2 -1
  19. package/src/dataContracts/getDataContractByIdentifier.js +15 -27
  20. package/src/dataContracts/index.d.ts +4 -1
  21. package/src/dataContracts/index.js +5 -2
  22. package/src/documents/getActionFeeAgreement.d.ts +2 -1
  23. package/src/documents/getActionFeeAgreement.js +3 -3
  24. package/src/documents/index.d.ts +12 -8
  25. package/src/documents/index.js +16 -13
  26. package/src/documents/query.d.ts +2 -1
  27. package/src/documents/query.js +16 -8
  28. package/src/documents/queryAggregate.d.ts +8 -1
  29. package/src/documents/queryAggregate.js +49 -15
  30. package/src/documents/queryJoined.d.ts +3 -2
  31. package/src/documents/queryJoined.js +54 -13
  32. package/src/documents/queryRanked.d.ts +3 -2
  33. package/src/documents/queryRanked.js +49 -15
  34. package/src/documents/v1.d.ts +25 -8
  35. package/src/documents/v1.js +50 -14
  36. package/src/grpcConnectionPool.d.ts +24 -4
  37. package/src/grpcConnectionPool.js +153 -37
  38. package/src/identities/getIdentityBalance.d.ts +2 -1
  39. package/src/identities/getIdentityBalance.js +13 -27
  40. package/src/identities/getIdentityByIdentifier.d.ts +2 -1
  41. package/src/identities/getIdentityByIdentifier.js +14 -28
  42. package/src/identities/getIdentityByNonUniquePublicKeyHash.d.ts +2 -1
  43. package/src/identities/getIdentityByNonUniquePublicKeyHash.js +49 -28
  44. package/src/identities/getIdentityByPublicKeyHash.d.ts +2 -1
  45. package/src/identities/getIdentityByPublicKeyHash.js +14 -28
  46. package/src/identities/getIdentityContractNonce.d.ts +2 -1
  47. package/src/identities/getIdentityContractNonce.js +10 -27
  48. package/src/identities/getIdentityNonce.d.ts +2 -1
  49. package/src/identities/getIdentityNonce.js +10 -27
  50. package/src/identities/getIdentityPublicKeys.d.ts +2 -1
  51. package/src/identities/getIdentityPublicKeys.js +16 -29
  52. package/src/identities/index.d.ts +4 -1
  53. package/src/identities/index.js +11 -8
  54. package/src/names/index.d.ts +4 -1
  55. package/src/names/index.js +8 -5
  56. package/src/names/registerName.d.ts +2 -1
  57. package/src/names/registerName.js +4 -4
  58. package/src/names/searchByIdentity.d.ts +2 -1
  59. package/src/names/searchByIdentity.js +2 -2
  60. package/src/names/searchByName.d.ts +2 -1
  61. package/src/names/searchByName.js +2 -2
  62. package/src/node/epochInfos.d.ts +2 -1
  63. package/src/node/epochInfos.js +27 -31
  64. package/src/node/finalizedEpochInfos.d.ts +4 -3
  65. package/src/node/finalizedEpochInfos.js +45 -39
  66. package/src/node/index.d.ts +4 -1
  67. package/src/node/index.js +7 -4
  68. package/src/node/totalCredits.d.ts +2 -1
  69. package/src/node/totalCredits.js +10 -25
  70. package/src/platformAddresses/getAddressInfo.d.ts +2 -1
  71. package/src/platformAddresses/getAddressInfo.js +17 -31
  72. package/src/platformAddresses/getAddressesBranchState.d.ts +2 -1
  73. package/src/platformAddresses/getAddressesBranchState.js +22 -8
  74. package/src/platformAddresses/getAddressesInfos.d.ts +2 -1
  75. package/src/platformAddresses/getAddressesInfos.js +18 -29
  76. package/src/platformAddresses/getAddressesTrunkState.d.ts +2 -1
  77. package/src/platformAddresses/getAddressesTrunkState.js +25 -23
  78. package/src/platformAddresses/getRecentAddressBalanceChanges.d.ts +2 -1
  79. package/src/platformAddresses/getRecentAddressBalanceChanges.js +26 -26
  80. package/src/platformAddresses/getRecentCompactedAddressBalanceChanges.d.ts +2 -1
  81. package/src/platformAddresses/getRecentCompactedAddressBalanceChanges.js +30 -26
  82. package/src/platformAddresses/index.d.ts +4 -1
  83. package/src/platformAddresses/index.js +10 -7
  84. package/src/quorumKeyProvider.d.ts +23 -0
  85. package/src/quorumKeyProvider.js +28 -0
  86. package/src/shielded/getMostRecentShieldedAnchor.d.ts +2 -1
  87. package/src/shielded/getMostRecentShieldedAnchor.js +8 -25
  88. package/src/shielded/getShieldedAnchors.d.ts +2 -1
  89. package/src/shielded/getShieldedAnchors.js +8 -25
  90. package/src/shielded/getShieldedEncryptedNotes.d.ts +2 -1
  91. package/src/shielded/getShieldedEncryptedNotes.js +16 -30
  92. package/src/shielded/getShieldedNotesCount.d.ts +2 -1
  93. package/src/shielded/getShieldedNotesCount.js +8 -25
  94. package/src/shielded/getShieldedNullifiers.d.ts +2 -1
  95. package/src/shielded/getShieldedNullifiers.js +14 -28
  96. package/src/shielded/getShieldedPoolState.d.ts +2 -1
  97. package/src/shielded/getShieldedPoolState.js +8 -25
  98. package/src/shielded/index.d.ts +4 -1
  99. package/src/shielded/index.js +10 -7
  100. package/src/stateTransitions/index.d.ts +4 -1
  101. package/src/stateTransitions/index.js +5 -2
  102. package/src/stateTransitions/waitForStateTransitionResult.d.ts +2 -1
  103. package/src/stateTransitions/waitForStateTransitionResult.js +42 -44
  104. package/src/tokens/getIdentitiesTokenBalances.d.ts +2 -1
  105. package/src/tokens/getIdentitiesTokenBalances.js +17 -28
  106. package/src/tokens/getIdentityTokensBalances.d.ts +2 -1
  107. package/src/tokens/getIdentityTokensBalances.js +17 -28
  108. package/src/tokens/getTokenContractInfo.d.ts +2 -1
  109. package/src/tokens/getTokenContractInfo.js +16 -30
  110. package/src/tokens/getTokenDirectPurchasePrices.d.ts +2 -1
  111. package/src/tokens/getTokenDirectPurchasePrices.js +26 -28
  112. package/src/tokens/getTokenTotalSupply.d.ts +2 -1
  113. package/src/tokens/getTokenTotalSupply.js +16 -28
  114. package/src/tokens/index.d.ts +4 -1
  115. package/src/tokens/index.js +11 -8
  116. package/src/utils/ProofError.d.ts +9 -0
  117. package/src/utils/ProofError.js +10 -0
  118. package/src/utils/verifyTenderdashProof.js +2 -1
  119. package/test/unit/SDK.spec.js +42 -0
  120. package/src/utils/getQuorumPublicKey.d.ts +0 -1
  121. package/src/utils/getQuorumPublicKey.js +0 -19
package/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { DashPlatformSDK } from './src/DashPlatformSDK.js';
2
2
  import GRPCConnectionPool, { createClient } from './src/grpcConnectionPool.js';
3
3
  import { decodeFetchError, decodeFetchErrorDetails, fetchWithDetails } from './src/utils/fetchWithDetails.js';
4
+ import { PlatformExplorerQuorumKeyProvider } from './src/quorumKeyProvider.js';
4
5
  export type { GRPCOptions, GRPCPool } from './src/grpcConnectionPool.js';
5
- export { DashPlatformSDK, GRPCConnectionPool, createClient, decodeFetchError, decodeFetchErrorDetails, fetchWithDetails };
6
+ export type { QuorumKeyProvider } from './src/quorumKeyProvider.js';
7
+ export { DashPlatformSDK, GRPCConnectionPool, PlatformExplorerQuorumKeyProvider, createClient, decodeFetchError, decodeFetchErrorDetails, fetchWithDetails };
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { DashPlatformSDK } from './src/DashPlatformSDK.js';
2
2
  import GRPCConnectionPool, { createClient } from './src/grpcConnectionPool.js';
3
3
  import { decodeFetchError, decodeFetchErrorDetails, fetchWithDetails } from './src/utils/fetchWithDetails.js';
4
- export { DashPlatformSDK, GRPCConnectionPool, createClient, decodeFetchError, decodeFetchErrorDetails, fetchWithDetails };
4
+ import { PlatformExplorerQuorumKeyProvider } from './src/quorumKeyProvider.js';
5
+ export { DashPlatformSDK, GRPCConnectionPool, PlatformExplorerQuorumKeyProvider, createClient, decodeFetchError, decodeFetchErrorDetails, fetchWithDetails };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dash-platform-sdk",
3
- "version": "1.6.0-dev.2",
3
+ "version": "1.6.0-dev.3",
4
4
  "main": "index.js",
5
5
  "description": "Lightweight SDK for accessing Dash Platform blockchain",
6
6
  "repository": {
@@ -59,6 +59,6 @@
59
59
  "@scure/bip32": "^2.0.0",
60
60
  "@scure/bip39": "^2.0.0",
61
61
  "@scure/btc-signer": "^2.0.1",
62
- "pshenmic-dpp": "2.0.1-dev.3"
62
+ "pshenmic-dpp": "2.0.1-dev.4"
63
63
  }
64
64
  }
@@ -1922,6 +1922,12 @@ export interface GetIdentityByNonUniquePublicKeyHashRequest {
1922
1922
  * @generated from protobuf field: org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV0 v0 = 1
1923
1923
  */
1924
1924
  v0: GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0;
1925
+ } | {
1926
+ oneofKind: "v1";
1927
+ /**
1928
+ * @generated from protobuf field: org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1 v1 = 2
1929
+ */
1930
+ v1: GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1;
1925
1931
  } | {
1926
1932
  oneofKind: undefined;
1927
1933
  };
@@ -1943,6 +1949,23 @@ export interface GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniq
1943
1949
  */
1944
1950
  prove: boolean;
1945
1951
  }
1952
+ /**
1953
+ * @generated from protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
1954
+ */
1955
+ export interface GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1 {
1956
+ /**
1957
+ * @generated from protobuf field: bytes public_key_hash = 1
1958
+ */
1959
+ publicKeyHash: Uint8Array;
1960
+ /**
1961
+ * @generated from protobuf field: optional bytes start_after = 2
1962
+ */
1963
+ startAfter?: Uint8Array;
1964
+ /**
1965
+ * @generated from protobuf field: bool prove = 3
1966
+ */
1967
+ prove: boolean;
1968
+ }
1946
1969
  /**
1947
1970
  * @generated from protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse
1948
1971
  */
@@ -1956,6 +1979,12 @@ export interface GetIdentityByNonUniquePublicKeyHashResponse {
1956
1979
  * @generated from protobuf field: org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0 v0 = 1
1957
1980
  */
1958
1981
  v0: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0;
1982
+ } | {
1983
+ oneofKind: "v1";
1984
+ /**
1985
+ * @generated from protobuf field: org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1 v1 = 2
1986
+ */
1987
+ v1: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1;
1959
1988
  } | {
1960
1989
  oneofKind: undefined;
1961
1990
  };
@@ -1976,9 +2005,17 @@ export interface GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUni
1976
2005
  } | {
1977
2006
  oneofKind: "proof";
1978
2007
  /**
1979
- * @generated from protobuf field: org.dash.platform.dapi.v0.Proof proof = 4
2008
+ * @generated from protobuf field: org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse proof = 2
1980
2009
  */
1981
- proof: Proof;
2010
+ proof: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse;
2011
+ } | {
2012
+ oneofKind: "legacyProof";
2013
+ /**
2014
+ * single proof of nodes before v5.0.0-rc.8, reserved upstream since then
2015
+ *
2016
+ * @generated from protobuf field: org.dash.platform.dapi.v0.Proof legacy_proof = 4
2017
+ */
2018
+ legacyProof: Proof;
1982
2019
  } | {
1983
2020
  oneofKind: undefined;
1984
2021
  };
@@ -1996,6 +2033,55 @@ export interface GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUni
1996
2033
  */
1997
2034
  identity?: Uint8Array;
1998
2035
  }
2036
+ /**
2037
+ * @generated from protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
2038
+ */
2039
+ export interface GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse {
2040
+ /**
2041
+ * @generated from protobuf field: org.dash.platform.dapi.v0.Proof grovedb_identity_public_key_hash_proof = 1
2042
+ */
2043
+ grovedbIdentityPublicKeyHashProof?: Proof;
2044
+ /**
2045
+ * @generated from protobuf field: optional bytes identity_proof_bytes = 2
2046
+ */
2047
+ identityProofBytes?: Uint8Array;
2048
+ }
2049
+ /**
2050
+ * @generated from protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
2051
+ */
2052
+ export interface GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1 {
2053
+ /**
2054
+ * @generated from protobuf oneof: result
2055
+ */
2056
+ result: {
2057
+ oneofKind: "identity";
2058
+ /**
2059
+ * @generated from protobuf field: org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse identity = 1
2060
+ */
2061
+ identity: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse;
2062
+ } | {
2063
+ oneofKind: "proof";
2064
+ /**
2065
+ * @generated from protobuf field: org.dash.platform.dapi.v0.Proof proof = 2
2066
+ */
2067
+ proof: Proof;
2068
+ } | {
2069
+ oneofKind: undefined;
2070
+ };
2071
+ /**
2072
+ * @generated from protobuf field: org.dash.platform.dapi.v0.ResponseMetadata metadata = 3
2073
+ */
2074
+ metadata?: ResponseMetadata;
2075
+ }
2076
+ /**
2077
+ * @generated from protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
2078
+ */
2079
+ export interface GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse {
2080
+ /**
2081
+ * @generated from protobuf field: optional bytes identity = 1
2082
+ */
2083
+ identity?: Uint8Array;
2084
+ }
1999
2085
  /**
2000
2086
  * @generated from protobuf message org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest
2001
2087
  */
@@ -5567,6 +5653,16 @@ declare class GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniqueP
5567
5653
  * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV0
5568
5654
  */
5569
5655
  export declare const GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0: GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0$Type;
5656
+ declare class GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1$Type extends MessageType<GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1> {
5657
+ constructor();
5658
+ create(value?: PartialMessage<GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1>): GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1;
5659
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1): GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1;
5660
+ internalBinaryWrite(message: GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5661
+ }
5662
+ /**
5663
+ * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
5664
+ */
5665
+ export declare const GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1: GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1$Type;
5570
5666
  declare class GetIdentityByNonUniquePublicKeyHashResponse$Type extends MessageType<GetIdentityByNonUniquePublicKeyHashResponse> {
5571
5667
  constructor();
5572
5668
  create(value?: PartialMessage<GetIdentityByNonUniquePublicKeyHashResponse>): GetIdentityByNonUniquePublicKeyHashResponse;
@@ -5597,6 +5693,36 @@ declare class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUnique
5597
5693
  * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse
5598
5694
  */
5599
5695
  export declare const GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityResponse: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityResponse$Type;
5696
+ declare class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse$Type extends MessageType<GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse> {
5697
+ constructor();
5698
+ create(value?: PartialMessage<GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse>): GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse;
5699
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse): GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse;
5700
+ internalBinaryWrite(message: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5701
+ }
5702
+ /**
5703
+ * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
5704
+ */
5705
+ export declare const GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse$Type;
5706
+ declare class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1$Type extends MessageType<GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1> {
5707
+ constructor();
5708
+ create(value?: PartialMessage<GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1>): GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1;
5709
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1): GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1;
5710
+ internalBinaryWrite(message: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5711
+ }
5712
+ /**
5713
+ * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
5714
+ */
5715
+ export declare const GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1$Type;
5716
+ declare class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse$Type extends MessageType<GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse> {
5717
+ constructor();
5718
+ create(value?: PartialMessage<GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse>): GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse;
5719
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse): GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse;
5720
+ internalBinaryWrite(message: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5721
+ }
5722
+ /**
5723
+ * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
5724
+ */
5725
+ export declare const GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse$Type;
5600
5726
  declare class WaitForStateTransitionResultRequest$Type extends MessageType<WaitForStateTransitionResultRequest> {
5601
5727
  constructor();
5602
5728
  create(value?: PartialMessage<WaitForStateTransitionResultRequest>): WaitForStateTransitionResultRequest;
@@ -5536,7 +5536,8 @@ export const GetIdentityByPublicKeyHashResponse_GetIdentityByPublicKeyHashRespon
5536
5536
  class GetIdentityByNonUniquePublicKeyHashRequest$Type extends MessageType {
5537
5537
  constructor() {
5538
5538
  super("org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest", [
5539
- { no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0 }
5539
+ { no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0 },
5540
+ { no: 2, name: "v1", kind: "message", oneof: "version", T: () => GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1 }
5540
5541
  ]);
5541
5542
  }
5542
5543
  create(value) {
@@ -5557,6 +5558,12 @@ class GetIdentityByNonUniquePublicKeyHashRequest$Type extends MessageType {
5557
5558
  v0: GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
5558
5559
  };
5559
5560
  break;
5561
+ case /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1 v1 */ 2:
5562
+ message.version = {
5563
+ oneofKind: "v1",
5564
+ v1: GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1.internalBinaryRead(reader, reader.uint32(), options, message.version.v1)
5565
+ };
5566
+ break;
5560
5567
  default:
5561
5568
  let u = options.readUnknownField;
5562
5569
  if (u === "throw")
@@ -5572,6 +5579,9 @@ class GetIdentityByNonUniquePublicKeyHashRequest$Type extends MessageType {
5572
5579
  /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV0 v0 = 1; */
5573
5580
  if (message.version.oneofKind === "v0")
5574
5581
  GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
5582
+ /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1 v1 = 2; */
5583
+ if (message.version.oneofKind === "v1")
5584
+ GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1.internalBinaryWrite(message.version.v1, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
5575
5585
  let u = options.writeUnknownFields;
5576
5586
  if (u !== false)
5577
5587
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -5645,10 +5655,73 @@ class GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKey
5645
5655
  */
5646
5656
  export const GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0 = new GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV0$Type();
5647
5657
  // @generated message type with reflection information, may provide speed optimized methods
5658
+ class GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1$Type extends MessageType {
5659
+ constructor() {
5660
+ super("org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1", [
5661
+ { no: 1, name: "public_key_hash", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
5662
+ { no: 2, name: "start_after", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
5663
+ { no: 3, name: "prove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
5664
+ ]);
5665
+ }
5666
+ create(value) {
5667
+ const message = globalThis.Object.create((this.messagePrototype));
5668
+ message.publicKeyHash = new Uint8Array(0);
5669
+ message.prove = false;
5670
+ if (value !== undefined)
5671
+ reflectionMergePartial(this, message, value);
5672
+ return message;
5673
+ }
5674
+ internalBinaryRead(reader, length, options, target) {
5675
+ let message = target ?? this.create(), end = reader.pos + length;
5676
+ while (reader.pos < end) {
5677
+ let [fieldNo, wireType] = reader.tag();
5678
+ switch (fieldNo) {
5679
+ case /* bytes public_key_hash */ 1:
5680
+ message.publicKeyHash = reader.bytes();
5681
+ break;
5682
+ case /* optional bytes start_after */ 2:
5683
+ message.startAfter = reader.bytes();
5684
+ break;
5685
+ case /* bool prove */ 3:
5686
+ message.prove = reader.bool();
5687
+ break;
5688
+ default:
5689
+ let u = options.readUnknownField;
5690
+ if (u === "throw")
5691
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5692
+ let d = reader.skip(wireType);
5693
+ if (u !== false)
5694
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5695
+ }
5696
+ }
5697
+ return message;
5698
+ }
5699
+ internalBinaryWrite(message, writer, options) {
5700
+ /* bytes public_key_hash = 1; */
5701
+ if (message.publicKeyHash.length)
5702
+ writer.tag(1, WireType.LengthDelimited).bytes(message.publicKeyHash);
5703
+ /* optional bytes start_after = 2; */
5704
+ if (message.startAfter !== undefined)
5705
+ writer.tag(2, WireType.LengthDelimited).bytes(message.startAfter);
5706
+ /* bool prove = 3; */
5707
+ if (message.prove !== false)
5708
+ writer.tag(3, WireType.Varint).bool(message.prove);
5709
+ let u = options.writeUnknownFields;
5710
+ if (u !== false)
5711
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
5712
+ return writer;
5713
+ }
5714
+ }
5715
+ /**
5716
+ * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
5717
+ */
5718
+ export const GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1 = new GetIdentityByNonUniquePublicKeyHashRequest_GetIdentityByNonUniquePublicKeyHashRequestV1$Type();
5719
+ // @generated message type with reflection information, may provide speed optimized methods
5648
5720
  class GetIdentityByNonUniquePublicKeyHashResponse$Type extends MessageType {
5649
5721
  constructor() {
5650
5722
  super("org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse", [
5651
- { no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0 }
5723
+ { no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0 },
5724
+ { no: 2, name: "v1", kind: "message", oneof: "version", T: () => GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1 }
5652
5725
  ]);
5653
5726
  }
5654
5727
  create(value) {
@@ -5669,6 +5742,12 @@ class GetIdentityByNonUniquePublicKeyHashResponse$Type extends MessageType {
5669
5742
  v0: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
5670
5743
  };
5671
5744
  break;
5745
+ case /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1 v1 */ 2:
5746
+ message.version = {
5747
+ oneofKind: "v1",
5748
+ v1: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1.internalBinaryRead(reader, reader.uint32(), options, message.version.v1)
5749
+ };
5750
+ break;
5672
5751
  default:
5673
5752
  let u = options.readUnknownField;
5674
5753
  if (u === "throw")
@@ -5684,6 +5763,9 @@ class GetIdentityByNonUniquePublicKeyHashResponse$Type extends MessageType {
5684
5763
  /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0 v0 = 1; */
5685
5764
  if (message.version.oneofKind === "v0")
5686
5765
  GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
5766
+ /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1 v1 = 2; */
5767
+ if (message.version.oneofKind === "v1")
5768
+ GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1.internalBinaryWrite(message.version.v1, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
5687
5769
  let u = options.writeUnknownFields;
5688
5770
  if (u !== false)
5689
5771
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -5699,7 +5781,8 @@ class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKe
5699
5781
  constructor() {
5700
5782
  super("org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0", [
5701
5783
  { no: 1, name: "identity", kind: "message", oneof: "result", T: () => GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityResponse },
5702
- { no: 4, name: "proof", kind: "message", oneof: "result", T: () => Proof },
5784
+ { no: 2, name: "proof", kind: "message", oneof: "result", T: () => GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse },
5785
+ { no: 4, name: "legacy_proof", kind: "message", oneof: "result", T: () => Proof },
5703
5786
  { no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
5704
5787
  ]);
5705
5788
  }
@@ -5721,10 +5804,16 @@ class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKe
5721
5804
  identity: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityResponse.internalBinaryRead(reader, reader.uint32(), options, message.result.identity)
5722
5805
  };
5723
5806
  break;
5724
- case /* org.dash.platform.dapi.v0.Proof proof */ 4:
5807
+ case /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse proof */ 2:
5725
5808
  message.result = {
5726
5809
  oneofKind: "proof",
5727
- proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
5810
+ proof: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
5811
+ };
5812
+ break;
5813
+ case /* org.dash.platform.dapi.v0.Proof legacy_proof */ 4:
5814
+ message.result = {
5815
+ oneofKind: "legacyProof",
5816
+ legacyProof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.legacyProof)
5728
5817
  };
5729
5818
  break;
5730
5819
  case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
@@ -5745,12 +5834,15 @@ class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKe
5745
5834
  /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse identity = 1; */
5746
5835
  if (message.result.oneofKind === "identity")
5747
5836
  GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityResponse.internalBinaryWrite(message.result.identity, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
5837
+ /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse proof = 2; */
5838
+ if (message.result.oneofKind === "proof")
5839
+ GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
5748
5840
  /* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
5749
5841
  if (message.metadata)
5750
5842
  ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
5751
- /* org.dash.platform.dapi.v0.Proof proof = 4; */
5752
- if (message.result.oneofKind === "proof")
5753
- Proof.internalBinaryWrite(message.result.proof, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
5843
+ /* org.dash.platform.dapi.v0.Proof legacy_proof = 4; */
5844
+ if (message.result.oneofKind === "legacyProof")
5845
+ Proof.internalBinaryWrite(message.result.legacyProof, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
5754
5846
  let u = options.writeUnknownFields;
5755
5847
  if (u !== false)
5756
5848
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -5808,6 +5900,172 @@ class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKe
5808
5900
  */
5809
5901
  export const GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityResponse = new GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityResponse$Type();
5810
5902
  // @generated message type with reflection information, may provide speed optimized methods
5903
+ class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse$Type extends MessageType {
5904
+ constructor() {
5905
+ super("org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse", [
5906
+ { no: 1, name: "grovedb_identity_public_key_hash_proof", kind: "message", T: () => Proof },
5907
+ { no: 2, name: "identity_proof_bytes", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
5908
+ ]);
5909
+ }
5910
+ create(value) {
5911
+ const message = globalThis.Object.create((this.messagePrototype));
5912
+ if (value !== undefined)
5913
+ reflectionMergePartial(this, message, value);
5914
+ return message;
5915
+ }
5916
+ internalBinaryRead(reader, length, options, target) {
5917
+ let message = target ?? this.create(), end = reader.pos + length;
5918
+ while (reader.pos < end) {
5919
+ let [fieldNo, wireType] = reader.tag();
5920
+ switch (fieldNo) {
5921
+ case /* org.dash.platform.dapi.v0.Proof grovedb_identity_public_key_hash_proof */ 1:
5922
+ message.grovedbIdentityPublicKeyHashProof = Proof.internalBinaryRead(reader, reader.uint32(), options, message.grovedbIdentityPublicKeyHashProof);
5923
+ break;
5924
+ case /* optional bytes identity_proof_bytes */ 2:
5925
+ message.identityProofBytes = reader.bytes();
5926
+ break;
5927
+ default:
5928
+ let u = options.readUnknownField;
5929
+ if (u === "throw")
5930
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5931
+ let d = reader.skip(wireType);
5932
+ if (u !== false)
5933
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5934
+ }
5935
+ }
5936
+ return message;
5937
+ }
5938
+ internalBinaryWrite(message, writer, options) {
5939
+ /* org.dash.platform.dapi.v0.Proof grovedb_identity_public_key_hash_proof = 1; */
5940
+ if (message.grovedbIdentityPublicKeyHashProof)
5941
+ Proof.internalBinaryWrite(message.grovedbIdentityPublicKeyHashProof, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
5942
+ /* optional bytes identity_proof_bytes = 2; */
5943
+ if (message.identityProofBytes !== undefined)
5944
+ writer.tag(2, WireType.LengthDelimited).bytes(message.identityProofBytes);
5945
+ let u = options.writeUnknownFields;
5946
+ if (u !== false)
5947
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
5948
+ return writer;
5949
+ }
5950
+ }
5951
+ /**
5952
+ * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
5953
+ */
5954
+ export const GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse = new GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV0_IdentityProvedResponse$Type();
5955
+ // @generated message type with reflection information, may provide speed optimized methods
5956
+ class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1$Type extends MessageType {
5957
+ constructor() {
5958
+ super("org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1", [
5959
+ { no: 1, name: "identity", kind: "message", oneof: "result", T: () => GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse },
5960
+ { no: 2, name: "proof", kind: "message", oneof: "result", T: () => Proof },
5961
+ { no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
5962
+ ]);
5963
+ }
5964
+ create(value) {
5965
+ const message = globalThis.Object.create((this.messagePrototype));
5966
+ message.result = { oneofKind: undefined };
5967
+ if (value !== undefined)
5968
+ reflectionMergePartial(this, message, value);
5969
+ return message;
5970
+ }
5971
+ internalBinaryRead(reader, length, options, target) {
5972
+ let message = target ?? this.create(), end = reader.pos + length;
5973
+ while (reader.pos < end) {
5974
+ let [fieldNo, wireType] = reader.tag();
5975
+ switch (fieldNo) {
5976
+ case /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse identity */ 1:
5977
+ message.result = {
5978
+ oneofKind: "identity",
5979
+ identity: GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse.internalBinaryRead(reader, reader.uint32(), options, message.result.identity)
5980
+ };
5981
+ break;
5982
+ case /* org.dash.platform.dapi.v0.Proof proof */ 2:
5983
+ message.result = {
5984
+ oneofKind: "proof",
5985
+ proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
5986
+ };
5987
+ break;
5988
+ case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
5989
+ message.metadata = ResponseMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
5990
+ break;
5991
+ default:
5992
+ let u = options.readUnknownField;
5993
+ if (u === "throw")
5994
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5995
+ let d = reader.skip(wireType);
5996
+ if (u !== false)
5997
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5998
+ }
5999
+ }
6000
+ return message;
6001
+ }
6002
+ internalBinaryWrite(message, writer, options) {
6003
+ /* org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse identity = 1; */
6004
+ if (message.result.oneofKind === "identity")
6005
+ GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse.internalBinaryWrite(message.result.identity, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
6006
+ /* org.dash.platform.dapi.v0.Proof proof = 2; */
6007
+ if (message.result.oneofKind === "proof")
6008
+ Proof.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
6009
+ /* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
6010
+ if (message.metadata)
6011
+ ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
6012
+ let u = options.writeUnknownFields;
6013
+ if (u !== false)
6014
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
6015
+ return writer;
6016
+ }
6017
+ }
6018
+ /**
6019
+ * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
6020
+ */
6021
+ export const GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1 = new GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1$Type();
6022
+ // @generated message type with reflection information, may provide speed optimized methods
6023
+ class GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse$Type extends MessageType {
6024
+ constructor() {
6025
+ super("org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse", [
6026
+ { no: 1, name: "identity", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
6027
+ ]);
6028
+ }
6029
+ create(value) {
6030
+ const message = globalThis.Object.create((this.messagePrototype));
6031
+ if (value !== undefined)
6032
+ reflectionMergePartial(this, message, value);
6033
+ return message;
6034
+ }
6035
+ internalBinaryRead(reader, length, options, target) {
6036
+ let message = target ?? this.create(), end = reader.pos + length;
6037
+ while (reader.pos < end) {
6038
+ let [fieldNo, wireType] = reader.tag();
6039
+ switch (fieldNo) {
6040
+ case /* optional bytes identity */ 1:
6041
+ message.identity = reader.bytes();
6042
+ break;
6043
+ default:
6044
+ let u = options.readUnknownField;
6045
+ if (u === "throw")
6046
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6047
+ let d = reader.skip(wireType);
6048
+ if (u !== false)
6049
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6050
+ }
6051
+ }
6052
+ return message;
6053
+ }
6054
+ internalBinaryWrite(message, writer, options) {
6055
+ /* optional bytes identity = 1; */
6056
+ if (message.identity !== undefined)
6057
+ writer.tag(1, WireType.LengthDelimited).bytes(message.identity);
6058
+ let u = options.writeUnknownFields;
6059
+ if (u !== false)
6060
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
6061
+ return writer;
6062
+ }
6063
+ }
6064
+ /**
6065
+ * @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
6066
+ */
6067
+ export const GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse = new GetIdentityByNonUniquePublicKeyHashResponse_GetIdentityByNonUniquePublicKeyHashResponseV1_IdentityResponse$Type();
6068
+ // @generated message type with reflection information, may provide speed optimized methods
5811
6069
  class WaitForStateTransitionResultRequest$Type extends MessageType {
5812
6070
  constructor() {
5813
6071
  super("org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest", [
@@ -13,10 +13,19 @@ import { VotingController } from './voting/index.js';
13
13
  import { Network } from '../types.js';
14
14
  import { PlatformAddressesController } from './platformAddresses/index.js';
15
15
  import { ShieldedController } from './shielded/index.js';
16
- export type { GRPCOptions, GRPCPool };
16
+ import { QuorumKeyProvider } from './quorumKeyProvider.js';
17
+ export type { GRPCOptions, GRPCPool, QuorumKeyProvider };
17
18
  export interface SDKOptions {
18
19
  network: Network;
19
20
  grpc?: GRPCOptions;
21
+ /** Custom source of quorum public keys for proof verification, Platform Explorer is used if not set **/
22
+ quorumKeyProvider?: QuorumKeyProvider;
23
+ /**
24
+ * Requests and verifies proofs of the queries (default `true`).
25
+ * Without proofs, responses are trusted as is, queries that can not be done without proofs are still requested with proofs.
26
+ * Overrides `proofs` of a custom GRPC pool
27
+ */
28
+ proofs?: boolean;
20
29
  /** @deprecated Use {GRPCOptions} instead, will be removed in next major version **/
21
30
  dapiUrl?: string | string[];
22
31
  }
@@ -28,6 +37,8 @@ export declare class DashPlatformSDK {
28
37
  /** @ignore **/
29
38
  grpcPool: GRPCPool;
30
39
  /** @ignore **/
40
+ quorumKeyProvider: QuorumKeyProvider;
41
+ /** @ignore **/
31
42
  options?: SDKOptions;
32
43
  contestedResources: ContestedResourcesController;
33
44
  platformAddresses: PlatformAddressesController;
@@ -70,6 +81,13 @@ export declare class DashPlatformSDK {
70
81
  * @param network {string}
71
82
  */
72
83
  setNetwork(network: Network): void;
84
+ /**
85
+ * Replaces source of quorum public keys used for proof verification.
86
+ * Pass nothing to switch back to Platform Explorer
87
+ *
88
+ * @param quorumKeyProvider {QuorumKeyProvider=}
89
+ */
90
+ setQuorumKeyProvider(quorumKeyProvider?: QuorumKeyProvider): void;
73
91
  /**
74
92
  * Replaces GRPC connection pool used by the SDK with a custom one.
75
93
  * SDK network is switched to the pool's network