@smithii_io/mixoor 0.0.3 → 0.0.4

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/src/index.js CHANGED
@@ -1380,6 +1380,13 @@ async function findVaultAddress(seeds, config = {}) {
1380
1380
  seeds: ["vault", kit.getAddressEncoder().encode(seeds.pool)]
1381
1381
  });
1382
1382
  }
1383
+ async function findNullifierAddress(seeds, config = {}) {
1384
+ const { programAddress = MIXOOR_PROGRAM_ADDRESS } = config;
1385
+ return await kit.getProgramDerivedAddress({
1386
+ programAddress,
1387
+ seeds: ["nullifier", seeds.nullifierHash]
1388
+ });
1389
+ }
1383
1390
 
1384
1391
  exports.AssetType = AssetType;
1385
1392
  exports.DEPOSIT_DISCRIMINATOR = DEPOSIT_DISCRIMINATOR;
@@ -1422,6 +1429,7 @@ exports.fetchNullifierAccount = fetchNullifierAccount;
1422
1429
  exports.fetchPool = fetchPool;
1423
1430
  exports.fetchVault = fetchVault;
1424
1431
  exports.findMerkleTreeAddress = findMerkleTreeAddress;
1432
+ exports.findNullifierAddress = findNullifierAddress;
1425
1433
  exports.findPoolAddress = findPoolAddress;
1426
1434
  exports.findVaultAddress = findVaultAddress;
1427
1435
  exports.fromHex = fromHex;