@dynamic-labs-wallet/node-svm 1.1.62 → 1.1.64

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/index.cjs CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  var node = require('@dynamic-labs-wallet/node');
4
4
  var web3_js = require('@solana/web3.js');
5
+ var node_crypto = require('node:crypto');
5
6
 
6
7
  function _extends() {
7
8
  _extends = Object.assign || function assign(target) {
@@ -14,6 +15,143 @@ function _extends() {
14
15
  return _extends.apply(this, arguments);
15
16
  }
16
17
 
18
+ const TOKEN_2022 = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
19
+ const ASSOCIATED_TOKEN = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
20
+ const SYSTEM = '11111111111111111111111111111111';
21
+ const ZK_ELGAMAL_PROOF = 'ZkE1Gama1Proof11111111111111111111111111111';
22
+ const COMPUTE_BUDGET = 'ComputeBudget111111111111111111111111111111';
23
+ const ALLOWED_PROGRAMS = new Set([
24
+ TOKEN_2022,
25
+ ASSOCIATED_TOKEN,
26
+ SYSTEM,
27
+ ZK_ELGAMAL_PROOF,
28
+ COMPUTE_BUDGET
29
+ ]);
30
+ // Helper instructions the planner may emit alongside the confidential one.
31
+ const COMPUTE_SET_UNIT_LIMIT = 2;
32
+ const COMPUTE_SET_UNIT_PRICE = 3;
33
+ const ATA_CREATE = 0;
34
+ const ATA_CREATE_IDEMPOTENT = 1;
35
+ const SYSTEM_CREATE_ACCOUNT = 0;
36
+ const TOKEN_REALLOCATE = 29;
37
+ // Token-2022 ConfidentialTransferExtension (27) sub-instruction per operation.
38
+ const CONFIDENTIAL_EXTENSION = 27;
39
+ const SUB_INSTRUCTION = {
40
+ configureAccount: 2,
41
+ deposit: 5,
42
+ withdraw: 6,
43
+ transfer: 7,
44
+ applyPendingBalance: 8
45
+ };
46
+ const V1_PREFIX = 0x81;
47
+ const refuse = (reason)=>{
48
+ throw new Error(`Refusing to sign confidential transaction: ${reason}`);
49
+ };
50
+ /** Message bytes an MPC signer signs: a v1 wire is message || 64B signature slots. */ const confidentialSignedMessageBytes = (wire, numRequiredSignatures)=>wire.slice(0, wire.length - numRequiredSignatures * web3_js.SIGNATURE_LENGTH_IN_BYTES);
51
+ /** Insert the wallet signature into the sole v1 signature slot (signer index 0). */ const injectConfidentialSignature = (wire, signature)=>Uint8Array.from([
52
+ ...wire.slice(0, wire.length - web3_js.SIGNATURE_LENGTH_IN_BYTES),
53
+ ...signature
54
+ ]);
55
+ const decodeV1Message = (encoded, solanaAddress)=>{
56
+ const wire = new Uint8Array(Buffer.from(encoded, 'base64'));
57
+ if (wire[0] !== V1_PREFIX) {
58
+ refuse('not a version 1 transaction');
59
+ }
60
+ let message;
61
+ try {
62
+ message = web3_js.VersionedTransaction.deserialize(wire).message;
63
+ } catch (e) {
64
+ return refuse('malformed transaction');
65
+ }
66
+ if (message.version !== 1) {
67
+ refuse('not a version 1 transaction');
68
+ }
69
+ if (message.header.numRequiredSignatures !== 1) {
70
+ refuse('unexpected extra signers');
71
+ }
72
+ const keys = message.staticAccountKeys.map((key)=>key.toBase58());
73
+ if (keys[0] !== solanaAddress) {
74
+ refuse('the wallet is not the fee payer');
75
+ }
76
+ return {
77
+ message,
78
+ keys
79
+ };
80
+ };
81
+ const isAllowedHelperInstruction = (program, data)=>{
82
+ switch(program){
83
+ case COMPUTE_BUDGET:
84
+ return data[0] === COMPUTE_SET_UNIT_LIMIT || data[0] === COMPUTE_SET_UNIT_PRICE;
85
+ case ASSOCIATED_TOKEN:
86
+ return data.length === 0 || data[0] === ATA_CREATE || data[0] === ATA_CREATE_IDEMPOTENT;
87
+ case SYSTEM:
88
+ return data.length >= 4 && Buffer.from(data).readUInt32LE(0) === SYSTEM_CREATE_ACCOUNT;
89
+ case TOKEN_2022:
90
+ return data[0] === TOKEN_REALLOCATE;
91
+ default:
92
+ return program === ZK_ELGAMAL_PROOF;
93
+ }
94
+ };
95
+ const checkOperationInstruction = (data, accounts, params)=>{
96
+ const { operation, mint, tokenAccount, destinationTokenAccount, amount, decimals } = params;
97
+ if (data[1] !== SUB_INSTRUCTION[operation]) {
98
+ refuse(`confidential instruction ${data[1]} does not match ${operation}`);
99
+ }
100
+ if (accounts[0] !== tokenAccount) {
101
+ refuse('instruction targets an unexpected token account');
102
+ }
103
+ if (operation !== 'applyPendingBalance' && accounts[1] !== mint) {
104
+ refuse('instruction uses an unexpected mint');
105
+ }
106
+ if (operation === 'transfer' && (!destinationTokenAccount || accounts[2] !== destinationTokenAccount)) {
107
+ refuse('transfer destination does not match the request');
108
+ }
109
+ if (operation !== 'deposit' && operation !== 'withdraw') {
110
+ return;
111
+ }
112
+ // Confidential amount layout: [27, sub, amount u64 LE, decimals u8, ...].
113
+ const bytes = Buffer.from(data);
114
+ if (amount === undefined || bytes.length < 11 || bytes.readBigUInt64LE(2).toString() !== amount) {
115
+ refuse(`${operation} amount does not match the request`);
116
+ }
117
+ if (decimals === undefined || bytes[10] !== decimals) {
118
+ refuse(`${operation} decimals do not match the request`);
119
+ }
120
+ };
121
+ /**
122
+ * Structural check on the enclave-built confidential transaction before the
123
+ * client share joins the MPC room: must be one v1 message, the wallet must be
124
+ * fee payer and only signer, only expected programs and instruction kinds may
125
+ * appear, and the confidential instruction must match the requested
126
+ * operation, mint, token accounts and amounts. The enclave's
127
+ * `transactionsTag` binds the build; this only guards against a bad build
128
+ * reaching the ceremony.
129
+ */ const checkConfidentialTransactions = (params)=>{
130
+ if (params.serializedTransactions.length !== 1) {
131
+ refuse('expected exactly one version 1 transaction');
132
+ }
133
+ const { message, keys } = decodeV1Message(params.serializedTransactions[0], params.solanaAddress);
134
+ let sawOperation = false;
135
+ for (const ix of message.compiledInstructions){
136
+ const program = keys[ix.programIdIndex];
137
+ if (!program || !ALLOWED_PROGRAMS.has(program)) {
138
+ refuse(`unexpected program ${program}`);
139
+ }
140
+ if (program === TOKEN_2022 && ix.data[0] === CONFIDENTIAL_EXTENSION) {
141
+ if (sawOperation) {
142
+ refuse('more than one confidential instruction');
143
+ }
144
+ checkOperationInstruction(ix.data, ix.accountKeyIndexes.map((i)=>keys[i]), params);
145
+ sawOperation = true;
146
+ } else if (!isAllowedHelperInstruction(program, ix.data)) {
147
+ refuse(`unexpected instruction ${ix.data[0]} for program ${program}`);
148
+ }
149
+ }
150
+ if (!sawOperation) {
151
+ refuse(`no confidential instruction for ${params.operation}`);
152
+ }
153
+ };
154
+
17
155
  const ERROR_CREATE_WALLET_ACCOUNT = 'Error creating svm wallet account';
18
156
  const ERROR_SIGN_RAW_MESSAGE = 'Error signing raw message';
19
157
 
@@ -857,23 +995,41 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
857
995
  * dashboard before calling this method.
858
996
  *
859
997
  * @param transaction - Unsigned Solana transaction (legacy or versioned).
998
+ * @param userId - End user the transaction is for. Required when the signer is
999
+ * that user's wallet rather than one of the caller's own server wallets.
860
1000
  * @returns The sponsored v0 transaction with the gas sponsor as fee payer.
861
- */ async sponsorTransaction({ transaction, traceContext }) {
1001
+ */ async sponsorTransaction({ transaction, userId, traceContext }) {
862
1002
  // Serialize the unsigned transaction to base64 wire format
863
1003
  const serialized = transaction instanceof web3_js.VersionedTransaction ? transaction.serialize() : transaction.serialize({
864
1004
  requireAllSignatures: false,
865
1005
  verifySignatures: false
866
1006
  });
867
1007
  const txBase64 = Buffer.from(serialized).toString('base64');
868
- const { transaction: sponsoredBase64 } = await this.apiClient.requestSvmSponsoredTransaction({
869
- transaction: txBase64,
1008
+ const { transaction: sponsoredBase64 } = await this.apiClient.requestSvmSponsoredTransaction(_extends({
1009
+ transaction: txBase64
1010
+ }, userId ? {
1011
+ userId
1012
+ } : {}, {
870
1013
  traceContext
871
- });
1014
+ }));
872
1015
  const sponsoredBytes = Buffer.from(sponsoredBase64, 'base64');
873
1016
  // The sponsor endpoint always returns a v0 versioned transaction.
874
1017
  return web3_js.VersionedTransaction.deserialize(sponsoredBytes);
875
1018
  }
876
1019
  /**
1020
+ * Reads the address that signs as fee payer for sponsored transactions in
1021
+ * this environment. Build transactions that name it as fee payer (for example
1022
+ * LI.FI `svmSponsor`) before passing them to {@link sponsorTransaction}.
1023
+ *
1024
+ * Gas sponsorship must be enabled for your environment in the Dynamic
1025
+ * dashboard.
1026
+ */ async getSponsorAddress({ traceContext } = {}) {
1027
+ const { sponsorAddress } = await this.apiClient.getSvmSponsorAddress({
1028
+ traceContext
1029
+ });
1030
+ return sponsorAddress;
1031
+ }
1032
+ /**
877
1033
  * Generates a Token-2022 confidential-transfer seed inside the enclave and
878
1034
  * stores the sealed result in CKS. Returns the ElGamal public key and the
879
1035
  * derivation version — persist it for later confidential operations.
@@ -888,16 +1044,46 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
888
1044
  });
889
1045
  }
890
1046
  /**
891
- * Signs Token-2022 confidential-transfer transactions in the enclave.
1047
+ * Decrypts a confidential token account's available and pending balances
1048
+ * inside the enclave. Reads the account from `rpcUrl` unless `accountState`
1049
+ * is supplied. Balances are decimal strings in base units.
1050
+ */ async getConfidentialBalance({ walletId, solanaAddress, mint, tokenAccount, accountState, derivationVersion, rpcUrl, traceContext }) {
1051
+ let state = accountState;
1052
+ if (!state) {
1053
+ if (!rpcUrl) {
1054
+ throw new node.ClientValidationError('getConfidentialBalance requires rpcUrl or accountState');
1055
+ }
1056
+ state = await this.svmAccountState(new web3_js.Connection(this.assertConfidentialRpcUrl(rpcUrl)), tokenAccount);
1057
+ }
1058
+ return this.apiClient.getSvmConfidentialBalance({
1059
+ walletId,
1060
+ request: {
1061
+ accountState: state,
1062
+ derivationVersion,
1063
+ mint,
1064
+ solanaAddress,
1065
+ tokenAccount
1066
+ },
1067
+ traceContext
1068
+ });
1069
+ }
1070
+ /**
1071
+ * Builds and signs Token-2022 confidential-transfer transactions.
892
1072
  *
893
1073
  * The enclave is offline, so any missing `accountState` /
894
1074
  * `destinationAccountState` and the latest blockhash are fetched from
895
- * `rpcUrl` on the caller's behalf. Pass `broadcast: true` to also submit
896
- * the signed transactions to the cluster in order.
1075
+ * `rpcUrl` on the caller's behalf. The enclave builds one unsigned v1
1076
+ * transaction bound by a `transactionsTag`; `signConfidentialTransactions`
1077
+ * provisions one MPC room for the operation and the client share joins it
1078
+ * like an ordinary `signTransaction` ceremony. Pass `broadcast: true` to
1079
+ * also submit the signed transaction to the cluster.
897
1080
  *
898
1081
  * @returns The signed transactions (base64, broadcast order), their
899
1082
  * signatures, and — when broadcast — the submitted transaction ids.
900
- */ async signConfidentialTransfer({ walletId, operation, solanaAddress, mint, tokenAccount, destinationTokenAccount, amount, decimals, accountState, destinationAccountState, auditorElgamalPubkey, feePayer, derivationVersion, chainId = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', lamportsPerByte = '6960', recentBlockhash, lastValidBlockHeight, rpcUrl, broadcast = false, broadcastOptions, traceContext }) {
1083
+ */ async signConfidentialTransfer({ walletId, walletMetadata, operation, solanaAddress, mint, tokenAccount, destinationTokenAccount, amount, decimals, accountState, destinationAccountState, auditorElgamalPubkey, feePayer, derivationVersion, chainId = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', lamportsPerByte = '6960', recentBlockhash, lastValidBlockHeight, rpcUrl, broadcast = false, broadcastOptions, password, externalServerKeyShares, traceContext }) {
1084
+ if (walletMetadata.walletId !== walletId || walletMetadata.accountAddress !== solanaAddress) {
1085
+ throw new node.ClientValidationError('walletId and solanaAddress must match walletMetadata');
1086
+ }
901
1087
  const resolved = await this.resolveConfidentialInputs({
902
1088
  operation,
903
1089
  tokenAccount,
@@ -909,7 +1095,7 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
909
1095
  rpcUrl,
910
1096
  broadcast
911
1097
  });
912
- const result = await this.apiClient.signConfidentialTransfer({
1098
+ const built = await this.apiClient.signConfidentialTransfer({
913
1099
  walletId,
914
1100
  request: {
915
1101
  accountState: resolved.accountState,
@@ -931,13 +1117,79 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
931
1117
  },
932
1118
  traceContext
933
1119
  });
934
- const transactionIds = broadcast ? await this.broadcastConfidentialTransactions(resolved.connection, result.serializedTransactions, broadcastOptions, {
1120
+ checkConfidentialTransactions({
1121
+ serializedTransactions: built.serializedTransactions,
1122
+ solanaAddress,
1123
+ operation,
1124
+ mint,
1125
+ tokenAccount,
1126
+ destinationTokenAccount,
1127
+ amount,
1128
+ decimals
1129
+ });
1130
+ // Same credential resolution as sign(): supplied shares are verified
1131
+ // against the backup password, otherwise shares are recovered by it.
1132
+ const backupInfo = walletMetadata.externalServerKeySharesBackupInfo;
1133
+ const resolvedShares = await this.resolveKeyShares({
1134
+ accountAddress: solanaAddress,
1135
+ password,
1136
+ walletOperation: node.WalletOperation.SIGN_TRANSACTION,
1137
+ externalServerKeyShares,
1138
+ errorMessage: 'External server key shares are required to sign confidential transactions',
1139
+ walletMetadata,
1140
+ backupInfo
1141
+ });
1142
+ if (resolvedShares === externalServerKeyShares) {
1143
+ if (!backupInfo) {
1144
+ throw new node.ClientValidationError('walletMetadata.externalServerKeySharesBackupInfo is required to verify the password when signing with caller-supplied externalServerKeyShares.');
1145
+ }
1146
+ await this.verifyPassword({
1147
+ accountAddress: solanaAddress,
1148
+ password,
1149
+ walletMetadata,
1150
+ backupInfo
1151
+ });
1152
+ }
1153
+ const { roomIds } = await this.apiClient.signConfidentialTransactions({
1154
+ walletId,
1155
+ request: {
1156
+ solanaAddress,
1157
+ serializedTransactions: built.serializedTransactions,
1158
+ transactionsTag: built.transactionsTag,
1159
+ chainId
1160
+ },
1161
+ traceContext
1162
+ });
1163
+ if (roomIds.length !== 1) {
1164
+ throw new Error('signConfidentialTransactions must return exactly one room');
1165
+ }
1166
+ const derivationPath = walletMetadata.derivationPath && walletMetadata.derivationPath !== '' ? new Uint32Array(Object.values(JSON.parse(walletMetadata.derivationPath))) : undefined;
1167
+ const wireBytes = new Uint8Array(Buffer.from(built.serializedTransactions[0], 'base64'));
1168
+ // v1 wire: message || signature slots; the check guarantees a sole signer.
1169
+ const signatureEd25519 = await this.externalServerSign({
1170
+ chainName: this.chainName,
1171
+ message: toHex(confidentialSignedMessageBytes(wireBytes, 1)),
1172
+ roomId: roomIds[0],
1173
+ keyShare: resolvedShares[0],
1174
+ derivationPath,
1175
+ isFormatted: false,
1176
+ dynamicRequestId: node_crypto.randomUUID()
1177
+ });
1178
+ const signedTransactions = [
1179
+ Buffer.from(injectConfidentialSignature(wireBytes, signatureEd25519)).toString('base64')
1180
+ ];
1181
+ const signatures = [
1182
+ encodeBase58(signatureEd25519)
1183
+ ];
1184
+ const transactionIds = broadcast ? await this.broadcastConfidentialTransactions(resolved.connection, signedTransactions, broadcastOptions, {
935
1185
  blockhash: resolved.recentBlockhash,
936
1186
  lastValidBlockHeight: Number(resolved.lastValidBlockHeight)
937
1187
  }) : undefined;
938
- return _extends({}, result, {
1188
+ return {
1189
+ serializedTransactions: signedTransactions,
1190
+ signatures,
939
1191
  transactionIds
940
- });
1192
+ };
941
1193
  }
942
1194
  /** @deprecated Use getWalletByAddress instead for better performance */ async getSvmWallets() {
943
1195
  // Calling the deprecated getWallets() is the point of this shim, and it is
@@ -982,7 +1234,8 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
982
1234
  // Token-2022 confidential transfers
983
1235
  // ---------------------------------------------------------------------------
984
1236
  this.svmAccountState = async (connection, account)=>{
985
- const info = await connection.getAccountInfo(new web3_js.PublicKey(account));
1237
+ // Read at the commitment the broadcast confirms at, or a just-confirmed transaction decrypts as stale state.
1238
+ const info = await connection.getAccountInfo(new web3_js.PublicKey(account), 'confirmed');
986
1239
  if (!info) {
987
1240
  throw new Error(`Solana account not found: ${account}`);
988
1241
  }
@@ -1004,7 +1257,9 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
1004
1257
  };
1005
1258
  }, this.broadcastConfidentialTransactions = async (connection, serializedTransactions, broadcastOptions, confirmationStrategy)=>serializedTransactions.reduce(async (accPromise, serializedTransaction)=>{
1006
1259
  const acc = await accPromise;
1007
- const transactionId = await connection.sendRawTransaction(Buffer.from(serializedTransaction, 'base64'), broadcastOptions);
1260
+ const transactionId = await connection.sendRawTransaction(Buffer.from(serializedTransaction, 'base64'), _extends({
1261
+ preflightCommitment: 'confirmed'
1262
+ }, broadcastOptions));
1008
1263
  // Confidential plans are order-dependent: confirm before submitting
1009
1264
  // the next transaction or Solana may process them out of order.
1010
1265
  // confirmTransaction resolves with value.err on a failed transaction
package/index.esm.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { SOLANA_RPC_URL, createLogError, DynamicWalletClient, getMPCChainConfig, stripHexPrefix, resolveRawSignContext, WalletOperation, ClientValidationError, createDelegatedWalletClient, delegatedSignMessage as delegatedSignMessage$1, withDelegatedServerAuth, revokeDelegation as revokeDelegation$1 } from '@dynamic-labs-wallet/node';
2
- import { PublicKey, Connection, Transaction, SystemProgram, VersionedTransaction, Keypair } from '@solana/web3.js';
2
+ import { SIGNATURE_LENGTH_IN_BYTES, VersionedTransaction, PublicKey, Connection, Transaction, SystemProgram, Keypair } from '@solana/web3.js';
3
+ import { randomUUID } from 'node:crypto';
3
4
 
4
5
  function _extends() {
5
6
  _extends = Object.assign || function assign(target) {
@@ -12,6 +13,143 @@ function _extends() {
12
13
  return _extends.apply(this, arguments);
13
14
  }
14
15
 
16
+ const TOKEN_2022 = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
17
+ const ASSOCIATED_TOKEN = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
18
+ const SYSTEM = '11111111111111111111111111111111';
19
+ const ZK_ELGAMAL_PROOF = 'ZkE1Gama1Proof11111111111111111111111111111';
20
+ const COMPUTE_BUDGET = 'ComputeBudget111111111111111111111111111111';
21
+ const ALLOWED_PROGRAMS = new Set([
22
+ TOKEN_2022,
23
+ ASSOCIATED_TOKEN,
24
+ SYSTEM,
25
+ ZK_ELGAMAL_PROOF,
26
+ COMPUTE_BUDGET
27
+ ]);
28
+ // Helper instructions the planner may emit alongside the confidential one.
29
+ const COMPUTE_SET_UNIT_LIMIT = 2;
30
+ const COMPUTE_SET_UNIT_PRICE = 3;
31
+ const ATA_CREATE = 0;
32
+ const ATA_CREATE_IDEMPOTENT = 1;
33
+ const SYSTEM_CREATE_ACCOUNT = 0;
34
+ const TOKEN_REALLOCATE = 29;
35
+ // Token-2022 ConfidentialTransferExtension (27) sub-instruction per operation.
36
+ const CONFIDENTIAL_EXTENSION = 27;
37
+ const SUB_INSTRUCTION = {
38
+ configureAccount: 2,
39
+ deposit: 5,
40
+ withdraw: 6,
41
+ transfer: 7,
42
+ applyPendingBalance: 8
43
+ };
44
+ const V1_PREFIX = 0x81;
45
+ const refuse = (reason)=>{
46
+ throw new Error(`Refusing to sign confidential transaction: ${reason}`);
47
+ };
48
+ /** Message bytes an MPC signer signs: a v1 wire is message || 64B signature slots. */ const confidentialSignedMessageBytes = (wire, numRequiredSignatures)=>wire.slice(0, wire.length - numRequiredSignatures * SIGNATURE_LENGTH_IN_BYTES);
49
+ /** Insert the wallet signature into the sole v1 signature slot (signer index 0). */ const injectConfidentialSignature = (wire, signature)=>Uint8Array.from([
50
+ ...wire.slice(0, wire.length - SIGNATURE_LENGTH_IN_BYTES),
51
+ ...signature
52
+ ]);
53
+ const decodeV1Message = (encoded, solanaAddress)=>{
54
+ const wire = new Uint8Array(Buffer.from(encoded, 'base64'));
55
+ if (wire[0] !== V1_PREFIX) {
56
+ refuse('not a version 1 transaction');
57
+ }
58
+ let message;
59
+ try {
60
+ message = VersionedTransaction.deserialize(wire).message;
61
+ } catch (e) {
62
+ return refuse('malformed transaction');
63
+ }
64
+ if (message.version !== 1) {
65
+ refuse('not a version 1 transaction');
66
+ }
67
+ if (message.header.numRequiredSignatures !== 1) {
68
+ refuse('unexpected extra signers');
69
+ }
70
+ const keys = message.staticAccountKeys.map((key)=>key.toBase58());
71
+ if (keys[0] !== solanaAddress) {
72
+ refuse('the wallet is not the fee payer');
73
+ }
74
+ return {
75
+ message,
76
+ keys
77
+ };
78
+ };
79
+ const isAllowedHelperInstruction = (program, data)=>{
80
+ switch(program){
81
+ case COMPUTE_BUDGET:
82
+ return data[0] === COMPUTE_SET_UNIT_LIMIT || data[0] === COMPUTE_SET_UNIT_PRICE;
83
+ case ASSOCIATED_TOKEN:
84
+ return data.length === 0 || data[0] === ATA_CREATE || data[0] === ATA_CREATE_IDEMPOTENT;
85
+ case SYSTEM:
86
+ return data.length >= 4 && Buffer.from(data).readUInt32LE(0) === SYSTEM_CREATE_ACCOUNT;
87
+ case TOKEN_2022:
88
+ return data[0] === TOKEN_REALLOCATE;
89
+ default:
90
+ return program === ZK_ELGAMAL_PROOF;
91
+ }
92
+ };
93
+ const checkOperationInstruction = (data, accounts, params)=>{
94
+ const { operation, mint, tokenAccount, destinationTokenAccount, amount, decimals } = params;
95
+ if (data[1] !== SUB_INSTRUCTION[operation]) {
96
+ refuse(`confidential instruction ${data[1]} does not match ${operation}`);
97
+ }
98
+ if (accounts[0] !== tokenAccount) {
99
+ refuse('instruction targets an unexpected token account');
100
+ }
101
+ if (operation !== 'applyPendingBalance' && accounts[1] !== mint) {
102
+ refuse('instruction uses an unexpected mint');
103
+ }
104
+ if (operation === 'transfer' && (!destinationTokenAccount || accounts[2] !== destinationTokenAccount)) {
105
+ refuse('transfer destination does not match the request');
106
+ }
107
+ if (operation !== 'deposit' && operation !== 'withdraw') {
108
+ return;
109
+ }
110
+ // Confidential amount layout: [27, sub, amount u64 LE, decimals u8, ...].
111
+ const bytes = Buffer.from(data);
112
+ if (amount === undefined || bytes.length < 11 || bytes.readBigUInt64LE(2).toString() !== amount) {
113
+ refuse(`${operation} amount does not match the request`);
114
+ }
115
+ if (decimals === undefined || bytes[10] !== decimals) {
116
+ refuse(`${operation} decimals do not match the request`);
117
+ }
118
+ };
119
+ /**
120
+ * Structural check on the enclave-built confidential transaction before the
121
+ * client share joins the MPC room: must be one v1 message, the wallet must be
122
+ * fee payer and only signer, only expected programs and instruction kinds may
123
+ * appear, and the confidential instruction must match the requested
124
+ * operation, mint, token accounts and amounts. The enclave's
125
+ * `transactionsTag` binds the build; this only guards against a bad build
126
+ * reaching the ceremony.
127
+ */ const checkConfidentialTransactions = (params)=>{
128
+ if (params.serializedTransactions.length !== 1) {
129
+ refuse('expected exactly one version 1 transaction');
130
+ }
131
+ const { message, keys } = decodeV1Message(params.serializedTransactions[0], params.solanaAddress);
132
+ let sawOperation = false;
133
+ for (const ix of message.compiledInstructions){
134
+ const program = keys[ix.programIdIndex];
135
+ if (!program || !ALLOWED_PROGRAMS.has(program)) {
136
+ refuse(`unexpected program ${program}`);
137
+ }
138
+ if (program === TOKEN_2022 && ix.data[0] === CONFIDENTIAL_EXTENSION) {
139
+ if (sawOperation) {
140
+ refuse('more than one confidential instruction');
141
+ }
142
+ checkOperationInstruction(ix.data, ix.accountKeyIndexes.map((i)=>keys[i]), params);
143
+ sawOperation = true;
144
+ } else if (!isAllowedHelperInstruction(program, ix.data)) {
145
+ refuse(`unexpected instruction ${ix.data[0]} for program ${program}`);
146
+ }
147
+ }
148
+ if (!sawOperation) {
149
+ refuse(`no confidential instruction for ${params.operation}`);
150
+ }
151
+ };
152
+
15
153
  const ERROR_CREATE_WALLET_ACCOUNT = 'Error creating svm wallet account';
16
154
  const ERROR_SIGN_RAW_MESSAGE = 'Error signing raw message';
17
155
 
@@ -855,23 +993,41 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
855
993
  * dashboard before calling this method.
856
994
  *
857
995
  * @param transaction - Unsigned Solana transaction (legacy or versioned).
996
+ * @param userId - End user the transaction is for. Required when the signer is
997
+ * that user's wallet rather than one of the caller's own server wallets.
858
998
  * @returns The sponsored v0 transaction with the gas sponsor as fee payer.
859
- */ async sponsorTransaction({ transaction, traceContext }) {
999
+ */ async sponsorTransaction({ transaction, userId, traceContext }) {
860
1000
  // Serialize the unsigned transaction to base64 wire format
861
1001
  const serialized = transaction instanceof VersionedTransaction ? transaction.serialize() : transaction.serialize({
862
1002
  requireAllSignatures: false,
863
1003
  verifySignatures: false
864
1004
  });
865
1005
  const txBase64 = Buffer.from(serialized).toString('base64');
866
- const { transaction: sponsoredBase64 } = await this.apiClient.requestSvmSponsoredTransaction({
867
- transaction: txBase64,
1006
+ const { transaction: sponsoredBase64 } = await this.apiClient.requestSvmSponsoredTransaction(_extends({
1007
+ transaction: txBase64
1008
+ }, userId ? {
1009
+ userId
1010
+ } : {}, {
868
1011
  traceContext
869
- });
1012
+ }));
870
1013
  const sponsoredBytes = Buffer.from(sponsoredBase64, 'base64');
871
1014
  // The sponsor endpoint always returns a v0 versioned transaction.
872
1015
  return VersionedTransaction.deserialize(sponsoredBytes);
873
1016
  }
874
1017
  /**
1018
+ * Reads the address that signs as fee payer for sponsored transactions in
1019
+ * this environment. Build transactions that name it as fee payer (for example
1020
+ * LI.FI `svmSponsor`) before passing them to {@link sponsorTransaction}.
1021
+ *
1022
+ * Gas sponsorship must be enabled for your environment in the Dynamic
1023
+ * dashboard.
1024
+ */ async getSponsorAddress({ traceContext } = {}) {
1025
+ const { sponsorAddress } = await this.apiClient.getSvmSponsorAddress({
1026
+ traceContext
1027
+ });
1028
+ return sponsorAddress;
1029
+ }
1030
+ /**
875
1031
  * Generates a Token-2022 confidential-transfer seed inside the enclave and
876
1032
  * stores the sealed result in CKS. Returns the ElGamal public key and the
877
1033
  * derivation version — persist it for later confidential operations.
@@ -886,16 +1042,46 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
886
1042
  });
887
1043
  }
888
1044
  /**
889
- * Signs Token-2022 confidential-transfer transactions in the enclave.
1045
+ * Decrypts a confidential token account's available and pending balances
1046
+ * inside the enclave. Reads the account from `rpcUrl` unless `accountState`
1047
+ * is supplied. Balances are decimal strings in base units.
1048
+ */ async getConfidentialBalance({ walletId, solanaAddress, mint, tokenAccount, accountState, derivationVersion, rpcUrl, traceContext }) {
1049
+ let state = accountState;
1050
+ if (!state) {
1051
+ if (!rpcUrl) {
1052
+ throw new ClientValidationError('getConfidentialBalance requires rpcUrl or accountState');
1053
+ }
1054
+ state = await this.svmAccountState(new Connection(this.assertConfidentialRpcUrl(rpcUrl)), tokenAccount);
1055
+ }
1056
+ return this.apiClient.getSvmConfidentialBalance({
1057
+ walletId,
1058
+ request: {
1059
+ accountState: state,
1060
+ derivationVersion,
1061
+ mint,
1062
+ solanaAddress,
1063
+ tokenAccount
1064
+ },
1065
+ traceContext
1066
+ });
1067
+ }
1068
+ /**
1069
+ * Builds and signs Token-2022 confidential-transfer transactions.
890
1070
  *
891
1071
  * The enclave is offline, so any missing `accountState` /
892
1072
  * `destinationAccountState` and the latest blockhash are fetched from
893
- * `rpcUrl` on the caller's behalf. Pass `broadcast: true` to also submit
894
- * the signed transactions to the cluster in order.
1073
+ * `rpcUrl` on the caller's behalf. The enclave builds one unsigned v1
1074
+ * transaction bound by a `transactionsTag`; `signConfidentialTransactions`
1075
+ * provisions one MPC room for the operation and the client share joins it
1076
+ * like an ordinary `signTransaction` ceremony. Pass `broadcast: true` to
1077
+ * also submit the signed transaction to the cluster.
895
1078
  *
896
1079
  * @returns The signed transactions (base64, broadcast order), their
897
1080
  * signatures, and — when broadcast — the submitted transaction ids.
898
- */ async signConfidentialTransfer({ walletId, operation, solanaAddress, mint, tokenAccount, destinationTokenAccount, amount, decimals, accountState, destinationAccountState, auditorElgamalPubkey, feePayer, derivationVersion, chainId = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', lamportsPerByte = '6960', recentBlockhash, lastValidBlockHeight, rpcUrl, broadcast = false, broadcastOptions, traceContext }) {
1081
+ */ async signConfidentialTransfer({ walletId, walletMetadata, operation, solanaAddress, mint, tokenAccount, destinationTokenAccount, amount, decimals, accountState, destinationAccountState, auditorElgamalPubkey, feePayer, derivationVersion, chainId = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', lamportsPerByte = '6960', recentBlockhash, lastValidBlockHeight, rpcUrl, broadcast = false, broadcastOptions, password, externalServerKeyShares, traceContext }) {
1082
+ if (walletMetadata.walletId !== walletId || walletMetadata.accountAddress !== solanaAddress) {
1083
+ throw new ClientValidationError('walletId and solanaAddress must match walletMetadata');
1084
+ }
899
1085
  const resolved = await this.resolveConfidentialInputs({
900
1086
  operation,
901
1087
  tokenAccount,
@@ -907,7 +1093,7 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
907
1093
  rpcUrl,
908
1094
  broadcast
909
1095
  });
910
- const result = await this.apiClient.signConfidentialTransfer({
1096
+ const built = await this.apiClient.signConfidentialTransfer({
911
1097
  walletId,
912
1098
  request: {
913
1099
  accountState: resolved.accountState,
@@ -929,13 +1115,79 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
929
1115
  },
930
1116
  traceContext
931
1117
  });
932
- const transactionIds = broadcast ? await this.broadcastConfidentialTransactions(resolved.connection, result.serializedTransactions, broadcastOptions, {
1118
+ checkConfidentialTransactions({
1119
+ serializedTransactions: built.serializedTransactions,
1120
+ solanaAddress,
1121
+ operation,
1122
+ mint,
1123
+ tokenAccount,
1124
+ destinationTokenAccount,
1125
+ amount,
1126
+ decimals
1127
+ });
1128
+ // Same credential resolution as sign(): supplied shares are verified
1129
+ // against the backup password, otherwise shares are recovered by it.
1130
+ const backupInfo = walletMetadata.externalServerKeySharesBackupInfo;
1131
+ const resolvedShares = await this.resolveKeyShares({
1132
+ accountAddress: solanaAddress,
1133
+ password,
1134
+ walletOperation: WalletOperation.SIGN_TRANSACTION,
1135
+ externalServerKeyShares,
1136
+ errorMessage: 'External server key shares are required to sign confidential transactions',
1137
+ walletMetadata,
1138
+ backupInfo
1139
+ });
1140
+ if (resolvedShares === externalServerKeyShares) {
1141
+ if (!backupInfo) {
1142
+ throw new ClientValidationError('walletMetadata.externalServerKeySharesBackupInfo is required to verify the password when signing with caller-supplied externalServerKeyShares.');
1143
+ }
1144
+ await this.verifyPassword({
1145
+ accountAddress: solanaAddress,
1146
+ password,
1147
+ walletMetadata,
1148
+ backupInfo
1149
+ });
1150
+ }
1151
+ const { roomIds } = await this.apiClient.signConfidentialTransactions({
1152
+ walletId,
1153
+ request: {
1154
+ solanaAddress,
1155
+ serializedTransactions: built.serializedTransactions,
1156
+ transactionsTag: built.transactionsTag,
1157
+ chainId
1158
+ },
1159
+ traceContext
1160
+ });
1161
+ if (roomIds.length !== 1) {
1162
+ throw new Error('signConfidentialTransactions must return exactly one room');
1163
+ }
1164
+ const derivationPath = walletMetadata.derivationPath && walletMetadata.derivationPath !== '' ? new Uint32Array(Object.values(JSON.parse(walletMetadata.derivationPath))) : undefined;
1165
+ const wireBytes = new Uint8Array(Buffer.from(built.serializedTransactions[0], 'base64'));
1166
+ // v1 wire: message || signature slots; the check guarantees a sole signer.
1167
+ const signatureEd25519 = await this.externalServerSign({
1168
+ chainName: this.chainName,
1169
+ message: toHex(confidentialSignedMessageBytes(wireBytes, 1)),
1170
+ roomId: roomIds[0],
1171
+ keyShare: resolvedShares[0],
1172
+ derivationPath,
1173
+ isFormatted: false,
1174
+ dynamicRequestId: randomUUID()
1175
+ });
1176
+ const signedTransactions = [
1177
+ Buffer.from(injectConfidentialSignature(wireBytes, signatureEd25519)).toString('base64')
1178
+ ];
1179
+ const signatures = [
1180
+ encodeBase58(signatureEd25519)
1181
+ ];
1182
+ const transactionIds = broadcast ? await this.broadcastConfidentialTransactions(resolved.connection, signedTransactions, broadcastOptions, {
933
1183
  blockhash: resolved.recentBlockhash,
934
1184
  lastValidBlockHeight: Number(resolved.lastValidBlockHeight)
935
1185
  }) : undefined;
936
- return _extends({}, result, {
1186
+ return {
1187
+ serializedTransactions: signedTransactions,
1188
+ signatures,
937
1189
  transactionIds
938
- });
1190
+ };
939
1191
  }
940
1192
  /** @deprecated Use getWalletByAddress instead for better performance */ async getSvmWallets() {
941
1193
  // Calling the deprecated getWallets() is the point of this shim, and it is
@@ -980,7 +1232,8 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
980
1232
  // Token-2022 confidential transfers
981
1233
  // ---------------------------------------------------------------------------
982
1234
  this.svmAccountState = async (connection, account)=>{
983
- const info = await connection.getAccountInfo(new PublicKey(account));
1235
+ // Read at the commitment the broadcast confirms at, or a just-confirmed transaction decrypts as stale state.
1236
+ const info = await connection.getAccountInfo(new PublicKey(account), 'confirmed');
984
1237
  if (!info) {
985
1238
  throw new Error(`Solana account not found: ${account}`);
986
1239
  }
@@ -1002,7 +1255,9 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
1002
1255
  };
1003
1256
  }, this.broadcastConfidentialTransactions = async (connection, serializedTransactions, broadcastOptions, confirmationStrategy)=>serializedTransactions.reduce(async (accPromise, serializedTransaction)=>{
1004
1257
  const acc = await accPromise;
1005
- const transactionId = await connection.sendRawTransaction(Buffer.from(serializedTransaction, 'base64'), broadcastOptions);
1258
+ const transactionId = await connection.sendRawTransaction(Buffer.from(serializedTransaction, 'base64'), _extends({
1259
+ preflightCommitment: 'confirmed'
1260
+ }, broadcastOptions));
1006
1261
  // Confidential plans are order-dependent: confirm before submitting
1007
1262
  // the next transaction or Solana may process them out of order.
1008
1263
  // confirmTransaction resolves with value.err on a failed transaction
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/node-svm",
3
- "version": "1.1.62",
3
+ "version": "1.1.64",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@dynamic-labs-wallet/node": "1.1.62",
8
- "@solana/web3.js": "^1.98.2"
7
+ "@dynamic-labs-wallet/node": "1.1.64",
8
+ "@solana/web3.js": "1.99.0"
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public"
@@ -153,12 +153,26 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
153
153
  * dashboard before calling this method.
154
154
  *
155
155
  * @param transaction - Unsigned Solana transaction (legacy or versioned).
156
+ * @param userId - End user the transaction is for. Required when the signer is
157
+ * that user's wallet rather than one of the caller's own server wallets.
156
158
  * @returns The sponsored v0 transaction with the gas sponsor as fee payer.
157
159
  */
158
- sponsorTransaction({ transaction, traceContext, }: {
160
+ sponsorTransaction({ transaction, userId, traceContext, }: {
159
161
  transaction: VersionedTransaction | Transaction;
162
+ userId?: string;
160
163
  traceContext?: TraceContext;
161
164
  }): Promise<VersionedTransaction>;
165
+ /**
166
+ * Reads the address that signs as fee payer for sponsored transactions in
167
+ * this environment. Build transactions that name it as fee payer (for example
168
+ * LI.FI `svmSponsor`) before passing them to {@link sponsorTransaction}.
169
+ *
170
+ * Gas sponsorship must be enabled for your environment in the Dynamic
171
+ * dashboard.
172
+ */
173
+ getSponsorAddress({ traceContext }?: {
174
+ traceContext?: TraceContext;
175
+ }): Promise<string>;
162
176
  private readonly svmAccountState;
163
177
  private readonly confidentialBlockhash;
164
178
  private readonly broadcastConfidentialTransactions;
@@ -174,18 +188,37 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
174
188
  traceContext?: TraceContext;
175
189
  }): Promise<import("@dynamic-labs-wallet/node").CreateConfidentialSeedResponse>;
176
190
  /**
177
- * Signs Token-2022 confidential-transfer transactions in the enclave.
191
+ * Decrypts a confidential token account's available and pending balances
192
+ * inside the enclave. Reads the account from `rpcUrl` unless `accountState`
193
+ * is supplied. Balances are decimal strings in base units.
194
+ */
195
+ getConfidentialBalance({ walletId, solanaAddress, mint, tokenAccount, accountState, derivationVersion, rpcUrl, traceContext, }: {
196
+ walletId: string;
197
+ solanaAddress: string;
198
+ mint: string;
199
+ tokenAccount: string;
200
+ accountState?: ConfidentialAccountState;
201
+ derivationVersion?: number;
202
+ rpcUrl?: string;
203
+ traceContext?: TraceContext;
204
+ }): Promise<import("@dynamic-labs-wallet/node").SvmConfidentialBalanceResponse>;
205
+ /**
206
+ * Builds and signs Token-2022 confidential-transfer transactions.
178
207
  *
179
208
  * The enclave is offline, so any missing `accountState` /
180
209
  * `destinationAccountState` and the latest blockhash are fetched from
181
- * `rpcUrl` on the caller's behalf. Pass `broadcast: true` to also submit
182
- * the signed transactions to the cluster in order.
210
+ * `rpcUrl` on the caller's behalf. The enclave builds one unsigned v1
211
+ * transaction bound by a `transactionsTag`; `signConfidentialTransactions`
212
+ * provisions one MPC room for the operation and the client share joins it
213
+ * like an ordinary `signTransaction` ceremony. Pass `broadcast: true` to
214
+ * also submit the signed transaction to the cluster.
183
215
  *
184
216
  * @returns The signed transactions (base64, broadcast order), their
185
217
  * signatures, and — when broadcast — the submitted transaction ids.
186
218
  */
187
- signConfidentialTransfer({ walletId, operation, solanaAddress, mint, tokenAccount, destinationTokenAccount, amount, decimals, accountState, destinationAccountState, auditorElgamalPubkey, feePayer, derivationVersion, chainId, lamportsPerByte, recentBlockhash, lastValidBlockHeight, rpcUrl, broadcast, broadcastOptions, traceContext, }: {
219
+ signConfidentialTransfer({ walletId, walletMetadata, operation, solanaAddress, mint, tokenAccount, destinationTokenAccount, amount, decimals, accountState, destinationAccountState, auditorElgamalPubkey, feePayer, derivationVersion, chainId, lamportsPerByte, recentBlockhash, lastValidBlockHeight, rpcUrl, broadcast, broadcastOptions, password, externalServerKeyShares, traceContext, }: {
188
220
  walletId: string;
221
+ walletMetadata: WalletMetadata;
189
222
  operation: ConfidentialTransferOperation;
190
223
  solanaAddress: string;
191
224
  mint: string;
@@ -207,11 +240,13 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
207
240
  rpcUrl?: string;
208
241
  broadcast?: boolean;
209
242
  broadcastOptions?: SendOptions;
243
+ password?: string;
244
+ externalServerKeyShares?: ServerKeyShare[];
210
245
  traceContext?: TraceContext;
211
246
  }): Promise<{
212
- transactionIds: string[] | undefined;
213
247
  serializedTransactions: string[];
214
248
  signatures: string[];
249
+ transactionIds: string[] | undefined;
215
250
  }>;
216
251
  /**
217
252
  * Validates `rpcUrl`, fetches missing account states and the latest
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,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0HD;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAkDxC;IAEF,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAOvC;IAEF,wEAAwE;IAClE,aAAa;;;;;;;;;IAYnB,OAAO,KAAK,OAAO,GAKlB;IAED;;;OAGG;IACG,sBAAsB,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIlG,0DAA0D;IACpD,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI1F,6DAA6D;IACvD,qBAAqB,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIhG,mEAAmE;IAC7D,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAGvF"}
@@ -0,0 +1,27 @@
1
+ import type { ConfidentialTransferOperation } from '@dynamic-labs-wallet/node';
2
+ /** Message bytes an MPC signer signs: a v1 wire is message || 64B signature slots. */
3
+ export declare const confidentialSignedMessageBytes: (wire: Uint8Array, numRequiredSignatures: number) => Uint8Array;
4
+ /** Insert the wallet signature into the sole v1 signature slot (signer index 0). */
5
+ export declare const injectConfidentialSignature: (wire: Uint8Array, signature: Uint8Array) => Uint8Array;
6
+ type ConfidentialCheckParams = {
7
+ serializedTransactions: string[];
8
+ solanaAddress: string;
9
+ operation: ConfidentialTransferOperation;
10
+ mint: string;
11
+ tokenAccount: string;
12
+ destinationTokenAccount?: string;
13
+ amount?: string;
14
+ decimals?: number;
15
+ };
16
+ /**
17
+ * Structural check on the enclave-built confidential transaction before the
18
+ * client share joins the MPC room: must be one v1 message, the wallet must be
19
+ * fee payer and only signer, only expected programs and instruction kinds may
20
+ * appear, and the confidential instruction must match the requested
21
+ * operation, mint, token accounts and amounts. The enclave's
22
+ * `transactionsTag` binds the build; this only guards against a bad build
23
+ * reaching the ceremony.
24
+ */
25
+ export declare const checkConfidentialTransactions: (params: ConfidentialCheckParams) => void;
26
+ export {};
27
+ //# sourceMappingURL=confidentialCheck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confidentialCheck.d.ts","sourceRoot":"","sources":["../../src/client/confidentialCheck.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAiC/E,sFAAsF;AACtF,eAAO,MAAM,8BAA8B,SAAU,UAAU,yBAAyB,MAAM,KAAG,UACjB,CAAC;AAEjF,oFAAoF;AACpF,eAAO,MAAM,2BAA2B,SAAU,UAAU,aAAa,UAAU,KAAG,UACM,CAAC;AAE7F,KAAK,uBAAuB,GAAG;IAC7B,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,6BAA6B,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAoEF;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,WAAY,uBAAuB,KAAG,IA4B/E,CAAC"}