@ledgerhq/device-trusted-app-kit-ledger-keyring-protocol 0.0.0-develop-20250808001323

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 (510) hide show
  1. package/LICENSE.MD +202 -0
  2. package/README.md +32 -0
  3. package/lib/cjs/api/LedgerKeyringProtocol.js +2 -0
  4. package/lib/cjs/api/LedgerKeyringProtocol.js.map +7 -0
  5. package/lib/cjs/api/LedgerKeyringProtocolBuilder.js +2 -0
  6. package/lib/cjs/api/LedgerKeyringProtocolBuilder.js.map +7 -0
  7. package/lib/cjs/api/app-binder/AddToTrustchainDeviceActionTypes.js +2 -0
  8. package/lib/cjs/api/app-binder/AddToTrustchainDeviceActionTypes.js.map +7 -0
  9. package/lib/cjs/api/app-binder/AuthenticateDeviceActionTypes.js +2 -0
  10. package/lib/cjs/api/app-binder/AuthenticateDeviceActionTypes.js.map +7 -0
  11. package/lib/cjs/api/app-binder/Errors.js +2 -0
  12. package/lib/cjs/api/app-binder/Errors.js.map +7 -0
  13. package/lib/cjs/api/app-binder/GetAppNameCommandTypes.js +2 -0
  14. package/lib/cjs/api/app-binder/GetAppNameCommandTypes.js.map +7 -0
  15. package/lib/cjs/api/app-binder/GetSeedIdCommandTypes.js +2 -0
  16. package/lib/cjs/api/app-binder/GetSeedIdCommandTypes.js.map +7 -0
  17. package/lib/cjs/api/app-binder/GetVersionCommandTypes.js +2 -0
  18. package/lib/cjs/api/app-binder/GetVersionCommandTypes.js.map +7 -0
  19. package/lib/cjs/api/app-binder/GetVersionDeviceActionTypes.js +2 -0
  20. package/lib/cjs/api/app-binder/GetVersionDeviceActionTypes.js.map +7 -0
  21. package/lib/cjs/api/app-binder/InitCommandTypes.js +2 -0
  22. package/lib/cjs/api/app-binder/InitCommandTypes.js.map +7 -0
  23. package/lib/cjs/api/app-binder/KeypairFromBytes.js +2 -0
  24. package/lib/cjs/api/app-binder/KeypairFromBytes.js.map +7 -0
  25. package/lib/cjs/api/app-binder/LKRPTypes.js +2 -0
  26. package/lib/cjs/api/app-binder/LKRPTypes.js.map +7 -0
  27. package/lib/cjs/api/app-binder/ParseStreamBlockCommandCommandTypes.js +2 -0
  28. package/lib/cjs/api/app-binder/ParseStreamBlockCommandCommandTypes.js.map +7 -0
  29. package/lib/cjs/api/app-binder/ParseStreamBlockHeaderCommandTypes.js +2 -0
  30. package/lib/cjs/api/app-binder/ParseStreamBlockHeaderCommandTypes.js.map +7 -0
  31. package/lib/cjs/api/app-binder/ParseStreamBlockSignatureTypes.js +2 -0
  32. package/lib/cjs/api/app-binder/ParseStreamBlockSignatureTypes.js.map +7 -0
  33. package/lib/cjs/api/app-binder/SetTrustedMemberTypes.js +2 -0
  34. package/lib/cjs/api/app-binder/SetTrustedMemberTypes.js.map +7 -0
  35. package/lib/cjs/api/app-binder/SignBlockCommandTypes.js +2 -0
  36. package/lib/cjs/api/app-binder/SignBlockCommandTypes.js.map +7 -0
  37. package/lib/cjs/api/app-binder/SignBlockHeaderCommandTypes.js +2 -0
  38. package/lib/cjs/api/app-binder/SignBlockHeaderCommandTypes.js.map +7 -0
  39. package/lib/cjs/api/app-binder/SignBlockSignatureCommandTypes.js +2 -0
  40. package/lib/cjs/api/app-binder/SignBlockSignatureCommandTypes.js.map +7 -0
  41. package/lib/cjs/api/app-binder/SignBlockSingleCommandTypes.js +2 -0
  42. package/lib/cjs/api/app-binder/SignBlockSingleCommandTypes.js.map +7 -0
  43. package/lib/cjs/api/index.js +2 -0
  44. package/lib/cjs/api/index.js.map +7 -0
  45. package/lib/cjs/index.js +2 -0
  46. package/lib/cjs/index.js.map +7 -0
  47. package/lib/cjs/internal/DefaultLedgerKeyringProtocol.js +2 -0
  48. package/lib/cjs/internal/DefaultLedgerKeyringProtocol.js.map +7 -0
  49. package/lib/cjs/internal/app-binder/LedgerKeyringProtocolBinder.js +2 -0
  50. package/lib/cjs/internal/app-binder/LedgerKeyringProtocolBinder.js.map +7 -0
  51. package/lib/cjs/internal/app-binder/command/GetAppNameCommand.js +2 -0
  52. package/lib/cjs/internal/app-binder/command/GetAppNameCommand.js.map +7 -0
  53. package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.js +2 -0
  54. package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.js.map +7 -0
  55. package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.test.js +27 -0
  56. package/lib/cjs/internal/app-binder/command/GetSeedIdCommand.test.js.map +7 -0
  57. package/lib/cjs/internal/app-binder/command/GetVersionCommand.js +2 -0
  58. package/lib/cjs/internal/app-binder/command/GetVersionCommand.js.map +7 -0
  59. package/lib/cjs/internal/app-binder/command/InitCommand.js +2 -0
  60. package/lib/cjs/internal/app-binder/command/InitCommand.js.map +7 -0
  61. package/lib/cjs/internal/app-binder/command/InitCommand.test.js +2 -0
  62. package/lib/cjs/internal/app-binder/command/InitCommand.test.js.map +7 -0
  63. package/lib/cjs/internal/app-binder/command/ParseBlockSignatureCommand.js +2 -0
  64. package/lib/cjs/internal/app-binder/command/ParseBlockSignatureCommand.js.map +7 -0
  65. package/lib/cjs/internal/app-binder/command/ParseBlockSignatureCommand.test.js +2 -0
  66. package/lib/cjs/internal/app-binder/command/ParseBlockSignatureCommand.test.js.map +7 -0
  67. package/lib/cjs/internal/app-binder/command/ParseStreamBlockCommand.js +2 -0
  68. package/lib/cjs/internal/app-binder/command/ParseStreamBlockCommand.js.map +7 -0
  69. package/lib/cjs/internal/app-binder/command/ParseStreamBlockCommand.test.js +2 -0
  70. package/lib/cjs/internal/app-binder/command/ParseStreamBlockCommand.test.js.map +7 -0
  71. package/lib/cjs/internal/app-binder/command/ParseStreamBlockHeader.js +2 -0
  72. package/lib/cjs/internal/app-binder/command/ParseStreamBlockHeader.js.map +7 -0
  73. package/lib/cjs/internal/app-binder/command/ParseStreamBlockHeader.test.js +2 -0
  74. package/lib/cjs/internal/app-binder/command/ParseStreamBlockHeader.test.js.map +7 -0
  75. package/lib/cjs/internal/app-binder/command/SetTrustedMemberCommand.js +2 -0
  76. package/lib/cjs/internal/app-binder/command/SetTrustedMemberCommand.js.map +7 -0
  77. package/lib/cjs/internal/app-binder/command/SetTrustedMemberCommand.test.js +2 -0
  78. package/lib/cjs/internal/app-binder/command/SetTrustedMemberCommand.test.js.map +7 -0
  79. package/lib/cjs/internal/app-binder/command/SignBlockHeader.js +2 -0
  80. package/lib/cjs/internal/app-binder/command/SignBlockHeader.js.map +7 -0
  81. package/lib/cjs/internal/app-binder/command/SignBlockHeader.test.js +2 -0
  82. package/lib/cjs/internal/app-binder/command/SignBlockHeader.test.js.map +7 -0
  83. package/lib/cjs/internal/app-binder/command/SignBlockSignatureCommand.js +2 -0
  84. package/lib/cjs/internal/app-binder/command/SignBlockSignatureCommand.js.map +7 -0
  85. package/lib/cjs/internal/app-binder/command/SignBlockSignatureCommand.test.js +2 -0
  86. package/lib/cjs/internal/app-binder/command/SignBlockSignatureCommand.test.js.map +7 -0
  87. package/lib/cjs/internal/app-binder/command/SignBlockSingleCommand.js +2 -0
  88. package/lib/cjs/internal/app-binder/command/SignBlockSingleCommand.js.map +7 -0
  89. package/lib/cjs/internal/app-binder/command/SignBlockSingleCommand.test.js +2 -0
  90. package/lib/cjs/internal/app-binder/command/SignBlockSingleCommand.test.js.map +7 -0
  91. package/lib/cjs/internal/app-binder/command/utils/extractTrustedProperty.js +2 -0
  92. package/lib/cjs/internal/app-binder/command/utils/extractTrustedProperty.js.map +7 -0
  93. package/lib/cjs/internal/app-binder/command/utils/ledgerKeyringProtocolErrors.js +2 -0
  94. package/lib/cjs/internal/app-binder/command/utils/ledgerKeyringProtocolErrors.js.map +7 -0
  95. package/lib/cjs/internal/app-binder/device-action/AddToTrustchainDeviceAction.js +2 -0
  96. package/lib/cjs/internal/app-binder/device-action/AddToTrustchainDeviceAction.js.map +7 -0
  97. package/lib/cjs/internal/app-binder/device-action/AuthenticateDeviceAction.js +2 -0
  98. package/lib/cjs/internal/app-binder/device-action/AuthenticateDeviceAction.js.map +7 -0
  99. package/lib/cjs/internal/app-binder/device-action/utils/raiseAndAssign.js +2 -0
  100. package/lib/cjs/internal/app-binder/device-action/utils/raiseAndAssign.js.map +7 -0
  101. package/lib/cjs/internal/app-binder/di/appBinderModule.js +2 -0
  102. package/lib/cjs/internal/app-binder/di/appBinderModule.js.map +7 -0
  103. package/lib/cjs/internal/app-binder/di/appBinderTypes.js +2 -0
  104. package/lib/cjs/internal/app-binder/di/appBinderTypes.js.map +7 -0
  105. package/lib/cjs/internal/app-binder/task/InitTask.js +2 -0
  106. package/lib/cjs/internal/app-binder/task/InitTask.js.map +7 -0
  107. package/lib/cjs/internal/app-binder/task/ParseStreamToDeviceTask.js +2 -0
  108. package/lib/cjs/internal/app-binder/task/ParseStreamToDeviceTask.js.map +7 -0
  109. package/lib/cjs/internal/app-binder/task/SignBlockTask.js +2 -0
  110. package/lib/cjs/internal/app-binder/task/SignBlockTask.js.map +7 -0
  111. package/lib/cjs/internal/app-binder/task/SignChallengeWithDeviceTask.js +2 -0
  112. package/lib/cjs/internal/app-binder/task/SignChallengeWithDeviceTask.js.map +7 -0
  113. package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.js +2 -0
  114. package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.js.map +7 -0
  115. package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.test.js +2 -0
  116. package/lib/cjs/internal/app-binder/task/SignChallengeWithKeypairTask.test.js.map +7 -0
  117. package/lib/cjs/internal/app-binder/task/utils/TrustedProperties.js +2 -0
  118. package/lib/cjs/internal/app-binder/task/utils/TrustedProperties.js.map +7 -0
  119. package/lib/cjs/internal/di.js +2 -0
  120. package/lib/cjs/internal/di.js.map +7 -0
  121. package/lib/cjs/internal/externalTypes.js +2 -0
  122. package/lib/cjs/internal/externalTypes.js.map +7 -0
  123. package/lib/cjs/internal/lkrp-datasource/data/HttpLKRPDataSource.js +2 -0
  124. package/lib/cjs/internal/lkrp-datasource/data/HttpLKRPDataSource.js.map +7 -0
  125. package/lib/cjs/internal/lkrp-datasource/data/HttpLKRPDataSource.test.js +2 -0
  126. package/lib/cjs/internal/lkrp-datasource/data/HttpLKRPDataSource.test.js.map +7 -0
  127. package/lib/cjs/internal/lkrp-datasource/data/LKRPDataSource.js +2 -0
  128. package/lib/cjs/internal/lkrp-datasource/data/LKRPDataSource.js.map +7 -0
  129. package/lib/cjs/internal/lkrp-datasource/di/lkrpDatasourceModuleFactory.js +2 -0
  130. package/lib/cjs/internal/lkrp-datasource/di/lkrpDatasourceModuleFactory.js.map +7 -0
  131. package/lib/cjs/internal/lkrp-datasource/di/lkrpDatasourceTypes.js +2 -0
  132. package/lib/cjs/internal/lkrp-datasource/di/lkrpDatasourceTypes.js.map +7 -0
  133. package/lib/cjs/internal/use-cases/authentication/AuthenticateUseCase.js +2 -0
  134. package/lib/cjs/internal/use-cases/authentication/AuthenticateUseCase.js.map +7 -0
  135. package/lib/cjs/internal/use-cases/di/useCasesModule.js +2 -0
  136. package/lib/cjs/internal/use-cases/di/useCasesModule.js.map +7 -0
  137. package/lib/cjs/internal/use-cases/di/useCasesTypes.js +2 -0
  138. package/lib/cjs/internal/use-cases/di/useCasesTypes.js.map +7 -0
  139. package/lib/cjs/internal/utils/LKRPBlock.js +5 -0
  140. package/lib/cjs/internal/utils/LKRPBlock.js.map +7 -0
  141. package/lib/cjs/internal/utils/LKRPBlock.test.js +24 -0
  142. package/lib/cjs/internal/utils/LKRPBlock.test.js.map +7 -0
  143. package/lib/cjs/internal/utils/LKRPBlockStream.js +4 -0
  144. package/lib/cjs/internal/utils/LKRPBlockStream.js.map +7 -0
  145. package/lib/cjs/internal/utils/LKRPBlockStream.test.js +39 -0
  146. package/lib/cjs/internal/utils/LKRPBlockStream.test.js.map +7 -0
  147. package/lib/cjs/internal/utils/LKRPCommand.js +3 -0
  148. package/lib/cjs/internal/utils/LKRPCommand.js.map +7 -0
  149. package/lib/cjs/internal/utils/LKRPCommand.test.js +3 -0
  150. package/lib/cjs/internal/utils/LKRPCommand.test.js.map +7 -0
  151. package/lib/cjs/internal/utils/TLVBuilder.js +2 -0
  152. package/lib/cjs/internal/utils/TLVBuilder.js.map +7 -0
  153. package/lib/cjs/internal/utils/TLVParser.js +2 -0
  154. package/lib/cjs/internal/utils/TLVParser.js.map +7 -0
  155. package/lib/cjs/internal/utils/TLVParser.test.js +2 -0
  156. package/lib/cjs/internal/utils/TLVParser.test.js.map +7 -0
  157. package/lib/cjs/internal/utils/TLVTags.js +2 -0
  158. package/lib/cjs/internal/utils/TLVTags.js.map +7 -0
  159. package/lib/cjs/internal/utils/crypto.js +2 -0
  160. package/lib/cjs/internal/utils/crypto.js.map +7 -0
  161. package/lib/cjs/internal/utils/derivationPath.js +2 -0
  162. package/lib/cjs/internal/utils/derivationPath.js.map +7 -0
  163. package/lib/cjs/internal/utils/eitherSeqRecord.js +2 -0
  164. package/lib/cjs/internal/utils/eitherSeqRecord.js.map +7 -0
  165. package/lib/cjs/internal/utils/hex.js +2 -0
  166. package/lib/cjs/internal/utils/hex.js.map +7 -0
  167. package/lib/cjs/internal/utils/required.js +2 -0
  168. package/lib/cjs/internal/utils/required.js.map +7 -0
  169. package/lib/cjs/internal/utils/types.js +2 -0
  170. package/lib/cjs/internal/utils/types.js.map +7 -0
  171. package/lib/cjs/package.json +55 -0
  172. package/lib/esm/api/LedgerKeyringProtocol.js +1 -0
  173. package/lib/esm/api/LedgerKeyringProtocol.js.map +7 -0
  174. package/lib/esm/api/LedgerKeyringProtocolBuilder.js +2 -0
  175. package/lib/esm/api/LedgerKeyringProtocolBuilder.js.map +7 -0
  176. package/lib/esm/api/app-binder/AddToTrustchainDeviceActionTypes.js +1 -0
  177. package/lib/esm/api/app-binder/AddToTrustchainDeviceActionTypes.js.map +7 -0
  178. package/lib/esm/api/app-binder/AuthenticateDeviceActionTypes.js +1 -0
  179. package/lib/esm/api/app-binder/AuthenticateDeviceActionTypes.js.map +7 -0
  180. package/lib/esm/api/app-binder/Errors.js +2 -0
  181. package/lib/esm/api/app-binder/Errors.js.map +7 -0
  182. package/lib/esm/api/app-binder/GetAppNameCommandTypes.js +1 -0
  183. package/lib/esm/api/app-binder/GetAppNameCommandTypes.js.map +7 -0
  184. package/lib/esm/api/app-binder/GetSeedIdCommandTypes.js +1 -0
  185. package/lib/esm/api/app-binder/GetSeedIdCommandTypes.js.map +7 -0
  186. package/lib/esm/api/app-binder/GetVersionCommandTypes.js +1 -0
  187. package/lib/esm/api/app-binder/GetVersionCommandTypes.js.map +7 -0
  188. package/lib/esm/api/app-binder/GetVersionDeviceActionTypes.js +1 -0
  189. package/lib/esm/api/app-binder/GetVersionDeviceActionTypes.js.map +7 -0
  190. package/lib/esm/api/app-binder/InitCommandTypes.js +1 -0
  191. package/lib/esm/api/app-binder/InitCommandTypes.js.map +7 -0
  192. package/lib/esm/api/app-binder/KeypairFromBytes.js +2 -0
  193. package/lib/esm/api/app-binder/KeypairFromBytes.js.map +7 -0
  194. package/lib/esm/api/app-binder/LKRPTypes.js +2 -0
  195. package/lib/esm/api/app-binder/LKRPTypes.js.map +7 -0
  196. package/lib/esm/api/app-binder/ParseStreamBlockCommandCommandTypes.js +1 -0
  197. package/lib/esm/api/app-binder/ParseStreamBlockCommandCommandTypes.js.map +7 -0
  198. package/lib/esm/api/app-binder/ParseStreamBlockHeaderCommandTypes.js +1 -0
  199. package/lib/esm/api/app-binder/ParseStreamBlockHeaderCommandTypes.js.map +7 -0
  200. package/lib/esm/api/app-binder/ParseStreamBlockSignatureTypes.js +1 -0
  201. package/lib/esm/api/app-binder/ParseStreamBlockSignatureTypes.js.map +7 -0
  202. package/lib/esm/api/app-binder/SetTrustedMemberTypes.js +1 -0
  203. package/lib/esm/api/app-binder/SetTrustedMemberTypes.js.map +7 -0
  204. package/lib/esm/api/app-binder/SignBlockCommandTypes.js +1 -0
  205. package/lib/esm/api/app-binder/SignBlockCommandTypes.js.map +7 -0
  206. package/lib/esm/api/app-binder/SignBlockHeaderCommandTypes.js +1 -0
  207. package/lib/esm/api/app-binder/SignBlockHeaderCommandTypes.js.map +7 -0
  208. package/lib/esm/api/app-binder/SignBlockSignatureCommandTypes.js +1 -0
  209. package/lib/esm/api/app-binder/SignBlockSignatureCommandTypes.js.map +7 -0
  210. package/lib/esm/api/app-binder/SignBlockSingleCommandTypes.js +1 -0
  211. package/lib/esm/api/app-binder/SignBlockSingleCommandTypes.js.map +7 -0
  212. package/lib/esm/api/index.js +2 -0
  213. package/lib/esm/api/index.js.map +7 -0
  214. package/lib/esm/index.js +2 -0
  215. package/lib/esm/index.js.map +7 -0
  216. package/lib/esm/internal/DefaultLedgerKeyringProtocol.js +2 -0
  217. package/lib/esm/internal/DefaultLedgerKeyringProtocol.js.map +7 -0
  218. package/lib/esm/internal/app-binder/LedgerKeyringProtocolBinder.js +2 -0
  219. package/lib/esm/internal/app-binder/LedgerKeyringProtocolBinder.js.map +7 -0
  220. package/lib/esm/internal/app-binder/command/GetAppNameCommand.js +2 -0
  221. package/lib/esm/internal/app-binder/command/GetAppNameCommand.js.map +7 -0
  222. package/lib/esm/internal/app-binder/command/GetSeedIdCommand.js +2 -0
  223. package/lib/esm/internal/app-binder/command/GetSeedIdCommand.js.map +7 -0
  224. package/lib/esm/internal/app-binder/command/GetSeedIdCommand.test.js +27 -0
  225. package/lib/esm/internal/app-binder/command/GetSeedIdCommand.test.js.map +7 -0
  226. package/lib/esm/internal/app-binder/command/GetVersionCommand.js +2 -0
  227. package/lib/esm/internal/app-binder/command/GetVersionCommand.js.map +7 -0
  228. package/lib/esm/internal/app-binder/command/InitCommand.js +2 -0
  229. package/lib/esm/internal/app-binder/command/InitCommand.js.map +7 -0
  230. package/lib/esm/internal/app-binder/command/InitCommand.test.js +2 -0
  231. package/lib/esm/internal/app-binder/command/InitCommand.test.js.map +7 -0
  232. package/lib/esm/internal/app-binder/command/ParseBlockSignatureCommand.js +2 -0
  233. package/lib/esm/internal/app-binder/command/ParseBlockSignatureCommand.js.map +7 -0
  234. package/lib/esm/internal/app-binder/command/ParseBlockSignatureCommand.test.js +2 -0
  235. package/lib/esm/internal/app-binder/command/ParseBlockSignatureCommand.test.js.map +7 -0
  236. package/lib/esm/internal/app-binder/command/ParseStreamBlockCommand.js +2 -0
  237. package/lib/esm/internal/app-binder/command/ParseStreamBlockCommand.js.map +7 -0
  238. package/lib/esm/internal/app-binder/command/ParseStreamBlockCommand.test.js +2 -0
  239. package/lib/esm/internal/app-binder/command/ParseStreamBlockCommand.test.js.map +7 -0
  240. package/lib/esm/internal/app-binder/command/ParseStreamBlockHeader.js +2 -0
  241. package/lib/esm/internal/app-binder/command/ParseStreamBlockHeader.js.map +7 -0
  242. package/lib/esm/internal/app-binder/command/ParseStreamBlockHeader.test.js +2 -0
  243. package/lib/esm/internal/app-binder/command/ParseStreamBlockHeader.test.js.map +7 -0
  244. package/lib/esm/internal/app-binder/command/SetTrustedMemberCommand.js +2 -0
  245. package/lib/esm/internal/app-binder/command/SetTrustedMemberCommand.js.map +7 -0
  246. package/lib/esm/internal/app-binder/command/SetTrustedMemberCommand.test.js +2 -0
  247. package/lib/esm/internal/app-binder/command/SetTrustedMemberCommand.test.js.map +7 -0
  248. package/lib/esm/internal/app-binder/command/SignBlockHeader.js +2 -0
  249. package/lib/esm/internal/app-binder/command/SignBlockHeader.js.map +7 -0
  250. package/lib/esm/internal/app-binder/command/SignBlockHeader.test.js +2 -0
  251. package/lib/esm/internal/app-binder/command/SignBlockHeader.test.js.map +7 -0
  252. package/lib/esm/internal/app-binder/command/SignBlockSignatureCommand.js +2 -0
  253. package/lib/esm/internal/app-binder/command/SignBlockSignatureCommand.js.map +7 -0
  254. package/lib/esm/internal/app-binder/command/SignBlockSignatureCommand.test.js +2 -0
  255. package/lib/esm/internal/app-binder/command/SignBlockSignatureCommand.test.js.map +7 -0
  256. package/lib/esm/internal/app-binder/command/SignBlockSingleCommand.js +2 -0
  257. package/lib/esm/internal/app-binder/command/SignBlockSingleCommand.js.map +7 -0
  258. package/lib/esm/internal/app-binder/command/SignBlockSingleCommand.test.js +2 -0
  259. package/lib/esm/internal/app-binder/command/SignBlockSingleCommand.test.js.map +7 -0
  260. package/lib/esm/internal/app-binder/command/utils/extractTrustedProperty.js +2 -0
  261. package/lib/esm/internal/app-binder/command/utils/extractTrustedProperty.js.map +7 -0
  262. package/lib/esm/internal/app-binder/command/utils/ledgerKeyringProtocolErrors.js +2 -0
  263. package/lib/esm/internal/app-binder/command/utils/ledgerKeyringProtocolErrors.js.map +7 -0
  264. package/lib/esm/internal/app-binder/device-action/AddToTrustchainDeviceAction.js +2 -0
  265. package/lib/esm/internal/app-binder/device-action/AddToTrustchainDeviceAction.js.map +7 -0
  266. package/lib/esm/internal/app-binder/device-action/AuthenticateDeviceAction.js +2 -0
  267. package/lib/esm/internal/app-binder/device-action/AuthenticateDeviceAction.js.map +7 -0
  268. package/lib/esm/internal/app-binder/device-action/utils/raiseAndAssign.js +2 -0
  269. package/lib/esm/internal/app-binder/device-action/utils/raiseAndAssign.js.map +7 -0
  270. package/lib/esm/internal/app-binder/di/appBinderModule.js +2 -0
  271. package/lib/esm/internal/app-binder/di/appBinderModule.js.map +7 -0
  272. package/lib/esm/internal/app-binder/di/appBinderTypes.js +2 -0
  273. package/lib/esm/internal/app-binder/di/appBinderTypes.js.map +7 -0
  274. package/lib/esm/internal/app-binder/task/InitTask.js +2 -0
  275. package/lib/esm/internal/app-binder/task/InitTask.js.map +7 -0
  276. package/lib/esm/internal/app-binder/task/ParseStreamToDeviceTask.js +2 -0
  277. package/lib/esm/internal/app-binder/task/ParseStreamToDeviceTask.js.map +7 -0
  278. package/lib/esm/internal/app-binder/task/SignBlockTask.js +2 -0
  279. package/lib/esm/internal/app-binder/task/SignBlockTask.js.map +7 -0
  280. package/lib/esm/internal/app-binder/task/SignChallengeWithDeviceTask.js +2 -0
  281. package/lib/esm/internal/app-binder/task/SignChallengeWithDeviceTask.js.map +7 -0
  282. package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.js +2 -0
  283. package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.js.map +7 -0
  284. package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.test.js +2 -0
  285. package/lib/esm/internal/app-binder/task/SignChallengeWithKeypairTask.test.js.map +7 -0
  286. package/lib/esm/internal/app-binder/task/utils/TrustedProperties.js +2 -0
  287. package/lib/esm/internal/app-binder/task/utils/TrustedProperties.js.map +7 -0
  288. package/lib/esm/internal/di.js +2 -0
  289. package/lib/esm/internal/di.js.map +7 -0
  290. package/lib/esm/internal/externalTypes.js +2 -0
  291. package/lib/esm/internal/externalTypes.js.map +7 -0
  292. package/lib/esm/internal/lkrp-datasource/data/HttpLKRPDataSource.js +2 -0
  293. package/lib/esm/internal/lkrp-datasource/data/HttpLKRPDataSource.js.map +7 -0
  294. package/lib/esm/internal/lkrp-datasource/data/HttpLKRPDataSource.test.js +2 -0
  295. package/lib/esm/internal/lkrp-datasource/data/HttpLKRPDataSource.test.js.map +7 -0
  296. package/lib/esm/internal/lkrp-datasource/data/LKRPDataSource.js +1 -0
  297. package/lib/esm/internal/lkrp-datasource/data/LKRPDataSource.js.map +7 -0
  298. package/lib/esm/internal/lkrp-datasource/di/lkrpDatasourceModuleFactory.js +2 -0
  299. package/lib/esm/internal/lkrp-datasource/di/lkrpDatasourceModuleFactory.js.map +7 -0
  300. package/lib/esm/internal/lkrp-datasource/di/lkrpDatasourceTypes.js +2 -0
  301. package/lib/esm/internal/lkrp-datasource/di/lkrpDatasourceTypes.js.map +7 -0
  302. package/lib/esm/internal/use-cases/authentication/AuthenticateUseCase.js +2 -0
  303. package/lib/esm/internal/use-cases/authentication/AuthenticateUseCase.js.map +7 -0
  304. package/lib/esm/internal/use-cases/di/useCasesModule.js +2 -0
  305. package/lib/esm/internal/use-cases/di/useCasesModule.js.map +7 -0
  306. package/lib/esm/internal/use-cases/di/useCasesTypes.js +2 -0
  307. package/lib/esm/internal/use-cases/di/useCasesTypes.js.map +7 -0
  308. package/lib/esm/internal/utils/LKRPBlock.js +5 -0
  309. package/lib/esm/internal/utils/LKRPBlock.js.map +7 -0
  310. package/lib/esm/internal/utils/LKRPBlock.test.js +24 -0
  311. package/lib/esm/internal/utils/LKRPBlock.test.js.map +7 -0
  312. package/lib/esm/internal/utils/LKRPBlockStream.js +4 -0
  313. package/lib/esm/internal/utils/LKRPBlockStream.js.map +7 -0
  314. package/lib/esm/internal/utils/LKRPBlockStream.test.js +39 -0
  315. package/lib/esm/internal/utils/LKRPBlockStream.test.js.map +7 -0
  316. package/lib/esm/internal/utils/LKRPCommand.js +3 -0
  317. package/lib/esm/internal/utils/LKRPCommand.js.map +7 -0
  318. package/lib/esm/internal/utils/LKRPCommand.test.js +3 -0
  319. package/lib/esm/internal/utils/LKRPCommand.test.js.map +7 -0
  320. package/lib/esm/internal/utils/TLVBuilder.js +2 -0
  321. package/lib/esm/internal/utils/TLVBuilder.js.map +7 -0
  322. package/lib/esm/internal/utils/TLVParser.js +2 -0
  323. package/lib/esm/internal/utils/TLVParser.js.map +7 -0
  324. package/lib/esm/internal/utils/TLVParser.test.js +2 -0
  325. package/lib/esm/internal/utils/TLVParser.test.js.map +7 -0
  326. package/lib/esm/internal/utils/TLVTags.js +2 -0
  327. package/lib/esm/internal/utils/TLVTags.js.map +7 -0
  328. package/lib/esm/internal/utils/crypto.js +2 -0
  329. package/lib/esm/internal/utils/crypto.js.map +7 -0
  330. package/lib/esm/internal/utils/derivationPath.js +2 -0
  331. package/lib/esm/internal/utils/derivationPath.js.map +7 -0
  332. package/lib/esm/internal/utils/eitherSeqRecord.js +2 -0
  333. package/lib/esm/internal/utils/eitherSeqRecord.js.map +7 -0
  334. package/lib/esm/internal/utils/hex.js +2 -0
  335. package/lib/esm/internal/utils/hex.js.map +7 -0
  336. package/lib/esm/internal/utils/required.js +2 -0
  337. package/lib/esm/internal/utils/required.js.map +7 -0
  338. package/lib/esm/internal/utils/types.js +1 -0
  339. package/lib/esm/internal/utils/types.js.map +7 -0
  340. package/lib/esm/package.json +55 -0
  341. package/lib/types/api/LedgerKeyringProtocol.d.ts +9 -0
  342. package/lib/types/api/LedgerKeyringProtocol.d.ts.map +1 -0
  343. package/lib/types/api/LedgerKeyringProtocolBuilder.d.ts +14 -0
  344. package/lib/types/api/LedgerKeyringProtocolBuilder.d.ts.map +1 -0
  345. package/lib/types/api/app-binder/AddToTrustchainDeviceActionTypes.d.ts +27 -0
  346. package/lib/types/api/app-binder/AddToTrustchainDeviceActionTypes.d.ts.map +1 -0
  347. package/lib/types/api/app-binder/AuthenticateDeviceActionTypes.d.ts +37 -0
  348. package/lib/types/api/app-binder/AuthenticateDeviceActionTypes.d.ts.map +1 -0
  349. package/lib/types/api/app-binder/Errors.d.ts +27 -0
  350. package/lib/types/api/app-binder/Errors.d.ts.map +1 -0
  351. package/lib/types/api/app-binder/GetAppNameCommandTypes.d.ts +5 -0
  352. package/lib/types/api/app-binder/GetAppNameCommandTypes.d.ts.map +1 -0
  353. package/lib/types/api/app-binder/GetSeedIdCommandTypes.d.ts +14 -0
  354. package/lib/types/api/app-binder/GetSeedIdCommandTypes.d.ts.map +1 -0
  355. package/lib/types/api/app-binder/GetVersionCommandTypes.d.ts +5 -0
  356. package/lib/types/api/app-binder/GetVersionCommandTypes.d.ts.map +1 -0
  357. package/lib/types/api/app-binder/GetVersionDeviceActionTypes.d.ts +10 -0
  358. package/lib/types/api/app-binder/GetVersionDeviceActionTypes.d.ts.map +1 -0
  359. package/lib/types/api/app-binder/InitCommandTypes.d.ts +5 -0
  360. package/lib/types/api/app-binder/InitCommandTypes.d.ts.map +1 -0
  361. package/lib/types/api/app-binder/KeypairFromBytes.d.ts +11 -0
  362. package/lib/types/api/app-binder/KeypairFromBytes.d.ts.map +1 -0
  363. package/lib/types/api/app-binder/LKRPTypes.d.ts +24 -0
  364. package/lib/types/api/app-binder/LKRPTypes.d.ts.map +1 -0
  365. package/lib/types/api/app-binder/ParseStreamBlockCommandCommandTypes.d.ts +6 -0
  366. package/lib/types/api/app-binder/ParseStreamBlockCommandCommandTypes.d.ts.map +1 -0
  367. package/lib/types/api/app-binder/ParseStreamBlockHeaderCommandTypes.d.ts +5 -0
  368. package/lib/types/api/app-binder/ParseStreamBlockHeaderCommandTypes.d.ts.map +1 -0
  369. package/lib/types/api/app-binder/ParseStreamBlockSignatureTypes.d.ts +5 -0
  370. package/lib/types/api/app-binder/ParseStreamBlockSignatureTypes.d.ts.map +1 -0
  371. package/lib/types/api/app-binder/SetTrustedMemberTypes.d.ts +6 -0
  372. package/lib/types/api/app-binder/SetTrustedMemberTypes.d.ts.map +1 -0
  373. package/lib/types/api/app-binder/SignBlockCommandTypes.d.ts +9 -0
  374. package/lib/types/api/app-binder/SignBlockCommandTypes.d.ts.map +1 -0
  375. package/lib/types/api/app-binder/SignBlockHeaderCommandTypes.d.ts +5 -0
  376. package/lib/types/api/app-binder/SignBlockHeaderCommandTypes.d.ts.map +1 -0
  377. package/lib/types/api/app-binder/SignBlockSignatureCommandTypes.d.ts +6 -0
  378. package/lib/types/api/app-binder/SignBlockSignatureCommandTypes.d.ts.map +1 -0
  379. package/lib/types/api/app-binder/SignBlockSingleCommandTypes.d.ts +5 -0
  380. package/lib/types/api/app-binder/SignBlockSingleCommandTypes.d.ts.map +1 -0
  381. package/lib/types/api/index.d.ts +7 -0
  382. package/lib/types/api/index.d.ts.map +1 -0
  383. package/lib/types/index.d.ts +3 -0
  384. package/lib/types/index.d.ts.map +1 -0
  385. package/lib/types/internal/DefaultLedgerKeyringProtocol.d.ts +20 -0
  386. package/lib/types/internal/DefaultLedgerKeyringProtocol.d.ts.map +1 -0
  387. package/lib/types/internal/app-binder/LedgerKeyringProtocolBinder.d.ts +29 -0
  388. package/lib/types/internal/app-binder/LedgerKeyringProtocolBinder.d.ts.map +1 -0
  389. package/lib/types/internal/app-binder/command/GetAppNameCommand.d.ts +9 -0
  390. package/lib/types/internal/app-binder/command/GetAppNameCommand.d.ts.map +1 -0
  391. package/lib/types/internal/app-binder/command/GetSeedIdCommand.d.ts +11 -0
  392. package/lib/types/internal/app-binder/command/GetSeedIdCommand.d.ts.map +1 -0
  393. package/lib/types/internal/app-binder/command/GetSeedIdCommand.test.d.ts +2 -0
  394. package/lib/types/internal/app-binder/command/GetSeedIdCommand.test.d.ts.map +1 -0
  395. package/lib/types/internal/app-binder/command/GetVersionCommand.d.ts +9 -0
  396. package/lib/types/internal/app-binder/command/GetVersionCommand.d.ts.map +1 -0
  397. package/lib/types/internal/app-binder/command/InitCommand.d.ts +11 -0
  398. package/lib/types/internal/app-binder/command/InitCommand.d.ts.map +1 -0
  399. package/lib/types/internal/app-binder/command/InitCommand.test.d.ts +2 -0
  400. package/lib/types/internal/app-binder/command/InitCommand.test.d.ts.map +1 -0
  401. package/lib/types/internal/app-binder/command/ParseBlockSignatureCommand.d.ts +11 -0
  402. package/lib/types/internal/app-binder/command/ParseBlockSignatureCommand.d.ts.map +1 -0
  403. package/lib/types/internal/app-binder/command/ParseBlockSignatureCommand.test.d.ts +2 -0
  404. package/lib/types/internal/app-binder/command/ParseBlockSignatureCommand.test.d.ts.map +1 -0
  405. package/lib/types/internal/app-binder/command/ParseStreamBlockCommand.d.ts +11 -0
  406. package/lib/types/internal/app-binder/command/ParseStreamBlockCommand.d.ts.map +1 -0
  407. package/lib/types/internal/app-binder/command/ParseStreamBlockCommand.test.d.ts +2 -0
  408. package/lib/types/internal/app-binder/command/ParseStreamBlockCommand.test.d.ts.map +1 -0
  409. package/lib/types/internal/app-binder/command/ParseStreamBlockHeader.d.ts +11 -0
  410. package/lib/types/internal/app-binder/command/ParseStreamBlockHeader.d.ts.map +1 -0
  411. package/lib/types/internal/app-binder/command/ParseStreamBlockHeader.test.d.ts +2 -0
  412. package/lib/types/internal/app-binder/command/ParseStreamBlockHeader.test.d.ts.map +1 -0
  413. package/lib/types/internal/app-binder/command/SetTrustedMemberCommand.d.ts +11 -0
  414. package/lib/types/internal/app-binder/command/SetTrustedMemberCommand.d.ts.map +1 -0
  415. package/lib/types/internal/app-binder/command/SetTrustedMemberCommand.test.d.ts +2 -0
  416. package/lib/types/internal/app-binder/command/SetTrustedMemberCommand.test.d.ts.map +1 -0
  417. package/lib/types/internal/app-binder/command/SignBlockHeader.d.ts +11 -0
  418. package/lib/types/internal/app-binder/command/SignBlockHeader.d.ts.map +1 -0
  419. package/lib/types/internal/app-binder/command/SignBlockHeader.test.d.ts +2 -0
  420. package/lib/types/internal/app-binder/command/SignBlockHeader.test.d.ts.map +1 -0
  421. package/lib/types/internal/app-binder/command/SignBlockSignatureCommand.d.ts +10 -0
  422. package/lib/types/internal/app-binder/command/SignBlockSignatureCommand.d.ts.map +1 -0
  423. package/lib/types/internal/app-binder/command/SignBlockSignatureCommand.test.d.ts +2 -0
  424. package/lib/types/internal/app-binder/command/SignBlockSignatureCommand.test.d.ts.map +1 -0
  425. package/lib/types/internal/app-binder/command/SignBlockSingleCommand.d.ts +11 -0
  426. package/lib/types/internal/app-binder/command/SignBlockSingleCommand.d.ts.map +1 -0
  427. package/lib/types/internal/app-binder/command/SignBlockSingleCommand.test.d.ts +2 -0
  428. package/lib/types/internal/app-binder/command/SignBlockSingleCommand.test.d.ts.map +1 -0
  429. package/lib/types/internal/app-binder/command/utils/extractTrustedProperty.d.ts +4 -0
  430. package/lib/types/internal/app-binder/command/utils/extractTrustedProperty.d.ts.map +1 -0
  431. package/lib/types/internal/app-binder/command/utils/ledgerKeyringProtocolErrors.d.ts +9 -0
  432. package/lib/types/internal/app-binder/command/utils/ledgerKeyringProtocolErrors.d.ts.map +1 -0
  433. package/lib/types/internal/app-binder/device-action/AddToTrustchainDeviceAction.d.ts +20 -0
  434. package/lib/types/internal/app-binder/device-action/AddToTrustchainDeviceAction.d.ts.map +1 -0
  435. package/lib/types/internal/app-binder/device-action/AuthenticateDeviceAction.d.ts +42 -0
  436. package/lib/types/internal/app-binder/device-action/AuthenticateDeviceAction.d.ts.map +1 -0
  437. package/lib/types/internal/app-binder/device-action/utils/raiseAndAssign.d.ts +41 -0
  438. package/lib/types/internal/app-binder/device-action/utils/raiseAndAssign.d.ts.map +1 -0
  439. package/lib/types/internal/app-binder/di/appBinderModule.d.ts +3 -0
  440. package/lib/types/internal/app-binder/di/appBinderModule.d.ts.map +1 -0
  441. package/lib/types/internal/app-binder/di/appBinderTypes.d.ts +4 -0
  442. package/lib/types/internal/app-binder/di/appBinderTypes.d.ts.map +1 -0
  443. package/lib/types/internal/app-binder/task/InitTask.d.ts +10 -0
  444. package/lib/types/internal/app-binder/task/InitTask.d.ts.map +1 -0
  445. package/lib/types/internal/app-binder/task/ParseStreamToDeviceTask.d.ts +26 -0
  446. package/lib/types/internal/app-binder/task/ParseStreamToDeviceTask.d.ts.map +1 -0
  447. package/lib/types/internal/app-binder/task/SignBlockTask.d.ts +68 -0
  448. package/lib/types/internal/app-binder/task/SignBlockTask.d.ts.map +1 -0
  449. package/lib/types/internal/app-binder/task/SignChallengeWithDeviceTask.d.ts +10 -0
  450. package/lib/types/internal/app-binder/task/SignChallengeWithDeviceTask.d.ts.map +1 -0
  451. package/lib/types/internal/app-binder/task/SignChallengeWithKeypairTask.d.ts +15 -0
  452. package/lib/types/internal/app-binder/task/SignChallengeWithKeypairTask.d.ts.map +1 -0
  453. package/lib/types/internal/app-binder/task/SignChallengeWithKeypairTask.test.d.ts +2 -0
  454. package/lib/types/internal/app-binder/task/SignChallengeWithKeypairTask.test.d.ts.map +1 -0
  455. package/lib/types/internal/app-binder/task/utils/TrustedProperties.d.ts +26 -0
  456. package/lib/types/internal/app-binder/task/utils/TrustedProperties.d.ts.map +1 -0
  457. package/lib/types/internal/di.d.ts +10 -0
  458. package/lib/types/internal/di.d.ts.map +1 -0
  459. package/lib/types/internal/externalTypes.d.ts +14 -0
  460. package/lib/types/internal/externalTypes.d.ts.map +1 -0
  461. package/lib/types/internal/lkrp-datasource/data/HttpLKRPDataSource.d.ts +22 -0
  462. package/lib/types/internal/lkrp-datasource/data/HttpLKRPDataSource.d.ts.map +1 -0
  463. package/lib/types/internal/lkrp-datasource/data/HttpLKRPDataSource.test.d.ts +2 -0
  464. package/lib/types/internal/lkrp-datasource/data/HttpLKRPDataSource.test.d.ts.map +1 -0
  465. package/lib/types/internal/lkrp-datasource/data/LKRPDataSource.d.ts +54 -0
  466. package/lib/types/internal/lkrp-datasource/data/LKRPDataSource.d.ts.map +1 -0
  467. package/lib/types/internal/lkrp-datasource/di/lkrpDatasourceModuleFactory.d.ts +4 -0
  468. package/lib/types/internal/lkrp-datasource/di/lkrpDatasourceModuleFactory.d.ts.map +1 -0
  469. package/lib/types/internal/lkrp-datasource/di/lkrpDatasourceTypes.d.ts +5 -0
  470. package/lib/types/internal/lkrp-datasource/di/lkrpDatasourceTypes.d.ts.map +1 -0
  471. package/lib/types/internal/use-cases/authentication/AuthenticateUseCase.d.ts +9 -0
  472. package/lib/types/internal/use-cases/authentication/AuthenticateUseCase.d.ts.map +1 -0
  473. package/lib/types/internal/use-cases/di/useCasesModule.d.ts +3 -0
  474. package/lib/types/internal/use-cases/di/useCasesModule.d.ts.map +1 -0
  475. package/lib/types/internal/use-cases/di/useCasesTypes.d.ts +4 -0
  476. package/lib/types/internal/use-cases/di/useCasesTypes.d.ts.map +1 -0
  477. package/lib/types/internal/utils/LKRPBlock.d.ts +17 -0
  478. package/lib/types/internal/utils/LKRPBlock.d.ts.map +1 -0
  479. package/lib/types/internal/utils/LKRPBlock.test.d.ts +2 -0
  480. package/lib/types/internal/utils/LKRPBlock.test.d.ts.map +1 -0
  481. package/lib/types/internal/utils/LKRPBlockStream.d.ts +26 -0
  482. package/lib/types/internal/utils/LKRPBlockStream.d.ts.map +1 -0
  483. package/lib/types/internal/utils/LKRPBlockStream.test.d.ts +2 -0
  484. package/lib/types/internal/utils/LKRPBlockStream.test.d.ts.map +1 -0
  485. package/lib/types/internal/utils/LKRPCommand.d.ts +18 -0
  486. package/lib/types/internal/utils/LKRPCommand.d.ts.map +1 -0
  487. package/lib/types/internal/utils/LKRPCommand.test.d.ts +2 -0
  488. package/lib/types/internal/utils/LKRPCommand.test.d.ts.map +1 -0
  489. package/lib/types/internal/utils/TLVBuilder.d.ts +15 -0
  490. package/lib/types/internal/utils/TLVBuilder.d.ts.map +1 -0
  491. package/lib/types/internal/utils/TLVParser.d.ts +59 -0
  492. package/lib/types/internal/utils/TLVParser.d.ts.map +1 -0
  493. package/lib/types/internal/utils/TLVParser.test.d.ts +2 -0
  494. package/lib/types/internal/utils/TLVParser.test.d.ts.map +1 -0
  495. package/lib/types/internal/utils/TLVTags.d.ts +27 -0
  496. package/lib/types/internal/utils/TLVTags.d.ts.map +1 -0
  497. package/lib/types/internal/utils/crypto.d.ts +19 -0
  498. package/lib/types/internal/utils/crypto.d.ts.map +1 -0
  499. package/lib/types/internal/utils/derivationPath.d.ts +3 -0
  500. package/lib/types/internal/utils/derivationPath.d.ts.map +1 -0
  501. package/lib/types/internal/utils/eitherSeqRecord.d.ts +29 -0
  502. package/lib/types/internal/utils/eitherSeqRecord.d.ts.map +1 -0
  503. package/lib/types/internal/utils/hex.d.ts +3 -0
  504. package/lib/types/internal/utils/hex.d.ts.map +1 -0
  505. package/lib/types/internal/utils/required.d.ts +3 -0
  506. package/lib/types/internal/utils/required.d.ts.map +1 -0
  507. package/lib/types/internal/utils/types.d.ts +73 -0
  508. package/lib/types/internal/utils/types.d.ts.map +1 -0
  509. package/lib/types/tsconfig.prod.tsbuildinfo +1 -0
  510. package/package.json +54 -0
