@taquito/sapling 17.3.2 → 17.4.0-beta-RC.0
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.
- package/dist/lib/constants.js +0 -1
- package/dist/lib/errors.js +0 -1
- package/dist/lib/sapling-forger/sapling-forger.js +8 -9
- package/dist/lib/sapling-keys/helpers.js +6 -7
- package/dist/lib/sapling-keys/in-memory-proving-key.js +15 -18
- package/dist/lib/sapling-keys/in-memory-spending-key.js +22 -25
- package/dist/lib/sapling-keys/in-memory-viewing-key.js +18 -21
- package/dist/lib/sapling-module-wrapper.js +1 -2
- package/dist/lib/sapling-state/sapling-state.js +6 -7
- package/dist/lib/sapling-state/utils.js +0 -1
- package/dist/lib/sapling-tx-builder/sapling-transactions-builder.js +78 -80
- package/dist/lib/sapling-tx-viewer/helpers.js +2 -3
- package/dist/lib/sapling-tx-viewer/sapling-transaction-viewer.js +36 -39
- package/dist/lib/taquito-sapling.js +55 -58
- package/dist/lib/types.js +0 -1
- package/dist/lib/version.js +2 -3
- package/dist/taquito-sapling.es6.js +1383 -1380
- package/dist/taquito-sapling.es6.js.map +1 -1
- package/dist/taquito-sapling.umd.js +1387 -1393
- package/dist/taquito-sapling.umd.js.map +1 -1
- package/dist/types/constants.d.ts +5 -5
- package/dist/types/errors.d.ts +52 -52
- package/dist/types/sapling-forger/sapling-forger.d.ts +30 -30
- package/dist/types/sapling-keys/helpers.d.ts +2 -2
- package/dist/types/sapling-keys/in-memory-proving-key.d.ts +35 -35
- package/dist/types/sapling-keys/in-memory-spending-key.d.ts +53 -53
- package/dist/types/sapling-keys/in-memory-viewing-key.d.ts +48 -48
- package/dist/types/sapling-module-wrapper.d.ts +19 -19
- package/dist/types/sapling-state/sapling-state.d.ts +56 -56
- package/dist/types/sapling-state/utils.d.ts +22 -22
- package/dist/types/sapling-tx-builder/sapling-transactions-builder.d.ts +32 -32
- package/dist/types/sapling-tx-viewer/helpers.d.ts +11 -11
- package/dist/types/sapling-tx-viewer/sapling-transaction-viewer.d.ts +50 -50
- package/dist/types/taquito-sapling.d.ts +81 -81
- package/dist/types/types.d.ts +147 -147
- package/dist/types/version.d.ts +4 -4
- package/package.json +33 -35
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/errors.js.map +0 -1
- package/dist/lib/sapling-forger/sapling-forger.js.map +0 -1
- package/dist/lib/sapling-keys/helpers.js.map +0 -1
- package/dist/lib/sapling-keys/in-memory-proving-key.js.map +0 -1
- package/dist/lib/sapling-keys/in-memory-spending-key.js.map +0 -1
- package/dist/lib/sapling-keys/in-memory-viewing-key.js.map +0 -1
- package/dist/lib/sapling-module-wrapper.js.map +0 -1
- package/dist/lib/sapling-state/sapling-state.js.map +0 -1
- package/dist/lib/sapling-state/utils.js.map +0 -1
- package/dist/lib/sapling-tx-builder/sapling-transactions-builder.js.map +0 -1
- package/dist/lib/sapling-tx-viewer/helpers.js.map +0 -1
- package/dist/lib/sapling-tx-viewer/sapling-transaction-viewer.js.map +0 -1
- package/dist/lib/taquito-sapling.js.map +0 -1
- package/dist/lib/types.js.map +0 -1
- package/dist/lib/version.js.map +0 -1
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @packageDocumentation
|
|
3
|
-
* @module @taquito/sapling
|
|
4
|
-
*/
|
|
5
|
-
import { MichelCodecPacker, TzReadProvider } from '@taquito/taquito';
|
|
6
|
-
import { InMemorySpendingKey } from './sapling-keys/in-memory-spending-key';
|
|
7
|
-
import { SaplingForger } from './sapling-forger/sapling-forger';
|
|
8
|
-
import { SaplingTransactionViewer } from './sapling-tx-viewer/sapling-transaction-viewer';
|
|
9
|
-
import { ParametersSaplingTransaction, ParametersUnshieldedTransaction, SaplingContractDetails } from './types';
|
|
10
|
-
import { SaplingTransactionBuilder } from './sapling-tx-builder/sapling-transactions-builder';
|
|
11
|
-
import { InMemoryProvingKey } from './sapling-keys/in-memory-proving-key';
|
|
12
|
-
export { SaplingTransactionViewer } from './sapling-tx-viewer/sapling-transaction-viewer';
|
|
13
|
-
export { InMemoryViewingKey } from './sapling-keys/in-memory-viewing-key';
|
|
14
|
-
export { InMemorySpendingKey } from './sapling-keys/in-memory-spending-key';
|
|
15
|
-
export { InMemoryProvingKey } from './sapling-keys/in-memory-proving-key';
|
|
16
|
-
/**
|
|
17
|
-
* @description Class that surfaces all of the sapling capability allowing to read from a sapling state and prepare transactions
|
|
18
|
-
*
|
|
19
|
-
* @param keys.saplingSigner Holds the sapling spending key
|
|
20
|
-
* @param keys.saplingProver (Optional) Allows to generate the proofs with the proving key rather than the spending key
|
|
21
|
-
* @param saplingContractDetails Contains the address of the sapling contract, the memo size, and an optional sapling id that must be defined if the sapling contract contains more than one sapling state
|
|
22
|
-
* @param readProvider Allows to read data from the blockchain
|
|
23
|
-
* @param packer (Optional) Allows packing data. Use the `MichelCodecPacker` by default.
|
|
24
|
-
* @param saplingForger (Optional) Allows serializing the sapling transactions. Use the `SaplingForger` by default.
|
|
25
|
-
* @param saplingTxBuilder (Optional) Allows to prepare the sapling transactions. Use the `SaplingTransactionBuilder` by default.
|
|
26
|
-
* @example
|
|
27
|
-
* ```
|
|
28
|
-
* const inMemorySpendingKey = await InMemorySpendingKey.fromMnemonic('YOUR_MNEMONIC');
|
|
29
|
-
* const readProvider = new RpcReadAdapter(new RpcClient('https://YOUR_PREFERRED_RPC_URL'))
|
|
30
|
-
*
|
|
31
|
-
* const saplingToolkit = new SaplingToolkit(
|
|
32
|
-
* { saplingSigner: inMemorySpendingKey },
|
|
33
|
-
* { contractAddress: SAPLING_CONTRACT_ADDRESS, memoSize: 8 },
|
|
34
|
-
* readProvider
|
|
35
|
-
* )
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare class SaplingToolkit {
|
|
39
|
-
#private;
|
|
40
|
-
constructor(keys: {
|
|
41
|
-
saplingSigner: InMemorySpendingKey;
|
|
42
|
-
saplingProver?: InMemoryProvingKey;
|
|
43
|
-
}, saplingContractDetails: SaplingContractDetails, readProvider: TzReadProvider, packer?: MichelCodecPacker, saplingForger?: SaplingForger, saplingTxBuilder?: SaplingTransactionBuilder);
|
|
44
|
-
/**
|
|
45
|
-
* @description Get an instance of `SaplingTransactionViewer` which allows to retrieve and decrypt sapling transactions and calculate the unspent balance.
|
|
46
|
-
*/
|
|
47
|
-
getSaplingTransactionViewer(): Promise<SaplingTransactionViewer>;
|
|
48
|
-
/**
|
|
49
|
-
* @description Prepare a shielded transaction
|
|
50
|
-
* @param shieldedTxParams `to` is the payment address that will receive the shielded tokens (zet).
|
|
51
|
-
* `amount` is the amount of shielded tokens in tez by default.
|
|
52
|
-
* `mutez` needs to be set to true if the amount of shielded tokens is in mutez.
|
|
53
|
-
* `memo` is an empty string by default.
|
|
54
|
-
* @returns a string representing the sapling transaction
|
|
55
|
-
*/
|
|
56
|
-
prepareShieldedTransaction(shieldedTxParams: ParametersSaplingTransaction[]): Promise<string>;
|
|
57
|
-
/**
|
|
58
|
-
* @description Prepare an unshielded transaction
|
|
59
|
-
* @param unshieldedTxParams `to` is the Tezos address that will receive the unshielded tokens (tz1, tz2 or tz3).
|
|
60
|
-
* `amount` is the amount of unshielded tokens in tez by default.
|
|
61
|
-
* `mutez` needs to be set to true if the amount of unshielded tokens is in mutez.
|
|
62
|
-
* @returns a string representing the sapling transaction.
|
|
63
|
-
*/
|
|
64
|
-
prepareUnshieldedTransaction(unshieldedTxParams: ParametersUnshieldedTransaction): Promise<string>;
|
|
65
|
-
/**
|
|
66
|
-
* @description Prepare a sapling transaction (zet to zet)
|
|
67
|
-
* @param saplingTxParams `to` is the payment address that will receive the shielded tokens (zet).
|
|
68
|
-
* `amount` is the amount of unshielded tokens in tez by default.
|
|
69
|
-
* `mutez` needs to be set to true if the amount of unshielded tokens is in mutez.
|
|
70
|
-
* `memo` is an empty string by default.
|
|
71
|
-
* @returns a string representing the sapling transaction.
|
|
72
|
-
*/
|
|
73
|
-
prepareSaplingTransaction(saplingTxParams: ParametersSaplingTransaction[]): Promise<string>;
|
|
74
|
-
private formatTransactionParams;
|
|
75
|
-
private getRoot;
|
|
76
|
-
private createBoundData;
|
|
77
|
-
private validateDestinationImplicitAddress;
|
|
78
|
-
private validateDestinationSaplingAddress;
|
|
79
|
-
private getSaplingContractId;
|
|
80
|
-
private selectInputsToSpend;
|
|
81
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module @taquito/sapling
|
|
4
|
+
*/
|
|
5
|
+
import { MichelCodecPacker, TzReadProvider } from '@taquito/taquito';
|
|
6
|
+
import { InMemorySpendingKey } from './sapling-keys/in-memory-spending-key';
|
|
7
|
+
import { SaplingForger } from './sapling-forger/sapling-forger';
|
|
8
|
+
import { SaplingTransactionViewer } from './sapling-tx-viewer/sapling-transaction-viewer';
|
|
9
|
+
import { ParametersSaplingTransaction, ParametersUnshieldedTransaction, SaplingContractDetails } from './types';
|
|
10
|
+
import { SaplingTransactionBuilder } from './sapling-tx-builder/sapling-transactions-builder';
|
|
11
|
+
import { InMemoryProvingKey } from './sapling-keys/in-memory-proving-key';
|
|
12
|
+
export { SaplingTransactionViewer } from './sapling-tx-viewer/sapling-transaction-viewer';
|
|
13
|
+
export { InMemoryViewingKey } from './sapling-keys/in-memory-viewing-key';
|
|
14
|
+
export { InMemorySpendingKey } from './sapling-keys/in-memory-spending-key';
|
|
15
|
+
export { InMemoryProvingKey } from './sapling-keys/in-memory-proving-key';
|
|
16
|
+
/**
|
|
17
|
+
* @description Class that surfaces all of the sapling capability allowing to read from a sapling state and prepare transactions
|
|
18
|
+
*
|
|
19
|
+
* @param keys.saplingSigner Holds the sapling spending key
|
|
20
|
+
* @param keys.saplingProver (Optional) Allows to generate the proofs with the proving key rather than the spending key
|
|
21
|
+
* @param saplingContractDetails Contains the address of the sapling contract, the memo size, and an optional sapling id that must be defined if the sapling contract contains more than one sapling state
|
|
22
|
+
* @param readProvider Allows to read data from the blockchain
|
|
23
|
+
* @param packer (Optional) Allows packing data. Use the `MichelCodecPacker` by default.
|
|
24
|
+
* @param saplingForger (Optional) Allows serializing the sapling transactions. Use the `SaplingForger` by default.
|
|
25
|
+
* @param saplingTxBuilder (Optional) Allows to prepare the sapling transactions. Use the `SaplingTransactionBuilder` by default.
|
|
26
|
+
* @example
|
|
27
|
+
* ```
|
|
28
|
+
* const inMemorySpendingKey = await InMemorySpendingKey.fromMnemonic('YOUR_MNEMONIC');
|
|
29
|
+
* const readProvider = new RpcReadAdapter(new RpcClient('https://YOUR_PREFERRED_RPC_URL'))
|
|
30
|
+
*
|
|
31
|
+
* const saplingToolkit = new SaplingToolkit(
|
|
32
|
+
* { saplingSigner: inMemorySpendingKey },
|
|
33
|
+
* { contractAddress: SAPLING_CONTRACT_ADDRESS, memoSize: 8 },
|
|
34
|
+
* readProvider
|
|
35
|
+
* )
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class SaplingToolkit {
|
|
39
|
+
#private;
|
|
40
|
+
constructor(keys: {
|
|
41
|
+
saplingSigner: InMemorySpendingKey;
|
|
42
|
+
saplingProver?: InMemoryProvingKey;
|
|
43
|
+
}, saplingContractDetails: SaplingContractDetails, readProvider: TzReadProvider, packer?: MichelCodecPacker, saplingForger?: SaplingForger, saplingTxBuilder?: SaplingTransactionBuilder);
|
|
44
|
+
/**
|
|
45
|
+
* @description Get an instance of `SaplingTransactionViewer` which allows to retrieve and decrypt sapling transactions and calculate the unspent balance.
|
|
46
|
+
*/
|
|
47
|
+
getSaplingTransactionViewer(): Promise<SaplingTransactionViewer>;
|
|
48
|
+
/**
|
|
49
|
+
* @description Prepare a shielded transaction
|
|
50
|
+
* @param shieldedTxParams `to` is the payment address that will receive the shielded tokens (zet).
|
|
51
|
+
* `amount` is the amount of shielded tokens in tez by default.
|
|
52
|
+
* `mutez` needs to be set to true if the amount of shielded tokens is in mutez.
|
|
53
|
+
* `memo` is an empty string by default.
|
|
54
|
+
* @returns a string representing the sapling transaction
|
|
55
|
+
*/
|
|
56
|
+
prepareShieldedTransaction(shieldedTxParams: ParametersSaplingTransaction[]): Promise<string>;
|
|
57
|
+
/**
|
|
58
|
+
* @description Prepare an unshielded transaction
|
|
59
|
+
* @param unshieldedTxParams `to` is the Tezos address that will receive the unshielded tokens (tz1, tz2 or tz3).
|
|
60
|
+
* `amount` is the amount of unshielded tokens in tez by default.
|
|
61
|
+
* `mutez` needs to be set to true if the amount of unshielded tokens is in mutez.
|
|
62
|
+
* @returns a string representing the sapling transaction.
|
|
63
|
+
*/
|
|
64
|
+
prepareUnshieldedTransaction(unshieldedTxParams: ParametersUnshieldedTransaction): Promise<string>;
|
|
65
|
+
/**
|
|
66
|
+
* @description Prepare a sapling transaction (zet to zet)
|
|
67
|
+
* @param saplingTxParams `to` is the payment address that will receive the shielded tokens (zet).
|
|
68
|
+
* `amount` is the amount of unshielded tokens in tez by default.
|
|
69
|
+
* `mutez` needs to be set to true if the amount of unshielded tokens is in mutez.
|
|
70
|
+
* `memo` is an empty string by default.
|
|
71
|
+
* @returns a string representing the sapling transaction.
|
|
72
|
+
*/
|
|
73
|
+
prepareSaplingTransaction(saplingTxParams: ParametersSaplingTransaction[]): Promise<string>;
|
|
74
|
+
private formatTransactionParams;
|
|
75
|
+
private getRoot;
|
|
76
|
+
private createBoundData;
|
|
77
|
+
private validateDestinationImplicitAddress;
|
|
78
|
+
private validateDestinationSaplingAddress;
|
|
79
|
+
private getSaplingContractId;
|
|
80
|
+
private selectInputsToSpend;
|
|
81
|
+
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,147 +1,147 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
export interface SaplingIncomingAndOutgoingTransaction {
|
|
4
|
-
incoming: SaplingIncomingTransaction[];
|
|
5
|
-
outgoing: SaplingOutgoingTransaction[];
|
|
6
|
-
}
|
|
7
|
-
export interface SaplingIncomingTransaction {
|
|
8
|
-
value: BigNumber;
|
|
9
|
-
memo: string;
|
|
10
|
-
paymentAddress: string;
|
|
11
|
-
isSpent: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface SaplingOutgoingTransaction {
|
|
14
|
-
value: BigNumber;
|
|
15
|
-
memo: string;
|
|
16
|
-
paymentAddress: string;
|
|
17
|
-
}
|
|
18
|
-
export interface SaplingTransaction {
|
|
19
|
-
inputs: SaplingTransactionInput[];
|
|
20
|
-
outputs: SaplingTransactionOutput[];
|
|
21
|
-
balance: BigNumber;
|
|
22
|
-
root: string;
|
|
23
|
-
boundData: Buffer;
|
|
24
|
-
signature: Buffer;
|
|
25
|
-
}
|
|
26
|
-
export interface Ciphertext {
|
|
27
|
-
commitmentValue: Buffer;
|
|
28
|
-
ephemeralPublicKey: Buffer;
|
|
29
|
-
payloadEnc: Buffer;
|
|
30
|
-
nonceEnc: Buffer;
|
|
31
|
-
payloadOut: Buffer;
|
|
32
|
-
nonceOut: Buffer;
|
|
33
|
-
}
|
|
34
|
-
export interface SaplingTransactionInput {
|
|
35
|
-
commitmentValue: Buffer;
|
|
36
|
-
nullifier: Buffer;
|
|
37
|
-
publicKeyReRandomization: Buffer;
|
|
38
|
-
proof: Buffer;
|
|
39
|
-
signature: Buffer;
|
|
40
|
-
}
|
|
41
|
-
export interface SaplingSpendDescription extends SaplingTransactionInput {
|
|
42
|
-
rtAnchor: Buffer;
|
|
43
|
-
}
|
|
44
|
-
export interface SaplingTransactionOutput {
|
|
45
|
-
commitment: Buffer;
|
|
46
|
-
proof: Buffer;
|
|
47
|
-
ciphertext: Ciphertext;
|
|
48
|
-
}
|
|
49
|
-
export interface ParametersSaplingTransaction {
|
|
50
|
-
to: string;
|
|
51
|
-
amount: number;
|
|
52
|
-
memo?: string;
|
|
53
|
-
mutez?: boolean;
|
|
54
|
-
}
|
|
55
|
-
export
|
|
56
|
-
export interface ParametersSpendProof {
|
|
57
|
-
saplingContext: number;
|
|
58
|
-
address: Uint8Array;
|
|
59
|
-
randomCommitmentTrapdoor: Uint8Array;
|
|
60
|
-
publicKeyReRandomization: Buffer;
|
|
61
|
-
amount: string;
|
|
62
|
-
root: string;
|
|
63
|
-
witness: string;
|
|
64
|
-
}
|
|
65
|
-
export interface ParametersSpendSig {
|
|
66
|
-
publicKeyReRandomization: Buffer;
|
|
67
|
-
unsignedSpendDescription: Omit<SaplingSpendDescription, 'signature'>;
|
|
68
|
-
hash: Uint8Array;
|
|
69
|
-
}
|
|
70
|
-
export interface ParametersOutputDescription {
|
|
71
|
-
saplingContext: number;
|
|
72
|
-
address: Uint8Array;
|
|
73
|
-
amount: string;
|
|
74
|
-
memo: string;
|
|
75
|
-
randomCommitmentTrapdoor: Buffer;
|
|
76
|
-
outgoingViewingKey?: Buffer;
|
|
77
|
-
}
|
|
78
|
-
export interface ParametersOutputProof {
|
|
79
|
-
saplingContext: number;
|
|
80
|
-
ephemeralPrivateKey: Buffer;
|
|
81
|
-
address: Uint8Array;
|
|
82
|
-
randomCommitmentTrapdoor: Uint8Array;
|
|
83
|
-
amount: string;
|
|
84
|
-
}
|
|
85
|
-
export interface ParametersBindingSig {
|
|
86
|
-
saplingContext: number;
|
|
87
|
-
inputs: SaplingTransactionInput[];
|
|
88
|
-
outputs: SaplingTransactionOutput[];
|
|
89
|
-
balance: BigNumber;
|
|
90
|
-
boundData: Buffer;
|
|
91
|
-
}
|
|
92
|
-
export interface ParametersCiphertext {
|
|
93
|
-
address: Uint8Array;
|
|
94
|
-
ephemeralPrivateKey: Buffer;
|
|
95
|
-
diversifier: Buffer;
|
|
96
|
-
outgoingCipherKey: Uint8Array;
|
|
97
|
-
amount: string;
|
|
98
|
-
randomCommitmentTrapdoor: Buffer;
|
|
99
|
-
memo: string;
|
|
100
|
-
}
|
|
101
|
-
export interface SaplingTransactionPlaintext {
|
|
102
|
-
diversifier: Buffer;
|
|
103
|
-
amount: string;
|
|
104
|
-
randomCommitmentTrapdoor: Buffer;
|
|
105
|
-
memoSize: number;
|
|
106
|
-
memo: string;
|
|
107
|
-
}
|
|
108
|
-
export interface Input {
|
|
109
|
-
value: Uint8Array;
|
|
110
|
-
memo: Uint8Array;
|
|
111
|
-
paymentAddress: Uint8Array;
|
|
112
|
-
randomCommitmentTrapdoor: Uint8Array;
|
|
113
|
-
position: number;
|
|
114
|
-
}
|
|
115
|
-
export
|
|
116
|
-
contractAddress?: never;
|
|
117
|
-
saplingId: string;
|
|
118
|
-
} | {
|
|
119
|
-
contractAddress: string;
|
|
120
|
-
saplingId?: never;
|
|
121
|
-
};
|
|
122
|
-
export interface ChosenSpendableInputs {
|
|
123
|
-
inputsToSpend: Input[];
|
|
124
|
-
sumSelectedInputs: BigNumber;
|
|
125
|
-
}
|
|
126
|
-
export interface SaplingTransactionParamsTxBuilder {
|
|
127
|
-
root: string;
|
|
128
|
-
saplingTransactionParams: SaplingTransactionParams[];
|
|
129
|
-
boundData: Buffer;
|
|
130
|
-
}
|
|
131
|
-
export interface SaplingTransactionParams {
|
|
132
|
-
to: string;
|
|
133
|
-
amount: string;
|
|
134
|
-
memo: string;
|
|
135
|
-
}
|
|
136
|
-
export interface SaplingContractDetails {
|
|
137
|
-
contractAddress: string;
|
|
138
|
-
saplingId?: string;
|
|
139
|
-
memoSize: number;
|
|
140
|
-
}
|
|
141
|
-
export interface SaplingStateTree {
|
|
142
|
-
height: number;
|
|
143
|
-
size: number;
|
|
144
|
-
root: string;
|
|
145
|
-
tree: MerkleTree;
|
|
146
|
-
}
|
|
147
|
-
export
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
export interface SaplingIncomingAndOutgoingTransaction {
|
|
4
|
+
incoming: SaplingIncomingTransaction[];
|
|
5
|
+
outgoing: SaplingOutgoingTransaction[];
|
|
6
|
+
}
|
|
7
|
+
export interface SaplingIncomingTransaction {
|
|
8
|
+
value: BigNumber;
|
|
9
|
+
memo: string;
|
|
10
|
+
paymentAddress: string;
|
|
11
|
+
isSpent: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SaplingOutgoingTransaction {
|
|
14
|
+
value: BigNumber;
|
|
15
|
+
memo: string;
|
|
16
|
+
paymentAddress: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SaplingTransaction {
|
|
19
|
+
inputs: SaplingTransactionInput[];
|
|
20
|
+
outputs: SaplingTransactionOutput[];
|
|
21
|
+
balance: BigNumber;
|
|
22
|
+
root: string;
|
|
23
|
+
boundData: Buffer;
|
|
24
|
+
signature: Buffer;
|
|
25
|
+
}
|
|
26
|
+
export interface Ciphertext {
|
|
27
|
+
commitmentValue: Buffer;
|
|
28
|
+
ephemeralPublicKey: Buffer;
|
|
29
|
+
payloadEnc: Buffer;
|
|
30
|
+
nonceEnc: Buffer;
|
|
31
|
+
payloadOut: Buffer;
|
|
32
|
+
nonceOut: Buffer;
|
|
33
|
+
}
|
|
34
|
+
export interface SaplingTransactionInput {
|
|
35
|
+
commitmentValue: Buffer;
|
|
36
|
+
nullifier: Buffer;
|
|
37
|
+
publicKeyReRandomization: Buffer;
|
|
38
|
+
proof: Buffer;
|
|
39
|
+
signature: Buffer;
|
|
40
|
+
}
|
|
41
|
+
export interface SaplingSpendDescription extends SaplingTransactionInput {
|
|
42
|
+
rtAnchor: Buffer;
|
|
43
|
+
}
|
|
44
|
+
export interface SaplingTransactionOutput {
|
|
45
|
+
commitment: Buffer;
|
|
46
|
+
proof: Buffer;
|
|
47
|
+
ciphertext: Ciphertext;
|
|
48
|
+
}
|
|
49
|
+
export interface ParametersSaplingTransaction {
|
|
50
|
+
to: string;
|
|
51
|
+
amount: number;
|
|
52
|
+
memo?: string;
|
|
53
|
+
mutez?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export type ParametersUnshieldedTransaction = Omit<ParametersSaplingTransaction, 'memo'>;
|
|
56
|
+
export interface ParametersSpendProof {
|
|
57
|
+
saplingContext: number;
|
|
58
|
+
address: Uint8Array;
|
|
59
|
+
randomCommitmentTrapdoor: Uint8Array;
|
|
60
|
+
publicKeyReRandomization: Buffer;
|
|
61
|
+
amount: string;
|
|
62
|
+
root: string;
|
|
63
|
+
witness: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ParametersSpendSig {
|
|
66
|
+
publicKeyReRandomization: Buffer;
|
|
67
|
+
unsignedSpendDescription: Omit<SaplingSpendDescription, 'signature'>;
|
|
68
|
+
hash: Uint8Array;
|
|
69
|
+
}
|
|
70
|
+
export interface ParametersOutputDescription {
|
|
71
|
+
saplingContext: number;
|
|
72
|
+
address: Uint8Array;
|
|
73
|
+
amount: string;
|
|
74
|
+
memo: string;
|
|
75
|
+
randomCommitmentTrapdoor: Buffer;
|
|
76
|
+
outgoingViewingKey?: Buffer;
|
|
77
|
+
}
|
|
78
|
+
export interface ParametersOutputProof {
|
|
79
|
+
saplingContext: number;
|
|
80
|
+
ephemeralPrivateKey: Buffer;
|
|
81
|
+
address: Uint8Array;
|
|
82
|
+
randomCommitmentTrapdoor: Uint8Array;
|
|
83
|
+
amount: string;
|
|
84
|
+
}
|
|
85
|
+
export interface ParametersBindingSig {
|
|
86
|
+
saplingContext: number;
|
|
87
|
+
inputs: SaplingTransactionInput[];
|
|
88
|
+
outputs: SaplingTransactionOutput[];
|
|
89
|
+
balance: BigNumber;
|
|
90
|
+
boundData: Buffer;
|
|
91
|
+
}
|
|
92
|
+
export interface ParametersCiphertext {
|
|
93
|
+
address: Uint8Array;
|
|
94
|
+
ephemeralPrivateKey: Buffer;
|
|
95
|
+
diversifier: Buffer;
|
|
96
|
+
outgoingCipherKey: Uint8Array;
|
|
97
|
+
amount: string;
|
|
98
|
+
randomCommitmentTrapdoor: Buffer;
|
|
99
|
+
memo: string;
|
|
100
|
+
}
|
|
101
|
+
export interface SaplingTransactionPlaintext {
|
|
102
|
+
diversifier: Buffer;
|
|
103
|
+
amount: string;
|
|
104
|
+
randomCommitmentTrapdoor: Buffer;
|
|
105
|
+
memoSize: number;
|
|
106
|
+
memo: string;
|
|
107
|
+
}
|
|
108
|
+
export interface Input {
|
|
109
|
+
value: Uint8Array;
|
|
110
|
+
memo: Uint8Array;
|
|
111
|
+
paymentAddress: Uint8Array;
|
|
112
|
+
randomCommitmentTrapdoor: Uint8Array;
|
|
113
|
+
position: number;
|
|
114
|
+
}
|
|
115
|
+
export type SaplingContractId = {
|
|
116
|
+
contractAddress?: never;
|
|
117
|
+
saplingId: string;
|
|
118
|
+
} | {
|
|
119
|
+
contractAddress: string;
|
|
120
|
+
saplingId?: never;
|
|
121
|
+
};
|
|
122
|
+
export interface ChosenSpendableInputs {
|
|
123
|
+
inputsToSpend: Input[];
|
|
124
|
+
sumSelectedInputs: BigNumber;
|
|
125
|
+
}
|
|
126
|
+
export interface SaplingTransactionParamsTxBuilder {
|
|
127
|
+
root: string;
|
|
128
|
+
saplingTransactionParams: SaplingTransactionParams[];
|
|
129
|
+
boundData: Buffer;
|
|
130
|
+
}
|
|
131
|
+
export interface SaplingTransactionParams {
|
|
132
|
+
to: string;
|
|
133
|
+
amount: string;
|
|
134
|
+
memo: string;
|
|
135
|
+
}
|
|
136
|
+
export interface SaplingContractDetails {
|
|
137
|
+
contractAddress: string;
|
|
138
|
+
saplingId?: string;
|
|
139
|
+
memoSize: number;
|
|
140
|
+
}
|
|
141
|
+
export interface SaplingStateTree {
|
|
142
|
+
height: number;
|
|
143
|
+
size: number;
|
|
144
|
+
root: string;
|
|
145
|
+
tree: MerkleTree;
|
|
146
|
+
}
|
|
147
|
+
export type MerkleTree = undefined | string | [string, MerkleTree, MerkleTree];
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION: {
|
|
2
|
-
commitHash: string;
|
|
3
|
-
version: string;
|
|
4
|
-
};
|
|
1
|
+
export declare const VERSION: {
|
|
2
|
+
commitHash: string;
|
|
3
|
+
version: string;
|
|
4
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/sapling",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.4.0-beta-RC.0",
|
|
4
4
|
"description": "Allows reading and preparing sapling transactions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=18"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"test": "jest --coverage",
|
|
@@ -34,15 +34,14 @@
|
|
|
34
34
|
"precommit": "lint-staged",
|
|
35
35
|
"prebuild": "rimraf dist",
|
|
36
36
|
"version-stamp": "node ../taquito/version-stamping.js",
|
|
37
|
-
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts ",
|
|
38
|
-
"start": "rollup -c rollup.config.ts -w",
|
|
37
|
+
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts --bundleConfigAsCjs",
|
|
38
|
+
"start": "rollup -c rollup.config.ts --bundleConfigAsCjs -w",
|
|
39
39
|
"postinstall": "node fetch-sapling-params.js"
|
|
40
40
|
},
|
|
41
41
|
"lint-staged": {
|
|
42
42
|
"{src,test}/**/*.ts": [
|
|
43
43
|
"prettier --write",
|
|
44
|
-
"eslint --fix"
|
|
45
|
-
"git add"
|
|
44
|
+
"eslint --fix"
|
|
46
45
|
]
|
|
47
46
|
},
|
|
48
47
|
"jest": {
|
|
@@ -67,46 +66,45 @@
|
|
|
67
66
|
},
|
|
68
67
|
"dependencies": {
|
|
69
68
|
"@airgap/sapling-wasm": "0.0.9",
|
|
70
|
-
"@stablelib/nacl": "^1.0.
|
|
71
|
-
"@stablelib/random": "^1.0.
|
|
72
|
-
"@taquito/core": "^17.
|
|
73
|
-
"@taquito/rpc": "^17.
|
|
74
|
-
"@taquito/taquito": "^17.
|
|
75
|
-
"@taquito/utils": "^17.
|
|
76
|
-
"bignumber.js": "^9.1.
|
|
77
|
-
"bip39": "3.0
|
|
69
|
+
"@stablelib/nacl": "^1.0.4",
|
|
70
|
+
"@stablelib/random": "^1.0.2",
|
|
71
|
+
"@taquito/core": "^17.4.0-beta-RC.0",
|
|
72
|
+
"@taquito/rpc": "^17.4.0-beta-RC.0",
|
|
73
|
+
"@taquito/taquito": "^17.4.0-beta-RC.0",
|
|
74
|
+
"@taquito/utils": "^17.4.0-beta-RC.0",
|
|
75
|
+
"bignumber.js": "^9.1.2",
|
|
76
|
+
"bip39": "3.1.0",
|
|
78
77
|
"blakejs": "^1.2.1",
|
|
79
78
|
"pbkdf2": "^3.1.2",
|
|
80
79
|
"typedarray-to-buffer": "^4.0.0"
|
|
81
80
|
},
|
|
82
81
|
"devDependencies": {
|
|
83
|
-
"@rollup/plugin-json": "^
|
|
84
|
-
"@types/jest": "^
|
|
85
|
-
"@types/node": "^
|
|
82
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
83
|
+
"@types/jest": "^29.5.5",
|
|
84
|
+
"@types/node": "^20",
|
|
86
85
|
"@types/pbkdf2": "^3.1.0",
|
|
87
86
|
"@types/typedarray-to-buffer": "^4.0.0",
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
89
|
-
"@typescript-eslint/parser": "^
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
88
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
90
89
|
"axios": "^0.27.2",
|
|
91
90
|
"colors": "^1.4.0",
|
|
92
91
|
"coveralls": "^3.1.1",
|
|
93
92
|
"cross-env": "^7.0.3",
|
|
94
|
-
"eslint": "^8.
|
|
95
|
-
"jest": "^
|
|
96
|
-
"jest-config": "^
|
|
97
|
-
"lint-staged": "^
|
|
93
|
+
"eslint": "^8.51.0",
|
|
94
|
+
"jest": "^29.7.0",
|
|
95
|
+
"jest-config": "^29.7.0",
|
|
96
|
+
"lint-staged": "^14.0.1",
|
|
98
97
|
"lodash.camelcase": "^4.3.0",
|
|
99
|
-
"prettier": "^
|
|
100
|
-
"prompt": "^1.
|
|
101
|
-
"replace-in-file": "^
|
|
102
|
-
"rimraf": "^
|
|
103
|
-
"rollup": "^
|
|
104
|
-
"rollup-plugin-
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"ts-
|
|
108
|
-
"
|
|
109
|
-
"typescript": "~4.1.5"
|
|
98
|
+
"prettier": "^3.0.3",
|
|
99
|
+
"prompt": "^1.3.0",
|
|
100
|
+
"replace-in-file": "^7.0.1",
|
|
101
|
+
"rimraf": "^5.0.5",
|
|
102
|
+
"rollup": "^4.1.4",
|
|
103
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
104
|
+
"shelljs": "^0.8.5",
|
|
105
|
+
"ts-jest": "^29.1.1",
|
|
106
|
+
"ts-node": "^10.9.1",
|
|
107
|
+
"typescript": "~5.2.2"
|
|
110
108
|
},
|
|
111
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "34103941d52e31a808e051ea19dbecf43f984dca"
|
|
112
110
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,sBAAsB,CAAC;AACjC,QAAA,OAAO,GAAG,+BAA+B,CAAC;AAC1C,QAAA,YAAY,GAAG,EAAE,CAAC;AAClB,QAAA,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC"}
|
package/dist/lib/errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAAA,wCAAuE;AAEvE;;;GAGG;AACH,MAAa,kBAAmB,SAAQ,+BAAwB;IAC9D,YAA4B,EAAU,EAAkB,WAAmB;QACzE,KAAK,EAAE,CAAC;QADkB,OAAE,GAAF,EAAE,CAAQ;QAAkB,gBAAW,GAAX,WAAW,CAAQ;QAEzE,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,OAA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HC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-viewing-key.js","sourceRoot":"","sources":["../../../src/sapling-keys/in-memory-viewing-key.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA4D;AAC5D,gDAAgD;AAChD,qEAA+D;AAE/D;;GAEG;AACH,MAAa,kBAAkB;IAE7B,YAAY,cAAsB;QADlC,kCAAwB;QAEtB,uBAAA,IAAI,mBAAmB,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,EAAC;IAC5D,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAO,eAAe,CAAC,WAAmB,EAAE,QAAiB;;YACjE,MAAM,mBAAmB,GAAG,IAAI,4CAAmB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;YAC3E,OAAO,mBAAmB,CAAC,4BAA4B,EAAE,CAAC;QAC5D,CAAC;KAAA;IAED;;;;OAIG;IACH,iBAAiB;QACf,qDAA4B;IAC9B,CAAC;IAED;;;;OAIG;IACG,qBAAqB;;YACzB,OAAO,OAAO,CAAC,qBAAqB,+CAAsB,CAAC;QAC7D,CAAC;KAAA;IAED;;;;OAIG;IACG,qBAAqB;;YACzB,OAAO,OAAO,CAAC,qBAAqB,+CAAsB,CAAC;QAC7D,CAAC;KAAA;IAED;;;;;OAKG;IACG,UAAU,CAAC,YAAqB;;YACpC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM,OAAO,CAAC,+BAA+B,gDAElE,YAAY,CACb,CAAC;YACF,OAAO;gBACL,OAAO,EAAE,kBAAU,CAAC,GAAG,EAAE,cAAM,CAAC,cAAM,CAAC,IAAI,CAAC,CAAC;gBAC7C,YAAY,EAAE,KAAK,CAAC,WAAW,EAAE;aAClC,CAAC;QACJ,CAAC;KAAA;CACF;AAjED,gDAiEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sapling-module-wrapper.js","source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