@mysten/zklogin
Advanced tools
Comparing version 0.3.0 to 0.3.1
# @mysten/zklogin | ||
## 0.3.1 | ||
### Patch Changes | ||
- 4ba17833c: Fixes ESM usage of the SDK. | ||
## 0.3.0 | ||
@@ -4,0 +10,0 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203981
1581