@@ -0,0 +1,6 @@
1
+ export type SignBlockSignatureCommandArgs = Record<string, never>;
2
+ export interface SignBlockSignatureCommandResponse {
3
+ signature: Uint8Array;
4
+ deviceSessionKey: Uint8Array;
5
+ }
6
+ //# sourceMappingURL=SignBlockSignatureCommandTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignBlockSignatureCommandTypes.d.ts","sourceRoot":"","sources":["../../../../src/api/app-binder/SignBlockSignatureCommandTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAElE,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,UAAU,CAAC;IACtB,gBAAgB,EAAE,UAAU,CAAC;CAC9B"}
@@ -0,0 +1,5 @@
1
+ export interface SignBlockSingleCommandArgs {
2
+ command: Uint8Array;
3
+ }
4
+ export type SignBlockSingleCommandResponse = Uint8Array;
5
+ //# sourceMappingURL=SignBlockSingleCommandTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignBlockSingleCommandTypes.d.ts","sourceRoot":"","sources":["../../../../src/api/app-binder/SignBlockSingleCommandTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from "./app-binder/AuthenticateDeviceActionTypes";
2
+ export * from "./app-binder/KeypairFromBytes";
3
+ export * from "./app-binder/LKRPTypes";
4
+ export * from "./LedgerKeyringProtocol";
5
+ export * from "./LedgerKeyringProtocolBuilder";
6
+ export * from "../internal/externalTypes";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import "reflect-metadata";
2
+ export * from "./api/index";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type DeviceManagementKit, type DeviceSessionId } from "@ledgerhq/device-management-kit";
2
+ import { Maybe } from "purify-ts";
3
+ import { type AuthenticateDAReturnType } from "../api/app-binder/AuthenticateDeviceActionTypes";
4
+ import { type JWT, type Keypair, type Permissions } from "../api/app-binder/LKRPTypes";
5
+ import { type LedgerKeyringProtocol } from "../api/LedgerKeyringProtocol";
6
+ type DefaultLedgerKeyringProtocolConstructorArgs = {
7
+ dmk: DeviceManagementKit;
8
+ sessionId: DeviceSessionId;
9
+ baseUrl: string;
10
+ };
11
+ export declare class DefaultLedgerKeyringProtocol implements LedgerKeyringProtocol {
12
+ name: string;
13
+ private _container;
14
+ constructor({ dmk, sessionId, baseUrl, }: DefaultLedgerKeyringProtocolConstructorArgs);
15
+ authenticate(keypair: Keypair, applicationId: number, clientName: string, permissions: Permissions, trustchainId?: string, jwt?: JWT): AuthenticateDAReturnType;
16
+ encryptData(encryptionKey: Uint8Array, data: Uint8Array): Uint8Array;
17
+ decryptData(encryptionKey: Uint8Array, data: Uint8Array): Maybe<Uint8Array>;
18
+ }
19
+ export {};
20
+ //# sourceMappingURL=DefaultLedgerKeyringProtocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultLedgerKeyringProtocol.d.ts","sourceRoot":"","sources":["../../../src/internal/DefaultLedgerKeyringProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,KAAK,EAAW,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAE9F,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOxE,KAAK,2CAA2C,GAAG;IACjD,GAAG,EAAE,mBAAmB,CAAC;IACzB,SAAS,EAAE,eAAe,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,4BAA6B,YAAW,qBAAqB;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,UAAU,CAAY;gBAElB,EACV,GAAG,EACH,SAAS,EACT,OAAO,GACR,EAAE,2CAA2C;IAK9C,YAAY,CACV,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,WAAW,EACxB,YAAY,CAAC,EAAE,MAAM,EACrB,GAAG,CAAC,EAAE,GAAG,GACR,wBAAwB;IAc3B,WAAW,CAAC,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU;IA+BpE,WAAW,CAAC,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;CAkC5E"}
@@ -0,0 +1,29 @@
1
+ import { DeviceManagementKit, type DeviceSessionId } from "@ledgerhq/device-management-kit";
2
+ import { AuthenticateDAReturnType } from "../../api/app-binder/AuthenticateDeviceActionTypes";
3
+ import { GetVersionDAReturnType } from "../../api/app-binder/GetVersionDeviceActionTypes";
4
+ import { JWT, Keypair, Permissions } from "../../api/app-binder/LKRPTypes";
5
+ import { type LKRPDataSource } from "../lkrp-datasource/data/LKRPDataSource";
6
+ export declare class LedgerKeyringProtocolBinder {
7
+ private readonly dmk;
8
+ private readonly sessionId;
9
+ private readonly lkrpDataSource;
10
+ constructor(dmk: DeviceManagementKit, sessionId: DeviceSessionId, lkrpDataSource: LKRPDataSource);
11
+ authenticate(args: {
12
+ keypair: Keypair;
13
+ applicationId: number;
14
+ clientName: string;
15
+ permissions: Permissions;
16
+ trustchainId?: string;
17
+ jwt?: JWT;
18
+ }): AuthenticateDAReturnType;
19
+ getVersion(args: {
20
+ skipOpenApp: boolean;
21
+ }): GetVersionDAReturnType;
22
+ getAppName(): unknown;
23
+ getSeedId(): unknown;
24
+ init(): unknown;
25
+ parseStream(): unknown;
26
+ signBlock(): unknown;
27
+ setTrustedMember(): unknown;
28
+ }
29
+ //# sourceMappingURL=LedgerKeyringProtocolBinder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LedgerKeyringProtocolBinder.d.ts","sourceRoot":"","sources":["../../../../src/internal/app-binder/LedgerKeyringProtocolBinder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,eAAe,EAGrB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAMpF,qBACa,2BAA2B;IAET,OAAO,CAAC,QAAQ,CAAC,GAAG;IAG/C,OAAO,CAAC,QAAQ,CAAC,SAAS;IAG1B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBANa,GAAG,EAAE,mBAAmB,EAGnD,SAAS,EAAE,eAAe,EAG1B,cAAc,EAAE,cAAc;IAGjD,YAAY,CAAC,IAAI,EAAE;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW,CAAC;QACzB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,GAAG,CAAC,EAAE,GAAG,CAAC;KACX,GAAG,wBAAwB;IAiB5B,UAAU,CAAC,IAAI,EAAE;QAAE,WAAW,EAAE,OAAO,CAAA;KAAE,GAAG,sBAAsB;IAclE,UAAU,IAAI,OAAO;IAIrB,SAAS,IAAI,OAAO;IAIpB,IAAI,IAAI,OAAO;IAIf,WAAW,IAAI,OAAO;IAItB,SAAS,IAAI,OAAO;IAIpB,gBAAgB,IAAI,OAAO;CAG5B"}
@@ -0,0 +1,9 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type GetAppNameCommandArgs, type GetAppNameCommandResponse } from "../../../api/app-binder/GetAppNameCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class GetAppNameCommand implements Command<GetAppNameCommandResponse, GetAppNameCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly errorHelper;
6
+ getApdu(): Apdu;
7
+ parseResponse(apduResponse: ApduResponse): CommandResult<GetAppNameCommandResponse, LedgerKeyringProtocolErrorCodes>;
8
+ }
9
+ //# sourceMappingURL=GetAppNameCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetAppNameCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/GetAppNameCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,iBACX,YACE,OAAO,CACL,yBAAyB,EACzB,qBAAqB,EACrB,+BAA+B,CAChC;IAEH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;IAEzD,OAAO,IAAI,IAAI;IAYf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CAAC,yBAAyB,EAAE,+BAA+B,CAAC;CAmB7E"}
@@ -0,0 +1,11 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type GetSeedIdCommandArgs, type GetSeedIdCommandResponse } from "../../../api/app-binder/GetSeedIdCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class GetSeedIdCommand implements Command<GetSeedIdCommandResponse, GetSeedIdCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly args;
6
+ private readonly errorHelper;
7
+ constructor(args: GetSeedIdCommandArgs);
8
+ getApdu(): Apdu;
9
+ parseResponse(apduResponse: ApduResponse): CommandResult<GetSeedIdCommandResponse, LedgerKeyringProtocolErrorCodes>;
10
+ }
11
+ //# sourceMappingURL=GetSeedIdCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetSeedIdCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/GetSeedIdCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC9B,MAAM,uCAAuC,CAAC;AAI/C,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,gBACX,YACE,OAAO,CACL,wBAAwB,EACxB,oBAAoB,EACpB,+BAA+B,CAChC;IAOS,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,oBAAoB;IACvD,OAAO,IAAI,IAAI;IAcf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CAAC,wBAAwB,EAAE,+BAA+B,CAAC;CAuG5E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GetSeedIdCommand.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetSeedIdCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/GetSeedIdCommand.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type GetVersionCommandArgs, type GetVersionCommandResponse } from "../../../api/app-binder/GetVersionCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class GetVersionCommand implements Command<GetVersionCommandResponse, GetVersionCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly errorHelper;
6
+ getApdu(): Apdu;
7
+ parseResponse(apduResponse: ApduResponse): CommandResult<GetVersionCommandResponse, LedgerKeyringProtocolErrorCodes>;
8
+ }
9
+ //# sourceMappingURL=GetVersionCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetVersionCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/GetVersionCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,iBACX,YACE,OAAO,CACL,yBAAyB,EACzB,qBAAqB,EACrB,+BAA+B,CAChC;IAEH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;IAEzD,OAAO,IAAI,IAAI;IAYf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CAAC,yBAAyB,EAAE,+BAA+B,CAAC;CAmB7E"}
@@ -0,0 +1,11 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type InitCommandArgs, type InitCommandResponse } from "../../../api/app-binder/InitCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class InitCommand implements Command<InitCommandResponse, InitCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly args;
6
+ constructor(args: InitCommandArgs);
7
+ private readonly errorHelper;
8
+ getApdu(): Apdu;
9
+ parseResponse(apduResponse: ApduResponse): CommandResult<InitCommandResponse, LedgerKeyringProtocolErrorCodes>;
10
+ }
11
+ //# sourceMappingURL=InitCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/InitCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACzB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,WACX,YACE,OAAO,CACL,mBAAmB,EACnB,eAAe,EACf,+BAA+B,CAChC;IAES,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,eAAe;IAElD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;IAEzD,OAAO,IAAI,IAAI;IAQf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;CAevE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=InitCommand.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/InitCommand.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type ParseBlockSignatureCommandArgs, type ParseBlockSignatureCommandResponse } from "../../../api/app-binder/ParseStreamBlockSignatureTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class ParseBlockSignatureCommand implements Command<ParseBlockSignatureCommandResponse, ParseBlockSignatureCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly args;
6
+ private readonly errorHelper;
7
+ constructor(args: ParseBlockSignatureCommandArgs);
8
+ getApdu(): Apdu;
9
+ parseResponse(apduResponse: ApduResponse): CommandResult<ParseBlockSignatureCommandResponse, LedgerKeyringProtocolErrorCodes>;
10
+ }
11
+ //# sourceMappingURL=ParseBlockSignatureCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseBlockSignatureCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseBlockSignatureCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACxC,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,0BACX,YACE,OAAO,CACL,kCAAkC,EAClC,8BAA8B,EAC9B,+BAA+B,CAChC;IAOS,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,8BAA8B;IAEjE,OAAO,IAAI,IAAI;IAef,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,kCAAkC,EAClC,+BAA+B,CAChC;CAiBF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ParseBlockSignatureCommand.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseBlockSignatureCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseBlockSignatureCommand.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type ParseSingleCommandArgs, type ParseSingleCommandResponse } from "../../../api/app-binder/ParseStreamBlockCommandCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class ParseSingleCommand implements Command<ParseSingleCommandResponse, ParseSingleCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly args;
6
+ private readonly errorHelper;
7
+ constructor(args: ParseSingleCommandArgs);
8
+ getApdu(): Apdu;
9
+ parseResponse(apduResponse: ApduResponse): CommandResult<ParseSingleCommandResponse, LedgerKeyringProtocolErrorCodes>;
10
+ }
11
+ //# sourceMappingURL=ParseStreamBlockCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseStreamBlockCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseStreamBlockCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAChC,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,kBACX,YACE,OAAO,CACL,0BAA0B,EAC1B,sBAAsB,EACtB,+BAA+B,CAChC;IAOS,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,sBAAsB;IAEzD,OAAO,IAAI,IAAI;IAef,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,0BAA0B,EAC1B,+BAA+B,CAChC;CAiBF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ParseStreamBlockCommand.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseStreamBlockCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseStreamBlockCommand.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type ParseBlockHeaderCommandArgs, type ParseBlockHeaderCommandResponse } from "../../../api/app-binder/ParseStreamBlockHeaderCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class ParseBlockHeaderCommand implements Command<ParseBlockHeaderCommandResponse, ParseBlockHeaderCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly args;
6
+ private readonly errorHelper;
7
+ constructor(args: ParseBlockHeaderCommandArgs);
8
+ getApdu(): Apdu;
9
+ parseResponse(apduResponse: ApduResponse): CommandResult<ParseBlockHeaderCommandResponse, LedgerKeyringProtocolErrorCodes>;
10
+ }
11
+ //# sourceMappingURL=ParseStreamBlockHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseStreamBlockHeader.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseStreamBlockHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACrC,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,uBACX,YACE,OAAO,CACL,+BAA+B,EAC/B,2BAA2B,EAC3B,+BAA+B,CAChC;IAOS,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,2BAA2B;IAE9D,OAAO,IAAI,IAAI;IAUf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,+BAA+B,EAC/B,+BAA+B,CAChC;CAiBF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ParseStreamBlockHeader.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseStreamBlockHeader.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/ParseStreamBlockHeader.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type SetTrustedMemberCommandArgs, type SetTrustedMemberCommandResponse } from "../../../api/app-binder/SetTrustedMemberTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class SetTrustedMemberCommand implements Command<SetTrustedMemberCommandResponse, SetTrustedMemberCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly args;
6
+ private readonly errorHelper;
7
+ constructor(args: SetTrustedMemberCommandArgs);
8
+ getApdu(): Apdu;
9
+ parseResponse(apduResponse: ApduResponse): CommandResult<SetTrustedMemberCommandResponse, LedgerKeyringProtocolErrorCodes>;
10
+ }
11
+ //# sourceMappingURL=SetTrustedMemberCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetTrustedMemberCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SetTrustedMemberCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACrC,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,uBACX,YACE,OAAO,CACL,+BAA+B,EAC/B,2BAA2B,EAC3B,+BAA+B,CAChC;IAOS,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,2BAA2B;IAE9D,OAAO,IAAI,IAAI;IAgBf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,+BAA+B,EAC/B,+BAA+B,CAChC;CAeF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SetTrustedMemberCommand.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetTrustedMemberCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SetTrustedMemberCommand.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type SignBlockHeaderCommandArgs, type SignBlockHeaderCommandResponse } from "../../../api/app-binder/SignBlockHeaderCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class SignBlockHeaderCommand implements Command<SignBlockHeaderCommandResponse, SignBlockHeaderCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly args;
6
+ private readonly errorHelper;
7
+ constructor(args: SignBlockHeaderCommandArgs);
8
+ getApdu(): Apdu;
9
+ parseResponse(apduResponse: ApduResponse): CommandResult<SignBlockHeaderCommandResponse, LedgerKeyringProtocolErrorCodes>;
10
+ }
11
+ //# sourceMappingURL=SignBlockHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignBlockHeader.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACpC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,sBACX,YACE,OAAO,CACL,8BAA8B,EAC9B,0BAA0B,EAC1B,+BAA+B,CAChC;IAOS,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,0BAA0B;IAE7D,OAAO,IAAI,IAAI;IAWf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,8BAA8B,EAC9B,+BAA+B,CAChC;CAiBF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SignBlockHeader.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignBlockHeader.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockHeader.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type SignBlockSignatureCommandArgs, type SignBlockSignatureCommandResponse } from "../../../api/app-binder/SignBlockSignatureCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class SignBlockSignatureCommand implements Command<SignBlockSignatureCommandResponse, SignBlockSignatureCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly errorHelper;
6
+ constructor();
7
+ getApdu(): Apdu;
8
+ parseResponse(apduResponse: ApduResponse): CommandResult<SignBlockSignatureCommandResponse, LedgerKeyringProtocolErrorCodes>;
9
+ }
10
+ //# sourceMappingURL=SignBlockSignatureCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignBlockSignatureCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockSignatureCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACvC,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,yBACX,YACE,OAAO,CACL,iCAAiC,EACjC,6BAA6B,EAC7B,+BAA+B,CAChC;IAEH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;;IAIzD,OAAO,IAAI,IAAI;IASf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,iCAAiC,EACjC,+BAA+B,CAChC;CA6CF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SignBlockSignatureCommand.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignBlockSignatureCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockSignatureCommand.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
2
+ import { type SignBlockSingleCommandArgs, type SignBlockSingleCommandResponse } from "../../../api/app-binder/SignBlockSingleCommandTypes";
3
+ import { type LedgerKeyringProtocolErrorCodes } from "./utils/ledgerKeyringProtocolErrors";
4
+ export declare class SignBlockSingleCommand implements Command<SignBlockSingleCommandResponse, SignBlockSingleCommandArgs, LedgerKeyringProtocolErrorCodes> {
5
+ private readonly args;
6
+ private readonly errorHelper;
7
+ constructor(args: SignBlockSingleCommandArgs);
8
+ getApdu(): Apdu;
9
+ parseResponse(apduResponse: ApduResponse): CommandResult<SignBlockSingleCommandResponse, LedgerKeyringProtocolErrorCodes>;
10
+ }
11
+ //# sourceMappingURL=SignBlockSingleCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignBlockSingleCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockSingleCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACpC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,sBACX,YACE,OAAO,CACL,8BAA8B,EAC9B,0BAA0B,EAC1B,+BAA+B,CAChC;IAOS,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAG6B;gBAE5B,IAAI,EAAE,0BAA0B;IAE7D,OAAO,IAAI,IAAI;IAWf,aAAa,CACX,YAAY,EAAE,YAAY,GACzB,aAAa,CACd,8BAA8B,EAC9B,+BAA+B,CAChC;CAiBF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SignBlockSingleCommand.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignBlockSingleCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/SignBlockSingleCommand.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { type ApduParser } from "@ledgerhq/device-management-kit";
2
+ import { type TrustedProperty } from "../../../externalTypes";
3
+ export declare function extractTrustedProperty(parser: ApduParser): Partial<TrustedProperty>;
4
+ //# sourceMappingURL=extractTrustedProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractTrustedProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/command/utils/extractTrustedProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,UAAU,GACjB,OAAO,CAAC,eAAe,CAAC,CAmC1B"}
@@ -0,0 +1,9 @@
1
+ import { type CommandErrorArgs, type CommandErrorResult, type CommandErrors, DeviceExchangeError } from "@ledgerhq/device-management-kit";
2
+ export type LedgerKeyringProtocolErrorCodes = "6985" | "6a86" | "6a87" | "6d00" | "6e00" | "b000" | "b007" | "b008" | "b009" | "b00a" | "b00b" | "b00c";
3
+ export type LKRPDeviceCommandError = CommandErrorResult<LedgerKeyringProtocolErrorCodes>["error"];
4
+ export declare const LEDGER_SYNC_ERRORS: CommandErrors<LedgerKeyringProtocolErrorCodes>;
5
+ export declare class LedgerKeyringProcotolError extends DeviceExchangeError<LedgerKeyringProtocolErrorCodes> {
6
+ constructor(args: CommandErrorArgs<LedgerKeyringProtocolErrorCodes>);
7
+ }
8
+ export declare const LedgerKeyringProtocolErrorFactory: (args: CommandErrorArgs<LedgerKeyringProtocolErrorCodes>) => LedgerKeyringProcotolError;
9
+ //# sourceMappingURL=ledgerKeyringProtocolErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ledgerKeyringProtocolErrors.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/command/utils/ledgerKeyringProtocolErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,+BAA+B,GACvC,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,kBAAkB,CAAC,+BAA+B,CAAC,CAAC,OAAO,CAAC,CAAC;AAE/D,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,+BAA+B,CAc3E,CAAC;AAEJ,qBAAa,0BAA2B,SAAQ,mBAAmB,CAAC,+BAA+B,CAAC;gBACtF,IAAI,EAAE,gBAAgB,CAAC,+BAA+B,CAAC;CAGpE;AAED,eAAO,MAAM,iCAAiC,GAC5C,MAAM,gBAAgB,CAAC,+BAA+B,CAAC,+BAChB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
2
+ import { type Either } from "purify-ts";
3
+ import { type AddToTrustchainDAError, type AddToTrustchainDAInput, type AddToTrustchainDAIntermediateValue, type AddToTrustchainDAInternalState, type AddToTrustchainDAOutput } from "../../../api/app-binder/AddToTrustchainDeviceActionTypes";
4
+ import { type Keypair } from "../../../api/index";
5
+ import { type LKRPDeviceCommandError } from "../../app-binder/command/utils/ledgerKeyringProtocolErrors";
6
+ import { type ParseStreamToDeviceTaskInput } from "../../app-binder/task/ParseStreamToDeviceTask";
7
+ import { type SignBlockError, type SignBlockTaskInput } from "../../app-binder/task/SignBlockTask";
8
+ export declare class AddToTrustchainDeviceAction extends XStateDeviceAction<AddToTrustchainDAOutput, AddToTrustchainDAInput, AddToTrustchainDAError, AddToTrustchainDAIntermediateValue, AddToTrustchainDAInternalState> {
9
+ makeStateMachine(internalApi: InternalApi): DeviceActionStateMachine<AddToTrustchainDAOutput, AddToTrustchainDAInput, AddToTrustchainDAError, AddToTrustchainDAIntermediateValue, AddToTrustchainDAInternalState>;
10
+ extractDependencies(internalApi: InternalApi): {
11
+ initCommand: () => Promise<Either<LKRPDeviceCommandError, Keypair>>;
12
+ parseStream: (args: {
13
+ input: Either<AddToTrustchainDAError, ParseStreamToDeviceTaskInput>;
14
+ }) => Promise<Either<AddToTrustchainDAError, unknown>>;
15
+ signBlock: (args: {
16
+ input: Either<AddToTrustchainDAError, SignBlockTaskInput>;
17
+ }) => Promise<Either<SignBlockError, void>>;
18
+ };
19
+ }
20
+ //# sourceMappingURL=AddToTrustchainDeviceAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddToTrustchainDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/device-action/AddToTrustchainDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,WAAW,EAIhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAmC,MAAM,WAAW,CAAC;AAGzE,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,kCAAkC,EACvC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC7B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gEAAgE,CAAC;AAE7G,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,kBAAkB,EACxB,MAAM,yCAAyC,CAAC;AAMjD,qBAAa,2BAA4B,SAAQ,kBAAkB,CACjE,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,kCAAkC,EAClC,8BAA8B,CAC/B;IACC,gBAAgB,CACd,WAAW,EAAE,WAAW,GACvB,wBAAwB,CACzB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,kCAAkC,EAClC,8BAA8B,CAC/B;IA0OD,mBAAmB,CAAC,WAAW,EAAE,WAAW;2BAEvB,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;4BAGvC;YACxB,KAAK,EAAE,MAAM,CAAC,sBAAsB,EAAE,4BAA4B,CAAC,CAAC;SACrE;0BAOiB;YAChB,KAAK,EAAE,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;SAC3D,KAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;;CAM9C"}
@@ -0,0 +1,42 @@
1
+ import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
2
+ import { type Either } from "purify-ts";
3
+ import { type AuthenticateDAError, type AuthenticateDAInput, type AuthenticateDAIntermediateValue, type AuthenticateDAInternalState, type AuthenticateDAOutput } from "../../../api/app-binder/AuthenticateDeviceActionTypes";
4
+ import { LKRPMissingDataError } from "../../../api/app-binder/Errors";
5
+ import { type Keypair } from "../../../api/app-binder/LKRPTypes";
6
+ import { type JWT } from "../../../api/index";
7
+ import { type LKRPDataSource } from "../../lkrp-datasource/data/LKRPDataSource";
8
+ import { LKRPBlockStream } from "../../utils/LKRPBlockStream";
9
+ export declare class AuthenticateDeviceAction extends XStateDeviceAction<AuthenticateDAOutput, AuthenticateDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateDAInternalState> {
10
+ makeStateMachine(internalApi: InternalApi): DeviceActionStateMachine<AuthenticateDAOutput, AuthenticateDAInput, AuthenticateDAError, AuthenticateDAIntermediateValue, AuthenticateDAInternalState>;
11
+ extractDependencies(internalApi: InternalApi): {
12
+ deviceAuth: (args: {
13
+ input: {
14
+ lkrpDataSource: LKRPDataSource;
15
+ };
16
+ }) => Promise<Either<AuthenticateDAError, import("../../lkrp-datasource/data/LKRPDataSource").AuthenticationResponse>>;
17
+ keypairAuth: (args: {
18
+ input: Pick<AuthenticateDAInput, "lkrpDataSource" | "keypair"> & {
19
+ trustchainId: Either<LKRPMissingDataError, string>;
20
+ };
21
+ }) => Promise<Either<AuthenticateDAError, import("../../lkrp-datasource/data/LKRPDataSource").AuthenticationResponse>>;
22
+ getTrustchain: (args: {
23
+ input: Either<AuthenticateDAError, {
24
+ applicationId: number;
25
+ lkrpDataSource: LKRPDataSource;
26
+ trustchainId: string;
27
+ jwt: JWT;
28
+ }>;
29
+ }) => Promise<Either<AuthenticateDAError, {
30
+ trustchain: import("../../utils/types").Trustchain;
31
+ applicationStream: LKRPBlockStream;
32
+ }>>;
33
+ extractEncryptionKey: (args: {
34
+ input: Either<AuthenticateDAError, {
35
+ applicationStream: LKRPBlockStream;
36
+ keypair: Keypair;
37
+ }>;
38
+ }) => Promise<Either<AuthenticateDAError, Uint8Array<ArrayBufferLike>>>;
39
+ };
40
+ private auth;
41
+ }
42
+ //# sourceMappingURL=AuthenticateDeviceAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticateDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/device-action/AuthenticateDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAKhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAA4B,MAAM,WAAW,CAAC;AAGlE,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAC1B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,oBAAoB,EAGrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAQlE,qBAAa,wBAAyB,SAAQ,kBAAkB,CAC9D,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAC/B,2BAA2B,CAC5B;IACC,gBAAgB,CACd,WAAW,EAAE,WAAW,GACvB,wBAAwB,CACzB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAC/B,2BAA2B,CAC5B;IA0VD,mBAAmB,CAAC,WAAW,EAAE,WAAW;2BAErB;YAAE,KAAK,EAAE;gBAAE,cAAc,EAAE,cAAc,CAAA;aAAE,CAAA;SAAE;4BAM5C;YAClB,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,SAAS,CAAC,GAAG;gBAC/D,YAAY,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;aACpD,CAAC;SACH;8BAYqB;YACpB,KAAK,EAAE,MAAM,CACX,mBAAmB,EACnB;gBACE,aAAa,EAAE,MAAM,CAAC;gBACtB,cAAc,EAAE,cAAc,CAAC;gBAC/B,YAAY,EAAE,MAAM,CAAC;gBACrB,GAAG,EAAE,GAAG,CAAC;aACV,CACF,CAAC;SACH;;;;qCAckC;YACjC,KAAK,EAAE,MAAM,CACX,mBAAmB,EACnB;gBACE,iBAAiB,EAAE,eAAe,CAAC;gBACnC,OAAO,EAAE,OAAO,CAAC;aAClB,CACF,CAAC;SACH;;IAqBL,OAAO,CAAC,IAAI;CAab"}
@@ -0,0 +1,41 @@
1
+ import { type Either } from "purify-ts";
2
+ import { type ActionArgs, type ActionFunction, type EventObject, type MachineContext, type ParameterizedObject, type ProvidedActor } from "xstate";
3
+ type UnwrapEither<T extends Either<unknown, unknown>> = T extends Either<infer L, infer R> ? {
4
+ L: L;
5
+ R: R;
6
+ } : never;
7
+ /**
8
+ * Both raises an event and assigns values to the _internalState based on an Either result.
9
+ * When the result is Left: automatically raises "error" and set the _internalState to the result.
10
+ *
11
+ * Example usage:
12
+ *
13
+ * Foo: {
14
+ * on: { bar: Bar , baz: Baz, retry: Retry, error: Error },
15
+ * invoke: {
16
+ * src: "someActor",
17
+ * onDone: raiseAndAssign(({ event }) =>
18
+ * event.output
19
+ * .map(({ resultType, payload }) => {
20
+ * switch(resultType) {
21
+ * case "A":
22
+ * return { raise: "bar", assign: { A: payload.A } };
23
+ * case "B":
24
+ * return { raise: "baz", assign: { B: payload.B } };
25
+ * }
26
+ * })
27
+ * .chainLeft((error) =>
28
+ * error instanceof SomeError
29
+ * ? Right({ raise: "retry", assign: { count: error.count } })
30
+ * : Left(error)
31
+ * ),
32
+ * ),
33
+ */
34
+ export declare function raiseAndAssign<TContext extends MachineContext & {
35
+ _internalState: Either<unknown, object>;
36
+ }, TExpressionEvent extends EventObject, TParams extends ParameterizedObject["params"] | undefined, TEvent extends EventObject = TExpressionEvent, TActor extends ProvidedActor = ProvidedActor, TAction extends ParameterizedObject = ParameterizedObject, TGuard extends ParameterizedObject = ParameterizedObject, TDelay extends string = never, TEmitted extends EventObject = EventObject>(args: (args: ActionArgs<TContext, TExpressionEvent, TEvent>) => Either<UnwrapEither<TContext["_internalState"]>["L"], {
37
+ raise: TEvent["type"];
38
+ assign?: Partial<UnwrapEither<TContext["_internalState"]>["R"]>;
39
+ }>): ActionFunction<TContext, TExpressionEvent, TEvent, TParams, TActor, TAction, TGuard, TDelay, TEmitted>;
40
+ export {};
41
+ //# sourceMappingURL=raiseAndAssign.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiseAndAssign.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/utils/raiseAndAssign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,WAAW,CAAC;AAC9C,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EAEnB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,QAAQ,CAAC;AAEhB,KAAK,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,IAClD,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG;IAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC,EAAE,CAAC,CAAA;CAAE,GAAG,KAAK,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,wBAAgB,cAAc,CAC5B,QAAQ,SAAS,cAAc,GAAG;IAChC,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;CACzC,EACD,gBAAgB,SAAS,WAAW,EACpC,OAAO,SAAS,mBAAmB,CAAC,QAAQ,CAAC,GAAG,SAAS,EACzD,MAAM,SAAS,WAAW,GAAG,gBAAgB,EAC7C,MAAM,SAAS,aAAa,GAAG,aAAa,EAC5C,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,EACzD,MAAM,SAAS,mBAAmB,GAAG,mBAAmB,EACxD,MAAM,SAAS,MAAM,GAAG,KAAK,EAC7B,QAAQ,SAAS,WAAW,GAAG,WAAW,EAE1C,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE,gBAAgB,EAAE,MAAM,CAAC,KAAK,MAAM,CACpE,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,EAC7C;IACE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACjE,CACF,GACA,cAAc,CACf,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,QAAQ,CACT,CAwBA"}
@@ -0,0 +1,3 @@
1
+ import { ContainerModule } from "inversify";
2
+ export declare const appBindingModuleFactory: () => ContainerModule;
3
+ //# sourceMappingURL=appBinderModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appBinderModule.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/di/appBinderModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAK5C,eAAO,MAAM,uBAAuB,uBAGhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const appBinderTypes: {
2
+ AppBinding: symbol;
3
+ };
4
+ //# sourceMappingURL=appBinderTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appBinderTypes.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/di/appBinderTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;CAE1B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type InternalApi } from "@ledgerhq/device-management-kit";
2
+ import { type Either } from "purify-ts";
3
+ import { type Keypair } from "../../../api/index";
4
+ import { type LKRPDeviceCommandError } from "../../app-binder/command/utils/ledgerKeyringProtocolErrors";
5
+ export declare class InitTask {
6
+ private readonly api;
7
+ constructor(api: InternalApi);
8
+ run(): Promise<Either<LKRPDeviceCommandError, Keypair>>;
9
+ }
10
+ //# sourceMappingURL=InitTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/InitTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gEAAgE,CAAC;AAG7G,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,WAAW;IAEvC,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;CAU9D"}
@@ -0,0 +1,26 @@
1
+ import { type InternalApi, UnknownDAError } from "@ledgerhq/device-management-kit";
2
+ import { type Either, EitherAsync } from "purify-ts";
3
+ import { type LKRPMissingDataError, type LKRPParsingError } from "../../../api/app-binder/Errors";
4
+ import { type LKRPDeviceCommandError } from "../../app-binder/command/utils/ledgerKeyringProtocolErrors";
5
+ import { type LKRPBlock } from "../../utils/LKRPBlock";
6
+ import { type LKRPBlockStream } from "../../utils/LKRPBlockStream";
7
+ import { type LKRPCommand } from "../../utils/LKRPCommand";
8
+ export type ParseStreamToDeviceTaskInput = {
9
+ seedBlock: LKRPBlock;
10
+ applicationStream: LKRPBlockStream | null;
11
+ };
12
+ type ParseStreamTaskError = LKRPDeviceCommandError | LKRPParsingError | LKRPMissingDataError | UnknownDAError;
13
+ export declare class ParseStreamToDeviceTask {
14
+ private readonly api;
15
+ private lastTrustedMember;
16
+ private trustedMembers;
17
+ constructor(api: InternalApi);
18
+ run({ seedBlock, applicationStream }: ParseStreamToDeviceTaskInput): EitherAsync<ParseStreamTaskError, unknown>;
19
+ parseStream(stream: LKRPBlockStream): EitherAsync<ParseStreamTaskError, unknown>;
20
+ parseBlock(block: LKRPBlock): EitherAsync<ParseStreamTaskError, void>;
21
+ parseCommand(command: LKRPCommand, blockIssuer: string): EitherAsync<ParseStreamTaskError, unknown>;
22
+ setTrustedMember(publicKey: string): EitherAsync<ParseStreamTaskError, void>;
23
+ recordTrustedMembers(publicKey: string, trustedPropsBytes: Uint8Array): Either<LKRPParsingError | LKRPMissingDataError, unknown>;
24
+ }
25
+ export {};
26
+ //# sourceMappingURL=ParseStreamToDeviceTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParseStreamToDeviceTask.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/task/ParseStreamToDeviceTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAChB,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAE,WAAW,EAAe,MAAM,WAAW,CAAC;AAElE,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gEAAgE,CAAC;AAG7G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAK/D,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,eAAe,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,KAAK,oBAAoB,GACrB,sBAAsB,GACtB,gBAAgB,GAChB,oBAAoB,GACpB,cAAc,CAAC;AAEnB,qBAAa,uBAAuB;IAItB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAHhC,OAAO,CAAC,iBAAiB,CAAuB;IAChD,OAAO,CAAC,cAAc,CAAkD;gBAE3C,GAAG,EAAE,WAAW;IAE7C,GAAG,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,4BAA4B;IASlE,WAAW,CAAC,MAAM,EAAE,eAAe;IASnC,UAAU,CAAC,KAAK,EAAE,SAAS;IAiD3B,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM;IAsBtD,gBAAgB,CAAC,SAAS,EAAE,MAAM;IAyBlC,oBAAoB,CAClB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,UAAU,GAC5B,MAAM,CAAC,gBAAgB,GAAG,oBAAoB,EAAE,OAAO,CAAC;CAmB5D"}