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

@mysten/sui.js

Package Overview
Dependencies
Maintainers
4
Versions
895
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/sui.js - npm Package Compare versions

Comparing version 0.0.0-experimental-20240130153923 to 0.0.0-experimental-20240131184827

7

CHANGELOG.md
# @mysten/sui.js
## 0.0.0-experimental-20240130153923
## 0.0.0-experimental-20240131184827
### Major Changes
### Minor Changes
- a34f1cb67d: Use Bech32 instead of Hex for private key encoding for import and export
- a34f1cb67d: Use Bech32 instead of Hex for private key export, supports both Hex and Bech32 for importing

@@ -12,2 +12,3 @@ ### Patch Changes

- a34f1cb67d: deprecate ExportedKeypair
- c08e3569ef: Export all keypair utilities
- 9a14e61db4: Allow signer in signAndExecuteTransactionBlock to be a Signer rather than a Keypair

@@ -14,0 +15,0 @@ - 13e922d9b1: Fix multiple shared objects not respecting mutable correctly

@@ -5,3 +5,3 @@ export * from './signature.js';

export * from './intent.js';
export * from './keypair.js';
export { PublicKey } from './publickey.js';
export { BaseSigner as Signer, Keypair, type ExportedKeypair, type SignatureWithBytes, } from './keypair.js';

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

__export(cryptography_exports, {
Keypair: () => import_keypair.Keypair,
PublicKey: () => import_publickey.PublicKey,
Signer: () => import_keypair.BaseSigner
PublicKey: () => import_publickey.PublicKey
});

@@ -32,4 +30,4 @@ module.exports = __toCommonJS(cryptography_exports);

__reExport(cryptography_exports, require("./intent.js"), module.exports);
__reExport(cryptography_exports, require("./keypair.js"), module.exports);
var import_publickey = require("./publickey.js");
var import_keypair = require("./keypair.js");
//# sourceMappingURL=index.js.map

@@ -24,3 +24,3 @@ import { IntentScope } from './intent.js';

*/
export declare abstract class BaseSigner {
export declare abstract class Signer {
abstract sign(bytes: Uint8Array): Promise<Uint8Array>;

@@ -55,3 +55,3 @@ /**

}
export declare abstract class Keypair extends BaseSigner {
export declare abstract class Keypair extends Signer {
/**

@@ -58,0 +58,0 @@ * This returns the Bech32 secret key string for this keypair.

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

__export(keypair_exports, {
BaseSigner: () => BaseSigner,
Keypair: () => Keypair,

@@ -27,2 +26,3 @@ LEGACY_PRIVATE_KEY_SIZE: () => LEGACY_PRIVATE_KEY_SIZE,

SUI_PRIVATE_KEY_PREFIX: () => SUI_PRIVATE_KEY_PREFIX,
Signer: () => Signer,
decodeSuiPrivateKey: () => decodeSuiPrivateKey,

@@ -41,3 +41,3 @@ encodeSuiPrivateKey: () => encodeSuiPrivateKey

const SUI_PRIVATE_KEY_PREFIX = "suiprivkey";
class BaseSigner {
class Signer {
/**

@@ -79,3 +79,3 @@ * Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing,

}
class Keypair extends BaseSigner {
class Keypair extends Signer {
/**

@@ -82,0 +82,0 @@ * @deprecated use {@link Keypair.getSecretKey} instead

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

export declare const PACKAGE_VERSION = "0.0.0-experimental-20240130153923";
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240131184827";
export declare const TARGETED_RPC_VERSION = "1.18.0";

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

module.exports = __toCommonJS(version_exports);
const PACKAGE_VERSION = "0.0.0-experimental-20240130153923";
const PACKAGE_VERSION = "0.0.0-experimental-20240131184827";
const TARGETED_RPC_VERSION = "1.18.0";
//# sourceMappingURL=version.js.map

@@ -5,3 +5,3 @@ export * from './signature.js';

export * from './intent.js';
export * from './keypair.js';
export { PublicKey } from './publickey.js';
export { BaseSigner as Signer, Keypair, type ExportedKeypair, type SignatureWithBytes, } from './keypair.js';

@@ -5,12 +5,7 @@ export * from "./signature.js";

export * from "./intent.js";
export * from "./keypair.js";
import { PublicKey } from "./publickey.js";
import {
BaseSigner,
Keypair
} from "./keypair.js";
export {
Keypair,
PublicKey,
BaseSigner as Signer
PublicKey
};
//# sourceMappingURL=index.js.map

@@ -24,3 +24,3 @@ import { IntentScope } from './intent.js';

*/
export declare abstract class BaseSigner {
export declare abstract class Signer {
abstract sign(bytes: Uint8Array): Promise<Uint8Array>;

@@ -55,3 +55,3 @@ /**

}
export declare abstract class Keypair extends BaseSigner {
export declare abstract class Keypair extends Signer {
/**

@@ -58,0 +58,0 @@ * This returns the Bech32 secret key string for this keypair.

@@ -10,3 +10,3 @@ import { bcs, toB64 } from "@mysten/bcs";

const SUI_PRIVATE_KEY_PREFIX = "suiprivkey";
class BaseSigner {
class Signer {
/**

@@ -48,3 +48,3 @@ * Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing,

}
class Keypair extends BaseSigner {
class Keypair extends Signer {
/**

@@ -87,3 +87,2 @@ * @deprecated use {@link Keypair.getSecretKey} instead

export {
BaseSigner,
Keypair,

@@ -93,2 +92,3 @@ LEGACY_PRIVATE_KEY_SIZE,

SUI_PRIVATE_KEY_PREFIX,
Signer,
decodeSuiPrivateKey,

@@ -95,0 +95,0 @@ encodeSuiPrivateKey

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

export declare const PACKAGE_VERSION = "0.0.0-experimental-20240130153923";
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240131184827";
export declare const TARGETED_RPC_VERSION = "1.18.0";

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

const PACKAGE_VERSION = "0.0.0-experimental-20240130153923";
const PACKAGE_VERSION = "0.0.0-experimental-20240131184827";
const TARGETED_RPC_VERSION = "1.18.0";

@@ -3,0 +3,0 @@ export {

@@ -6,3 +6,3 @@ {

"homepage": "https://sdk.mystenlabs.com",
"version": "0.0.0-experimental-20240130153923",
"version": "0.0.0-experimental-20240131184827",
"license": "Apache-2.0",

@@ -9,0 +9,0 @@ "sideEffects": false,

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

export * from './intent.js';
export * from './keypair.js';
export { PublicKey } from './publickey.js';
export {
BaseSigner as Signer,
Keypair,
type ExportedKeypair,
type SignatureWithBytes,
} from './keypair.js';

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

*/
export abstract class BaseSigner {
export abstract class Signer {
abstract sign(bytes: Uint8Array): Promise<Uint8Array>;

@@ -97,3 +97,3 @@ /**

export abstract class Keypair extends BaseSigner {
export abstract class Keypair extends Signer {
/**

@@ -100,0 +100,0 @@ * This returns the Bech32 secret key string for this keypair.

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

export const PACKAGE_VERSION = '0.0.0-experimental-20240130153923';
export const PACKAGE_VERSION = '0.0.0-experimental-20240131184827';
export const TARGETED_RPC_VERSION = '1.18.0';

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