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

cosmos-client

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmos-client - npm Package Compare versions

Comparing version 0.38.5 to 0.39.0

tendermint/types/crypto.spec.d.ts

12

package.json
{
"name": "cosmos-client",
"description": "REST API Client for Cosmos SDK Blockchain",
"version": "0.38.5",
"version": "0.39.0",
"author": "LCNEM, Inc.",
"bugs": {
"url": "https://github.com/lcnem/cosmos-client-ts/issues"
"url": "https://github.com/cosmos-client/cosmos-client-ts/issues"
},

@@ -14,2 +14,3 @@ "dependencies": {

"bip39": "^3.0.2",
"sr25519": "^0.1.0",
"tiny-secp256k1": "^1.1.3",

@@ -27,3 +28,3 @@ "tweetnacl": "^1.0.1"

},
"homepage": "https://github.com/lcnem/cosmos-client-ts#readme",
"homepage": "https://github.com/cosmos-client/cosmos-client-ts#readme",
"keywords": [

@@ -37,9 +38,8 @@ "Blockchain",

"type": "git",
"url": "git+https://github.com/lcnem/cosmos-client-ts.git"
"url": "git+https://github.com/cosmos-client/cosmos-client-ts.git"
},
"scripts": {
"test": "jest",
"build": "cargo install wasm-pack && wasm-pack build --target nodejs --scope lcnem ./src/tendermint/sr25519 && tsc --build --clean && tsc",
"bundle-publish": "node bundle && cd dist && npm publish"
"build": "tsc --build --clean && tsc && node bundle"
}
}

@@ -72,2 +72,2 @@ # cosmos-client-ts

The first digit major version and the second digit minor version should match Cosmos SDK.
The third digit fix version can be independently incremented.
The third digit patch version can be independently incremented.

@@ -11,3 +11,3 @@ "use strict";

var crypto = __importStar(require("crypto"));
var sr25519 = __importStar(require("../sr25519/src"));
var sr25519 = __importStar(require("sr25519"));
/**

@@ -39,3 +39,3 @@ * sr25519

var privKey = keypair.slice(0, 64);
return Buffer.from(sr25519.sign(this.pubKey.toBuffer(), privKey, message));
return Buffer.from(sr25519.sign(Uint8Array.from([]), this.pubKey.toBuffer(), privKey, message));
};

@@ -92,3 +92,3 @@ /**

PubKeySr25519.prototype.verify = function (signature, message) {
return sr25519.verify(new Uint8Array(signature), new Uint8Array(message), new Uint8Array(this.pubKey));
return sr25519.verify(Uint8Array.from([]), new Uint8Array(signature), new Uint8Array(message), new Uint8Array(this.pubKey));
};

@@ -95,0 +95,0 @@ /**

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

var _a = bech32.decode(valAddress), prefix = _a.prefix, words = _a.words;
if (prefix !== address_1.bech32Prefix.valAddr) {
throw Error();
}
return new ValAddress(bech32.fromWords(words));

@@ -51,0 +48,0 @@ };

Sorry, the diff of this file is too big to display

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