@taquito/wallet-connect 24.3.0-beta.2 → 24.3.0-beta.5

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 (444) hide show
  1. package/README.md +15 -1
  2. package/dist/lib/{taquito-wallet-connect/src/taquito-wallet-connect.js → taquito-wallet-connect.js} +1 -4
  3. package/dist/lib/{taquito-http-utils/src/version.js → version.js} +2 -2
  4. package/package.json +5 -7
  5. package/dist/lib/taquito/src/batch/constants.js +0 -16
  6. package/dist/lib/taquito/src/batch/rpc-batch-provider.js +0 -327
  7. package/dist/lib/taquito/src/constants.js +0 -135
  8. package/dist/lib/taquito/src/context.js +0 -178
  9. package/dist/lib/taquito/src/contract/big-map.js +0 -57
  10. package/dist/lib/taquito/src/contract/compose.js +0 -6
  11. package/dist/lib/taquito/src/contract/constants.js +0 -4
  12. package/dist/lib/taquito/src/contract/contract-methods/contract-method-factory.js +0 -18
  13. package/dist/lib/taquito/src/contract/contract-methods/contract-method-interface.js +0 -2
  14. package/dist/lib/taquito/src/contract/contract-methods/contract-method-object-param.js +0 -72
  15. package/dist/lib/taquito/src/contract/contract-methods/contract-on-chain-view.js +0 -111
  16. package/dist/lib/taquito/src/contract/contract.js +0 -158
  17. package/dist/lib/taquito/src/contract/errors.js +0 -140
  18. package/dist/lib/taquito/src/contract/index.js +0 -30
  19. package/dist/lib/taquito/src/contract/interface.js +0 -2
  20. package/dist/lib/taquito/src/contract/manager-lambda.js +0 -71
  21. package/dist/lib/taquito/src/contract/prepare.js +0 -231
  22. package/dist/lib/taquito/src/contract/rpc-contract-provider.js +0 -675
  23. package/dist/lib/taquito/src/contract/sapling-state-abstraction.js +0 -24
  24. package/dist/lib/taquito/src/contract/semantic.js +0 -43
  25. package/dist/lib/taquito/src/contract/view_lambda.js +0 -27
  26. package/dist/lib/taquito/src/errors.js +0 -42
  27. package/dist/lib/taquito/src/estimate/errors.js +0 -16
  28. package/dist/lib/taquito/src/estimate/estimate-provider-interface.js +0 -2
  29. package/dist/lib/taquito/src/estimate/estimate.js +0 -176
  30. package/dist/lib/taquito/src/estimate/index.js +0 -20
  31. package/dist/lib/taquito/src/estimate/rpc-estimate-provider.js +0 -640
  32. package/dist/lib/taquito/src/extension/extension.js +0 -2
  33. package/dist/lib/taquito/src/forger/composite-forger.js +0 -32
  34. package/dist/lib/taquito/src/forger/errors.js +0 -30
  35. package/dist/lib/taquito/src/forger/rpc-forger.js +0 -12
  36. package/dist/lib/taquito/src/forger/taquito-local-forger.js +0 -21
  37. package/dist/lib/taquito/src/global-constants/default-global-constants-provider.js +0 -35
  38. package/dist/lib/taquito/src/global-constants/errors.js +0 -30
  39. package/dist/lib/taquito/src/global-constants/interface-global-constants-provider.js +0 -2
  40. package/dist/lib/taquito/src/global-constants/noop-global-constants-provider.js +0 -10
  41. package/dist/lib/taquito/src/import-key.js +0 -40
  42. package/dist/lib/taquito/src/injector/helper.js +0 -18
  43. package/dist/lib/taquito/src/injector/interface.js +0 -2
  44. package/dist/lib/taquito/src/injector/rpc-injector.js +0 -27
  45. package/dist/lib/taquito/src/operations/ballot-operation.js +0 -32
  46. package/dist/lib/taquito/src/operations/batch-operation.js +0 -69
  47. package/dist/lib/taquito/src/operations/delegate-operation.js +0 -54
  48. package/dist/lib/taquito/src/operations/drain-delegate-operation.js +0 -31
  49. package/dist/lib/taquito/src/operations/errors.js +0 -133
  50. package/dist/lib/taquito/src/operations/failing-noop-operation.js +0 -2
  51. package/dist/lib/taquito/src/operations/increase-paid-storage-operation.js +0 -49
  52. package/dist/lib/taquito/src/operations/index.js +0 -54
  53. package/dist/lib/taquito/src/operations/operations.js +0 -193
  54. package/dist/lib/taquito/src/operations/origination-operation.js +0 -78
  55. package/dist/lib/taquito/src/operations/proposals-operation.js +0 -29
  56. package/dist/lib/taquito/src/operations/register-global-constant-operation.js +0 -52
  57. package/dist/lib/taquito/src/operations/reveal-operation.js +0 -74
  58. package/dist/lib/taquito/src/operations/smart-rollup-add-messages-operation.js +0 -44
  59. package/dist/lib/taquito/src/operations/smart-rollup-execute-outbox-message-operation.js +0 -53
  60. package/dist/lib/taquito/src/operations/smart-rollup-originate-operation.js +0 -50
  61. package/dist/lib/taquito/src/operations/transaction-operation.js +0 -73
  62. package/dist/lib/taquito/src/operations/transfer-ticket-operation.js +0 -47
  63. package/dist/lib/taquito/src/operations/types.js +0 -88
  64. package/dist/lib/taquito/src/operations/update-companion-key-operation.js +0 -55
  65. package/dist/lib/taquito/src/operations/update-consensus-key-operation.js +0 -55
  66. package/dist/lib/taquito/src/packer/interface.js +0 -2
  67. package/dist/lib/taquito/src/packer/michel-codec-packer.js +0 -11
  68. package/dist/lib/taquito/src/packer/rpc-packer.js +0 -12
  69. package/dist/lib/taquito/src/parser/interface.js +0 -2
  70. package/dist/lib/taquito/src/parser/michel-codec-parser.js +0 -110
  71. package/dist/lib/taquito/src/parser/noop-parser.js +0 -9
  72. package/dist/lib/taquito/src/prepare/index.js +0 -18
  73. package/dist/lib/taquito/src/prepare/interface.js +0 -2
  74. package/dist/lib/taquito/src/prepare/prepare-provider.js +0 -1049
  75. package/dist/lib/taquito/src/provider.js +0 -363
  76. package/dist/lib/taquito/src/read-provider/interface.js +0 -2
  77. package/dist/lib/taquito/src/read-provider/rpc-read-adapter.js +0 -183
  78. package/dist/lib/taquito/src/signer/errors.js +0 -17
  79. package/dist/lib/taquito/src/signer/noop.js +0 -23
  80. package/dist/lib/taquito/src/subscribe/create-observable-from-subscription.js +0 -20
  81. package/dist/lib/taquito/src/subscribe/errors.js +0 -30
  82. package/dist/lib/taquito/src/subscribe/filters.js +0 -96
  83. package/dist/lib/taquito/src/subscribe/interface.js +0 -2
  84. package/dist/lib/taquito/src/subscribe/observable-subscription.js +0 -79
  85. package/dist/lib/taquito/src/subscribe/polling-subcribe-provider.js +0 -118
  86. package/dist/lib/taquito/src/taquito.js +0 -404
  87. package/dist/lib/taquito/src/tz/interface.js +0 -2
  88. package/dist/lib/taquito/src/tz/rpc-tz-provider.js +0 -46
  89. package/dist/lib/taquito/src/version.js +0 -8
  90. package/dist/lib/taquito/src/wallet/batch-operation.js +0 -71
  91. package/dist/lib/taquito/src/wallet/delegation-operation.js +0 -42
  92. package/dist/lib/taquito/src/wallet/errors.js +0 -40
  93. package/dist/lib/taquito/src/wallet/increase-paid-storage-operation.js +0 -42
  94. package/dist/lib/taquito/src/wallet/index.js +0 -25
  95. package/dist/lib/taquito/src/wallet/interface.js +0 -2
  96. package/dist/lib/taquito/src/wallet/legacy.js +0 -51
  97. package/dist/lib/taquito/src/wallet/operation-factory.js +0 -88
  98. package/dist/lib/taquito/src/wallet/operation.js +0 -221
  99. package/dist/lib/taquito/src/wallet/origination-operation.js +0 -53
  100. package/dist/lib/taquito/src/wallet/receipt.js +0 -46
  101. package/dist/lib/taquito/src/wallet/register-global-constant-operation.js +0 -45
  102. package/dist/lib/taquito/src/wallet/transaction-operation.js +0 -38
  103. package/dist/lib/taquito/src/wallet/transfer-ticket-operation.js +0 -38
  104. package/dist/lib/taquito/src/wallet/wallet.js +0 -445
  105. package/dist/lib/taquito-core/src/errors.js +0 -351
  106. package/dist/lib/taquito-core/src/signer-interfaces.js +0 -2
  107. package/dist/lib/taquito-core/src/taquito-core.js +0 -22
  108. package/dist/lib/taquito-http-utils/src/errors.js +0 -103
  109. package/dist/lib/taquito-http-utils/src/status_code.js +0 -322
  110. package/dist/lib/taquito-http-utils/src/taquito-http-utils.js +0 -308
  111. package/dist/lib/taquito-http-utils/src/transport-errors.js +0 -141
  112. package/dist/lib/taquito-local-forging/src/codec.js +0 -543
  113. package/dist/lib/taquito-local-forging/src/constants.js +0 -291
  114. package/dist/lib/taquito-local-forging/src/decoder.js +0 -64
  115. package/dist/lib/taquito-local-forging/src/encoder.js +0 -63
  116. package/dist/lib/taquito-local-forging/src/errors.js +0 -179
  117. package/dist/lib/taquito-local-forging/src/interface.js +0 -2
  118. package/dist/lib/taquito-local-forging/src/michelson/codec.js +0 -283
  119. package/dist/lib/taquito-local-forging/src/protocols.js +0 -60
  120. package/dist/lib/taquito-local-forging/src/schema/operation.js +0 -259
  121. package/dist/lib/taquito-local-forging/src/taquito-local-forging.js +0 -117
  122. package/dist/lib/taquito-local-forging/src/uint8array-consumer.js +0 -35
  123. package/dist/lib/taquito-local-forging/src/utils.js +0 -18
  124. package/dist/lib/taquito-local-forging/src/validator.js +0 -57
  125. package/dist/lib/taquito-local-forging/src/version.js +0 -8
  126. package/dist/lib/taquito-michel-codec/src/base58.js +0 -255
  127. package/dist/lib/taquito-michel-codec/src/binary.js +0 -1271
  128. package/dist/lib/taquito-michel-codec/src/errors.js +0 -90
  129. package/dist/lib/taquito-michel-codec/src/formatters.js +0 -58
  130. package/dist/lib/taquito-michel-codec/src/global-constants.js +0 -12
  131. package/dist/lib/taquito-michel-codec/src/macros.js +0 -551
  132. package/dist/lib/taquito-michel-codec/src/micheline-emitter.js +0 -128
  133. package/dist/lib/taquito-michel-codec/src/micheline-parser.js +0 -402
  134. package/dist/lib/taquito-michel-codec/src/micheline.js +0 -5
  135. package/dist/lib/taquito-michel-codec/src/michelson-contract.js +0 -93
  136. package/dist/lib/taquito-michel-codec/src/michelson-typecheck.js +0 -1756
  137. package/dist/lib/taquito-michel-codec/src/michelson-types.js +0 -83
  138. package/dist/lib/taquito-michel-codec/src/michelson-validator.js +0 -833
  139. package/dist/lib/taquito-michel-codec/src/scan.js +0 -128
  140. package/dist/lib/taquito-michel-codec/src/taquito-michel-codec.js +0 -38
  141. package/dist/lib/taquito-michel-codec/src/utils.js +0 -323
  142. package/dist/lib/taquito-michel-codec/src/version.js +0 -8
  143. package/dist/lib/taquito-michelson-encoder/src/constants.js +0 -11
  144. package/dist/lib/taquito-michelson-encoder/src/errors.js +0 -38
  145. package/dist/lib/taquito-michelson-encoder/src/michelson-map.js +0 -201
  146. package/dist/lib/taquito-michelson-encoder/src/schema/errors.js +0 -127
  147. package/dist/lib/taquito-michelson-encoder/src/schema/event-schema.js +0 -52
  148. package/dist/lib/taquito-michelson-encoder/src/schema/parameter.js +0 -113
  149. package/dist/lib/taquito-michelson-encoder/src/schema/storage.js +0 -260
  150. package/dist/lib/taquito-michelson-encoder/src/schema/types.js +0 -2
  151. package/dist/lib/taquito-michelson-encoder/src/schema/view-schema.js +0 -90
  152. package/dist/lib/taquito-michelson-encoder/src/taquito-michelson-encoder.js +0 -36
  153. package/dist/lib/taquito-michelson-encoder/src/tokens/bigmap.js +0 -130
  154. package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-fr.js +0 -86
  155. package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-g1.js +0 -76
  156. package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-g2.js +0 -76
  157. package/dist/lib/taquito-michelson-encoder/src/tokens/chain-id.js +0 -78
  158. package/dist/lib/taquito-michelson-encoder/src/tokens/chest-key.js +0 -74
  159. package/dist/lib/taquito-michelson-encoder/src/tokens/chest.js +0 -74
  160. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/address.js +0 -116
  161. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/bool.js +0 -59
  162. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/bytes.js +0 -90
  163. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/int.js +0 -90
  164. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/key_hash.js +0 -90
  165. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/mutez.js +0 -90
  166. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/nat.js +0 -93
  167. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/string.js +0 -48
  168. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/timestamp.js +0 -66
  169. package/dist/lib/taquito-michelson-encoder/src/tokens/constant.js +0 -80
  170. package/dist/lib/taquito-michelson-encoder/src/tokens/contract.js +0 -86
  171. package/dist/lib/taquito-michelson-encoder/src/tokens/createToken.js +0 -35
  172. package/dist/lib/taquito-michelson-encoder/src/tokens/key.js +0 -97
  173. package/dist/lib/taquito-michelson-encoder/src/tokens/lambda.js +0 -55
  174. package/dist/lib/taquito-michelson-encoder/src/tokens/list.js +0 -85
  175. package/dist/lib/taquito-michelson-encoder/src/tokens/map.js +0 -112
  176. package/dist/lib/taquito-michelson-encoder/src/tokens/never.js +0 -61
  177. package/dist/lib/taquito-michelson-encoder/src/tokens/operation.js +0 -39
  178. package/dist/lib/taquito-michelson-encoder/src/tokens/option.js +0 -88
  179. package/dist/lib/taquito-michelson-encoder/src/tokens/or.js +0 -282
  180. package/dist/lib/taquito-michelson-encoder/src/tokens/pair.js +0 -233
  181. package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-state.js +0 -84
  182. package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-transaction-deprecated.js +0 -74
  183. package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-transaction.js +0 -74
  184. package/dist/lib/taquito-michelson-encoder/src/tokens/set.js +0 -82
  185. package/dist/lib/taquito-michelson-encoder/src/tokens/signature.js +0 -82
  186. package/dist/lib/taquito-michelson-encoder/src/tokens/ticket-deprecated.js +0 -92
  187. package/dist/lib/taquito-michelson-encoder/src/tokens/ticket.js +0 -92
  188. package/dist/lib/taquito-michelson-encoder/src/tokens/token.js +0 -100
  189. package/dist/lib/taquito-michelson-encoder/src/tokens/tokens.js +0 -75
  190. package/dist/lib/taquito-michelson-encoder/src/tokens/unit.js +0 -52
  191. package/dist/lib/taquito-michelson-encoder/src/version.js +0 -8
  192. package/dist/lib/taquito-rpc/src/opkind.js +0 -49
  193. package/dist/lib/taquito-rpc/src/rpc-client-interface.js +0 -60
  194. package/dist/lib/taquito-rpc/src/rpc-client-modules/rpc-cache.js +0 -1118
  195. package/dist/lib/taquito-rpc/src/taquito-rpc.js +0 -990
  196. package/dist/lib/taquito-rpc/src/types.js +0 -114
  197. package/dist/lib/taquito-rpc/src/utils/utils.js +0 -65
  198. package/dist/lib/taquito-rpc/src/version.js +0 -8
  199. package/dist/lib/taquito-signer/src/bls-key.js +0 -104
  200. package/dist/lib/taquito-signer/src/derivation-tools/ecdsa.js +0 -156
  201. package/dist/lib/taquito-signer/src/derivation-tools/ed25519.js +0 -82
  202. package/dist/lib/taquito-signer/src/derivation-tools/index.js +0 -79
  203. package/dist/lib/taquito-signer/src/derivation-tools/types.js +0 -4
  204. package/dist/lib/taquito-signer/src/derivation-tools/utils.js +0 -16
  205. package/dist/lib/taquito-signer/src/ec-key.js +0 -196
  206. package/dist/lib/taquito-signer/src/ed-key.js +0 -130
  207. package/dist/lib/taquito-signer/src/errors.js +0 -77
  208. package/dist/lib/taquito-signer/src/helpers.js +0 -44
  209. package/dist/lib/taquito-signer/src/in-memory-signer.js +0 -240
  210. package/dist/lib/taquito-signer/src/key-interface.js +0 -6
  211. package/dist/lib/taquito-signer/src/taquito-signer.js +0 -28
  212. package/dist/lib/taquito-signer/src/version.js +0 -8
  213. package/dist/lib/taquito-utils/src/constants.js +0 -203
  214. package/dist/lib/taquito-utils/src/encoding.js +0 -606
  215. package/dist/lib/taquito-utils/src/errors.js +0 -45
  216. package/dist/lib/taquito-utils/src/format.js +0 -29
  217. package/dist/lib/taquito-utils/src/taquito-utils.js +0 -42
  218. package/dist/lib/taquito-utils/src/validators.js +0 -236
  219. package/dist/lib/taquito-utils/src/verify-signature.js +0 -136
  220. package/dist/lib/taquito-utils/src/version.js +0 -8
  221. package/dist/lib/taquito-wallet-connect/src/version.js +0 -8
  222. package/dist/types/taquito/src/batch/constants.d.ts +0 -3
  223. package/dist/types/taquito/src/batch/rpc-batch-provider.d.ts +0 -139
  224. package/dist/types/taquito/src/constants.d.ts +0 -81
  225. package/dist/types/taquito/src/context.d.ts +0 -100
  226. package/dist/types/taquito/src/contract/big-map.d.ts +0 -35
  227. package/dist/types/taquito/src/contract/compose.d.ts +0 -5
  228. package/dist/types/taquito/src/contract/constants.d.ts +0 -1
  229. package/dist/types/taquito/src/contract/contract-methods/contract-method-factory.d.ts +0 -14
  230. package/dist/types/taquito/src/contract/contract-methods/contract-method-interface.d.ts +0 -28
  231. package/dist/types/taquito/src/contract/contract-methods/contract-method-object-param.d.ts +0 -39
  232. package/dist/types/taquito/src/contract/contract-methods/contract-on-chain-view.d.ts +0 -43
  233. package/dist/types/taquito/src/contract/contract.d.ts +0 -75
  234. package/dist/types/taquito/src/contract/errors.d.ts +0 -83
  235. package/dist/types/taquito/src/contract/index.d.ts +0 -11
  236. package/dist/types/taquito/src/contract/interface.d.ts +0 -254
  237. package/dist/types/taquito/src/contract/manager-lambda.d.ts +0 -73
  238. package/dist/types/taquito/src/contract/prepare.d.ts +0 -18
  239. package/dist/types/taquito/src/contract/rpc-contract-provider.d.ts +0 -270
  240. package/dist/types/taquito/src/contract/sapling-state-abstraction.d.ts +0 -17
  241. package/dist/types/taquito/src/contract/semantic.d.ts +0 -7
  242. package/dist/types/taquito/src/contract/view_lambda.d.ts +0 -34
  243. package/dist/types/taquito/src/errors.d.ts +0 -26
  244. package/dist/types/taquito/src/estimate/errors.d.ts +0 -8
  245. package/dist/types/taquito/src/estimate/estimate-provider-interface.d.ts +0 -153
  246. package/dist/types/taquito/src/estimate/estimate.d.ts +0 -111
  247. package/dist/types/taquito/src/estimate/index.d.ts +0 -4
  248. package/dist/types/taquito/src/estimate/rpc-estimate-provider.d.ts +0 -174
  249. package/dist/types/taquito/src/extension/extension.d.ts +0 -4
  250. package/dist/types/taquito/src/forger/composite-forger.d.ts +0 -6
  251. package/dist/types/taquito/src/forger/errors.d.ts +0 -16
  252. package/dist/types/taquito/src/forger/rpc-forger.d.ts +0 -7
  253. package/dist/types/taquito/src/forger/taquito-local-forger.d.ts +0 -8
  254. package/dist/types/taquito/src/global-constants/default-global-constants-provider.d.ts +0 -18
  255. package/dist/types/taquito/src/global-constants/errors.d.ts +0 -16
  256. package/dist/types/taquito/src/global-constants/interface-global-constants-provider.d.ts +0 -11
  257. package/dist/types/taquito/src/global-constants/noop-global-constants-provider.d.ts +0 -5
  258. package/dist/types/taquito/src/import-key.d.ts +0 -13
  259. package/dist/types/taquito/src/injector/helper.d.ts +0 -2
  260. package/dist/types/taquito/src/injector/interface.d.ts +0 -5
  261. package/dist/types/taquito/src/injector/rpc-injector.d.ts +0 -7
  262. package/dist/types/taquito/src/operations/ballot-operation.d.ts +0 -18
  263. package/dist/types/taquito/src/operations/batch-operation.d.ts +0 -19
  264. package/dist/types/taquito/src/operations/delegate-operation.d.ts +0 -24
  265. package/dist/types/taquito/src/operations/drain-delegate-operation.d.ts +0 -17
  266. package/dist/types/taquito/src/operations/errors.d.ts +0 -50
  267. package/dist/types/taquito/src/operations/failing-noop-operation.d.ts +0 -17
  268. package/dist/types/taquito/src/operations/increase-paid-storage-operation.d.ts +0 -23
  269. package/dist/types/taquito/src/operations/index.d.ts +0 -18
  270. package/dist/types/taquito/src/operations/operations.d.ts +0 -35
  271. package/dist/types/taquito/src/operations/origination-operation.d.ts +0 -35
  272. package/dist/types/taquito/src/operations/proposals-operation.d.ts +0 -17
  273. package/dist/types/taquito/src/operations/register-global-constant-operation.d.ts +0 -25
  274. package/dist/types/taquito/src/operations/reveal-operation.d.ts +0 -25
  275. package/dist/types/taquito/src/operations/smart-rollup-add-messages-operation.d.ts +0 -20
  276. package/dist/types/taquito/src/operations/smart-rollup-execute-outbox-message-operation.d.ts +0 -24
  277. package/dist/types/taquito/src/operations/smart-rollup-originate-operation.d.ts +0 -23
  278. package/dist/types/taquito/src/operations/transaction-operation.d.ts +0 -28
  279. package/dist/types/taquito/src/operations/transfer-ticket-operation.d.ts +0 -22
  280. package/dist/types/taquito/src/operations/types.d.ts +0 -823
  281. package/dist/types/taquito/src/operations/update-companion-key-operation.d.ts +0 -23
  282. package/dist/types/taquito/src/operations/update-consensus-key-operation.d.ts +0 -23
  283. package/dist/types/taquito/src/packer/interface.d.ts +0 -4
  284. package/dist/types/taquito/src/packer/michel-codec-packer.d.ts +0 -5
  285. package/dist/types/taquito/src/packer/rpc-packer.d.ts +0 -8
  286. package/dist/types/taquito/src/parser/interface.d.ts +0 -4
  287. package/dist/types/taquito/src/parser/michel-codec-parser.d.ts +0 -16
  288. package/dist/types/taquito/src/parser/noop-parser.d.ts +0 -5
  289. package/dist/types/taquito/src/prepare/index.d.ts +0 -2
  290. package/dist/types/taquito/src/prepare/interface.d.ts +0 -152
  291. package/dist/types/taquito/src/prepare/prepare-provider.d.ts +0 -187
  292. package/dist/types/taquito/src/provider.d.ts +0 -50
  293. package/dist/types/taquito/src/read-provider/interface.d.ts +0 -132
  294. package/dist/types/taquito/src/read-provider/rpc-read-adapter.d.ts +0 -130
  295. package/dist/types/taquito/src/signer/errors.d.ts +0 -8
  296. package/dist/types/taquito/src/signer/noop.d.ts +0 -11
  297. package/dist/types/taquito/src/subscribe/create-observable-from-subscription.d.ts +0 -4
  298. package/dist/types/taquito/src/subscribe/errors.d.ts +0 -18
  299. package/dist/types/taquito/src/subscribe/filters.d.ts +0 -6
  300. package/dist/types/taquito/src/subscribe/interface.d.ts +0 -48
  301. package/dist/types/taquito/src/subscribe/observable-subscription.d.ts +0 -21
  302. package/dist/types/taquito/src/subscribe/polling-subcribe-provider.d.ts +0 -23
  303. package/dist/types/taquito/src/taquito.d.ts +0 -248
  304. package/dist/types/taquito/src/tz/interface.d.ts +0 -20
  305. package/dist/types/taquito/src/tz/rpc-tz-provider.d.ts +0 -13
  306. package/dist/types/taquito/src/version.d.ts +0 -4
  307. package/dist/types/taquito/src/wallet/batch-operation.d.ts +0 -13
  308. package/dist/types/taquito/src/wallet/delegation-operation.d.ts +0 -12
  309. package/dist/types/taquito/src/wallet/errors.d.ts +0 -24
  310. package/dist/types/taquito/src/wallet/increase-paid-storage-operation.d.ts +0 -12
  311. package/dist/types/taquito/src/wallet/index.d.ts +0 -9
  312. package/dist/types/taquito/src/wallet/interface.d.ts +0 -66
  313. package/dist/types/taquito/src/wallet/legacy.d.ts +0 -21
  314. package/dist/types/taquito/src/wallet/operation-factory.d.ts +0 -32
  315. package/dist/types/taquito/src/wallet/operation.d.ts +0 -55
  316. package/dist/types/taquito/src/wallet/origination-operation.d.ts +0 -14
  317. package/dist/types/taquito/src/wallet/receipt.d.ts +0 -16
  318. package/dist/types/taquito/src/wallet/register-global-constant-operation.d.ts +0 -13
  319. package/dist/types/taquito/src/wallet/transaction-operation.d.ts +0 -12
  320. package/dist/types/taquito/src/wallet/transfer-ticket-operation.d.ts +0 -12
  321. package/dist/types/taquito/src/wallet/wallet.d.ts +0 -196
  322. package/dist/types/taquito-core/src/errors.d.ts +0 -213
  323. package/dist/types/taquito-core/src/signer-interfaces.d.ts +0 -38
  324. package/dist/types/taquito-core/src/taquito-core.d.ts +0 -6
  325. package/dist/types/taquito-http-utils/src/errors.d.ts +0 -63
  326. package/dist/types/taquito-http-utils/src/status_code.d.ts +0 -318
  327. package/dist/types/taquito-http-utils/src/taquito-http-utils.d.ts +0 -58
  328. package/dist/types/taquito-http-utils/src/transport-errors.d.ts +0 -28
  329. package/dist/types/taquito-local-forging/src/codec.d.ts +0 -79
  330. package/dist/types/taquito-local-forging/src/constants.d.ts +0 -75
  331. package/dist/types/taquito-local-forging/src/decoder.d.ts +0 -5
  332. package/dist/types/taquito-local-forging/src/encoder.d.ts +0 -4
  333. package/dist/types/taquito-local-forging/src/errors.d.ts +0 -109
  334. package/dist/types/taquito-local-forging/src/interface.d.ts +0 -9
  335. package/dist/types/taquito-local-forging/src/michelson/codec.d.ts +0 -49
  336. package/dist/types/taquito-local-forging/src/protocols.d.ts +0 -27
  337. package/dist/types/taquito-local-forging/src/schema/operation.d.ts +0 -198
  338. package/dist/types/taquito-local-forging/src/taquito-local-forging.d.ts +0 -27
  339. package/dist/types/taquito-local-forging/src/uint8array-consumer.d.ts +0 -10
  340. package/dist/types/taquito-local-forging/src/utils.d.ts +0 -3
  341. package/dist/types/taquito-local-forging/src/validator.d.ts +0 -13
  342. package/dist/types/taquito-local-forging/src/version.d.ts +0 -4
  343. package/dist/types/taquito-michel-codec/src/base58.d.ts +0 -13
  344. package/dist/types/taquito-michel-codec/src/binary.d.ts +0 -127
  345. package/dist/types/taquito-michel-codec/src/errors.d.ts +0 -57
  346. package/dist/types/taquito-michel-codec/src/formatters.d.ts +0 -6
  347. package/dist/types/taquito-michel-codec/src/global-constants.d.ts +0 -3
  348. package/dist/types/taquito-michel-codec/src/macros.d.ts +0 -13
  349. package/dist/types/taquito-michel-codec/src/micheline-emitter.d.ts +0 -17
  350. package/dist/types/taquito-michel-codec/src/micheline-parser.d.ts +0 -130
  351. package/dist/types/taquito-michel-codec/src/micheline.d.ts +0 -44
  352. package/dist/types/taquito-michel-codec/src/michelson-contract.d.ts +0 -24
  353. package/dist/types/taquito-michel-codec/src/michelson-typecheck.d.ts +0 -38
  354. package/dist/types/taquito-michel-codec/src/michelson-types.d.ts +0 -147
  355. package/dist/types/taquito-michel-codec/src/michelson-validator.d.ts +0 -66
  356. package/dist/types/taquito-michel-codec/src/scan.d.ts +0 -26
  357. package/dist/types/taquito-michel-codec/src/taquito-michel-codec.d.ts +0 -16
  358. package/dist/types/taquito-michel-codec/src/utils.d.ts +0 -76
  359. package/dist/types/taquito-michel-codec/src/version.d.ts +0 -4
  360. package/dist/types/taquito-michelson-encoder/src/constants.d.ts +0 -8
  361. package/dist/types/taquito-michelson-encoder/src/errors.d.ts +0 -17
  362. package/dist/types/taquito-michelson-encoder/src/michelson-map.d.ts +0 -82
  363. package/dist/types/taquito-michelson-encoder/src/schema/errors.d.ts +0 -83
  364. package/dist/types/taquito-michelson-encoder/src/schema/event-schema.d.ts +0 -12
  365. package/dist/types/taquito-michelson-encoder/src/schema/parameter.d.ts +0 -54
  366. package/dist/types/taquito-michelson-encoder/src/schema/storage.d.ts +0 -97
  367. package/dist/types/taquito-michelson-encoder/src/schema/types.d.ts +0 -105
  368. package/dist/types/taquito-michelson-encoder/src/schema/view-schema.d.ts +0 -53
  369. package/dist/types/taquito-michelson-encoder/src/taquito-michelson-encoder.d.ts +0 -16
  370. package/dist/types/taquito-michelson-encoder/src/tokens/bigmap.d.ts +0 -51
  371. package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-fr.d.ts +0 -51
  372. package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-g1.d.ts +0 -47
  373. package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-g2.d.ts +0 -47
  374. package/dist/types/taquito-michelson-encoder/src/tokens/chain-id.d.ts +0 -51
  375. package/dist/types/taquito-michelson-encoder/src/tokens/chest-key.d.ts +0 -47
  376. package/dist/types/taquito-michelson-encoder/src/tokens/chest.d.ts +0 -47
  377. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/address.d.ts +0 -61
  378. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/bool.d.ts +0 -32
  379. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/bytes.d.ts +0 -52
  380. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/int.d.ts +0 -56
  381. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/key_hash.d.ts +0 -55
  382. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/mutez.d.ts +0 -53
  383. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/nat.d.ts +0 -55
  384. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/string.d.ts +0 -31
  385. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/timestamp.d.ts +0 -34
  386. package/dist/types/taquito-michelson-encoder/src/tokens/constant.d.ts +0 -51
  387. package/dist/types/taquito-michelson-encoder/src/tokens/contract.d.ts +0 -48
  388. package/dist/types/taquito-michelson-encoder/src/tokens/createToken.d.ts +0 -18
  389. package/dist/types/taquito-michelson-encoder/src/tokens/key.d.ts +0 -55
  390. package/dist/types/taquito-michelson-encoder/src/tokens/lambda.d.ts +0 -24
  391. package/dist/types/taquito-michelson-encoder/src/tokens/list.d.ts +0 -46
  392. package/dist/types/taquito-michelson-encoder/src/tokens/map.d.ts +0 -47
  393. package/dist/types/taquito-michelson-encoder/src/tokens/never.d.ts +0 -41
  394. package/dist/types/taquito-michelson-encoder/src/tokens/operation.d.ts +0 -24
  395. package/dist/types/taquito-michelson-encoder/src/tokens/option.d.ts +0 -37
  396. package/dist/types/taquito-michelson-encoder/src/tokens/or.d.ts +0 -53
  397. package/dist/types/taquito-michelson-encoder/src/tokens/pair.d.ts +0 -50
  398. package/dist/types/taquito-michelson-encoder/src/tokens/sapling-state.d.ts +0 -44
  399. package/dist/types/taquito-michelson-encoder/src/tokens/sapling-transaction-deprecated.d.ts +0 -40
  400. package/dist/types/taquito-michelson-encoder/src/tokens/sapling-transaction.d.ts +0 -40
  401. package/dist/types/taquito-michelson-encoder/src/tokens/set.d.ts +0 -43
  402. package/dist/types/taquito-michelson-encoder/src/tokens/signature.d.ts +0 -53
  403. package/dist/types/taquito-michelson-encoder/src/tokens/ticket-deprecated.d.ts +0 -38
  404. package/dist/types/taquito-michelson-encoder/src/tokens/ticket.d.ts +0 -38
  405. package/dist/types/taquito-michelson-encoder/src/tokens/token.d.ts +0 -68
  406. package/dist/types/taquito-michelson-encoder/src/tokens/tokens.d.ts +0 -36
  407. package/dist/types/taquito-michelson-encoder/src/tokens/unit.d.ts +0 -34
  408. package/dist/types/taquito-michelson-encoder/src/version.d.ts +0 -4
  409. package/dist/types/taquito-rpc/src/opkind.d.ts +0 -45
  410. package/dist/types/taquito-rpc/src/rpc-client-interface.d.ts +0 -126
  411. package/dist/types/taquito-rpc/src/rpc-client-modules/rpc-cache.d.ts +0 -473
  412. package/dist/types/taquito-rpc/src/taquito-rpc.d.ts +0 -483
  413. package/dist/types/taquito-rpc/src/types.d.ts +0 -2362
  414. package/dist/types/taquito-rpc/src/utils/utils.d.ts +0 -14
  415. package/dist/types/taquito-rpc/src/version.d.ts +0 -4
  416. package/dist/types/taquito-signer/src/bls-key.d.ts +0 -21
  417. package/dist/types/taquito-signer/src/derivation-tools/ecdsa.d.ts +0 -49
  418. package/dist/types/taquito-signer/src/derivation-tools/ed25519.d.ts +0 -33
  419. package/dist/types/taquito-signer/src/derivation-tools/index.d.ts +0 -12
  420. package/dist/types/taquito-signer/src/derivation-tools/types.d.ts +0 -10
  421. package/dist/types/taquito-signer/src/derivation-tools/utils.d.ts +0 -1
  422. package/dist/types/taquito-signer/src/ec-key.d.ts +0 -42
  423. package/dist/types/taquito-signer/src/ed-key.d.ts +0 -39
  424. package/dist/types/taquito-signer/src/errors.d.ts +0 -51
  425. package/dist/types/taquito-signer/src/helpers.d.ts +0 -10
  426. package/dist/types/taquito-signer/src/in-memory-signer.d.ts +0 -56
  427. package/dist/types/taquito-signer/src/key-interface.d.ts +0 -37
  428. package/dist/types/taquito-signer/src/taquito-signer.d.ts +0 -10
  429. package/dist/types/taquito-signer/src/version.d.ts +0 -4
  430. package/dist/types/taquito-utils/src/constants.d.ts +0 -78
  431. package/dist/types/taquito-utils/src/encoding.d.ts +0 -184
  432. package/dist/types/taquito-utils/src/errors.d.ts +0 -20
  433. package/dist/types/taquito-utils/src/format.d.ts +0 -4
  434. package/dist/types/taquito-utils/src/taquito-utils.d.ts +0 -11
  435. package/dist/types/taquito-utils/src/validators.d.ts +0 -167
  436. package/dist/types/taquito-utils/src/verify-signature.d.ts +0 -22
  437. package/dist/types/taquito-utils/src/version.d.ts +0 -4
  438. package/dist/types/taquito-wallet-connect/src/version.d.ts +0 -4
  439. /package/dist/lib/{taquito-wallet-connect/src/errors.js → errors.js} +0 -0
  440. /package/dist/lib/{taquito-wallet-connect/src/types.js → types.js} +0 -0
  441. /package/dist/types/{taquito-wallet-connect/src/errors.d.ts → errors.d.ts} +0 -0
  442. /package/dist/types/{taquito-wallet-connect/src/taquito-wallet-connect.d.ts → taquito-wallet-connect.d.ts} +0 -0
  443. /package/dist/types/{taquito-wallet-connect/src/types.d.ts → types.d.ts} +0 -0
  444. /package/dist/types/{taquito-http-utils/src/version.d.ts → version.d.ts} +0 -0
