@cosmjs/proto-signing
Advanced tools
Comparing version 0.26.0 to 0.26.1
@@ -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
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
146715
63
1856
+ Added@cosmjs/amino@0.26.1(transitive)
+ Added@cosmjs/crypto@0.26.1(transitive)
+ Added@cosmjs/encoding@0.26.1(transitive)
+ Added@cosmjs/math@0.26.1(transitive)
+ Added@cosmjs/utils@0.26.1(transitive)
- Removed@cosmjs/amino@0.26.0(transitive)
- Removed@cosmjs/crypto@0.26.0(transitive)
- Removed@cosmjs/encoding@0.26.0(transitive)
- Removed@cosmjs/math@0.26.0(transitive)
- Removed@cosmjs/utils@0.26.0(transitive)
Updated@cosmjs/amino@0.26.1
Updated@cosmjs/crypto@0.26.1
Updated@cosmjs/math@0.26.1