cosmos-client
Advanced tools
Comparing version 0.38.5 to 0.39.0
{ | ||
"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
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
782497
189
18595
73
7
+ Addedsr25519@^0.1.0
+ Addedsr25519@0.1.4(transitive)