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

@mysten/enoki

Package Overview
Dependencies
Maintainers
4
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/enoki - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

15

CHANGELOG.md
# @mysten/enoki
## 0.1.2
### Patch Changes
- 33752daf9c: Fix decoding of ephemeral keypair secret
- 4bf3e0060b: Update to latest Enoki API changes
- Updated dependencies [a34f1cb67d]
- Updated dependencies [c08e3569ef]
- Updated dependencies [9a14e61db4]
- Updated dependencies [13e922d9b1]
- Updated dependencies [a34f1cb67d]
- Updated dependencies [220a766d86]
- @mysten/sui.js@0.50.0
- @mysten/zklogin@0.4.2
## 0.1.1

@@ -4,0 +19,0 @@

5

dist/cjs/EnokiClient/index.js

@@ -76,3 +76,5 @@ "use strict";

body: JSON.stringify({
ephemeralPublicKey: input.ephemeralPublicKey.toSuiPublicKey()
network: input.network,
ephemeralPublicKey: input.ephemeralPublicKey.toSuiPublicKey(),
additionalEpochs: input.additionalEpochs
})

@@ -88,2 +90,3 @@ });

body: JSON.stringify({
network: input.network,
ephemeralPublicKey: input.ephemeralPublicKey.toSuiPublicKey(),

@@ -90,0 +93,0 @@ maxEpoch: input.maxEpoch,

6

dist/cjs/EnokiClient/type.d.ts
import type { PublicKey } from '@mysten/sui.js/cryptography';
import type { ZkLoginSignatureInputs } from '@mysten/sui.js/zklogin';
import type { AuthProvider } from '../EnokiFlow.js';
export type EnokiNetwork = 'mainnet' | 'testnet' | 'devnet';
export interface GetAppApiInput {

@@ -20,3 +21,5 @@ }

export interface CreateZkLoginNonceApiInput {
network?: EnokiNetwork;
ephemeralPublicKey: PublicKey;
additionalEpochs?: number;
}

@@ -31,2 +34,3 @@ export interface CreateZkLoginNonceApiResponse {

export interface CreateZkLoginZkpApiInput {
network?: EnokiNetwork;
jwt: string;

@@ -40,3 +44,3 @@ ephemeralPublicKey: PublicKey;

export interface CreateSponsoredTransactionBlockApiInput {
network?: 'mainnet' | 'testnet';
network?: EnokiNetwork;
jwt: string;

@@ -43,0 +47,0 @@ transactionBlockKindBytes: string;

@@ -46,2 +46,3 @@ "use strict";

module.exports = __toCommonJS(EnokiFlow_exports);
var import_cryptography = require("@mysten/sui.js/cryptography");
var import_ed25519 = require("@mysten/sui.js/keypairs/ed25519");

@@ -137,3 +138,3 @@ var import_utils = require("@mysten/sui.js/utils");

randomness,
ephemeralKeyPair: ephemeralKeyPair.export().privateKey
ephemeralKeyPair: (0, import_utils.toB64)((0, import_cryptography.decodeSuiPrivateKey)(ephemeralKeyPair.getSecretKey()).secretKey)
});

@@ -140,0 +141,0 @@ return oauthUrl;

@@ -31,2 +31,3 @@ import type { SignatureWithBytes } from '@mysten/sui.js/cryptography';

export(): never;
getSecretKey(): never;
}

@@ -114,2 +114,5 @@ "use strict";

}
getSecretKey() {
throw new Error("EnokiKeypair does not support get secret key");
}
}

@@ -116,0 +119,0 @@ _proof = new WeakMap();

@@ -53,3 +53,5 @@ var __accessCheck = (obj, member, msg) => {

body: JSON.stringify({
ephemeralPublicKey: input.ephemeralPublicKey.toSuiPublicKey()
network: input.network,
ephemeralPublicKey: input.ephemeralPublicKey.toSuiPublicKey(),
additionalEpochs: input.additionalEpochs
})

@@ -65,2 +67,3 @@ });

body: JSON.stringify({
network: input.network,
ephemeralPublicKey: input.ephemeralPublicKey.toSuiPublicKey(),

@@ -67,0 +70,0 @@ maxEpoch: input.maxEpoch,

import type { PublicKey } from '@mysten/sui.js/cryptography';
import type { ZkLoginSignatureInputs } from '@mysten/sui.js/zklogin';
import type { AuthProvider } from '../EnokiFlow.js';
export type EnokiNetwork = 'mainnet' | 'testnet' | 'devnet';
export interface GetAppApiInput {

@@ -20,3 +21,5 @@ }

export interface CreateZkLoginNonceApiInput {
network?: EnokiNetwork;
ephemeralPublicKey: PublicKey;
additionalEpochs?: number;
}

@@ -31,2 +34,3 @@ export interface CreateZkLoginNonceApiResponse {

export interface CreateZkLoginZkpApiInput {
network?: EnokiNetwork;
jwt: string;

@@ -40,3 +44,3 @@ ephemeralPublicKey: PublicKey;

export interface CreateSponsoredTransactionBlockApiInput {
network?: 'mainnet' | 'testnet';
network?: EnokiNetwork;
jwt: string;

@@ -43,0 +47,0 @@ transactionBlockKindBytes: string;

@@ -24,2 +24,3 @@ var __accessCheck = (obj, member, msg) => {

var _storageKeys, _enokiClient, _encryption, _encryptionKey, _store, _setSession, setSession_fn;
import { decodeSuiPrivateKey } from "@mysten/sui.js/cryptography";
import { Ed25519Keypair } from "@mysten/sui.js/keypairs/ed25519";

@@ -114,3 +115,3 @@ import { fromB64, toB64 } from "@mysten/sui.js/utils";

randomness,
ephemeralKeyPair: ephemeralKeyPair.export().privateKey
ephemeralKeyPair: toB64(decodeSuiPrivateKey(ephemeralKeyPair.getSecretKey()).secretKey)
});

@@ -117,0 +118,0 @@ return oauthUrl;

@@ -31,2 +31,3 @@ import type { SignatureWithBytes } from '@mysten/sui.js/cryptography';

export(): never;
getSecretKey(): never;
}

@@ -90,2 +90,5 @@ var __accessCheck = (obj, member, msg) => {

}
getSecretKey() {
throw new Error("EnokiKeypair does not support get secret key");
}
}

@@ -92,0 +95,0 @@ _proof = new WeakMap();

{
"name": "@mysten/enoki",
"version": "0.1.1",
"version": "0.1.2",
"description": "TODO: Description",

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

"nanostores": "^0.9.3",
"@mysten/sui.js": "0.49.1",
"@mysten/zklogin": "0.4.1"
"@mysten/sui.js": "0.50.0",
"@mysten/zklogin": "0.4.2"
},

@@ -53,0 +53,0 @@ "peerDependencies": {

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