@@ -1,240 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
36
- if (kind === "m") throw new TypeError("Private method is not writable");
37
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
38
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
39
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
40
- };
41
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
42
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
43
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
44
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
45
- };
46
- var __importDefault = (this && this.__importDefault) || function (mod) {
47
- return (mod && mod.__esModule) ? mod : { "default": mod };
48
- };
49
- var _InMemorySigner_key;
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.InMemorySigner = void 0;
52
- exports.publicKeyFromString = publicKeyFromString;
53
- const nacl_1 = require("@stablelib/nacl");
54
- const utils_1 = require("@taquito/utils");
55
- const typedarray_to_buffer_1 = __importDefault(require("typedarray-to-buffer"));
56
- const ed_key_1 = require("./ed-key");
57
- const ec_key_1 = require("./ec-key");
58
- const bip39 = __importStar(require("@scure/bip39"));
59
- const english_js_1 = require("@scure/bip39/wordlists/english.js");
60
- const pbkdf2_js_1 = require("@noble/hashes/pbkdf2.js");
61
- const helpers_1 = require("./helpers");
62
- const errors_1 = require("./errors");
63
- const core_1 = require("@taquito/core");
64
- const key_interface_1 = require("./key-interface");
65
- const bls_key_1 = require("./bls-key");
66
- const sha2_js_1 = require("@noble/hashes/sha2.js");
67
- /**
68
- * A local implementation of the signer. Will represent a Tezos account and be able to produce signature in its behalf
69
- *
70
- * @remarks If running in production and dealing with tokens that have real value, it is strongly recommended to use a HSM backed signer so that private key material is not stored in memory or on disk
71
- * @throws InvalidMnemonicError
72
- */
73
- class InMemorySigner {
74
- static fromFundraiser(email, password, mnemonic) {
75
- if (!bip39.validateMnemonic(mnemonic, english_js_1.wordlist)) {
76
- throw new errors_1.InvalidMnemonicError();
77
- }
78
- const seed = bip39.mnemonicToSeedSync(mnemonic, `${email}${password}`);
79
- const key = (0, utils_1.b58Encode)(seed.subarray(0, 32), utils_1.PrefixV2.Ed25519Seed);
80
- return new InMemorySigner(key);
81
- }
82
- static async fromSecretKey(key, passphrase) {
83
- return new InMemorySigner(key, passphrase);
84
- }
85
- /**
86
- *
87
- * Instantiation of an InMemorySigner instance from a mnemonic
88
- * @returns InMemorySigner
89
- * @throws InvalidMnemonicError
90
- */
91
- static fromMnemonic({ mnemonic, password = '', derivationPath = "44'/1729'/0'/0'", curve = 'ed25519', }) {
92
- // check if curve is defined if not default tz1
93
- if (!bip39.validateMnemonic(mnemonic, english_js_1.wordlist)) {
94
- // avoiding exposing mnemonic again in case of mistake making invalid
95
- throw new errors_1.InvalidMnemonicError();
96
- }
97
- const seed = bip39.mnemonicToSeedSync(mnemonic, password);
98
- const sk = (0, helpers_1.generateSecretKey)(seed, derivationPath, curve);
99
- return new InMemorySigner(sk);
100
- }
101
- /**
102
- *
103
- * @param key Encoded private key
104
- * @param passphrase Passphrase to decrypt the private key if it is encrypted
105
- * @throws InvalidKeyError
106
- *
107
- */
108
- constructor(key, passphrase) {
109
- _InMemorySigner_key.set(this, void 0);
110
- const keyPrefixes = [
111
- utils_1.PrefixV2.Ed25519EncryptedSeed,
112
- utils_1.PrefixV2.Ed25519Seed,
113
- utils_1.PrefixV2.Ed25519SecretKey,
114
- utils_1.PrefixV2.Secp256k1EncryptedSecretKey,
115
- utils_1.PrefixV2.Secp256k1SecretKey,
116
- utils_1.PrefixV2.P256EncryptedSecretKey,
117
- utils_1.PrefixV2.P256SecretKey,
118
- utils_1.PrefixV2.BLS12_381EncryptedSecretKey,
119
- utils_1.PrefixV2.BLS12_381SecretKey,
120
- ];
121
- const pre = (() => {
122
- try {
123
- const [, pre] = (0, utils_1.b58DecodeAndCheckPrefix)(key, keyPrefixes);
124
- return pre;
125
- }
126
- catch {
127
- throw new core_1.InvalidKeyError(`Invalid private key, expecting one of the following prefixes '${keyPrefixes}'.`);
128
- }
129
- })();
130
- const encrypted = pre === utils_1.PrefixV2.Ed25519EncryptedSeed ||
131
- pre === utils_1.PrefixV2.Secp256k1EncryptedSecretKey ||
132
- pre === utils_1.PrefixV2.P256EncryptedSecretKey ||
133
- pre === utils_1.PrefixV2.BLS12_381EncryptedSecretKey;
134
- let decrypt;
135
- if (encrypted) {
136
- if (!passphrase) {
137
- throw new errors_1.InvalidPassphraseError('No passphrase provided to decrypt encrypted key');
138
- }
139
- decrypt = (data) => {
140
- const salt = (0, typedarray_to_buffer_1.default)(data.slice(0, 8));
141
- const encryptedSk = data.slice(8);
142
- const encryptionKey = (0, pbkdf2_js_1.pbkdf2)(sha2_js_1.sha512, passphrase, salt, { c: 32768, dkLen: 32 });
143
- // Zero nonce is safe here: Tezos encrypted key format uses a fresh random salt per
144
- // encryption, producing a unique PBKDF2-derived key each time. The (key, nonce) pair
145
- // never repeats, satisfying NaCl secretbox requirements. This matches octez-client.
146
- // See: https://gitlab.com/tezos/tezos/-/blob/master/src/lib_signer_backends/encrypted.ml
147
- const res = (0, nacl_1.openSecretBox)(new Uint8Array(encryptionKey), new Uint8Array(24), // zero nonce - uniqueness provided by per-encryption derived key
148
- new Uint8Array(encryptedSk));
149
- if (!res) {
150
- throw new Error("can't decrypt secret key");
151
- }
152
- return res;
153
- };
154
- }
155
- switch (pre) {
156
- case utils_1.PrefixV2.Ed25519EncryptedSeed:
157
- case utils_1.PrefixV2.Ed25519Seed:
158
- case utils_1.PrefixV2.Ed25519SecretKey:
159
- __classPrivateFieldSet(this, _InMemorySigner_key, new ed_key_1.EdKey(key, decrypt), "f");
160
- break;
161
- case utils_1.PrefixV2.Secp256k1EncryptedSecretKey:
162
- case utils_1.PrefixV2.Secp256k1SecretKey:
163
- case utils_1.PrefixV2.P256EncryptedSecretKey:
164
- case utils_1.PrefixV2.P256SecretKey:
165
- __classPrivateFieldSet(this, _InMemorySigner_key, new ec_key_1.ECKey(key, decrypt), "f");
166
- break;
167
- case utils_1.PrefixV2.BLS12_381EncryptedSecretKey:
168
- case utils_1.PrefixV2.BLS12_381SecretKey:
169
- __classPrivateFieldSet(this, _InMemorySigner_key, new bls_key_1.BLSKey(key, decrypt), "f");
170
- break;
171
- }
172
- }
173
- /**
174
- *
175
- * @param message Bytes to sign
176
- * @param watermark Watermark to append to the bytes
177
- */
178
- async sign(message, watermark) {
179
- const msg = typeof message == 'string' ? (0, utils_1.hex2buf)(message) : message;
180
- const watermarkMsg = watermark !== undefined ? (0, utils_1.mergebuf)(watermark, msg) : msg;
181
- const { rawSignature, sig: signature, prefixSig: prefixedSignature, } = await __classPrivateFieldGet(this, _InMemorySigner_key, "f").sign(watermarkMsg);
182
- return {
183
- bytes: (0, utils_1.buf2hex)(msg),
184
- sig: signature,
185
- prefixSig: prefixedSignature,
186
- sbytes: (0, utils_1.buf2hex)((0, utils_1.mergebuf)(msg,
187
- // bls only Signature_prefix ff03 ref:https://octez.tezos.com/docs/shell/p2p_api.html#signature-prefix-tag-255 & https://octez.tezos.com/docs/shell/p2p_api.html#bls-prefix-tag-3
188
- (0, key_interface_1.isPOP)(__classPrivateFieldGet(this, _InMemorySigner_key, "f")) ? (0, utils_1.mergebuf)(new Uint8Array([255, 3]), rawSignature) : rawSignature)),
189
- };
190
- }
191
- async provePossession() {
192
- if ((0, key_interface_1.isPOP)(__classPrivateFieldGet(this, _InMemorySigner_key, "f"))) {
193
- return __classPrivateFieldGet(this, _InMemorySigner_key, "f").provePossession();
194
- }
195
- else {
196
- throw new core_1.ProhibitedActionError('Only BLS keys can prove possession');
197
- }
198
- }
199
- get canProvePossession() {
200
- return (0, key_interface_1.isPOP)(__classPrivateFieldGet(this, _InMemorySigner_key, "f"));
201
- }
202
- /**
203
- * @returns Encoded public key
204
- */
205
- publicKey() {
206
- return Promise.resolve(String(__classPrivateFieldGet(this, _InMemorySigner_key, "f").publicKey()));
207
- }
208
- /**
209
- * @returns Encoded public key hash
210
- */
211
- publicKeyHash() {
212
- return Promise.resolve(__classPrivateFieldGet(this, _InMemorySigner_key, "f").publicKey().hash());
213
- }
214
- /**
215
- * @returns Encoded private key
216
- */
217
- secretKey() {
218
- return Promise.resolve(__classPrivateFieldGet(this, _InMemorySigner_key, "f").secretKey());
219
- }
220
- }
221
- exports.InMemorySigner = InMemorySigner;
222
- _InMemorySigner_key = new WeakMap();
223
- function publicKeyFromString(src) {
224
- const [keyData, pre] = (0, utils_1.b58DecodeAndCheckPrefix)(src, [
225
- utils_1.PrefixV2.Ed25519PublicKey,
226
- utils_1.PrefixV2.Secp256k1PublicKey,
227
- utils_1.PrefixV2.P256PublicKey,
228
- utils_1.PrefixV2.BLS12_381PublicKey,
229
- ]);
230
- switch (pre) {
231
- case utils_1.PrefixV2.Ed25519PublicKey:
232
- return new ed_key_1.EdPublicKey(keyData);
233
- case utils_1.PrefixV2.Secp256k1PublicKey:
234
- return new ec_key_1.ECPublicKey(keyData, 'secp256k1');
235
- case utils_1.PrefixV2.P256PublicKey:
236
- return new ec_key_1.ECPublicKey(keyData, 'p256');
237
- case utils_1.PrefixV2.BLS12_381PublicKey:
238
- return new bls_key_1.BLSPublicKey(keyData);
239
- }
240
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPOP = isPOP;
4
- function isPOP(k) {
5
- return 'provePossession' in k;
6
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.InvalidPassphraseError = exports.VERSION = void 0;
18
- /**
19
- * @packageDocumentation
20
- * @module @taquito/signer
21
- */
22
- __exportStar(require("./in-memory-signer"), exports);
23
- var version_1 = require("./version");
24
- Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
25
- __exportStar(require("./derivation-tools"), exports);
26
- __exportStar(require("./helpers"), exports);
27
- var errors_1 = require("./errors");
28
- Object.defineProperty(exports, "InvalidPassphraseError", { enumerable: true, get: function () { return errors_1.InvalidPassphraseError; } });
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VERSION = void 0;
4
- // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
5
- exports.VERSION = {
6
- "commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
7
- "version": "24.3.0-beta.2"
8
- };
@@ -1,203 +0,0 @@
1
- "use strict";
2
- // ref https://gitlab.com/tezos/tezos/-/blob/master/src/lib_crypto/base58.ml
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.payloadLength = exports.prefixV2 = exports.PrefixV2 = void 0;
5
- /**
6
- * base58 name to prefix mapping
7
- */
8
- var PrefixV2;
9
- (function (PrefixV2) {
10
- PrefixV2["BlockHash"] = "B";
11
- PrefixV2["OperationHash"] = "o";
12
- PrefixV2["OperationListHash"] = "Lo";
13
- PrefixV2["OperationListListHash"] = "LLo";
14
- PrefixV2["ProtocolHash"] = "P";
15
- PrefixV2["ContextHash"] = "Co";
16
- PrefixV2["BlockMetadataHash"] = "bm";
17
- PrefixV2["OperationMetadataHash"] = "r";
18
- PrefixV2["OperationMetadataListHash"] = "Lr";
19
- PrefixV2["OperationMetadataListListHash"] = "LLr";
20
- PrefixV2["Ed25519PublicKeyHash"] = "tz1";
21
- PrefixV2["Secp256k1PublicKeyHash"] = "tz2";
22
- PrefixV2["P256PublicKeyHash"] = "tz3";
23
- PrefixV2["ContractHash"] = "KT1";
24
- PrefixV2["BlindedPublicKeyHash"] = "btz1";
25
- PrefixV2["BLS12_381PublicKeyHash"] = "tz4";
26
- PrefixV2["TXRollupAddress"] = "txr1";
27
- PrefixV2["ZkRollupHash"] = "epx1";
28
- PrefixV2["ScRollupHash"] = "scr1";
29
- PrefixV2["SmartRollupHash"] = "sr1";
30
- PrefixV2["CryptoboxPublicKeyHash"] = "id";
31
- PrefixV2["Ed25519Seed"] = "edsk";
32
- PrefixV2["Ed25519PublicKey"] = "edpk";
33
- PrefixV2["Secp256k1SecretKey"] = "spsk";
34
- PrefixV2["P256SecretKey"] = "p2sk";
35
- PrefixV2["BLS12_381SecretKey"] = "BLsk";
36
- PrefixV2["ValueHash"] = "vh";
37
- PrefixV2["CycleNonce"] = "nce";
38
- PrefixV2["ScriptExpr"] = "expr";
39
- PrefixV2["InboxHash"] = "txi";
40
- PrefixV2["MessageHash"] = "txm";
41
- PrefixV2["CommitmentHash"] = "txc";
42
- PrefixV2["MessageResultHash"] = "txmr";
43
- PrefixV2["MessageResultListHash"] = "txM";
44
- PrefixV2["WithdrawListHash"] = "txw";
45
- PrefixV2["ScRollupStateHash"] = "scs1";
46
- PrefixV2["ScRollupCommitmentHash"] = "scc1";
47
- PrefixV2["SmartRollupStateHash"] = "srs1";
48
- PrefixV2["SmartRollupCommitmentHash"] = "src1";
49
- PrefixV2["Ed25519EncryptedSeed"] = "edesk";
50
- PrefixV2["Secp256k1EncryptedSecretKey"] = "spesk";
51
- PrefixV2["P256EncryptedSecretKey"] = "p2esk";
52
- PrefixV2["BLS12_381EncryptedSecretKey"] = "BLesk";
53
- PrefixV2["Secp256k1EncryptedScalar"] = "seesk";
54
- PrefixV2["Secp256k1PublicKey"] = "sppk";
55
- PrefixV2["P256PublicKey"] = "p2pk";
56
- PrefixV2["Secp256k1Scalar"] = "SSp";
57
- PrefixV2["Secp256k1Element"] = "GSp";
58
- PrefixV2["Ed25519SecretKey"] = "_edsk";
59
- PrefixV2["Ed25519Signature"] = "edsig";
60
- PrefixV2["Secp256k1Signature"] = "spsig1";
61
- PrefixV2["P256Signature"] = "p2sig";
62
- PrefixV2["GenericSignature"] = "sig";
63
- PrefixV2["ChainID"] = "Net";
64
- PrefixV2["SaplingSpendingKey"] = "sask";
65
- PrefixV2["EncryptedSaplingSpendingKey"] = "_sask";
66
- PrefixV2["SaplingAddress"] = "zet1";
67
- PrefixV2["GenericAggregateSignature"] = "asig";
68
- PrefixV2["BLS12_381Signature"] = "BLsig";
69
- PrefixV2["BLS12_381PublicKey"] = "BLpk";
70
- PrefixV2["SlotHeader"] = "sh";
71
- })(PrefixV2 || (exports.PrefixV2 = PrefixV2 = {}));
72
- /**
73
- * base58 prefix to bytes mapping
74
- */
75
- exports.prefixV2 = {
76
- [PrefixV2.BlockHash]: new Uint8Array([1, 52]),
77
- [PrefixV2.OperationHash]: new Uint8Array([5, 116]),
78
- [PrefixV2.OperationListHash]: new Uint8Array([133, 233]),
79
- [PrefixV2.OperationListListHash]: new Uint8Array([29, 159, 109]),
80
- [PrefixV2.ProtocolHash]: new Uint8Array([2, 170]),
81
- [PrefixV2.ContextHash]: new Uint8Array([79, 199]),
82
- [PrefixV2.BlockMetadataHash]: new Uint8Array([234, 249]),
83
- [PrefixV2.OperationMetadataHash]: new Uint8Array([5, 183]),
84
- [PrefixV2.OperationMetadataListHash]: new Uint8Array([134, 39]),
85
- [PrefixV2.OperationMetadataListListHash]: new Uint8Array([29, 159, 182]),
86
- [PrefixV2.Ed25519PublicKeyHash]: new Uint8Array([6, 161, 159]),
87
- [PrefixV2.Secp256k1PublicKeyHash]: new Uint8Array([6, 161, 161]),
88
- [PrefixV2.P256PublicKeyHash]: new Uint8Array([6, 161, 164]),
89
- [PrefixV2.ContractHash]: new Uint8Array([2, 90, 121]),
90
- [PrefixV2.BlindedPublicKeyHash]: new Uint8Array([1, 2, 49, 223]),
91
- [PrefixV2.BLS12_381PublicKeyHash]: new Uint8Array([6, 161, 166]),
92
- [PrefixV2.TXRollupAddress]: new Uint8Array([1, 128, 120, 31]),
93
- [PrefixV2.ZkRollupHash]: new Uint8Array([1, 23, 224, 125]),
94
- [PrefixV2.ScRollupHash]: new Uint8Array([1, 118, 132, 217]),
95
- [PrefixV2.SmartRollupHash]: new Uint8Array([6, 124, 117]),
96
- [PrefixV2.CryptoboxPublicKeyHash]: new Uint8Array([153, 103]),
97
- [PrefixV2.Ed25519Seed]: new Uint8Array([13, 15, 58, 7]),
98
- [PrefixV2.Ed25519PublicKey]: new Uint8Array([13, 15, 37, 217]),
99
- [PrefixV2.Secp256k1SecretKey]: new Uint8Array([17, 162, 224, 201]),
100
- [PrefixV2.P256SecretKey]: new Uint8Array([16, 81, 238, 189]),
101
- [PrefixV2.BLS12_381SecretKey]: new Uint8Array([3, 150, 192, 40]),
102
- [PrefixV2.ValueHash]: new Uint8Array([1, 106, 242]),
103
- [PrefixV2.CycleNonce]: new Uint8Array([69, 220, 169]),
104
- [PrefixV2.ScriptExpr]: new Uint8Array([13, 44, 64, 27]),
105
- [PrefixV2.InboxHash]: new Uint8Array([79, 148, 196]),
106
- [PrefixV2.MessageHash]: new Uint8Array([79, 149, 30]),
107
- [PrefixV2.CommitmentHash]: new Uint8Array([79, 148, 17]),
108
- [PrefixV2.MessageResultHash]: new Uint8Array([18, 7, 206, 87]),
109
- [PrefixV2.MessageResultListHash]: new Uint8Array([79, 146, 82]),
110
- [PrefixV2.WithdrawListHash]: new Uint8Array([79, 150, 72]),
111
- [PrefixV2.ScRollupStateHash]: new Uint8Array([17, 144, 122, 202]),
112
- [PrefixV2.ScRollupCommitmentHash]: new Uint8Array([17, 144, 21, 100]),
113
- [PrefixV2.SmartRollupStateHash]: new Uint8Array([17, 165, 235, 240]),
114
- [PrefixV2.SmartRollupCommitmentHash]: new Uint8Array([17, 165, 134, 138]),
115
- [PrefixV2.Ed25519EncryptedSeed]: new Uint8Array([7, 90, 60, 179, 41]),
116
- [PrefixV2.Secp256k1EncryptedSecretKey]: new Uint8Array([9, 237, 241, 174, 150]),
117
- [PrefixV2.P256EncryptedSecretKey]: new Uint8Array([9, 48, 57, 115, 171]),
118
- [PrefixV2.BLS12_381EncryptedSecretKey]: new Uint8Array([2, 5, 30, 53, 25]),
119
- [PrefixV2.Secp256k1EncryptedScalar]: new Uint8Array([1, 131, 36, 86, 248]),
120
- [PrefixV2.Secp256k1PublicKey]: new Uint8Array([3, 254, 226, 86]),
121
- [PrefixV2.P256PublicKey]: new Uint8Array([3, 178, 139, 127]),
122
- [PrefixV2.Secp256k1Scalar]: new Uint8Array([38, 248, 136]),
123
- [PrefixV2.Secp256k1Element]: new Uint8Array([5, 92, 0]),
124
- [PrefixV2.Ed25519SecretKey]: new Uint8Array([43, 246, 78, 7]),
125
- [PrefixV2.Ed25519Signature]: new Uint8Array([9, 245, 205, 134, 18]),
126
- [PrefixV2.Secp256k1Signature]: new Uint8Array([13, 115, 101, 19, 63]),
127
- [PrefixV2.P256Signature]: new Uint8Array([54, 240, 44, 52]),
128
- [PrefixV2.GenericSignature]: new Uint8Array([4, 130, 43]),
129
- [PrefixV2.ChainID]: new Uint8Array([87, 82, 0]),
130
- [PrefixV2.SaplingSpendingKey]: new Uint8Array([11, 237, 20, 92]),
131
- [PrefixV2.EncryptedSaplingSpendingKey]: new Uint8Array([11, 237, 20, 92]),
132
- [PrefixV2.SaplingAddress]: new Uint8Array([18, 71, 40, 223]),
133
- [PrefixV2.GenericAggregateSignature]: new Uint8Array([2, 75, 234, 101]),
134
- [PrefixV2.BLS12_381Signature]: new Uint8Array([40, 171, 64, 207]),
135
- [PrefixV2.BLS12_381PublicKey]: new Uint8Array([6, 149, 135, 204]),
136
- [PrefixV2.SlotHeader]: new Uint8Array([2, 116, 180]),
137
- };
138
- /**
139
- * base58 prefix to payload length mapping
140
- */
141
- exports.payloadLength = {
142
- [PrefixV2.BlockHash]: 32,
143
- [PrefixV2.OperationHash]: 32,
144
- [PrefixV2.OperationListHash]: 32,
145
- [PrefixV2.OperationListListHash]: 32,
146
- [PrefixV2.ProtocolHash]: 32,
147
- [PrefixV2.ContextHash]: 32,
148
- [PrefixV2.BlockMetadataHash]: 32,
149
- [PrefixV2.OperationMetadataHash]: 32,
150
- [PrefixV2.OperationMetadataListHash]: 32,
151
- [PrefixV2.OperationMetadataListListHash]: 32,
152
- [PrefixV2.Ed25519PublicKeyHash]: 20,
153
- [PrefixV2.Secp256k1PublicKeyHash]: 20,
154
- [PrefixV2.P256PublicKeyHash]: 20,
155
- [PrefixV2.ContractHash]: 20,
156
- [PrefixV2.BlindedPublicKeyHash]: 20,
157
- [PrefixV2.BLS12_381PublicKeyHash]: 20,
158
- [PrefixV2.TXRollupAddress]: 20,
159
- [PrefixV2.ZkRollupHash]: 20,
160
- [PrefixV2.ScRollupHash]: 20,
161
- [PrefixV2.SmartRollupHash]: 20,
162
- [PrefixV2.CryptoboxPublicKeyHash]: 16,
163
- [PrefixV2.Ed25519Seed]: 32,
164
- [PrefixV2.Ed25519PublicKey]: 32,
165
- [PrefixV2.Secp256k1SecretKey]: 32,
166
- [PrefixV2.P256SecretKey]: 32,
167
- [PrefixV2.BLS12_381SecretKey]: 32,
168
- [PrefixV2.ValueHash]: 32,
169
- [PrefixV2.CycleNonce]: 32,
170
- [PrefixV2.ScriptExpr]: 32,
171
- [PrefixV2.InboxHash]: 32,
172
- [PrefixV2.MessageHash]: 32,
173
- [PrefixV2.CommitmentHash]: 32,
174
- [PrefixV2.MessageResultHash]: 32,
175
- [PrefixV2.MessageResultListHash]: 32,
176
- [PrefixV2.WithdrawListHash]: 32,
177
- [PrefixV2.ScRollupStateHash]: 32,
178
- [PrefixV2.ScRollupCommitmentHash]: 32,
179
- [PrefixV2.SmartRollupStateHash]: 32,
180
- [PrefixV2.SmartRollupCommitmentHash]: 32,
181
- [PrefixV2.Ed25519EncryptedSeed]: 56,
182
- [PrefixV2.Secp256k1EncryptedSecretKey]: 56,
183
- [PrefixV2.P256EncryptedSecretKey]: 56,
184
- [PrefixV2.BLS12_381EncryptedSecretKey]: 56,
185
- [PrefixV2.Secp256k1EncryptedScalar]: 60,
186
- [PrefixV2.Secp256k1PublicKey]: 33,
187
- [PrefixV2.P256PublicKey]: 33,
188
- [PrefixV2.Secp256k1Scalar]: 33,
189
- [PrefixV2.Secp256k1Element]: 33,
190
- [PrefixV2.Ed25519SecretKey]: 64,
191
- [PrefixV2.Ed25519Signature]: 64,
192
- [PrefixV2.Secp256k1Signature]: 64,
193
- [PrefixV2.P256Signature]: 64,
194
- [PrefixV2.GenericSignature]: 64,
195
- [PrefixV2.ChainID]: 4,
196
- [PrefixV2.SaplingSpendingKey]: 169,
197
- [PrefixV2.EncryptedSaplingSpendingKey]: 193,
198
- [PrefixV2.SaplingAddress]: 43,
199
- [PrefixV2.GenericAggregateSignature]: 96,
200
- [PrefixV2.BLS12_381Signature]: 96,
201
- [PrefixV2.BLS12_381PublicKey]: 48,
202
- [PrefixV2.SlotHeader]: 48,
203
- };