@taquito/sapling 24.3.0-beta.4 → 24.3.0-beta.7

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 (29) hide show
  1. package/dist/lib/constants.js +2 -1
  2. package/dist/lib/sapling-forger/sapling-forger.js +12 -11
  3. package/dist/lib/sapling-keys/in-memory-proving-key.js +3 -2
  4. package/dist/lib/sapling-keys/in-memory-spending-key.js +3 -2
  5. package/dist/lib/sapling-keys/in-memory-viewing-key.js +3 -2
  6. package/dist/lib/sapling-module-wrapper.js +6 -7
  7. package/dist/lib/sapling-output-params.js +12 -0
  8. package/dist/lib/sapling-state/sapling-state.js +8 -7
  9. package/dist/lib/sapling-tx-builder/sapling-transactions-builder.js +10 -9
  10. package/dist/lib/sapling-tx-viewer/helpers.js +3 -2
  11. package/dist/lib/sapling-tx-viewer/sapling-transaction-viewer.js +5 -4
  12. package/dist/lib/sapling-wasm.js +22 -0
  13. package/dist/lib/taquito-sapling.js +2 -1
  14. package/dist/lib/version.js +2 -2
  15. package/dist/taquito-sapling.es6.js +2454 -71
  16. package/dist/taquito-sapling.es6.js.map +1 -1
  17. package/dist/taquito-sapling.umd.js +2457 -94
  18. package/dist/taquito-sapling.umd.js.map +1 -1
  19. package/dist/types/constants.d.ts +1 -0
  20. package/dist/types/sapling-forger/sapling-forger.d.ts +1 -0
  21. package/dist/types/sapling-keys/in-memory-viewing-key.d.ts +1 -0
  22. package/dist/types/sapling-module-wrapper.d.ts +1 -0
  23. package/dist/types/sapling-output-params.d.ts +6 -0
  24. package/dist/types/sapling-tx-builder/sapling-transactions-builder.d.ts +1 -0
  25. package/dist/types/sapling-tx-viewer/helpers.d.ts +1 -0
  26. package/dist/types/sapling-wasm.d.ts +1 -0
  27. package/package.json +8 -6
  28. package/saplingOutputParams.d.ts +5 -0
  29. package/saplingOutputParams.js +8 -5
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  export declare const KDF_KEY = "KDFSaplingForTezosV1";
2
3
  export declare const OCK_KEY = "OCK_keystringderivation_TEZOS";
3
4
  export declare const DEFAULT_MEMO = "";
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import { SaplingTransactionInput, SaplingTransaction, SaplingTransactionOutput, SaplingTransactionPlaintext } from '../types';
2
3
  export declare class SaplingForger {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  /**
2
3
  * Holds the viewing key
3
4
  */
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import { ParametersOutputProof } from './types';
2
3
  export declare class SaplingWrapper {
3
4
  withProvingContext<T>(action: (context: number) => Promise<T>): Promise<T>;
@@ -0,0 +1,6 @@
1
+ import '../saplingOutputParams.js';
2
+ type SaplingOutputParamsModule = {
3
+ saplingOutputParams: string;
4
+ };
5
+ declare const _default: SaplingOutputParamsModule;
6
+ export default _default;
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import { SaplingForger } from '../sapling-forger/sapling-forger';
2
3
  import BigNumberJs from 'bignumber.js';
3
4
  type BigNumber = InstanceType<typeof BigNumberJs>;
@@ -1,3 +1,4 @@
1
+ import { Buffer } from 'buffer';
1
2
  import BigNumber from 'bignumber.js';
2
3
  import { Input } from '../types';
3
4
  export declare function memoHexToUtf8(memo: string): string;
@@ -0,0 +1 @@
1
+ export * from '@taquito/sapling-wasm';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/sapling",
3
- "version": "24.3.0-beta.4",
3
+ "version": "24.3.0-beta.7",
4
4
  "description": "Sapling transaction building and viewing support for Taquito.",
5
5
  "keywords": [
6
6
  "taquito",
@@ -16,6 +16,7 @@
16
16
  "files": [
17
17
  "dist",
18
18
  "saplingOutputParams.js",
19
+ "saplingOutputParams.d.ts",
19
20
  "SAPLING_PARAMS_PROVENANCE.md"
20
21
  ],
21
22
  "publishConfig": {
@@ -62,11 +63,12 @@
62
63
  "@scure/bip39": "^2.0.1",
63
64
  "@noble/hashes": "^2.0.1",
64
65
  "@stablelib/nacl": "^1.0.4",
65
- "@taquito/core": "^24.3.0-beta.4",
66
- "@taquito/rpc": "^24.3.0-beta.4",
67
- "@taquito/sapling-spend-params": "^24.3.0-beta.4",
68
- "@taquito/taquito": "^24.3.0-beta.4",
69
- "@taquito/utils": "^24.3.0-beta.4",
66
+ "@taquito/core": "^24.3.0-beta.7",
67
+ "@taquito/rpc": "^24.3.0-beta.7",
68
+ "@taquito/sapling-spend-params": "^24.3.0-beta.7",
69
+ "@taquito/taquito": "^24.3.0-beta.7",
70
+ "@taquito/utils": "^24.3.0-beta.7",
71
+ "buffer": "^6.0.3",
70
72
  "bignumber.js": "^10.0.2",
71
73
  "blakejs": "^1.2.1",
72
74
  "typedarray-to-buffer": "^4.0.0"
@@ -0,0 +1,5 @@
1
+ declare const saplingOutputParams: {
2
+ saplingOutputParams: string;
3
+ };
4
+
5
+ export default saplingOutputParams;