Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mysten/zklogin

Package Overview
Dependencies
Maintainers
4
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/zklogin - npm Package Compare versions

Comparing version 0.0.0-experimental-20230913203721 to 0.0.0-experimental-20230927161645

11

CHANGELOG.md
# @mysten/zklogin
## 0.0.0-experimental-20230913203721
## 0.0.0-experimental-20230927161645
### Patch Changes
- Updated dependencies [781d073d9]
- @mysten/sui.js@0.0.0-experimental-20230927161645
## 0.1.4
### Patch Changes
- 9b3ffc7d6: - removes `AddressParams` bcs struct, now address is created by using the iss bytes

@@ -11,3 +18,3 @@ - updated zklogin signature bcs struct for new camelCase fields

- Updated dependencies [fd8589806]
- @mysten/sui.js@0.0.0-experimental-20230913203721
- @mysten/sui.js@0.42.0

@@ -14,0 +21,0 @@ ## 0.1.3

10

dist/cjs/address.js

@@ -25,6 +25,6 @@ "use strict";

module.exports = __toCommonJS(address_exports);
var import_utils = require("@noble/hashes/utils");
var import_cryptography = require("@mysten/sui.js/cryptography");
var import_utils = require("@mysten/sui.js/utils");
var import_blake2b = require("@noble/hashes/blake2b");
var import_cryptography = require("@mysten/sui.js/cryptography");
var import_utils2 = require("@mysten/sui.js/utils");
var import_utils2 = require("@noble/hashes/utils");
var import_jose = require("jose");

@@ -65,6 +65,6 @@ var import_utils3 = require("./utils.js");

tmp.set(addressSeedBytesBigEndian, 2 + addressParamBytes.length);
return (0, import_utils2.normalizeSuiAddress)(
(0, import_utils.bytesToHex)((0, import_blake2b.blake2b)(tmp, { dkLen: 32 })).slice(0, import_utils2.SUI_ADDRESS_LENGTH * 2)
return (0, import_utils.normalizeSuiAddress)(
(0, import_utils2.bytesToHex)((0, import_blake2b.blake2b)(tmp, { dkLen: 32 })).slice(0, import_utils.SUI_ADDRESS_LENGTH * 2)
);
}
//# sourceMappingURL=address.js.map

@@ -26,4 +26,4 @@ "use strict";

var import_bcs = require("@mysten/bcs");
var import_bcs2 = require("@mysten/sui.js/bcs");
var import_cryptography = require("@mysten/sui.js/cryptography");
var import_bcs2 = require("@mysten/sui.js/bcs");
const zkBcs = new import_bcs.BCS(import_bcs2.bcs);

@@ -30,0 +30,0 @@ zkBcs.registerStructType("ZkloginSignature", {

@@ -25,5 +25,5 @@ "use strict";

module.exports = __toCommonJS(nonce_exports);
var import_utils = require("@noble/hashes/utils");
var import_bigint_buffer = require("bigint-buffer");
var import_jose = require("jose");
var import_bigint_buffer = require("bigint-buffer");
var import_utils = require("@noble/hashes/utils");
var import_poseidon = require("./poseidon.js");

@@ -30,0 +30,0 @@ var import_utils2 = require("./utils.js");

@@ -0,5 +1,5 @@

import { SIGNATURE_SCHEME_TO_FLAG } from "@mysten/sui.js/cryptography";
import { normalizeSuiAddress, SUI_ADDRESS_LENGTH } from "@mysten/sui.js/utils";
import { blake2b } from "@noble/hashes/blake2b";
import { bytesToHex } from "@noble/hashes/utils";
import { blake2b } from "@noble/hashes/blake2b";
import { SIGNATURE_SCHEME_TO_FLAG } from "@mysten/sui.js/cryptography";
import { SUI_ADDRESS_LENGTH, normalizeSuiAddress } from "@mysten/sui.js/utils";
import { decodeJwt } from "jose";

@@ -6,0 +6,0 @@ import { genAddressSeed, toBufferBE } from "./utils.js";

import { BCS, fromB64, toB64 } from "@mysten/bcs";
import { bcs } from "@mysten/sui.js/bcs";
import { SIGNATURE_SCHEME_TO_FLAG } from "@mysten/sui.js/cryptography";
import { bcs } from "@mysten/sui.js/bcs";
const zkBcs = new BCS(bcs);

@@ -5,0 +5,0 @@ zkBcs.registerStructType("ZkloginSignature", {

@@ -0,4 +1,4 @@

import { randomBytes } from "@noble/hashes/utils";
import { toBigIntBE } from "bigint-buffer";
import { base64url } from "jose";
import { toBigIntBE } from "bigint-buffer";
import { randomBytes } from "@noble/hashes/utils";
import { poseidonHash } from "./poseidon.js";

@@ -5,0 +5,0 @@ import { toBufferBE } from "./utils.js";

{
"name": "@mysten/zklogin",
"version": "0.0.0-experimental-20230913203721",
"version": "0.0.0-experimental-20230927161645",
"description": "Utilities for interacting with zkLogin in Sui",

@@ -42,3 +42,3 @@ "license": "Apache-2.0",

"@mysten/bcs": "0.7.4",
"@mysten/sui.js": "0.0.0-experimental-20230913203721"
"@mysten/sui.js": "0.0.0-experimental-20230927161645"
},

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

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { SIGNATURE_SCHEME_TO_FLAG } from '@mysten/sui.js/cryptography';
import { normalizeSuiAddress, SUI_ADDRESS_LENGTH } from '@mysten/sui.js/utils';
import { blake2b } from '@noble/hashes/blake2b';
import { bytesToHex } from '@noble/hashes/utils';
import { blake2b } from '@noble/hashes/blake2b';
import { SIGNATURE_SCHEME_TO_FLAG } from '@mysten/sui.js/cryptography';
import { SUI_ADDRESS_LENGTH, normalizeSuiAddress } from '@mysten/sui.js/utils';
import { decodeJwt } from 'jose';
import { genAddressSeed, toBufferBE } from './utils.js';

@@ -10,0 +11,0 @@

@@ -5,4 +5,4 @@ // Copyright (c) Mysten Labs, Inc.

import { BCS, fromB64, toB64 } from '@mysten/bcs';
import { bcs } from '@mysten/sui.js/bcs';
import { SIGNATURE_SCHEME_TO_FLAG } from '@mysten/sui.js/cryptography';
import { bcs } from '@mysten/sui.js/bcs';

@@ -9,0 +9,0 @@ export const zkBcs = new BCS(bcs);

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { PublicKey } from '@mysten/sui.js/cryptography';
import { randomBytes } from '@noble/hashes/utils';
import { toBigIntBE } from 'bigint-buffer';
import { base64url } from 'jose';
import { toBigIntBE } from 'bigint-buffer';
import { randomBytes } from '@noble/hashes/utils';
import { PublicKey } from '@mysten/sui.js/cryptography';
import { poseidonHash } from './poseidon.js';

@@ -9,0 +10,0 @@ import { toBufferBE } from './utils.js';

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

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