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

@cosmjs/proto-signing

Package Overview
Dependencies
Maintainers
3
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.26.0 to 0.26.1

build/decode.spec.d.ts

6

build/signing.spec.js

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

const encoding_1 = require("@cosmjs/encoding");
const keys_1 = require("cosmjs-types/cosmos/crypto/secp256k1/keys");
const signing_1 = require("cosmjs-types/cosmos/tx/signing/v1beta1/signing");

@@ -22,9 +23,8 @@ const tx_1 = require("cosmjs-types/cosmos/tx/v1beta1/tx");

const [{ address, pubkey: pubkeyBytes }] = await wallet.getAccounts();
const prefixedPubkeyBytes = Uint8Array.from([0x0a, pubkeyBytes.length, ...pubkeyBytes]);
const prefixedPubkeyBytes = Uint8Array.from(keys_1.PubKey.encode({ key: pubkeyBytes }).finish());
testutils_spec_1.testVectors.forEach(({ outputs: { signedTxBytes } }) => {
var _a;
const parsedTestTx = decode_1.decodeTxRaw(encoding_1.fromHex(signedTxBytes));
expect(parsedTestTx.signatures.length).toEqual(1);
expect(parsedTestTx.authInfo.signerInfos.length).toEqual(1);
expect(Uint8Array.from((_a = parsedTestTx.authInfo.signerInfos[0].publicKey.value) !== null && _a !== void 0 ? _a : [])).toEqual(prefixedPubkeyBytes);
expect(Uint8Array.from(parsedTestTx.authInfo.signerInfos[0].publicKey.value)).toEqual(prefixedPubkeyBytes);
expect(parsedTestTx.authInfo.signerInfos[0].modeInfo.single.mode).toEqual(signing_1.SignMode.SIGN_MODE_DIRECT);

@@ -31,0 +31,0 @@ expect(Object.assign({}, parsedTestTx.authInfo.fee.amount[0])).toEqual({ denom: "ucosm", amount: "2000" });

{
"name": "@cosmjs/proto-signing",
"version": "0.26.0",
"version": "0.26.1",
"description": "Utilities for protobuf based signing (Cosmos SDK 0.40+)",

@@ -42,5 +42,5 @@ "contributors": [

"dependencies": {
"@cosmjs/amino": "0.26.0",
"@cosmjs/crypto": "0.26.0",
"@cosmjs/math": "0.26.0",
"@cosmjs/amino": "0.26.1",
"@cosmjs/crypto": "0.26.1",
"@cosmjs/math": "0.26.1",
"cosmjs-types": "^0.2.0",

@@ -51,4 +51,4 @@ "long": "^4.0.0",

"devDependencies": {
"@cosmjs/encoding": "0.26.0",
"@cosmjs/utils": "0.26.0",
"@cosmjs/encoding": "0.26.1",
"@cosmjs/utils": "0.26.1",
"@istanbuljs/nyc-config-typescript": "^1.0.1",

@@ -55,0 +55,0 @@ "@types/eslint-plugin-prettier": "^3",

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