@credo-ts/anoncreds 0.6.1-pr-2091-20241119140918 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (837) hide show
  1. package/build/AnonCredsApi.d.mts +113 -0
  2. package/build/AnonCredsApi.d.mts.map +1 -0
  3. package/build/AnonCredsApi.mjs +439 -0
  4. package/build/AnonCredsApi.mjs.map +1 -0
  5. package/build/AnonCredsApiOptions.d.mts +28 -0
  6. package/build/AnonCredsApiOptions.d.mts.map +1 -0
  7. package/build/AnonCredsModule.d.mts +29 -0
  8. package/build/AnonCredsModule.d.mts.map +1 -0
  9. package/build/AnonCredsModule.mjs +62 -0
  10. package/build/AnonCredsModule.mjs.map +1 -0
  11. package/build/AnonCredsModuleConfig.d.mts +79 -0
  12. package/build/AnonCredsModuleConfig.d.mts.map +1 -0
  13. package/build/AnonCredsModuleConfig.mjs +31 -0
  14. package/build/AnonCredsModuleConfig.mjs.map +1 -0
  15. package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorate.mjs +10 -0
  16. package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateMetadata.mjs +7 -0
  17. package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateParam.mjs +9 -0
  18. package/build/anoncreds-rs/AnonCredsDataIntegrityService.mjs +203 -0
  19. package/build/anoncreds-rs/AnonCredsDataIntegrityService.mjs.map +1 -0
  20. package/build/anoncreds-rs/AnonCredsRsHolderService.mjs +488 -0
  21. package/build/anoncreds-rs/AnonCredsRsHolderService.mjs.map +1 -0
  22. package/build/anoncreds-rs/AnonCredsRsIssuerService.mjs +213 -0
  23. package/build/anoncreds-rs/AnonCredsRsIssuerService.mjs.map +1 -0
  24. package/build/anoncreds-rs/AnonCredsRsVerifierService.mjs +122 -0
  25. package/build/anoncreds-rs/AnonCredsRsVerifierService.mjs.map +1 -0
  26. package/build/anoncreds-rs/index.mjs +3 -0
  27. package/build/anoncreds-rs/utils.mjs +60 -0
  28. package/build/anoncreds-rs/utils.mjs.map +1 -0
  29. package/build/error/AnonCredsError.d.mts +13 -0
  30. package/build/error/AnonCredsError.d.mts.map +1 -0
  31. package/build/error/AnonCredsError.mjs +12 -0
  32. package/build/error/AnonCredsError.mjs.map +1 -0
  33. package/build/error/AnonCredsRsError.d.mts +13 -0
  34. package/build/error/AnonCredsRsError.d.mts.map +1 -0
  35. package/build/error/AnonCredsRsError.mjs +12 -0
  36. package/build/error/AnonCredsRsError.mjs.map +1 -0
  37. package/build/error/AnonCredsStoreRecordError.d.mts +13 -0
  38. package/build/error/AnonCredsStoreRecordError.d.mts.map +1 -0
  39. package/build/error/AnonCredsStoreRecordError.mjs +12 -0
  40. package/build/error/AnonCredsStoreRecordError.mjs.map +1 -0
  41. package/build/error/index.d.mts +3 -0
  42. package/build/error/index.mjs +3 -0
  43. package/build/formats/AnonCredsDidCommCredentialFormat.d.mts +82 -0
  44. package/build/formats/AnonCredsDidCommCredentialFormat.d.mts.map +1 -0
  45. package/build/formats/AnonCredsDidCommCredentialFormatService.d.mts +120 -0
  46. package/build/formats/AnonCredsDidCommCredentialFormatService.d.mts.map +1 -0
  47. package/build/formats/AnonCredsDidCommCredentialFormatService.mjs +331 -0
  48. package/build/formats/AnonCredsDidCommCredentialFormatService.mjs.map +1 -0
  49. package/build/formats/AnonCredsDidCommProofFormat.d.mts +77 -0
  50. package/build/formats/AnonCredsDidCommProofFormat.d.mts.map +1 -0
  51. package/build/formats/AnonCredsDidCommProofFormatService.d.mts +93 -0
  52. package/build/formats/AnonCredsDidCommProofFormatService.d.mts.map +1 -0
  53. package/build/formats/AnonCredsDidCommProofFormatService.mjs +250 -0
  54. package/build/formats/AnonCredsDidCommProofFormatService.mjs.map +1 -0
  55. package/build/formats/DataIntegrityDidCommCredentialFormatService.d.mts +118 -0
  56. package/build/formats/DataIntegrityDidCommCredentialFormatService.d.mts.map +1 -0
  57. package/build/formats/DataIntegrityDidCommCredentialFormatService.mjs +587 -0
  58. package/build/formats/DataIntegrityDidCommCredentialFormatService.mjs.map +1 -0
  59. package/build/formats/LegacyIndyDidCommCredentialFormat.d.mts +38 -0
  60. package/build/formats/LegacyIndyDidCommCredentialFormat.d.mts.map +1 -0
  61. package/build/formats/LegacyIndyDidCommCredentialFormatService.d.mts +122 -0
  62. package/build/formats/LegacyIndyDidCommCredentialFormatService.d.mts.map +1 -0
  63. package/build/formats/LegacyIndyDidCommCredentialFormatService.mjs +309 -0
  64. package/build/formats/LegacyIndyDidCommCredentialFormatService.mjs.map +1 -0
  65. package/build/formats/LegacyIndyDidCommProofFormat.d.mts +36 -0
  66. package/build/formats/LegacyIndyDidCommProofFormat.d.mts.map +1 -0
  67. package/build/formats/LegacyIndyDidCommProofFormatService.d.mts +98 -0
  68. package/build/formats/LegacyIndyDidCommProofFormatService.d.mts.map +1 -0
  69. package/build/formats/LegacyIndyDidCommProofFormatService.mjs +322 -0
  70. package/build/formats/LegacyIndyDidCommProofFormatService.mjs.map +1 -0
  71. package/build/formats/index.d.mts +9 -0
  72. package/build/formats/index.mjs +5 -0
  73. package/build/index.d.mts +86 -0
  74. package/build/index.mjs +69 -0
  75. package/build/models/AnonCredsCredentialProposal.mjs +75 -0
  76. package/build/models/AnonCredsCredentialProposal.mjs.map +1 -0
  77. package/build/models/AnonCredsProofRequest.mjs +62 -0
  78. package/build/models/AnonCredsProofRequest.mjs.map +1 -0
  79. package/build/models/AnonCredsRequestedAttribute.mjs +50 -0
  80. package/build/models/AnonCredsRequestedAttribute.mjs.map +1 -0
  81. package/build/models/AnonCredsRequestedPredicate.mjs +53 -0
  82. package/build/models/AnonCredsRequestedPredicate.mjs.map +1 -0
  83. package/build/models/AnonCredsRestriction.d.mts +29 -0
  84. package/build/models/AnonCredsRestriction.d.mts.map +1 -0
  85. package/build/models/AnonCredsRestriction.mjs +137 -0
  86. package/build/models/AnonCredsRestriction.mjs.map +1 -0
  87. package/build/models/AnonCredsRestrictionWrapper.d.mts +9 -0
  88. package/build/models/AnonCredsRestrictionWrapper.d.mts.map +1 -0
  89. package/build/models/AnonCredsRestrictionWrapper.mjs +18 -0
  90. package/build/models/AnonCredsRestrictionWrapper.mjs.map +1 -0
  91. package/build/models/AnonCredsRevocationInterval.mjs +27 -0
  92. package/build/models/AnonCredsRevocationInterval.mjs.map +1 -0
  93. package/build/models/exchange.d.mts +104 -0
  94. package/build/models/exchange.d.mts.map +1 -0
  95. package/build/models/exchange.mjs +11 -0
  96. package/build/models/exchange.mjs.map +1 -0
  97. package/build/models/index.d.mts +4 -0
  98. package/build/models/index.mjs +2 -0
  99. package/build/models/internal.d.mts +40 -0
  100. package/build/models/internal.d.mts.map +1 -0
  101. package/build/models/registry.d.mts +44 -0
  102. package/build/models/registry.d.mts.map +1 -0
  103. package/build/models/utils.d.mts +27 -0
  104. package/build/models/utils.d.mts.map +1 -0
  105. package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.mts +215 -0
  106. package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.mts.map +1 -0
  107. package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.mjs +827 -0
  108. package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.mjs.map +1 -0
  109. package/build/protocols/credentials/v1/handlers/DidCommCredentialV1AckHandler.mjs +17 -0
  110. package/build/protocols/credentials/v1/handlers/DidCommCredentialV1AckHandler.mjs.map +1 -0
  111. package/build/protocols/credentials/v1/handlers/DidCommCredentialV1ProblemReportHandler.mjs +17 -0
  112. package/build/protocols/credentials/v1/handlers/DidCommCredentialV1ProblemReportHandler.mjs.map +1 -0
  113. package/build/protocols/credentials/v1/handlers/DidCommIssueCredentialV1Handler.mjs +36 -0
  114. package/build/protocols/credentials/v1/handlers/DidCommIssueCredentialV1Handler.mjs.map +1 -0
  115. package/build/protocols/credentials/v1/handlers/DidCommOfferCredentialV1Handler.mjs +32 -0
  116. package/build/protocols/credentials/v1/handlers/DidCommOfferCredentialV1Handler.mjs.map +1 -0
  117. package/build/protocols/credentials/v1/handlers/DidCommProposeCredentialV1Handler.mjs +35 -0
  118. package/build/protocols/credentials/v1/handlers/DidCommProposeCredentialV1Handler.mjs.map +1 -0
  119. package/build/protocols/credentials/v1/handlers/DidCommRequestCredentialV1Handler.mjs +36 -0
  120. package/build/protocols/credentials/v1/handlers/DidCommRequestCredentialV1Handler.mjs.map +1 -0
  121. package/build/protocols/credentials/v1/handlers/index.mjs +6 -0
  122. package/build/protocols/credentials/v1/index.d.mts +9 -0
  123. package/build/protocols/credentials/v1/index.mjs +9 -0
  124. package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.d.mts +16 -0
  125. package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.d.mts.map +1 -0
  126. package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.mjs +21 -0
  127. package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.mjs.map +1 -0
  128. package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.mts +32 -0
  129. package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.mts.map +1 -0
  130. package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.mjs +57 -0
  131. package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.mjs.map +1 -0
  132. package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.d.mts +16 -0
  133. package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.d.mts.map +1 -0
  134. package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.mjs +21 -0
  135. package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.mjs.map +1 -0
  136. package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.mts +26 -0
  137. package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.mts.map +1 -0
  138. package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.mjs +46 -0
  139. package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.mjs.map +1 -0
  140. package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.mts +34 -0
  141. package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.mts.map +1 -0
  142. package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.mjs +61 -0
  143. package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.mjs.map +1 -0
  144. package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.mts +64 -0
  145. package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.mts.map +1 -0
  146. package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.mjs +95 -0
  147. package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.mjs.map +1 -0
  148. package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.mts +26 -0
  149. package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.mts.map +1 -0
  150. package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.mjs +46 -0
  151. package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.mjs.map +1 -0
  152. package/build/protocols/credentials/v1/messages/index.d.mts +7 -0
  153. package/build/protocols/credentials/v1/messages/index.mjs +7 -0
  154. package/build/protocols/index.d.mts +18 -0
  155. package/build/protocols/index.mjs +18 -0
  156. package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.mts +105 -0
  157. package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.mts.map +1 -0
  158. package/build/protocols/proofs/v1/DidCommProofV1Protocol.mjs +723 -0
  159. package/build/protocols/proofs/v1/DidCommProofV1Protocol.mjs.map +1 -0
  160. package/build/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.d.mts +18 -0
  161. package/build/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.d.mts.map +1 -0
  162. package/build/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.mjs +19 -0
  163. package/build/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.mjs.map +1 -0
  164. package/build/protocols/proofs/v1/errors/index.d.mts +1 -0
  165. package/build/protocols/proofs/v1/errors/index.mjs +1 -0
  166. package/build/protocols/proofs/v1/handlers/DidCommPresentationV1AckHandler.mjs +17 -0
  167. package/build/protocols/proofs/v1/handlers/DidCommPresentationV1AckHandler.mjs.map +1 -0
  168. package/build/protocols/proofs/v1/handlers/DidCommPresentationV1Handler.mjs +36 -0
  169. package/build/protocols/proofs/v1/handlers/DidCommPresentationV1Handler.mjs.map +1 -0
  170. package/build/protocols/proofs/v1/handlers/DidCommPresentationV1ProblemReportHandler.mjs +16 -0
  171. package/build/protocols/proofs/v1/handlers/DidCommPresentationV1ProblemReportHandler.mjs.map +1 -0
  172. package/build/protocols/proofs/v1/handlers/DidCommProposePresentationV1Handler.mjs +35 -0
  173. package/build/protocols/proofs/v1/handlers/DidCommProposePresentationV1Handler.mjs.map +1 -0
  174. package/build/protocols/proofs/v1/handlers/DidCommRequestPresentationV1Handler.mjs +32 -0
  175. package/build/protocols/proofs/v1/handlers/DidCommRequestPresentationV1Handler.mjs.map +1 -0
  176. package/build/protocols/proofs/v1/handlers/index.mjs +5 -0
  177. package/build/protocols/proofs/v1/index.d.mts +11 -0
  178. package/build/protocols/proofs/v1/index.mjs +11 -0
  179. package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.mts +12 -0
  180. package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.mts.map +1 -0
  181. package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.mjs +18 -0
  182. package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.mjs.map +1 -0
  183. package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.mts +38 -0
  184. package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.mts.map +1 -0
  185. package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.mjs +52 -0
  186. package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.mjs.map +1 -0
  187. package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts +16 -0
  188. package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts.map +1 -0
  189. package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.mjs +21 -0
  190. package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.mjs.map +1 -0
  191. package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.mts +32 -0
  192. package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.mts.map +1 -0
  193. package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.mjs +44 -0
  194. package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.mjs.map +1 -0
  195. package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.mts +36 -0
  196. package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.mts.map +1 -0
  197. package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.mjs +50 -0
  198. package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.mjs.map +1 -0
  199. package/build/protocols/proofs/v1/messages/index.d.mts +5 -0
  200. package/build/protocols/proofs/v1/messages/index.mjs +5 -0
  201. package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.mts +57 -0
  202. package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.mts.map +1 -0
  203. package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.mjs +113 -0
  204. package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.mjs.map +1 -0
  205. package/build/protocols/proofs/v1/models/index.d.mts +1 -0
  206. package/build/protocols/proofs/v1/models/index.mjs +1 -0
  207. package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.d.mts +25 -0
  208. package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.d.mts.map +1 -0
  209. package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.mjs +26 -0
  210. package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.mjs.map +1 -0
  211. package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.d.mts +12 -0
  212. package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.d.mts.map +1 -0
  213. package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.mjs +28 -0
  214. package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.mjs.map +1 -0
  215. package/build/repository/AnonCredsCredentialDefinitionRecord.d.mts +44 -0
  216. package/build/repository/AnonCredsCredentialDefinitionRecord.d.mts.map +1 -0
  217. package/build/repository/AnonCredsCredentialDefinitionRecord.mjs +38 -0
  218. package/build/repository/AnonCredsCredentialDefinitionRecord.mjs.map +1 -0
  219. package/build/repository/AnonCredsCredentialDefinitionRepository.d.mts +12 -0
  220. package/build/repository/AnonCredsCredentialDefinitionRepository.d.mts.map +1 -0
  221. package/build/repository/AnonCredsCredentialDefinitionRepository.mjs +28 -0
  222. package/build/repository/AnonCredsCredentialDefinitionRepository.mjs.map +1 -0
  223. package/build/repository/AnonCredsCredentialRecord.d.mts +53 -0
  224. package/build/repository/AnonCredsCredentialRecord.d.mts.map +1 -0
  225. package/build/repository/AnonCredsCredentialRecord.mjs +46 -0
  226. package/build/repository/AnonCredsCredentialRecord.mjs.map +1 -0
  227. package/build/repository/AnonCredsCredentialRepository.d.mts +14 -0
  228. package/build/repository/AnonCredsCredentialRepository.d.mts.map +1 -0
  229. package/build/repository/AnonCredsCredentialRepository.mjs +34 -0
  230. package/build/repository/AnonCredsCredentialRepository.mjs.map +1 -0
  231. package/build/repository/AnonCredsKeyCorrectnessProofRecord.d.mts +25 -0
  232. package/build/repository/AnonCredsKeyCorrectnessProofRecord.d.mts.map +1 -0
  233. package/build/repository/AnonCredsKeyCorrectnessProofRecord.mjs +26 -0
  234. package/build/repository/AnonCredsKeyCorrectnessProofRecord.mjs.map +1 -0
  235. package/build/repository/AnonCredsKeyCorrectnessProofRepository.d.mts +12 -0
  236. package/build/repository/AnonCredsKeyCorrectnessProofRepository.d.mts.map +1 -0
  237. package/build/repository/AnonCredsKeyCorrectnessProofRepository.mjs +28 -0
  238. package/build/repository/AnonCredsKeyCorrectnessProofRepository.mjs.map +1 -0
  239. package/build/repository/AnonCredsLinkSecretRecord.d.mts +28 -0
  240. package/build/repository/AnonCredsLinkSecretRecord.d.mts.map +1 -0
  241. package/build/repository/AnonCredsLinkSecretRecord.mjs +25 -0
  242. package/build/repository/AnonCredsLinkSecretRecord.mjs.map +1 -0
  243. package/build/repository/AnonCredsLinkSecretRepository.d.mts +14 -0
  244. package/build/repository/AnonCredsLinkSecretRepository.d.mts.map +1 -0
  245. package/build/repository/AnonCredsLinkSecretRepository.mjs +34 -0
  246. package/build/repository/AnonCredsLinkSecretRepository.mjs.map +1 -0
  247. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.d.mts +37 -0
  248. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.d.mts.map +1 -0
  249. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.mjs +35 -0
  250. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.mjs.map +1 -0
  251. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.mts +13 -0
  252. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.mts.map +1 -0
  253. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs +34 -0
  254. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs.map +1 -0
  255. package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.mts +30 -0
  256. package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.mts.map +1 -0
  257. package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.mjs +27 -0
  258. package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.mjs.map +1 -0
  259. package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.d.mts +13 -0
  260. package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.d.mts.map +1 -0
  261. package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.mjs +31 -0
  262. package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.mjs.map +1 -0
  263. package/build/repository/AnonCredsSchemaRecord.d.mts +44 -0
  264. package/build/repository/AnonCredsSchemaRecord.d.mts.map +1 -0
  265. package/build/repository/AnonCredsSchemaRecord.mjs +38 -0
  266. package/build/repository/AnonCredsSchemaRecord.mjs.map +1 -0
  267. package/build/repository/AnonCredsSchemaRepository.d.mts +12 -0
  268. package/build/repository/AnonCredsSchemaRepository.d.mts.map +1 -0
  269. package/build/repository/AnonCredsSchemaRepository.mjs +28 -0
  270. package/build/repository/AnonCredsSchemaRepository.mjs.map +1 -0
  271. package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.d.mts +14 -0
  272. package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.d.mts.map +1 -0
  273. package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.mjs +10 -0
  274. package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.mjs.map +1 -0
  275. package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.d.mts +14 -0
  276. package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.d.mts.map +1 -0
  277. package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.mjs +10 -0
  278. package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.mjs.map +1 -0
  279. package/build/repository/anonCredsSchemaRecordMetadataTypes.d.mts +14 -0
  280. package/build/repository/anonCredsSchemaRecordMetadataTypes.d.mts.map +1 -0
  281. package/build/repository/index.d.mts +16 -0
  282. package/build/repository/index.mjs +16 -0
  283. package/build/services/AnonCredsHolderService.d.mts +28 -0
  284. package/build/services/AnonCredsHolderService.d.mts.map +1 -0
  285. package/build/services/AnonCredsHolderService.mjs +6 -0
  286. package/build/services/AnonCredsHolderService.mjs.map +1 -0
  287. package/build/services/AnonCredsHolderServiceOptions.d.mts +107 -0
  288. package/build/services/AnonCredsHolderServiceOptions.d.mts.map +1 -0
  289. package/build/services/AnonCredsIssuerService.d.mts +19 -0
  290. package/build/services/AnonCredsIssuerService.d.mts.map +1 -0
  291. package/build/services/AnonCredsIssuerService.mjs +6 -0
  292. package/build/services/AnonCredsIssuerService.mjs.map +1 -0
  293. package/build/services/AnonCredsIssuerServiceOptions.d.mts +66 -0
  294. package/build/services/AnonCredsIssuerServiceOptions.d.mts.map +1 -0
  295. package/build/services/AnonCredsVerifierService.d.mts +12 -0
  296. package/build/services/AnonCredsVerifierService.d.mts.map +1 -0
  297. package/build/services/AnonCredsVerifierService.mjs +6 -0
  298. package/build/services/AnonCredsVerifierService.mjs.map +1 -0
  299. package/build/services/AnonCredsVerifierServiceOptions.d.mts +30 -0
  300. package/build/services/AnonCredsVerifierServiceOptions.d.mts.map +1 -0
  301. package/build/services/index.d.mts +17 -0
  302. package/build/services/index.mjs +7 -0
  303. package/build/services/registry/AnonCredsRegistry.d.mts +43 -0
  304. package/build/services/registry/AnonCredsRegistry.d.mts.map +1 -0
  305. package/build/services/registry/AnonCredsRegistryService.d.mts +27 -0
  306. package/build/services/registry/AnonCredsRegistryService.d.mts.map +1 -0
  307. package/build/services/registry/AnonCredsRegistryService.mjs +226 -0
  308. package/build/services/registry/AnonCredsRegistryService.mjs.map +1 -0
  309. package/build/services/registry/CredentialDefinitionOptions.d.mts +39 -0
  310. package/build/services/registry/CredentialDefinitionOptions.d.mts.map +1 -0
  311. package/build/services/registry/RevocationRegistryDefinitionOptions.d.mts +39 -0
  312. package/build/services/registry/RevocationRegistryDefinitionOptions.d.mts.map +1 -0
  313. package/build/services/registry/RevocationStatusListOptions.d.mts +37 -0
  314. package/build/services/registry/RevocationStatusListOptions.d.mts.map +1 -0
  315. package/build/services/registry/SchemaOptions.d.mts +39 -0
  316. package/build/services/registry/SchemaOptions.d.mts.map +1 -0
  317. package/build/services/registry/base.d.mts +65 -0
  318. package/build/services/registry/base.d.mts.map +1 -0
  319. package/build/services/registry/index.d.mts +7 -0
  320. package/build/services/registry/index.mjs +1 -0
  321. package/build/services/tails/BasicTailsFileService.d.mts +29 -0
  322. package/build/services/tails/BasicTailsFileService.d.mts.map +1 -0
  323. package/build/services/tails/BasicTailsFileService.mjs +52 -0
  324. package/build/services/tails/BasicTailsFileService.mjs.map +1 -0
  325. package/build/services/tails/TailsFileService.d.mts +48 -0
  326. package/build/services/tails/TailsFileService.d.mts.map +1 -0
  327. package/build/services/tails/index.d.mts +2 -0
  328. package/build/services/tails/index.mjs +1 -0
  329. package/build/updates/0.3.1-0.4/credentialDefinition.mjs +49 -0
  330. package/build/updates/0.3.1-0.4/credentialDefinition.mjs.map +1 -0
  331. package/build/updates/0.3.1-0.4/credentialExchangeRecord.mjs +118 -0
  332. package/build/updates/0.3.1-0.4/credentialExchangeRecord.mjs.map +1 -0
  333. package/build/updates/0.3.1-0.4/index.d.mts +7 -0
  334. package/build/updates/0.3.1-0.4/index.d.mts.map +1 -0
  335. package/build/updates/0.3.1-0.4/index.mjs +16 -0
  336. package/build/updates/0.3.1-0.4/index.mjs.map +1 -0
  337. package/build/updates/0.3.1-0.4/linkSecret.mjs +21 -0
  338. package/build/updates/0.3.1-0.4/linkSecret.mjs.map +1 -0
  339. package/build/updates/0.3.1-0.4/schema.mjs +39 -0
  340. package/build/updates/0.3.1-0.4/schema.mjs.map +1 -0
  341. package/build/updates/0.4-0.5/anonCredsCredentialRecord.mjs +126 -0
  342. package/build/updates/0.4-0.5/anonCredsCredentialRecord.mjs.map +1 -0
  343. package/build/updates/0.4-0.5/index.d.mts +7 -0
  344. package/build/updates/0.4-0.5/index.d.mts.map +1 -0
  345. package/build/updates/0.4-0.5/index.mjs +10 -0
  346. package/build/updates/0.4-0.5/index.mjs.map +1 -0
  347. package/build/utils/anonCredsObjects.d.mts +27 -0
  348. package/build/utils/anonCredsObjects.d.mts.map +1 -0
  349. package/build/utils/anonCredsObjects.mjs +57 -0
  350. package/build/utils/anonCredsObjects.mjs.map +1 -0
  351. package/build/utils/areRequestsEqual.d.mts +1 -0
  352. package/build/utils/areRequestsEqual.mjs +86 -0
  353. package/build/utils/areRequestsEqual.mjs.map +1 -0
  354. package/build/utils/bytesToBigint.mjs +11 -0
  355. package/build/utils/bytesToBigint.mjs.map +1 -0
  356. package/build/utils/composeAutoAccept.d.mts +1 -0
  357. package/build/utils/composeAutoAccept.mjs +25 -0
  358. package/build/utils/composeAutoAccept.mjs.map +1 -0
  359. package/build/utils/createRequestFromPreview.d.mts +2 -0
  360. package/build/utils/createRequestFromPreview.mjs +50 -0
  361. package/build/utils/createRequestFromPreview.mjs.map +1 -0
  362. package/build/utils/credential.d.mts +12 -0
  363. package/build/utils/credential.d.mts.map +1 -0
  364. package/build/utils/credential.mjs +119 -0
  365. package/build/utils/credential.mjs.map +1 -0
  366. package/build/utils/credentialPreviewAttributes.d.mts +1 -0
  367. package/build/utils/credentialPreviewAttributes.mjs +21 -0
  368. package/build/utils/credentialPreviewAttributes.mjs.map +1 -0
  369. package/build/utils/getCredentialsForAnonCredsRequest.d.mts +11 -0
  370. package/build/utils/getCredentialsForAnonCredsRequest.d.mts.map +1 -0
  371. package/build/utils/getCredentialsForAnonCredsRequest.mjs +70 -0
  372. package/build/utils/getCredentialsForAnonCredsRequest.mjs.map +1 -0
  373. package/build/utils/getRevocationRegistries.d.mts +4 -0
  374. package/build/utils/getRevocationRegistries.mjs +121 -0
  375. package/build/utils/getRevocationRegistries.mjs.map +1 -0
  376. package/build/utils/hasDuplicateGroupNames.d.mts +1 -0
  377. package/build/utils/hasDuplicateGroupNames.mjs +22 -0
  378. package/build/utils/hasDuplicateGroupNames.mjs.map +1 -0
  379. package/build/utils/index.d.mts +17 -0
  380. package/build/utils/index.mjs +17 -0
  381. package/build/utils/indyIdentifiers.d.mts +71 -0
  382. package/build/utils/indyIdentifiers.d.mts.map +1 -0
  383. package/build/utils/indyIdentifiers.mjs +249 -0
  384. package/build/utils/indyIdentifiers.mjs.map +1 -0
  385. package/build/utils/isMap.d.mts +1 -0
  386. package/build/utils/isMap.mjs +19 -0
  387. package/build/utils/isMap.mjs.map +1 -0
  388. package/build/utils/linkSecret.d.mts +13 -0
  389. package/build/utils/linkSecret.d.mts.map +1 -0
  390. package/build/utils/linkSecret.mjs +35 -0
  391. package/build/utils/linkSecret.mjs.map +1 -0
  392. package/build/utils/metadata.d.mts +30 -0
  393. package/build/utils/metadata.d.mts.map +1 -0
  394. package/build/utils/metadata.mjs +23 -0
  395. package/build/utils/metadata.mjs.map +1 -0
  396. package/build/utils/proofRequest.mjs +10 -0
  397. package/build/utils/proofRequest.mjs.map +1 -0
  398. package/build/utils/proverDid.d.mts +12 -0
  399. package/build/utils/proverDid.d.mts.map +1 -0
  400. package/build/utils/proverDid.mjs +17 -0
  401. package/build/utils/proverDid.mjs.map +1 -0
  402. package/build/utils/revocationInterval.d.mts +12 -0
  403. package/build/utils/revocationInterval.d.mts.map +1 -0
  404. package/build/utils/revocationInterval.mjs +11 -0
  405. package/build/utils/revocationInterval.mjs.map +1 -0
  406. package/build/utils/sortRequestedCredentialsMatches.d.mts +1 -0
  407. package/build/utils/sortRequestedCredentialsMatches.mjs +22 -0
  408. package/build/utils/sortRequestedCredentialsMatches.mjs.map +1 -0
  409. package/build/utils/timestamp.d.mts +5 -0
  410. package/build/utils/timestamp.d.mts.map +1 -0
  411. package/build/utils/timestamp.mjs +6 -0
  412. package/build/utils/timestamp.mjs.map +1 -0
  413. package/build/utils/w3cAnonCredsUtils.d.mts +28 -0
  414. package/build/utils/w3cAnonCredsUtils.d.mts.map +1 -0
  415. package/build/utils/w3cAnonCredsUtils.mjs +101 -0
  416. package/build/utils/w3cAnonCredsUtils.mjs.map +1 -0
  417. package/package.json +20 -21
  418. package/build/AnonCredsApi.d.ts +0 -97
  419. package/build/AnonCredsApi.js +0 -582
  420. package/build/AnonCredsApi.js.map +0 -1
  421. package/build/AnonCredsApiOptions.d.ts +0 -24
  422. package/build/AnonCredsApiOptions.js +0 -3
  423. package/build/AnonCredsApiOptions.js.map +0 -1
  424. package/build/AnonCredsModule.d.ts +0 -24
  425. package/build/AnonCredsModule.js +0 -56
  426. package/build/AnonCredsModule.js.map +0 -1
  427. package/build/AnonCredsModuleConfig.d.ts +0 -72
  428. package/build/AnonCredsModuleConfig.js +0 -31
  429. package/build/AnonCredsModuleConfig.js.map +0 -1
  430. package/build/anoncreds-rs/AnonCredsDataIntegrityService.d.ts +0 -27
  431. package/build/anoncreds-rs/AnonCredsDataIntegrityService.js +0 -241
  432. package/build/anoncreds-rs/AnonCredsDataIntegrityService.js.map +0 -1
  433. package/build/anoncreds-rs/AnonCredsRsHolderService.d.ts +0 -38
  434. package/build/anoncreds-rs/AnonCredsRsHolderService.js +0 -622
  435. package/build/anoncreds-rs/AnonCredsRsHolderService.js.map +0 -1
  436. package/build/anoncreds-rs/AnonCredsRsIssuerService.d.ts +0 -12
  437. package/build/anoncreds-rs/AnonCredsRsIssuerService.js +0 -253
  438. package/build/anoncreds-rs/AnonCredsRsIssuerService.js.map +0 -1
  439. package/build/anoncreds-rs/AnonCredsRsVerifierService.d.ts +0 -8
  440. package/build/anoncreds-rs/AnonCredsRsVerifierService.js +0 -157
  441. package/build/anoncreds-rs/AnonCredsRsVerifierService.js.map +0 -1
  442. package/build/anoncreds-rs/index.d.ts +0 -3
  443. package/build/anoncreds-rs/index.js +0 -10
  444. package/build/anoncreds-rs/index.js.map +0 -1
  445. package/build/anoncreds-rs/utils.d.ts +0 -23
  446. package/build/anoncreds-rs/utils.js +0 -71
  447. package/build/anoncreds-rs/utils.js.map +0 -1
  448. package/build/error/AnonCredsError.d.ts +0 -6
  449. package/build/error/AnonCredsError.js +0 -11
  450. package/build/error/AnonCredsError.js.map +0 -1
  451. package/build/error/AnonCredsRsError.d.ts +0 -6
  452. package/build/error/AnonCredsRsError.js +0 -11
  453. package/build/error/AnonCredsRsError.js.map +0 -1
  454. package/build/error/AnonCredsStoreRecordError.d.ts +0 -6
  455. package/build/error/AnonCredsStoreRecordError.js +0 -11
  456. package/build/error/AnonCredsStoreRecordError.js.map +0 -1
  457. package/build/error/index.d.ts +0 -3
  458. package/build/error/index.js +0 -20
  459. package/build/error/index.js.map +0 -1
  460. package/build/formats/AnonCredsCredentialFormat.d.ts +0 -79
  461. package/build/formats/AnonCredsCredentialFormat.js +0 -3
  462. package/build/formats/AnonCredsCredentialFormat.js.map +0 -1
  463. package/build/formats/AnonCredsCredentialFormatService.d.ts +0 -80
  464. package/build/formats/AnonCredsCredentialFormatService.js +0 -433
  465. package/build/formats/AnonCredsCredentialFormatService.js.map +0 -1
  466. package/build/formats/AnonCredsProofFormat.d.ts +0 -70
  467. package/build/formats/AnonCredsProofFormat.js +0 -3
  468. package/build/formats/AnonCredsProofFormat.js.map +0 -1
  469. package/build/formats/AnonCredsProofFormatService.d.ts +0 -55
  470. package/build/formats/AnonCredsProofFormatService.js +0 -289
  471. package/build/formats/AnonCredsProofFormatService.js.map +0 -1
  472. package/build/formats/DataIntegrityCredentialFormatService.d.ts +0 -89
  473. package/build/formats/DataIntegrityCredentialFormatService.js +0 -773
  474. package/build/formats/DataIntegrityCredentialFormatService.js.map +0 -1
  475. package/build/formats/LegacyIndyCredentialFormat.d.ts +0 -32
  476. package/build/formats/LegacyIndyCredentialFormat.js +0 -3
  477. package/build/formats/LegacyIndyCredentialFormat.js.map +0 -1
  478. package/build/formats/LegacyIndyCredentialFormatService.d.ts +0 -80
  479. package/build/formats/LegacyIndyCredentialFormatService.js +0 -379
  480. package/build/formats/LegacyIndyCredentialFormatService.js.map +0 -1
  481. package/build/formats/LegacyIndyProofFormat.d.ts +0 -29
  482. package/build/formats/LegacyIndyProofFormat.js +0 -3
  483. package/build/formats/LegacyIndyProofFormat.js.map +0 -1
  484. package/build/formats/LegacyIndyProofFormatService.d.ts +0 -58
  485. package/build/formats/LegacyIndyProofFormatService.js +0 -374
  486. package/build/formats/LegacyIndyProofFormatService.js.map +0 -1
  487. package/build/formats/index.d.ts +0 -9
  488. package/build/formats/index.js +0 -32
  489. package/build/formats/index.js.map +0 -1
  490. package/build/index.d.ts +0 -21
  491. package/build/index.js +0 -54
  492. package/build/index.js.map +0 -1
  493. package/build/models/AnonCredsCredentialProposal.d.ts +0 -62
  494. package/build/models/AnonCredsCredentialProposal.js +0 -81
  495. package/build/models/AnonCredsCredentialProposal.js.map +0 -1
  496. package/build/models/AnonCredsProofRequest.d.ts +0 -27
  497. package/build/models/AnonCredsProofRequest.js +0 -82
  498. package/build/models/AnonCredsProofRequest.js.map +0 -1
  499. package/build/models/AnonCredsRequestedAttribute.d.ts +0 -16
  500. package/build/models/AnonCredsRequestedAttribute.js +0 -56
  501. package/build/models/AnonCredsRequestedAttribute.js.map +0 -1
  502. package/build/models/AnonCredsRequestedPredicate.d.ts +0 -19
  503. package/build/models/AnonCredsRequestedPredicate.js +0 -61
  504. package/build/models/AnonCredsRequestedPredicate.js.map +0 -1
  505. package/build/models/AnonCredsRestriction.d.ts +0 -55
  506. package/build/models/AnonCredsRestriction.js +0 -160
  507. package/build/models/AnonCredsRestriction.js.map +0 -1
  508. package/build/models/AnonCredsRestrictionWrapper.d.ts +0 -4
  509. package/build/models/AnonCredsRestrictionWrapper.js +0 -25
  510. package/build/models/AnonCredsRestrictionWrapper.js.map +0 -1
  511. package/build/models/AnonCredsRevocationInterval.d.ts +0 -5
  512. package/build/models/AnonCredsRevocationInterval.js +0 -33
  513. package/build/models/AnonCredsRevocationInterval.js.map +0 -1
  514. package/build/models/exchange.d.ts +0 -99
  515. package/build/models/exchange.js +0 -5
  516. package/build/models/exchange.js.map +0 -1
  517. package/build/models/index.d.ts +0 -4
  518. package/build/models/index.js +0 -21
  519. package/build/models/index.js.map +0 -1
  520. package/build/models/internal.d.ts +0 -35
  521. package/build/models/internal.js +0 -3
  522. package/build/models/internal.js.map +0 -1
  523. package/build/models/registry.d.ts +0 -39
  524. package/build/models/registry.js +0 -3
  525. package/build/models/registry.js.map +0 -1
  526. package/build/models/utils.d.ts +0 -22
  527. package/build/models/utils.js +0 -3
  528. package/build/models/utils.js.map +0 -1
  529. package/build/protocols/credentials/v1/V1CredentialProtocol.d.ts +0 -162
  530. package/build/protocols/credentials/v1/V1CredentialProtocol.js +0 -948
  531. package/build/protocols/credentials/v1/V1CredentialProtocol.js.map +0 -1
  532. package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.d.ts +0 -10
  533. package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.js +0 -18
  534. package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.js.map +0 -1
  535. package/build/protocols/credentials/v1/errors/index.d.ts +0 -1
  536. package/build/protocols/credentials/v1/errors/index.js +0 -6
  537. package/build/protocols/credentials/v1/errors/index.js.map +0 -1
  538. package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.d.ts +0 -9
  539. package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.js +0 -15
  540. package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.js.map +0 -1
  541. package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.d.ts +0 -9
  542. package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.js +0 -15
  543. package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.js.map +0 -1
  544. package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.d.ts +0 -10
  545. package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.js +0 -40
  546. package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.js.map +0 -1
  547. package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.d.ts +0 -10
  548. package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.js +0 -33
  549. package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.js.map +0 -1
  550. package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.d.ts +0 -10
  551. package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.js +0 -38
  552. package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.js.map +0 -1
  553. package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.d.ts +0 -10
  554. package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.js +0 -40
  555. package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.js.map +0 -1
  556. package/build/protocols/credentials/v1/handlers/index.d.ts +0 -6
  557. package/build/protocols/credentials/v1/handlers/index.js +0 -23
  558. package/build/protocols/credentials/v1/handlers/index.js.map +0 -1
  559. package/build/protocols/credentials/v1/index.d.ts +0 -2
  560. package/build/protocols/credentials/v1/index.js +0 -19
  561. package/build/protocols/credentials/v1/index.js.map +0 -1
  562. package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.d.ts +0 -16
  563. package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.js +0 -34
  564. package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.js.map +0 -1
  565. package/build/protocols/credentials/v1/messages/V1CredentialPreview.d.ts +0 -26
  566. package/build/protocols/credentials/v1/messages/V1CredentialPreview.js +0 -69
  567. package/build/protocols/credentials/v1/messages/V1CredentialPreview.js.map +0 -1
  568. package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.d.ts +0 -16
  569. package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.js +0 -34
  570. package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.js.map +0 -1
  571. package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.d.ts +0 -19
  572. package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.js +0 -62
  573. package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.js.map +0 -1
  574. package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.d.ts +0 -27
  575. package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.js +0 -75
  576. package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.js.map +0 -1
  577. package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.d.ts +0 -59
  578. package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.js +0 -109
  579. package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.js.map +0 -1
  580. package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.d.ts +0 -19
  581. package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.js +0 -61
  582. package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.js.map +0 -1
  583. package/build/protocols/credentials/v1/messages/index.d.ts +0 -7
  584. package/build/protocols/credentials/v1/messages/index.js +0 -24
  585. package/build/protocols/credentials/v1/messages/index.js.map +0 -1
  586. package/build/protocols/index.d.ts +0 -2
  587. package/build/protocols/index.js +0 -19
  588. package/build/protocols/index.js.map +0 -1
  589. package/build/protocols/proofs/v1/V1ProofProtocol.d.ts +0 -50
  590. package/build/protocols/proofs/v1/V1ProofProtocol.js +0 -864
  591. package/build/protocols/proofs/v1/V1ProofProtocol.js.map +0 -1
  592. package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.d.ts +0 -12
  593. package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.js +0 -19
  594. package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.js.map +0 -1
  595. package/build/protocols/proofs/v1/errors/index.d.ts +0 -1
  596. package/build/protocols/proofs/v1/errors/index.js +0 -18
  597. package/build/protocols/proofs/v1/errors/index.js.map +0 -1
  598. package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.d.ts +0 -9
  599. package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.js +0 -15
  600. package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.js.map +0 -1
  601. package/build/protocols/proofs/v1/handlers/V1PresentationHandler.d.ts +0 -10
  602. package/build/protocols/proofs/v1/handlers/V1PresentationHandler.js +0 -40
  603. package/build/protocols/proofs/v1/handlers/V1PresentationHandler.js.map +0 -1
  604. package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.d.ts +0 -9
  605. package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.js +0 -15
  606. package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.js.map +0 -1
  607. package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.d.ts +0 -11
  608. package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.js +0 -38
  609. package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.js.map +0 -1
  610. package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.d.ts +0 -10
  611. package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.js +0 -35
  612. package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.js.map +0 -1
  613. package/build/protocols/proofs/v1/handlers/index.d.ts +0 -5
  614. package/build/protocols/proofs/v1/handlers/index.js +0 -22
  615. package/build/protocols/proofs/v1/handlers/index.js.map +0 -1
  616. package/build/protocols/proofs/v1/index.d.ts +0 -4
  617. package/build/protocols/proofs/v1/index.js +0 -21
  618. package/build/protocols/proofs/v1/index.js.map +0 -1
  619. package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.d.ts +0 -8
  620. package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.js +0 -27
  621. package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.js.map +0 -1
  622. package/build/protocols/proofs/v1/messages/V1PresentationMessage.d.ts +0 -31
  623. package/build/protocols/proofs/v1/messages/V1PresentationMessage.js +0 -67
  624. package/build/protocols/proofs/v1/messages/V1PresentationMessage.js.map +0 -1
  625. package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.d.ts +0 -16
  626. package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.js +0 -34
  627. package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.js.map +0 -1
  628. package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.d.ts +0 -26
  629. package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.js +0 -53
  630. package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.js.map +0 -1
  631. package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.d.ts +0 -29
  632. package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.js +0 -65
  633. package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.js.map +0 -1
  634. package/build/protocols/proofs/v1/messages/index.d.ts +0 -5
  635. package/build/protocols/proofs/v1/messages/index.js +0 -22
  636. package/build/protocols/proofs/v1/messages/index.js.map +0 -1
  637. package/build/protocols/proofs/v1/models/V1PresentationPreview.d.ts +0 -50
  638. package/build/protocols/proofs/v1/models/V1PresentationPreview.js +0 -130
  639. package/build/protocols/proofs/v1/models/V1PresentationPreview.js.map +0 -1
  640. package/build/protocols/proofs/v1/models/index.d.ts +0 -1
  641. package/build/protocols/proofs/v1/models/index.js +0 -18
  642. package/build/protocols/proofs/v1/models/index.js.map +0 -1
  643. package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.d.ts +0 -21
  644. package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.js +0 -23
  645. package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.js.map +0 -1
  646. package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.d.ts +0 -8
  647. package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.js +0 -35
  648. package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.js.map +0 -1
  649. package/build/repository/AnonCredsCredentialDefinitionRecord.d.ts +0 -39
  650. package/build/repository/AnonCredsCredentialDefinitionRecord.js +0 -30
  651. package/build/repository/AnonCredsCredentialDefinitionRecord.js.map +0 -1
  652. package/build/repository/AnonCredsCredentialDefinitionRepository.d.ts +0 -8
  653. package/build/repository/AnonCredsCredentialDefinitionRepository.js +0 -53
  654. package/build/repository/AnonCredsCredentialDefinitionRepository.js.map +0 -1
  655. package/build/repository/AnonCredsCredentialRecord.d.ts +0 -48
  656. package/build/repository/AnonCredsCredentialRecord.js +0 -37
  657. package/build/repository/AnonCredsCredentialRecord.js.map +0 -1
  658. package/build/repository/AnonCredsCredentialRepository.d.ts +0 -10
  659. package/build/repository/AnonCredsCredentialRepository.js +0 -41
  660. package/build/repository/AnonCredsCredentialRepository.js.map +0 -1
  661. package/build/repository/AnonCredsKeyCorrectnessProofRecord.d.ts +0 -21
  662. package/build/repository/AnonCredsKeyCorrectnessProofRecord.js +0 -23
  663. package/build/repository/AnonCredsKeyCorrectnessProofRecord.js.map +0 -1
  664. package/build/repository/AnonCredsKeyCorrectnessProofRepository.d.ts +0 -8
  665. package/build/repository/AnonCredsKeyCorrectnessProofRepository.js +0 -35
  666. package/build/repository/AnonCredsKeyCorrectnessProofRepository.js.map +0 -1
  667. package/build/repository/AnonCredsLinkSecretRecord.d.ts +0 -23
  668. package/build/repository/AnonCredsLinkSecretRecord.js +0 -22
  669. package/build/repository/AnonCredsLinkSecretRecord.js.map +0 -1
  670. package/build/repository/AnonCredsLinkSecretRepository.d.ts +0 -10
  671. package/build/repository/AnonCredsLinkSecretRepository.js +0 -41
  672. package/build/repository/AnonCredsLinkSecretRepository.js.map +0 -1
  673. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.d.ts +0 -34
  674. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.js +0 -30
  675. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.js.map +0 -1
  676. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.ts +0 -10
  677. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js +0 -38
  678. package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js.map +0 -1
  679. package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.ts +0 -25
  680. package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.js +0 -23
  681. package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.js.map +0 -1
  682. package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.d.ts +0 -9
  683. package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.js +0 -38
  684. package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.js.map +0 -1
  685. package/build/repository/AnonCredsSchemaRecord.d.ts +0 -39
  686. package/build/repository/AnonCredsSchemaRecord.js +0 -30
  687. package/build/repository/AnonCredsSchemaRecord.js.map +0 -1
  688. package/build/repository/AnonCredsSchemaRepository.d.ts +0 -8
  689. package/build/repository/AnonCredsSchemaRepository.js +0 -53
  690. package/build/repository/AnonCredsSchemaRepository.js.map +0 -1
  691. package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.d.ts +0 -9
  692. package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.js +0 -9
  693. package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.js.map +0 -1
  694. package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.d.ts +0 -9
  695. package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.js +0 -9
  696. package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.js.map +0 -1
  697. package/build/repository/anonCredsSchemaRecordMetadataTypes.d.ts +0 -9
  698. package/build/repository/anonCredsSchemaRecordMetadataTypes.js +0 -9
  699. package/build/repository/anonCredsSchemaRecordMetadataTypes.js.map +0 -1
  700. package/build/repository/index.d.ts +0 -16
  701. package/build/repository/index.js +0 -33
  702. package/build/repository/index.js.map +0 -1
  703. package/build/services/AnonCredsHolderService.d.ts +0 -18
  704. package/build/services/AnonCredsHolderService.js +0 -5
  705. package/build/services/AnonCredsHolderService.js.map +0 -1
  706. package/build/services/AnonCredsHolderServiceOptions.d.ts +0 -101
  707. package/build/services/AnonCredsHolderServiceOptions.js +0 -3
  708. package/build/services/AnonCredsHolderServiceOptions.js.map +0 -1
  709. package/build/services/AnonCredsIssuerService.d.ts +0 -14
  710. package/build/services/AnonCredsIssuerService.js +0 -5
  711. package/build/services/AnonCredsIssuerService.js.map +0 -1
  712. package/build/services/AnonCredsIssuerServiceOptions.d.ts +0 -61
  713. package/build/services/AnonCredsIssuerServiceOptions.js +0 -3
  714. package/build/services/AnonCredsIssuerServiceOptions.js.map +0 -1
  715. package/build/services/AnonCredsVerifierService.d.ts +0 -7
  716. package/build/services/AnonCredsVerifierService.js +0 -5
  717. package/build/services/AnonCredsVerifierService.js.map +0 -1
  718. package/build/services/AnonCredsVerifierServiceOptions.d.ts +0 -25
  719. package/build/services/AnonCredsVerifierServiceOptions.js +0 -3
  720. package/build/services/AnonCredsVerifierServiceOptions.js.map +0 -1
  721. package/build/services/index.d.ts +0 -8
  722. package/build/services/index.js +0 -27
  723. package/build/services/index.js.map +0 -1
  724. package/build/services/registry/AnonCredsRegistry.d.ts +0 -25
  725. package/build/services/registry/AnonCredsRegistry.js +0 -3
  726. package/build/services/registry/AnonCredsRegistry.js.map +0 -1
  727. package/build/services/registry/AnonCredsRegistryService.d.ts +0 -10
  728. package/build/services/registry/AnonCredsRegistryService.js +0 -33
  729. package/build/services/registry/AnonCredsRegistryService.js.map +0 -1
  730. package/build/services/registry/CredentialDefinitionOptions.d.ts +0 -34
  731. package/build/services/registry/CredentialDefinitionOptions.js +0 -3
  732. package/build/services/registry/CredentialDefinitionOptions.js.map +0 -1
  733. package/build/services/registry/RevocationRegistryDefinitionOptions.d.ts +0 -34
  734. package/build/services/registry/RevocationRegistryDefinitionOptions.js +0 -3
  735. package/build/services/registry/RevocationRegistryDefinitionOptions.js.map +0 -1
  736. package/build/services/registry/RevocationStatusListOptions.d.ts +0 -32
  737. package/build/services/registry/RevocationStatusListOptions.js +0 -3
  738. package/build/services/registry/RevocationStatusListOptions.js.map +0 -1
  739. package/build/services/registry/SchemaOptions.d.ts +0 -34
  740. package/build/services/registry/SchemaOptions.js +0 -3
  741. package/build/services/registry/SchemaOptions.js.map +0 -1
  742. package/build/services/registry/base.d.ts +0 -19
  743. package/build/services/registry/base.js +0 -3
  744. package/build/services/registry/base.js.map +0 -1
  745. package/build/services/registry/index.d.ts +0 -7
  746. package/build/services/registry/index.js +0 -23
  747. package/build/services/registry/index.js.map +0 -1
  748. package/build/services/tails/BasicTailsFileService.d.ts +0 -23
  749. package/build/services/tails/BasicTailsFileService.js +0 -65
  750. package/build/services/tails/BasicTailsFileService.js.map +0 -1
  751. package/build/services/tails/TailsFileService.d.ts +0 -42
  752. package/build/services/tails/TailsFileService.js +0 -3
  753. package/build/services/tails/TailsFileService.js.map +0 -1
  754. package/build/services/tails/index.d.ts +0 -2
  755. package/build/services/tails/index.js +0 -19
  756. package/build/services/tails/index.js.map +0 -1
  757. package/build/updates/0.3.1-0.4/credentialDefinition.d.ts +0 -18
  758. package/build/updates/0.3.1-0.4/credentialDefinition.js +0 -56
  759. package/build/updates/0.3.1-0.4/credentialDefinition.js.map +0 -1
  760. package/build/updates/0.3.1-0.4/credentialExchangeRecord.d.ts +0 -69
  761. package/build/updates/0.3.1-0.4/credentialExchangeRecord.js +0 -121
  762. package/build/updates/0.3.1-0.4/credentialExchangeRecord.js.map +0 -1
  763. package/build/updates/0.3.1-0.4/index.d.ts +0 -2
  764. package/build/updates/0.3.1-0.4/index.js +0 -14
  765. package/build/updates/0.3.1-0.4/index.js.map +0 -1
  766. package/build/updates/0.3.1-0.4/linkSecret.d.ts +0 -6
  767. package/build/updates/0.3.1-0.4/linkSecret.js +0 -35
  768. package/build/updates/0.3.1-0.4/linkSecret.js.map +0 -1
  769. package/build/updates/0.3.1-0.4/schema.d.ts +0 -15
  770. package/build/updates/0.3.1-0.4/schema.js +0 -41
  771. package/build/updates/0.3.1-0.4/schema.js.map +0 -1
  772. package/build/updates/0.4-0.5/anonCredsCredentialRecord.d.ts +0 -5
  773. package/build/updates/0.4-0.5/anonCredsCredentialRecord.js +0 -149
  774. package/build/updates/0.4-0.5/anonCredsCredentialRecord.js.map +0 -1
  775. package/build/updates/0.4-0.5/index.d.ts +0 -2
  776. package/build/updates/0.4-0.5/index.js +0 -8
  777. package/build/updates/0.4-0.5/index.js.map +0 -1
  778. package/build/utils/anonCredsObjects.d.ts +0 -26
  779. package/build/utils/anonCredsObjects.js +0 -81
  780. package/build/utils/anonCredsObjects.js.map +0 -1
  781. package/build/utils/areRequestsEqual.d.ts +0 -6
  782. package/build/utils/areRequestsEqual.js +0 -135
  783. package/build/utils/areRequestsEqual.js.map +0 -1
  784. package/build/utils/composeAutoAccept.d.ts +0 -15
  785. package/build/utils/composeAutoAccept.js +0 -26
  786. package/build/utils/composeAutoAccept.js.map +0 -1
  787. package/build/utils/createRequestFromPreview.d.ts +0 -10
  788. package/build/utils/createRequestFromPreview.js +0 -71
  789. package/build/utils/createRequestFromPreview.js.map +0 -1
  790. package/build/utils/credential.d.ts +0 -68
  791. package/build/utils/credential.js +0 -188
  792. package/build/utils/credential.js.map +0 -1
  793. package/build/utils/credentialPreviewAttributes.d.ts +0 -2
  794. package/build/utils/credentialPreviewAttributes.js +0 -24
  795. package/build/utils/credentialPreviewAttributes.js.map +0 -1
  796. package/build/utils/getCredentialsForAnonCredsRequest.d.ts +0 -4
  797. package/build/utils/getCredentialsForAnonCredsRequest.js +0 -81
  798. package/build/utils/getCredentialsForAnonCredsRequest.js.map +0 -1
  799. package/build/utils/getRevocationRegistries.d.ts +0 -14
  800. package/build/utils/getRevocationRegistries.js +0 -151
  801. package/build/utils/getRevocationRegistries.js.map +0 -1
  802. package/build/utils/hasDuplicateGroupNames.d.ts +0 -2
  803. package/build/utils/hasDuplicateGroupNames.js +0 -22
  804. package/build/utils/hasDuplicateGroupNames.js.map +0 -1
  805. package/build/utils/index.d.ts +0 -17
  806. package/build/utils/index.js +0 -48
  807. package/build/utils/index.js.map +0 -1
  808. package/build/utils/indyIdentifiers.d.ts +0 -66
  809. package/build/utils/indyIdentifiers.js +0 -298
  810. package/build/utils/indyIdentifiers.js.map +0 -1
  811. package/build/utils/isMap.d.ts +0 -5
  812. package/build/utils/isMap.js +0 -17
  813. package/build/utils/isMap.js.map +0 -1
  814. package/build/utils/linkSecret.d.ts +0 -9
  815. package/build/utils/linkSecret.js +0 -43
  816. package/build/utils/linkSecret.js.map +0 -1
  817. package/build/utils/metadata.d.ts +0 -35
  818. package/build/utils/metadata.js +0 -24
  819. package/build/utils/metadata.js.map +0 -1
  820. package/build/utils/proofRequest.d.ts +0 -2
  821. package/build/utils/proofRequest.js +0 -21
  822. package/build/utils/proofRequest.js.map +0 -1
  823. package/build/utils/proverDid.d.ts +0 -8
  824. package/build/utils/proverDid.js +0 -15
  825. package/build/utils/proverDid.js.map +0 -1
  826. package/build/utils/revocationInterval.d.ts +0 -7
  827. package/build/utils/revocationInterval.js +0 -14
  828. package/build/utils/revocationInterval.js.map +0 -1
  829. package/build/utils/sortRequestedCredentialsMatches.d.ts +0 -8
  830. package/build/utils/sortRequestedCredentialsMatches.js +0 -31
  831. package/build/utils/sortRequestedCredentialsMatches.js.map +0 -1
  832. package/build/utils/timestamp.d.ts +0 -1
  833. package/build/utils/timestamp.js +0 -7
  834. package/build/utils/timestamp.js.map +0 -1
  835. package/build/utils/w3cAnonCredsUtils.d.ts +0 -37
  836. package/build/utils/w3cAnonCredsUtils.js +0 -132
  837. package/build/utils/w3cAnonCredsUtils.js.map +0 -1
