@cosmjs/crypto
Advanced tools
Comparing version 0.20.0 to 0.21.0
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Bip39 = void 0; | ||
const encoding_1 = require("@cosmjs/encoding"); | ||
@@ -11,0 +24,0 @@ const bip39 = __importStar(require("bip39")); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EnglishMnemonic = void 0; | ||
const bip39 = __importStar(require("bip39")); | ||
@@ -11,0 +24,0 @@ class EnglishMnemonic { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Hmac = void 0; | ||
class Hmac { | ||
@@ -4,0 +5,0 @@ constructor(hashFunctionConstructor, originalKey) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var bip39_1 = require("./bip39"); | ||
exports.Bip39 = bip39_1.Bip39; | ||
Object.defineProperty(exports, "Bip39", { enumerable: true, get: function () { return bip39_1.Bip39; } }); | ||
var englishmnemonic_1 = require("./englishmnemonic"); | ||
exports.EnglishMnemonic = englishmnemonic_1.EnglishMnemonic; | ||
Object.defineProperty(exports, "EnglishMnemonic", { enumerable: true, get: function () { return englishmnemonic_1.EnglishMnemonic; } }); | ||
var hmac_1 = require("./hmac"); | ||
exports.Hmac = hmac_1.Hmac; | ||
Object.defineProperty(exports, "Hmac", { enumerable: true, get: function () { return hmac_1.Hmac; } }); | ||
var keccak_1 = require("./keccak"); | ||
exports.Keccak256 = keccak_1.Keccak256; | ||
Object.defineProperty(exports, "Keccak256", { enumerable: true, get: function () { return keccak_1.Keccak256; } }); | ||
var libsodium_1 = require("./libsodium"); | ||
exports.Xchacha20poly1305Ietf = libsodium_1.Xchacha20poly1305Ietf; | ||
exports.Argon2id = libsodium_1.Argon2id; | ||
exports.Ed25519 = libsodium_1.Ed25519; | ||
exports.Ed25519Keypair = libsodium_1.Ed25519Keypair; | ||
Object.defineProperty(exports, "Xchacha20poly1305Ietf", { enumerable: true, get: function () { return libsodium_1.Xchacha20poly1305Ietf; } }); | ||
Object.defineProperty(exports, "Argon2id", { enumerable: true, get: function () { return libsodium_1.Argon2id; } }); | ||
Object.defineProperty(exports, "Ed25519", { enumerable: true, get: function () { return libsodium_1.Ed25519; } }); | ||
Object.defineProperty(exports, "Ed25519Keypair", { enumerable: true, get: function () { return libsodium_1.Ed25519Keypair; } }); | ||
var random_1 = require("./random"); | ||
exports.Random = random_1.Random; | ||
Object.defineProperty(exports, "Random", { enumerable: true, get: function () { return random_1.Random; } }); | ||
var ripemd_1 = require("./ripemd"); | ||
exports.Ripemd160 = ripemd_1.Ripemd160; | ||
Object.defineProperty(exports, "Ripemd160", { enumerable: true, get: function () { return ripemd_1.Ripemd160; } }); | ||
var secp256k1_1 = require("./secp256k1"); | ||
exports.Secp256k1 = secp256k1_1.Secp256k1; | ||
Object.defineProperty(exports, "Secp256k1", { enumerable: true, get: function () { return secp256k1_1.Secp256k1; } }); | ||
var secp256k1signature_1 = require("./secp256k1signature"); | ||
exports.ExtendedSecp256k1Signature = secp256k1signature_1.ExtendedSecp256k1Signature; | ||
exports.Secp256k1Signature = secp256k1signature_1.Secp256k1Signature; | ||
Object.defineProperty(exports, "ExtendedSecp256k1Signature", { enumerable: true, get: function () { return secp256k1signature_1.ExtendedSecp256k1Signature; } }); | ||
Object.defineProperty(exports, "Secp256k1Signature", { enumerable: true, get: function () { return secp256k1signature_1.Secp256k1Signature; } }); | ||
var sha_1 = require("./sha"); | ||
exports.Sha1 = sha_1.Sha1; | ||
exports.Sha256 = sha_1.Sha256; | ||
exports.Sha512 = sha_1.Sha512; | ||
Object.defineProperty(exports, "Sha1", { enumerable: true, get: function () { return sha_1.Sha1; } }); | ||
Object.defineProperty(exports, "Sha256", { enumerable: true, get: function () { return sha_1.Sha256; } }); | ||
Object.defineProperty(exports, "Sha512", { enumerable: true, get: function () { return sha_1.Sha512; } }); | ||
var slip10_1 = require("./slip10"); | ||
exports.pathToString = slip10_1.pathToString; | ||
exports.stringToPath = slip10_1.stringToPath; | ||
exports.Slip10 = slip10_1.Slip10; | ||
exports.Slip10Curve = slip10_1.Slip10Curve; | ||
exports.Slip10RawIndex = slip10_1.Slip10RawIndex; | ||
exports.slip10CurveFromString = slip10_1.slip10CurveFromString; | ||
Object.defineProperty(exports, "pathToString", { enumerable: true, get: function () { return slip10_1.pathToString; } }); | ||
Object.defineProperty(exports, "stringToPath", { enumerable: true, get: function () { return slip10_1.stringToPath; } }); | ||
Object.defineProperty(exports, "Slip10", { enumerable: true, get: function () { return slip10_1.Slip10; } }); | ||
Object.defineProperty(exports, "Slip10Curve", { enumerable: true, get: function () { return slip10_1.Slip10Curve; } }); | ||
Object.defineProperty(exports, "Slip10RawIndex", { enumerable: true, get: function () { return slip10_1.Slip10RawIndex; } }); | ||
Object.defineProperty(exports, "slip10CurveFromString", { enumerable: true, get: function () { return slip10_1.slip10CurveFromString; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Keccak256 = void 0; | ||
const js_sha3_1 = __importDefault(require("js-sha3")); | ||
@@ -8,0 +9,0 @@ class Keccak256 { |
@@ -10,2 +10,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Xchacha20poly1305Ietf = exports.Ed25519 = exports.Ed25519Keypair = exports.Argon2id = void 0; | ||
const libsodium_wrappers_1 = __importDefault(require("libsodium-wrappers")); | ||
@@ -12,0 +13,0 @@ class Argon2id { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Random = void 0; | ||
class Random { | ||
@@ -4,0 +5,0 @@ /** |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Ripemd160 = void 0; | ||
const ripemd160_1 = __importDefault(require("ripemd160")); | ||
@@ -8,0 +9,0 @@ class Ripemd160 { |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Secp256k1 = void 0; | ||
const encoding_1 = require("@cosmjs/encoding"); | ||
@@ -8,0 +9,0 @@ const bn_js_1 = __importDefault(require("bn.js")); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ExtendedSecp256k1Signature = exports.Secp256k1Signature = void 0; | ||
function trimLeadingNullBytes(inData) { | ||
@@ -4,0 +5,0 @@ let numberOfLeadingNullBytes = 0; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Sha512 = exports.Sha256 = exports.Sha1 = void 0; | ||
const sha_js_1 = __importDefault(require("sha.js")); | ||
@@ -8,0 +9,0 @@ class Sha1 { |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stringToPath = exports.pathToString = exports.Slip10 = exports.Slip10RawIndex = exports.slip10CurveFromString = exports.Slip10Curve = void 0; | ||
const encoding_1 = require("@cosmjs/encoding"); | ||
@@ -8,0 +9,0 @@ const math_1 = require("@cosmjs/math"); |
{ | ||
"name": "@cosmjs/crypto", | ||
"version": "0.20.0", | ||
"version": "0.21.0", | ||
"description": "Cryptography resources for blockchain projects", | ||
@@ -29,2 +29,3 @@ "contributors": [ | ||
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"", | ||
"lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix", | ||
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"", | ||
@@ -38,2 +39,3 @@ "format-text": "prettier --write --prose-wrap always --print-width 80 \"./*.md\"", | ||
"test": "yarn build-or-skip && yarn test-node", | ||
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet", | ||
"move-types": "shx rm -r ./types/* && shx mv build/types/* ./types && rm -rf ./types/testdata && shx rm -f ./types/*.spec.d.ts", | ||
@@ -46,5 +48,5 @@ "format-types": "prettier --write --loglevel warn \"./types/**/*.d.ts\"", | ||
"dependencies": { | ||
"@cosmjs/encoding": "^0.20.0", | ||
"@cosmjs/math": "^0.20.0", | ||
"@cosmjs/utils": "^0.20.0", | ||
"@cosmjs/encoding": "^0.21.0", | ||
"@cosmjs/math": "^0.21.0", | ||
"@cosmjs/utils": "^0.21.0", | ||
"bip39": "^3.0.2", | ||
@@ -70,3 +72,3 @@ "bn.js": "^4.11.8", | ||
}, | ||
"gitHead": "dd120779aac5743193965cdfd029979547947642" | ||
"gitHead": "0d4ab069b2277cd186a2037ac3a88a2ab914fbaa" | ||
} |
@@ -13,5 +13,4 @@ # @cosmjs/crypto | ||
This package is part of the cosmjs repository, licensed under the Apache | ||
License 2.0 (see | ||
[NOTICE](https://github.com/CosmWasm/cosmjs/blob/master/NOTICE) and | ||
This package is part of the cosmjs repository, licensed under the Apache License | ||
2.0 (see [NOTICE](https://github.com/CosmWasm/cosmjs/blob/master/NOTICE) and | ||
[LICENSE](https://github.com/CosmWasm/cosmjs/blob/master/LICENSE)). |
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
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
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
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
82767
1084
16
+ Added@cosmjs/encoding@0.21.1(transitive)
+ Added@cosmjs/math@0.21.1(transitive)
+ Added@cosmjs/utils@0.21.1(transitive)
- Removed@cosmjs/encoding@0.20.1(transitive)
- Removed@cosmjs/math@0.20.1(transitive)
- Removed@cosmjs/utils@0.20.1(transitive)
Updated@cosmjs/encoding@^0.21.0
Updated@cosmjs/math@^0.21.0
Updated@cosmjs/utils@^0.21.0