Socket
Socket
Sign inDemoInstall

@cosmjs/proto-signing

Package Overview
Dependencies
Maintainers
2
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmjs/proto-signing - npm Package Compare versions

Comparing version 0.24.0-alpha.23 to 0.24.0-alpha.24

build/paths.d.ts

3

build/directsecp256k1hdwallet.d.ts
import { EnglishMnemonic, HdPath } from "@cosmjs/crypto";
import { AccountData } from "@cosmjs/launchpad";
import { SignDoc } from "./codec/cosmos/tx/v1beta1/tx";
import { DirectSignResponse, OfflineDirectSigner } from "./signer";
import { AccountData, DirectSignResponse, OfflineDirectSigner } from "./signer";
/** A wallet for protobuf based signing using SIGN_MODE_DIRECT */

@@ -6,0 +5,0 @@ export declare class DirectSecp256k1HdWallet implements OfflineDirectSigner {

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

const launchpad_1 = require("@cosmjs/launchpad");
const paths_1 = require("./paths");
const signing_1 = require("./signing");

@@ -28,3 +29,3 @@ /** A wallet for protobuf based signing using SIGN_MODE_DIRECT */

*/
static async fromMnemonic(mnemonic, hdPath = launchpad_1.makeCosmoshubPath(0), prefix = "cosmos") {
static async fromMnemonic(mnemonic, hdPath = paths_1.makeCosmoshubPath(0), prefix = "cosmos") {
const mnemonicChecked = new crypto_1.EnglishMnemonic(mnemonic);

@@ -43,3 +44,3 @@ const seed = await crypto_1.Bip39.mnemonicToSeed(mnemonicChecked);

*/
static async generate(length = 12, hdPath = launchpad_1.makeCosmoshubPath(0), prefix = "cosmos") {
static async generate(length = 12, hdPath = paths_1.makeCosmoshubPath(0), prefix = "cosmos") {
const entropyLength = 4 * Math.floor((11 * length) / 33);

@@ -46,0 +47,0 @@ const entropy = crypto_1.Random.getBytes(entropyLength);

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

import { AccountData } from "@cosmjs/launchpad";
import { SignDoc } from "./codec/cosmos/tx/v1beta1/tx";
import { DirectSignResponse, OfflineDirectSigner } from "./signer";
import { AccountData, DirectSignResponse, OfflineDirectSigner } from "./signer";
/**

@@ -5,0 +4,0 @@ * A wallet that holds a single secp256k1 keypair.

export { EncodeObject, GeneratedType, Registry } from "./registry";
export { DirectSecp256k1HdWallet } from "./directsecp256k1hdwallet";
export { DirectSecp256k1Wallet } from "./directsecp256k1wallet";
export { makeCosmoshubPath } from "./paths";
export { decodePubkey, encodePubkey } from "./pubkey";
export { DirectSignResponse, isOfflineDirectSigner, OfflineDirectSigner, OfflineSigner } from "./signer";
export { AccountData, Algo, DirectSignResponse, isOfflineDirectSigner, OfflineDirectSigner, OfflineSigner, } from "./signer";
export { makeAuthInfoBytes, makeSignBytes, makeSignDoc } from "./signing";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeSignDoc = exports.makeSignBytes = exports.makeAuthInfoBytes = exports.isOfflineDirectSigner = exports.encodePubkey = exports.decodePubkey = exports.DirectSecp256k1Wallet = exports.DirectSecp256k1HdWallet = exports.Registry = void 0;
exports.makeSignDoc = exports.makeSignBytes = exports.makeAuthInfoBytes = exports.isOfflineDirectSigner = exports.encodePubkey = exports.decodePubkey = exports.makeCosmoshubPath = exports.DirectSecp256k1Wallet = exports.DirectSecp256k1HdWallet = exports.Registry = void 0;
var registry_1 = require("./registry");

@@ -10,2 +10,4 @@ Object.defineProperty(exports, "Registry", { enumerable: true, get: function () { return registry_1.Registry; } });

Object.defineProperty(exports, "DirectSecp256k1Wallet", { enumerable: true, get: function () { return directsecp256k1wallet_1.DirectSecp256k1Wallet; } });
var paths_1 = require("./paths");
Object.defineProperty(exports, "makeCosmoshubPath", { enumerable: true, get: function () { return paths_1.makeCosmoshubPath; } });
var pubkey_1 = require("./pubkey");

@@ -12,0 +14,0 @@ Object.defineProperty(exports, "decodePubkey", { enumerable: true, get: function () { return pubkey_1.decodePubkey; } });

@@ -1,3 +0,16 @@

import { AccountData, OfflineSigner as OfflineAminoSigner, StdSignature } from "@cosmjs/launchpad";
import { OfflineSigner as OfflineAminoSigner, StdSignature } from "@cosmjs/launchpad";
import { SignDoc } from "./codec/cosmos/tx/v1beta1/tx";
/**
* This is the same as Algo from @cosmjs/launchpad but those might diverge in the future.
*/
export declare type Algo = "secp256k1" | "ed25519" | "sr25519";
/**
* This is the same as AccountData from @cosmjs/launchpad but those might diverge in the future.
*/
export interface AccountData {
/** A printable address (typically bech32 encoded) */
readonly address: string;
readonly algo: Algo;
readonly pubkey: Uint8Array;
}
export interface DirectSignResponse {

@@ -4,0 +17,0 @@ /**

{
"name": "@cosmjs/proto-signing",
"version": "0.24.0-alpha.23",
"version": "0.24.0-alpha.24",
"description": "Utilities for protobuf based signing (Cosmos SDK 0.40+)",

@@ -46,3 +46,3 @@ "contributors": [

"dependencies": {
"@cosmjs/launchpad": "^0.24.0-alpha.23",
"@cosmjs/launchpad": "^0.24.0-alpha.24",
"long": "^4.0.0",

@@ -52,6 +52,6 @@ "protobufjs": "~6.10.2"

"devDependencies": {
"@cosmjs/encoding": "^0.24.0-alpha.23",
"@cosmjs/utils": "^0.24.0-alpha.23"
"@cosmjs/encoding": "^0.24.0-alpha.24",
"@cosmjs/utils": "^0.24.0-alpha.24"
},
"gitHead": "52dc82bbe4799c2b4fcd1e69a81c9980ffcdc7c8"
"gitHead": "15a3a9b83a2cfe3deae389128ede5e58e3041569"
}

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