@@ -1,81 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchSchema = fetchSchema;
4
- exports.fetchCredentialDefinition = fetchCredentialDefinition;
5
- exports.fetchRevocationRegistryDefinition = fetchRevocationRegistryDefinition;
6
- exports.fetchRevocationStatusList = fetchRevocationStatusList;
7
- exports.fetchSchemas = fetchSchemas;
8
- exports.fetchCredentialDefinitions = fetchCredentialDefinitions;
9
- const core_1 = require("@credo-ts/core");
10
- const services_1 = require("../services");
11
- async function fetchSchema(agentContext, schemaId) {
12
- const registryService = agentContext.dependencyManager.resolve(services_1.AnonCredsRegistryService);
13
- const result = await registryService
14
- .getRegistryForIdentifier(agentContext, schemaId)
15
- .getSchema(agentContext, schemaId);
16
- if (!result || !result.schema) {
17
- throw new core_1.CredoError(`Schema not found for id ${schemaId}: ${result.resolutionMetadata.message}`);
18
- }
19
- return {
20
- schema: result.schema,
21
- schemaId: result.schemaId,
22
- indyNamespace: result.schemaMetadata.didIndyNamespace,
23
- };
24
- }
25
- async function fetchCredentialDefinition(agentContext, credentialDefinitionId) {
26
- const registryService = agentContext.dependencyManager.resolve(services_1.AnonCredsRegistryService);
27
- const result = await registryService
28
- .getRegistryForIdentifier(agentContext, credentialDefinitionId)
29
- .getCredentialDefinition(agentContext, credentialDefinitionId);
30
- if (!result || !result.credentialDefinition) {
31
- throw new core_1.CredoError(`Credential definition not found for id ${credentialDefinitionId}: ${result.resolutionMetadata.message}`);
32
- }
33
- const indyNamespace = result.credentialDefinitionMetadata.didIndyNamespace;
34
- return {
35
- credentialDefinition: result.credentialDefinition,
36
- credentialDefinitionId,
37
- indyNamespace: indyNamespace && typeof indyNamespace === 'string' ? indyNamespace : undefined,
38
- };
39
- }
40
- async function fetchRevocationRegistryDefinition(agentContext, revocationRegistryDefinitionId) {
41
- const registryService = agentContext.dependencyManager.resolve(services_1.AnonCredsRegistryService);
42
- const result = await registryService
43
- .getRegistryForIdentifier(agentContext, revocationRegistryDefinitionId)
44
- .getRevocationRegistryDefinition(agentContext, revocationRegistryDefinitionId);
45
- if (!result || !result.revocationRegistryDefinition) {
46
- throw new core_1.CredoError(`RevocationRegistryDefinition not found for id ${revocationRegistryDefinitionId}: ${result.resolutionMetadata.message}`);
47
- }
48
- const indyNamespace = result.revocationRegistryDefinitionMetadata.didIndyNamespace;
49
- return {
50
- revocationRegistryDefinition: result.revocationRegistryDefinition,
51
- revocationRegistryDefinitionId,
52
- indyNamespace: indyNamespace && typeof indyNamespace === 'string' ? indyNamespace : undefined,
53
- };
54
- }
55
- async function fetchRevocationStatusList(agentContext, revocationRegistryId, timestamp) {
56
- const registry = agentContext.dependencyManager
57
- .resolve(services_1.AnonCredsRegistryService)
58
- .getRegistryForIdentifier(agentContext, revocationRegistryId);
59
- const { revocationStatusList, resolutionMetadata } = await registry.getRevocationStatusList(agentContext, revocationRegistryId, timestamp);
60
- if (!revocationStatusList) {
61
- throw new core_1.CredoError(`Could not retrieve revocation status list for revocation registry ${revocationRegistryId}: ${resolutionMetadata.message}`);
62
- }
63
- return { revocationStatusList };
64
- }
65
- async function fetchSchemas(agentContext, schemaIds) {
66
- const schemaFetchPromises = [...schemaIds].map(async (schemaId) => {
67
- const { schema } = await fetchSchema(agentContext, schemaId);
68
- return [schemaId, schema];
69
- });
70
- const schemas = Object.fromEntries(await Promise.all(schemaFetchPromises));
71
- return schemas;
72
- }
73
- async function fetchCredentialDefinitions(agentContext, credentialDefinitionIds) {
74
- const credentialDefinitionEntries = [...credentialDefinitionIds].map(async (credentialDefinitionId) => {
75
- const { credentialDefinition } = await fetchCredentialDefinition(agentContext, credentialDefinitionId);
76
- return [credentialDefinitionId, credentialDefinition];
77
- });
78
- const credentialDefinitions = Object.fromEntries(await Promise.all(credentialDefinitionEntries));
79
- return credentialDefinitions;
80
- }
81
- //# sourceMappingURL=anonCredsObjects.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"anonCredsObjects.js","sourceRoot":"","sources":["../../src/utils/anonCredsObjects.ts"],"names":[],"mappings":";;AAOA,kCAgBC;AAED,8DAoBC;AAED,8EAuBC;AAED,8DAsBC;AAED,oCAQC;AAED,gEAUC;AAjHD,yCAA2C;AAE3C,0CAAsD;AAE/C,KAAK,UAAU,WAAW,CAAC,YAA0B,EAAE,QAAgB;IAC5E,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,mCAAwB,CAAC,CAAA;IAExF,MAAM,MAAM,GAAG,MAAM,eAAe;SACjC,wBAAwB,CAAC,YAAY,EAAE,QAAQ,CAAC;SAChD,SAAS,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;IAEpC,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QAC9B,MAAM,IAAI,iBAAU,CAAC,2BAA2B,QAAQ,KAAK,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC,CAAA;IACnG,CAAC;IAED,OAAO;Q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AAW,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAA;IAC1E,OAAO,OAAO,CAAA;AAChB,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAAC,YAA0B,EAAE,uBAAoC;IAC/G,MAAM,2BAA2B,GAAG,CAAC,GAAG,uBAAuB,CAAC,CAAC,GAAG,CAClE,KAAK,EAAE,sBAAsB,EAAoD,EAAE;QACjF,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,yBAAyB,CAAC,YAAY,EAAE,sBAAsB,CAAC,CAAA;QACtG,OAAO,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAAA;IACvD,CAAC,CACF,CAAA;IAED,MAAM,qBAAqB,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CAAA;IAChG,OAAO,qBAAqB,CAAA;AAC9B,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { AnonCredsProofRequest } from '../models';
2
- /**
3
- * Checks whether two proof requests are semantically equal. The `name`, `version` and `nonce`, `ver` fields are ignored.
4
- * In addition the group names don't have to be the same between the different requests.
5
- */
6
- export declare function areAnonCredsProofRequestsEqual(requestA: AnonCredsProofRequest, requestB: AnonCredsProofRequest): boolean;
@@ -1,135 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.areAnonCredsProofRequestsEqual = areAnonCredsProofRequestsEqual;
4
- // Copied from the core package so we don't have to export these silly utils. We should probably move these to a separate package.
5
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
- function areObjectsEqual(a, b) {
7
- if (typeof a == 'object' && a != null && typeof b == 'object' && b != null) {
8
- if (Object.keys(a).length !== Object.keys(b).length)
9
- return false;
10
- for (const key in a) {
11
- if (!(key in b) || !areObjectsEqual(a[key], b[key])) {
12
- return false;
13
- }
14
- }
15
- for (const key in b) {
16
- if (!(key in a) || !areObjectsEqual(b[key], a[key])) {
17
- return false;
18
- }
19
- }
20
- return true;
21
- }
22
- else {
23
- return a === b;
24
- }
25
- }
26
- /**
27
- * Checks whether two `names` arrays are equal. The order of the names doesn't matter.
28
- */
29
- function areNamesEqual(namesA, namesB) {
30
- if (namesA === undefined)
31
- return namesB === undefined || namesB.length === 0;
32
- if (namesB === undefined)
33
- return namesA.length === 0;
34
- // Check if there are any duplicates
35
- if (new Set(namesA).size !== namesA.length || new Set(namesB).size !== namesB.length)
36
- return false;
37
- // Check if the number of names is equal between A & B
38
- if (namesA.length !== namesB.length)
39
- return false;
40
- return namesA.every((a) => namesB.includes(a));
41
- }
42
- /**
43
- * Checks whether two proof requests are semantically equal. The `name`, `version` and `nonce`, `ver` fields are ignored.
44
- * In addition the group names don't have to be the same between the different requests.
45
- */
46
- function areAnonCredsProofRequestsEqual(requestA, requestB) {
47
- // Check if the top-level non-revocation interval is equal
48
- if (!isNonRevokedEqual(requestA.non_revoked, requestB.non_revoked))
49
- return false;
50
- const attributeAList = Object.values(requestA.requested_attributes);
51
- const attributeBList = Object.values(requestB.requested_attributes);
52
- // Check if the number of attribute groups is equal in both requests
53
- if (attributeAList.length !== attributeBList.length)
54
- return false;
55
- // Check if all attribute groups in A are also in B
56
- const attributesMatch = attributeAList.every((a) => {
57
- // find an attribute in B that matches this attribute
58
- const bIndex = attributeBList.findIndex((b) => {
59
- return (b.name === a.name &&
60
- areNamesEqual(a.names, b.names) &&
61
- isNonRevokedEqual(a.non_revoked, b.non_revoked) &&
62
- areRestrictionsEqual(a.restrictions, b.restrictions));
63
- });
64
- // Match found
65
- if (bIndex !== -1) {
66
- attributeBList.splice(bIndex, 1);
67
- return true;
68
- }
69
- // Match not found
70
- return false;
71
- });
72
- if (!attributesMatch)
73
- return false;
74
- const predicatesA = Object.values(requestA.requested_predicates);
75
- const predicatesB = Object.values(requestB.requested_predicates);
76
- if (predicatesA.length !== predicatesB.length)
77
- return false;
78
- const predicatesMatch = predicatesA.every((a) => {
79
- // find a predicate in B that matches this predicate
80
- const bIndex = predicatesB.findIndex((b) => {
81
- return (a.name === b.name &&
82
- a.p_type === b.p_type &&
83
- a.p_value === b.p_value &&
84
- isNonRevokedEqual(a.non_revoked, b.non_revoked) &&
85
- areRestrictionsEqual(a.restrictions, b.restrictions));
86
- });
87
- if (bIndex !== -1) {
88
- predicatesB.splice(bIndex, 1);
89
- return true;
90
- }
91
- return false;
92
- });
93
- if (!predicatesMatch)
94
- return false;
95
- return true;
96
- }
97
- /**
98
- * Checks whether two non-revocation intervals are semantically equal. They are considered equal if:
99
- * - Both are undefined
100
- * - Both are empty objects
101
- * - One if undefined and the other is an empty object
102
- * - Both have the same from and to values
103
- */
104
- function isNonRevokedEqual(nonRevokedA, nonRevokedB) {
105
- // Having an empty non-revoked object is the same as not having one
106
- if (nonRevokedA === undefined)
107
- return nonRevokedB === undefined || (nonRevokedB.from === undefined && nonRevokedB.to === undefined);
108
- if (nonRevokedB === undefined)
109
- return nonRevokedA.from === undefined && nonRevokedA.to === undefined;
110
- return nonRevokedA.from === nonRevokedB.from && nonRevokedA.to === nonRevokedB.to;
111
- }
112
- /**
113
- * Check if two restriction lists are equal. The order of the restrictions does not matter.
114
- */
115
- function areRestrictionsEqual(restrictionsA, restrictionsB) {
116
- // Having an undefined restrictions property or an empty array is the same
117
- if (restrictionsA === undefined)
118
- return restrictionsB === undefined || restrictionsB.length === 0;
119
- if (restrictionsB === undefined)
120
- return restrictionsA.length === 0;
121
- // Clone array to not modify input object
122
- const bList = [...restrictionsB];
123
- // Check if all restrictions in A are also in B
124
- return restrictionsA.every((a) => {
125
- const bIndex = restrictionsB.findIndex((b) => areObjectsEqual(a, b));
126
- // Match found
127
- if (bIndex !== -1) {
128
- bList.splice(bIndex, 1);
129
- return true;
130
- }
131
- // Match not found
132
- return false;
133
- });
134
- }
135
- //# sourceMappingURL=areRequestsEqual.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"areRequestsEqual.js","sourceRoot":"","sources":["../../src/utils/areRequestsEqual.ts"],"names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AI,CAAA;QACb,CAAC;QAED,kBAAkB;QAClB,OAAO,KAAK,CAAA;IACd,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -1,15 +0,0 @@
1
- import { AutoAcceptCredential, AutoAcceptProof } from '@credo-ts/core';
2
- /**
3
- * Returns the credential auto accept config based on priority:
4
- * - The record config takes first priority
5
- * - Otherwise the agent config
6
- * - Otherwise {@link AutoAcceptCredential.Never} is returned
7
- */
8
- export declare function composeCredentialAutoAccept(recordConfig?: AutoAcceptCredential, agentConfig?: AutoAcceptCredential): AutoAcceptCredential;
9
- /**
10
- * Returns the proof auto accept config based on priority:
11
- * - The record config takes first priority
12
- * - Otherwise the agent config
13
- * - Otherwise {@link AutoAcceptProof.Never} is returned
14
- */
15
- export declare function composeProofAutoAccept(recordConfig?: AutoAcceptProof, agentConfig?: AutoAcceptProof): AutoAcceptProof;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.composeCredentialAutoAccept = composeCredentialAutoAccept;
4
- exports.composeProofAutoAccept = composeProofAutoAccept;
5
- const core_1 = require("@credo-ts/core");
6
- /**
7
- * Returns the credential auto accept config based on priority:
8
- * - The record config takes first priority
9
- * - Otherwise the agent config
10
- * - Otherwise {@link AutoAcceptCredential.Never} is returned
11
- */
12
- function composeCredentialAutoAccept(recordConfig, agentConfig) {
13
- var _a;
14
- return (_a = recordConfig !== null && recordConfig !== void 0 ? recordConfig : agentConfig) !== null && _a !== void 0 ? _a : core_1.AutoAcceptCredential.Never;
15
- }
16
- /**
17
- * Returns the proof auto accept config based on priority:
18
- * - The record config takes first priority
19
- * - Otherwise the agent config
20
- * - Otherwise {@link AutoAcceptProof.Never} is returned
21
- */
22
- function composeProofAutoAccept(recordConfig, agentConfig) {
23
- var _a;
24
- return (_a = recordConfig !== null && recordConfig !== void 0 ? recordConfig : agentConfig) !== null && _a !== void 0 ? _a : core_1.AutoAcceptProof.Never;
25
- }
26
- //# sourceMappingURL=composeAutoAccept.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"composeAutoAccept.js","sourceRoot":"","sources":["../../src/utils/composeAutoAccept.ts"],"names":[],"mappings":";;AAQA,kEAEC;AAQD,wDAEC;AApBD,yCAAsE;AAEtE;;;;;GAKG;AACH,SAAgB,2BAA2B,CAAC,YAAmC,EAAE,WAAkC;;IACjH,OAAO,MAAA,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,WAAW,mCAAI,2BAAoB,CAAC,KAAK,CAAA;AAClE,CAAC;AAED;;;;;GAKG;AACH,SAAgB,sBAAsB,CAAC,YAA8B,EAAE,WAA6B;;IAClG,OAAO,MAAA,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,WAAW,mCAAI,sBAAe,CAAC,KAAK,CAAA;AAC7D,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { AnonCredsPresentationPreviewAttribute, AnonCredsPresentationPreviewPredicate } from '../formats/AnonCredsProofFormat';
2
- import type { AnonCredsNonRevokedInterval, AnonCredsProofRequest } from '../models';
3
- export declare function createRequestFromPreview({ name, version, nonce, attributes, predicates, nonRevokedInterval, }: {
4
- name: string;
5
- version: string;
6
- nonce: string;
7
- attributes: AnonCredsPresentationPreviewAttribute[];
8
- predicates: AnonCredsPresentationPreviewPredicate[];
9
- nonRevokedInterval?: AnonCredsNonRevokedInterval;
10
- }): AnonCredsProofRequest;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createRequestFromPreview = createRequestFromPreview;
4
- const core_1 = require("@credo-ts/core");
5
- function createRequestFromPreview({ name, version, nonce, attributes, predicates, nonRevokedInterval, }) {
6
- var _a;
7
- const proofRequest = {
8
- name,
9
- version,
10
- nonce,
11
- requested_attributes: {},
12
- requested_predicates: {},
13
- };
14
- /**
15
- * Create mapping of attributes by referent. This required the
16
- * attributes to come from the same credential.
17
- * @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0037-present-proof/README.md#referent
18
- *
19
- * {
20
- * "referent1": [Attribute1, Attribute2],
21
- * "referent2": [Attribute3]
22
- * }
23
- */
24
- const attributesByReferent = {};
25
- for (const proposedAttributes of attributes !== null && attributes !== void 0 ? attributes : []) {
26
- const referent = (_a = proposedAttributes.referent) !== null && _a !== void 0 ? _a : core_1.utils.uuid();
27
- const referentAttributes = attributesByReferent[referent];
28
- // Referent key already exist, add to list
29
- if (referentAttributes) {
30
- referentAttributes.push(proposedAttributes);
31
- }
32
- // Referent key does not exist yet, create new entry
33
- else {
34
- attributesByReferent[referent] = [proposedAttributes];
35
- }
36
- }
37
- // Transform attributes by referent to requested attributes
38
- for (const [referent, proposedAttributes] of Object.entries(attributesByReferent)) {
39
- // Either attributeName or attributeNames will be undefined
40
- const attributeName = proposedAttributes.length == 1 ? proposedAttributes[0].name : undefined;
41
- const attributeNames = proposedAttributes.length > 1 ? proposedAttributes.map((a) => a.name) : undefined;
42
- proofRequest.requested_attributes[referent] = {
43
- name: attributeName,
44
- names: attributeNames,
45
- restrictions: [
46
- {
47
- cred_def_id: proposedAttributes[0].credentialDefinitionId,
48
- },
49
- ],
50
- };
51
- }
52
- // Transform proposed predicates to requested predicates
53
- for (const proposedPredicate of predicates !== null && predicates !== void 0 ? predicates : []) {
54
- proofRequest.requested_predicates[core_1.utils.uuid()] = {
55
- name: proposedPredicate.name,
56
- p_type: proposedPredicate.predicate,
57
- p_value: proposedPredicate.threshold,
58
- restrictions: [
59
- {
60
- cred_def_id: proposedPredicate.credentialDefinitionId,
61
- },
62
- ],
63
- };
64
- }
65
- // TODO: local non_revoked?
66
- if (nonRevokedInterval) {
67
- proofRequest.non_revoked = nonRevokedInterval;
68
- }
69
- return proofRequest;
70
- }
71
- //# sourceMappingURL=createRequestFromPreview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createRequestFromPreview.js","sourceRoot":"","sources":["../../src/utils/createRequestFromPreview.ts"],"names":[],"mappings":";;AAQA,4DAuFC;AAzFD,yCAAsC;AAEtC,SAAg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oBAAoB,CAAC,QAAQ,CAAC,GAAG;YAC5C,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,cAAc;YACrB,YAAY,EAAE;gBACZ;oBACE,WAAW,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,sBAAsB;iBAC1D;aACF;SACF,CAAA;IACH,CAAC;IAED,wDAAwD;IACxD,KAAK,MAAM,iBAAiB,IAAI,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,EAAE,CAAC;QACjD,YAAY,CAAC,oBAAoB,CAAC,YAAK,CAAC,IAAI,EAAE,CAAC,GAAG;YAChD,IAAI,EAAE,iBAAiB,CAAC,IAAI;YAC5B,MAAM,EAAE,iBAAiB,CAAC,SAAS;YACnC,OAAO,EAAE,iBAAiB,CAAC,SAAS;YACpC,YAAY,EAAE;gBACZ;oBACE,WAAW,EAAE,iBAAiB,CAAC,sBAAsB;iBACtD;aACF;SACF,CAAA;IACH,CAAC;IAED,2BAA2B;IAC3B,IAAI,kBAAkB,EAAE,CAAC;QACvB,YAAY,CAAC,WAAW,GAAG,kBAAkB,CAAA;IAC/C,CAAC;IAED,OAAO,YAAY,CAAA;AACrB,CAAC"}
@@ -1,68 +0,0 @@
1
- import type { AnonCredsSchema, AnonCredsCredentialValues } from '../models';
2
- import type { CredentialPreviewAttributeOptions, LinkedAttachment } from '@credo-ts/core';
3
- export type AnonCredsClaimRecord = Record<string, string | number>;
4
- export interface AnonCredsCredentialValue {
5
- raw: string;
6
- encoded: string;
7
- }
8
- /**
9
- * Encode value according to the encoding format described in Aries RFC 0036/0037
10
- *
11
- * @param value
12
- * @returns Encoded version of value
13
- *
14
- * @see https://github.com/hyperledger/aries-cloudagent-python/blob/0000f924a50b6ac5e6342bff90e64864672ee935/aries_cloudagent/messaging/util.py#L106-L136
15
- * @see https://github.com/hyperledger/aries-rfcs/blob/be4ad0a6fb2823bb1fc109364c96f077d5d8dffa/features/0037-present-proof/README.md#verifying-claims-of-indy-based-verifiable-credentials
16
- * @see https://github.com/hyperledger/aries-rfcs/blob/be4ad0a6fb2823bb1fc109364c96f077d5d8dffa/features/0036-issue-credential/README.md#encoding-claims-for-indy-based-verifiable-credentials
17
- */
18
- export declare function encodeCredentialValue(value: unknown): string;
19
- export declare const mapAttributeRawValuesToAnonCredsCredentialValues: (record: AnonCredsClaimRecord) => Record<string, AnonCredsCredentialValue>;
20
- /**
21
- * Converts int value to string
22
- * Converts string value:
23
- * - hash with sha256,
24
- * - convert to byte array and reverse it
25
- * - convert it to BigInteger and return as a string
26
- * @param attributes
27
- *
28
- * @returns CredValues
29
- */
30
- export declare function convertAttributesToCredentialValues(attributes: CredentialPreviewAttributeOptions[]): AnonCredsCredentialValues;
31
- /**
32
- * Check whether the values of two credentials match (using {@link assertCredentialValuesMatch})
33
- *
34
- * @returns a boolean whether the values are equal
35
- *
36
- */
37
- export declare function checkCredentialValuesMatch(firstValues: AnonCredsCredentialValues, secondValues: AnonCredsCredentialValues): boolean;
38
- /**
39
- * Assert two credential values objects match.
40
- *
41
- * @param firstValues The first values object
42
- * @param secondValues The second values object
43
- *
44
- * @throws If not all values match
45
- */
46
- export declare function assertCredentialValuesMatch(firstValues: AnonCredsCredentialValues, secondValues: AnonCredsCredentialValues): void;
47
- /**
48
- * Check whether the raw value matches the encoded version according to the encoding format described in Aries RFC 0037
49
- * Use this method to ensure the received proof (over the encoded) value is the same as the raw value of the data.
50
- *
51
- * @param raw
52
- * @param encoded
53
- * @returns Whether raw and encoded value match
54
- *
55
- * @see https://github.com/hyperledger/aries-framework-dotnet/blob/a18bef91e5b9e4a1892818df7408e2383c642dfa/src/Hyperledger.Aries/Utils/CredentialUtils.cs#L78-L89
56
- * @see https://github.com/hyperledger/aries-rfcs/blob/be4ad0a6fb2823bb1fc109364c96f077d5d8dffa/features/0037-present-proof/README.md#verifying-claims-of-indy-based-verifiable-credentials
57
- */
58
- export declare function checkValidCredentialValueEncoding(raw: unknown, encoded: string): boolean;
59
- export declare function assertAttributesMatch(schema: AnonCredsSchema, attributes: CredentialPreviewAttributeOptions[]): void;
60
- /**
61
- * Adds attribute(s) to the credential preview that is linked to the given attachment(s)
62
- *
63
- * @param attachments a list of the attachments that need to be linked to a credential
64
- * @param preview the credential previews where the new linked credential has to be appended to
65
- *
66
- * @returns a modified version of the credential preview with the linked credentials
67
- * */
68
- export declare function createAndLinkAttachmentsToPreview(attachments: LinkedAttachment[], previewAttributes: CredentialPreviewAttributeOptions[]): CredentialPreviewAttributeOptions[];
@@ -1,188 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.mapAttributeRawValuesToAnonCredsCredentialValues = void 0;
7
- exports.encodeCredentialValue = encodeCredentialValue;
8
- exports.convertAttributesToCredentialValues = convertAttributesToCredentialValues;
9
- exports.checkCredentialValuesMatch = checkCredentialValuesMatch;
10
- exports.assertCredentialValuesMatch = assertCredentialValuesMatch;
11
- exports.checkValidCredentialValueEncoding = checkValidCredentialValueEncoding;
12
- exports.assertAttributesMatch = assertAttributesMatch;
13
- exports.createAndLinkAttachmentsToPreview = createAndLinkAttachmentsToPreview;
14
- const core_1 = require("@credo-ts/core");
15
- const big_integer_1 = __importDefault(require("big-integer"));
16
- const isString = (value) => typeof value === 'string';
17
- const isNumber = (value) => typeof value === 'number';
18
- const isBoolean = (value) => typeof value === 'boolean';
19
- const isNumeric = (value) => /^-?\d+$/.test(value);
20
- const isInt32 = (number) => {
21
- const minI32 = -2147483648;
22
- const maxI32 = 2147483647;
23
- // Check if number is integer and in range of int32
24
- return Number.isInteger(number) && number >= minI32 && number <= maxI32;
25
- };
26
- // TODO: this function can only encode strings
27
- // If encoding numbers we run into problems with 0.0 representing the same value as 0 and is implicitly converted to 0
28
- /**
29
- * Encode value according to the encoding format described in Aries RFC 0036/0037
30
- *
31
- * @param value
32
- * @returns Encoded version of value
33
- *
34
- * @see https://github.com/hyperledger/aries-cloudagent-python/blob/0000f924a50b6ac5e6342bff90e64864672ee935/aries_cloudagent/messaging/util.py#L106-L136
35
- * @see https://github.com/hyperledger/aries-rfcs/blob/be4ad0a6fb2823bb1fc109364c96f077d5d8dffa/features/0037-present-proof/README.md#verifying-claims-of-indy-based-verifiable-credentials
36
- * @see https://github.com/hyperledger/aries-rfcs/blob/be4ad0a6fb2823bb1fc109364c96f077d5d8dffa/features/0036-issue-credential/README.md#encoding-claims-for-indy-based-verifiable-credentials
37
- */
38
- function encodeCredentialValue(value) {
39
- const isEmpty = (value) => isString(value) && value === '';
40
- // If bool return bool as number string
41
- if (isBoolean(value)) {
42
- return Number(value).toString();
43
- }
44
- // If value is int32 return as number string
45
- if (isNumber(value) && isInt32(value)) {
46
- return value.toString();
47
- }
48
- // If value is an int32 number string return as number string
49
- if (isString(value) && !isEmpty(value) && !isNaN(Number(value)) && isNumeric(value) && isInt32(Number(value))) {
50
- return Number(value).toString();
51
- }
52
- if (isNumber(value)) {
53
- value = value.toString();
54
- }
55
- // If value is null we must use the string value 'None'
56
- if (value === null || value === undefined) {
57
- value = 'None';
58
- }
59
- const buffer = core_1.TypedArrayEncoder.fromString(String(value));
60
- const hash = core_1.Hasher.hash(buffer, 'sha-256');
61
- const hex = core_1.Buffer.from(hash).toString('hex');
62
- return (0, big_integer_1.default)(hex, 16).toString();
63
- }
64
- const mapAttributeRawValuesToAnonCredsCredentialValues = (record) => {
65
- const credentialValues = {};
66
- for (const [key, value] of Object.entries(record)) {
67
- if (typeof value === 'object') {
68
- throw new core_1.CredoError(`Unsupported value type: object for W3cAnonCreds Credential`);
69
- }
70
- credentialValues[key] = {
71
- raw: value.toString(),
72
- encoded: encodeCredentialValue(value),
73
- };
74
- }
75
- return credentialValues;
76
- };
77
- exports.mapAttributeRawValuesToAnonCredsCredentialValues = mapAttributeRawValuesToAnonCredsCredentialValues;
78
- /**
79
- * Converts int value to string
80
- * Converts string value:
81
- * - hash with sha256,
82
- * - convert to byte array and reverse it
83
- * - convert it to BigInteger and return as a string
84
- * @param attributes
85
- *
86
- * @returns CredValues
87
- */
88
- function convertAttributesToCredentialValues(attributes) {
89
- return attributes.reduce((credentialValues, attribute) => {
90
- return Object.assign({ [attribute.name]: {
91
- raw: attribute.value,
92
- encoded: encodeCredentialValue(attribute.value),
93
- } }, credentialValues);
94
- }, {});
95
- }
96
- /**
97
- * Check whether the values of two credentials match (using {@link assertCredentialValuesMatch})
98
- *
99
- * @returns a boolean whether the values are equal
100
- *
101
- */
102
- function checkCredentialValuesMatch(firstValues, secondValues) {
103
- try {
104
- assertCredentialValuesMatch(firstValues, secondValues);
105
- return true;
106
- }
107
- catch (_a) {
108
- return false;
109
- }
110
- }
111
- /**
112
- * Assert two credential values objects match.
113
- *
114
- * @param firstValues The first values object
115
- * @param secondValues The second values object
116
- *
117
- * @throws If not all values match
118
- */
119
- function assertCredentialValuesMatch(firstValues, secondValues) {
120
- const firstValuesKeys = Object.keys(firstValues);
121
- const secondValuesKeys = Object.keys(secondValues);
122
- if (firstValuesKeys.length !== secondValuesKeys.length) {
123
- throw new Error(`Number of values in first entry (${firstValuesKeys.length}) does not match number of values in second entry (${secondValuesKeys.length})`);
124
- }
125
- for (const key of firstValuesKeys) {
126
- const firstValue = firstValues[key];
127
- const secondValue = secondValues[key];
128
- if (!secondValue) {
129
- throw new Error(`Second cred values object has no value for key '${key}'`);
130
- }
131
- if (firstValue.encoded !== secondValue.encoded) {
132
- throw new Error(`Encoded credential values for key '${key}' do not match`);
133
- }
134
- if (firstValue.raw !== secondValue.raw) {
135
- throw new Error(`Raw credential values for key '${key}' do not match`);
136
- }
137
- }
138
- }
139
- /**
140
- * Check whether the raw value matches the encoded version according to the encoding format described in Aries RFC 0037
141
- * Use this method to ensure the received proof (over the encoded) value is the same as the raw value of the data.
142
- *
143
- * @param raw
144
- * @param encoded
145
- * @returns Whether raw and encoded value match
146
- *
147
- * @see https://github.com/hyperledger/aries-framework-dotnet/blob/a18bef91e5b9e4a1892818df7408e2383c642dfa/src/Hyperledger.Aries/Utils/CredentialUtils.cs#L78-L89
148
- * @see https://github.com/hyperledger/aries-rfcs/blob/be4ad0a6fb2823bb1fc109364c96f077d5d8dffa/features/0037-present-proof/README.md#verifying-claims-of-indy-based-verifiable-credentials
149
- */
150
- function checkValidCredentialValueEncoding(raw, encoded) {
151
- return encoded === encodeCredentialValue(raw);
152
- }
153
- function assertAttributesMatch(schema, attributes) {
154
- const schemaAttributes = schema.attrNames;
155
- const credAttributes = attributes.map((a) => a.name);
156
- const difference = credAttributes
157
- .filter((x) => !schemaAttributes.includes(x))
158
- .concat(schemaAttributes.filter((x) => !credAttributes.includes(x)));
159
- if (difference.length > 0) {
160
- throw new core_1.CredoError(`The credential preview attributes do not match the schema attributes (difference is: ${difference}, needs: ${schemaAttributes})`);
161
- }
162
- }
163
- /**
164
- * Adds attribute(s) to the credential preview that is linked to the given attachment(s)
165
- *
166
- * @param attachments a list of the attachments that need to be linked to a credential
167
- * @param preview the credential previews where the new linked credential has to be appended to
168
- *
169
- * @returns a modified version of the credential preview with the linked credentials
170
- * */
171
- function createAndLinkAttachmentsToPreview(attachments, previewAttributes) {
172
- const credentialPreviewAttributeNames = previewAttributes.map((attribute) => attribute.name);
173
- const newPreviewAttributes = [...previewAttributes];
174
- attachments.forEach((linkedAttachment) => {
175
- if (credentialPreviewAttributeNames.includes(linkedAttachment.attributeName)) {
176
- throw new core_1.CredoError(`linkedAttachment ${linkedAttachment.attributeName} already exists in the preview`);
177
- }
178
- else {
179
- newPreviewAttributes.push({
180
- name: linkedAttachment.attributeName,
181
- mimeType: linkedAttachment.attachment.mimeType,
182
- value: (0, core_1.encodeAttachment)(linkedAttachment.attachment),
183
- });
184
- }
185
- });
186
- return newPreviewAttributes;
187
- }
188
- //# sourceMappingURL=credential.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credential.js","sourceRoot":"","sources":["../../src/utils/credential.ts"],"names":[],"mappings":";;;;;;AAsCA,sDAgCC;AA8BD,kFAYC;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;AAED;;;;;;;KAOK;AACL,SAAgB,iCAAiC,CAC/C,WAA+B,EAC/B,iBAAsD;IAEtD,MAAM,+BAA+B,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IAC5F,MAAM,oBAAoB,GAAG,CAAC,GAAG,iBAAiB,CAAC,CAAA;IAEnD,WAAW,CAAC,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE;QACvC,IAAI,+BAA+B,CAAC,QAAQ,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,CAAC;YAC7E,MAAM,IAAI,iBAAU,CAAC,oBAAoB,gBAAgB,CAAC,aAAa,gCAAgC,CAAC,CAAA;QAC1G,CAAC;aAAM,CAAC;YACN,oBAAoB,CAAC,IAAI,CAAC;gBACxB,IAAI,EAAE,gBAAgB,CAAC,aAAa;gBACpC,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,QAAQ;gBAC9C,KAAK,EAAE,IAAA,uBAAgB,EAAC,gBAAgB,CAAC,UAAU,CAAC;aACrD,CAAC,CAAA;QACJ,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,oBAAoB,CAAA;AAC7B,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { CredentialPreviewAttributeOptions } from '@credo-ts/core';
2
- export declare function areCredentialPreviewAttributesEqual(firstAttributes: CredentialPreviewAttributeOptions[], secondAttributes: CredentialPreviewAttributeOptions[]): boolean;