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
263
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.3.0 to 0.3.1

6

CHANGELOG.md
# @mysten/zklogin
## 0.3.1
### Patch Changes
- 4ba17833c: Fixes ESM usage of the SDK.
## 0.3.0

@@ -4,0 +10,0 @@

2

dist/cjs/address.js

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

var import_jose = require("jose");
var import_checks = require("./checks");
var import_checks = require("./checks.js");
var import_jsonprocessor = require("./jsonprocessor.js");

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

@@ -1,2 +0,2 @@

import { JSONProcessor } from './jsonprocessor.js';
import type { JSONProcessor } from './jsonprocessor.js';
export declare function lengthChecks(header: string, payload: string, keyClaimName: string, processor: JSONProcessor): void;

@@ -1,2 +0,2 @@

import { JSONVisitor } from 'jsonc-parser';
import type { JSONVisitor } from 'jsonc-parser';
interface VisitorCallback {

@@ -3,0 +3,0 @@ id: keyof JSONVisitor;

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

import { PublicKey } from '@mysten/sui.js/cryptography';
import type { PublicKey } from '@mysten/sui.js/cryptography';
export declare const NONCE_LENGTH = 27;
export declare function generateRandomness(): string;
export declare function generateNonce(publicKey: PublicKey, maxEpoch: number, randomness: bigint | string): string;

@@ -1,2 +0,2 @@

import { PublicKey } from '@mysten/sui.js/cryptography';
import type { PublicKey } from '@mysten/sui.js/cryptography';
export declare const MAX_KEY_CLAIM_VALUE_LENGTH = 115;

@@ -3,0 +3,0 @@ export declare const MAX_AUD_VALUE_LENGTH = 145;

import { computeZkLoginAddressFromSeed } from "@mysten/sui.js/zklogin";
import { base64url, decodeJwt } from "jose";
import { lengthChecks } from "./checks";
import { lengthChecks } from "./checks.js";
import { JSONProcessor } from "./jsonprocessor.js";

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

@@ -1,2 +0,2 @@

import { JSONProcessor } from './jsonprocessor.js';
import type { JSONProcessor } from './jsonprocessor.js';
export declare function lengthChecks(header: string, payload: string, keyClaimName: string, processor: JSONProcessor): void;

@@ -1,2 +0,2 @@

import { JSONVisitor } from 'jsonc-parser';
import type { JSONVisitor } from 'jsonc-parser';
interface VisitorCallback {

@@ -3,0 +3,0 @@ id: keyof JSONVisitor;

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

import { PublicKey } from '@mysten/sui.js/cryptography';
import type { PublicKey } from '@mysten/sui.js/cryptography';
export declare const NONCE_LENGTH = 27;
export declare function generateRandomness(): string;
export declare function generateNonce(publicKey: PublicKey, maxEpoch: number, randomness: bigint | string): string;

@@ -1,2 +0,2 @@

import { PublicKey } from '@mysten/sui.js/cryptography';
import type { PublicKey } from '@mysten/sui.js/cryptography';
export declare const MAX_KEY_CLAIM_VALUE_LENGTH = 115;

@@ -3,0 +3,0 @@ export declare const MAX_AUD_VALUE_LENGTH = 145;

{
"name": "@mysten/zklogin",
"version": "0.3.0",
"version": "0.3.1",
"description": "Utilities for interacting with zkLogin in Sui",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -7,3 +7,3 @@ // Copyright (c) Mysten Labs, Inc.

import { lengthChecks } from './checks';
import { lengthChecks } from './checks.js';
import { JSONProcessor } from './jsonprocessor.js';

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

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { JSONProcessor } from './jsonprocessor.js';
import type { JSONProcessor } from './jsonprocessor.js';
import { NONCE_LENGTH } from './nonce.js';

@@ -6,0 +6,0 @@ import { MAX_AUD_VALUE_LENGTH, MAX_KEY_CLAIM_VALUE_LENGTH } from './utils.js';

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { JSONVisitor, ParseError, ParseErrorCode, visit } from 'jsonc-parser';
import type { JSONVisitor, ParseError, ParseErrorCode } from 'jsonc-parser';
import { visit } from 'jsonc-parser';

@@ -5,0 +6,0 @@ // JSON parsing code inspired from https://github.com/microsoft/node-jsonc-parser/blob/main/src/test/json.test.ts#L69

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { PublicKey } from '@mysten/sui.js/cryptography';
import type { PublicKey } from '@mysten/sui.js/cryptography';
import { toBigEndianBytes } from '@mysten/sui.js/zklogin';

@@ -6,0 +6,0 @@ import { randomBytes } from '@noble/hashes/utils';

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

import { toHEX } from '@mysten/bcs';
import { PublicKey } from '@mysten/sui.js/cryptography';
import type { PublicKey } from '@mysten/sui.js/cryptography';

@@ -8,0 +8,0 @@ import { poseidonHash } from './poseidon.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