New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mysten/zksend

Package Overview
Dependencies
Maintainers
0
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/zksend - npm Package Compare versions

Comparing version 0.0.0-experimental-20240924193256 to 0.0.0-experimental-20240926213518

15

CHANGELOG.md
# @mysten/zksend
## 0.0.0-experimental-20240924193256
## 0.0.0-experimental-20240926213518
### Patch Changes
- Updated dependencies [489f421]
- Updated dependencies [489f421]
- @mysten/sui@0.0.0-experimental-20240926213518
- @mysten/wallet-standard@0.0.0-experimental-20240926213518
## 0.11.4
### Patch Changes
- Updated dependencies [830b8d8]
- @mysten/sui@0.0.0-experimental-20240924193256
- @mysten/wallet-standard@0.0.0-experimental-20240924193256
- @mysten/sui@1.10.0
- @mysten/wallet-standard@0.13.5

@@ -11,0 +20,0 @@ ## 0.11.3

2

dist/cjs/links/builder.js

@@ -93,3 +93,3 @@ "use strict";

link.pathname = __privateGet(this, _path);
link.hash = `${__privateGet(this, _contract) ? "$" : ""}${(0, import_utils.toB64)(
link.hash = `${__privateGet(this, _contract) ? "$" : ""}${(0, import_utils.toBase64)(
(0, import_cryptography.decodeSuiPrivateKey)(this.keypair.getSecretKey()).secretKey

@@ -96,0 +96,0 @@ )}`;

@@ -93,3 +93,3 @@ "use strict";

if (isContractLink) {
const keypair = import_ed25519.Ed25519Keypair.fromSecretKey((0, import_utils.fromB64)(parsed.hash.slice(2)));
const keypair = import_ed25519.Ed25519Keypair.fromSecretKey((0, import_utils.fromBase64)(parsed.hash.slice(2)));
link = new _ZkSendLink({

@@ -105,3 +105,3 @@ ...options,

const keypair = import_ed25519.Ed25519Keypair.fromSecretKey(
(0, import_utils.fromB64)(isContractLink ? parsed.hash.slice(2) : parsed.hash.slice(1))
(0, import_utils.fromBase64)(isContractLink ? parsed.hash.slice(2) : parsed.hash.slice(1))
);

@@ -164,3 +164,3 @@ link = new _ZkSendLink({

const sponsored = await __privateMethod(this, _ZkSendLink_instances, createSponsoredTransaction_fn).call(this, tx, address, reclaim ? address : this.keypair.toSuiAddress());
const bytes = (0, import_utils.fromB64)(sponsored.bytes);
const bytes = (0, import_utils.fromBase64)(sponsored.bytes);
const signature = sign ? await sign(bytes) : (await this.keypair.signTransaction(bytes)).signature;

@@ -401,3 +401,3 @@ const { digest } = await __privateMethod(this, _ZkSendLink_instances, executeSponsoredTransaction_fn).call(this, sponsored, signature);

claimer,
transactionBlockKindBytes: (0, import_utils.toB64)(
transactionBlockKindBytes: (0, import_utils.toBase64)(
await tx.build({

@@ -404,0 +404,0 @@ onlyTransactionKind: true,

@@ -81,3 +81,3 @@ "use strict";

}
const kind = import_bcs.bcs.SenderSignedData.parse((0, import_utils.fromB64)(node.bcs))?.[0]?.intentMessage.value.V1.kind;
const kind = import_bcs.bcs.SenderSignedData.parse((0, import_utils.fromBase64)(node.bcs))?.[0]?.intentMessage.value.V1.kind;
if (!kind.ProgrammableTransaction) {

@@ -84,0 +84,0 @@ return null;

@@ -108,3 +108,3 @@ "use strict";

});
const bytes = (0, import_utils.toB64)(message);
const bytes = (0, import_utils.toBase64)(message);
const response = await popup.send({

@@ -111,0 +111,0 @@ type: "sign-personal-message",

@@ -14,3 +14,3 @@ var __typeError = (msg) => {

import { Transaction } from "@mysten/sui/transactions";
import { normalizeStructTag, normalizeSuiAddress, SUI_TYPE_ARG, toB64 } from "@mysten/sui/utils";
import { normalizeStructTag, normalizeSuiAddress, SUI_TYPE_ARG, toBase64 } from "@mysten/sui/utils";
import { getContractIds, ZkBag } from "./zk-bag.js";

@@ -71,3 +71,3 @@ const DEFAULT_ZK_SEND_LINK_OPTIONS = {

link.pathname = __privateGet(this, _path);
link.hash = `${__privateGet(this, _contract) ? "$" : ""}${toB64(
link.hash = `${__privateGet(this, _contract) ? "$" : ""}${toBase64(
decodeSuiPrivateKey(this.keypair.getSecretKey()).secretKey

@@ -74,0 +74,0 @@ )}`;

@@ -15,3 +15,3 @@ var __typeError = (msg) => {

import {
fromB64,
fromBase64,
normalizeStructTag,

@@ -22,3 +22,3 @@ normalizeSuiAddress,

SUI_TYPE_ARG,
toB64
toBase64
} from "@mysten/sui/utils";

@@ -80,3 +80,3 @@ import { ZkSendLinkBuilder } from "./builder.js";

if (isContractLink) {
const keypair = Ed25519Keypair.fromSecretKey(fromB64(parsed.hash.slice(2)));
const keypair = Ed25519Keypair.fromSecretKey(fromBase64(parsed.hash.slice(2)));
link = new _ZkSendLink({

@@ -92,3 +92,3 @@ ...options,

const keypair = Ed25519Keypair.fromSecretKey(
fromB64(isContractLink ? parsed.hash.slice(2) : parsed.hash.slice(1))
fromBase64(isContractLink ? parsed.hash.slice(2) : parsed.hash.slice(1))
);

@@ -151,3 +151,3 @@ link = new _ZkSendLink({

const sponsored = await __privateMethod(this, _ZkSendLink_instances, createSponsoredTransaction_fn).call(this, tx, address, reclaim ? address : this.keypair.toSuiAddress());
const bytes = fromB64(sponsored.bytes);
const bytes = fromBase64(sponsored.bytes);
const signature = sign ? await sign(bytes) : (await this.keypair.signTransaction(bytes)).signature;

@@ -388,3 +388,3 @@ const { digest } = await __privateMethod(this, _ZkSendLink_instances, executeSponsoredTransaction_fn).call(this, sponsored, signature);

claimer,
transactionBlockKindBytes: toB64(
transactionBlockKindBytes: toBase64(
await tx.build({

@@ -391,0 +391,0 @@ onlyTransactionKind: true,

import { bcs } from "@mysten/sui/bcs";
import { SuiGraphQLClient } from "@mysten/sui/graphql";
import { graphql } from "@mysten/sui/graphql/schemas/2024.4";
import { fromB64, normalizeSuiAddress } from "@mysten/sui/utils";
import { fromBase64, normalizeSuiAddress } from "@mysten/sui/utils";
import { ZkSendLink } from "./claim.js";

@@ -58,3 +58,3 @@ import { getContractIds } from "./zk-bag.js";

}
const kind = bcs.SenderSignedData.parse(fromB64(node.bcs))?.[0]?.intentMessage.value.V1.kind;
const kind = bcs.SenderSignedData.parse(fromBase64(node.bcs))?.[0]?.intentMessage.value.V1.kind;
if (!kind.ProgrammableTransaction) {

@@ -61,0 +61,0 @@ return null;

@@ -11,3 +11,3 @@ var __typeError = (msg) => {

import { Transaction } from "@mysten/sui/transactions";
import { toB64 } from "@mysten/sui/utils";
import { toBase64 } from "@mysten/sui/utils";
import { getWallets, ReadonlyWalletAccount, SUI_MAINNET_CHAIN } from "@mysten/wallet-standard";

@@ -74,3 +74,3 @@ import mitt from "mitt";

});
const bytes = toB64(message);
const bytes = toBase64(message);
const response = await popup.send({

@@ -77,0 +77,0 @@ type: "sign-personal-message",

{
"name": "@mysten/zksend",
"version": "0.0.0-experimental-20240924193256",
"version": "0.0.0-experimental-20240926213518",
"description": "TODO: Write Description",

@@ -40,4 +40,4 @@ "license": "Apache-2.0",

"valibot": "^0.36.0",
"@mysten/sui": "0.0.0-experimental-20240924193256",
"@mysten/wallet-standard": "0.0.0-experimental-20240924193256"
"@mysten/sui": "0.0.0-experimental-20240926213518",
"@mysten/wallet-standard": "0.0.0-experimental-20240926213518"
},

@@ -44,0 +44,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc