@burstjs/crypto
Advanced tools
Comparing version 0.6.0-alpha.8 to 0.6.0-alpha.9
@@ -1,2 +0,1 @@ | ||
import * as CryptoJS from 'crypto-js'; | ||
export declare class Converter { | ||
@@ -9,7 +8,7 @@ static convertHexStringToByteArray(hex: any): number[]; | ||
static checkBytesToIntInput(bytes: any, numBytes: any, opt_startIndex: any): any; | ||
static convertByteArrayToWordArray(ba: any): CryptoJS.LibWordArray; | ||
static convertByteArrayToWordArray(ba: any): any; | ||
static convertWordToByteArray(word: any, length: any): any[]; | ||
static convertWordArrayToByteArray(wordArray: any, length?: number): any[]; | ||
static convertWordArrayToByteArray(wordArray: any, length?: number): any; | ||
static convertByteArrayToString(bytes: any, opt_startIndex?: number, length?: number): string; | ||
static convertWordArrayToUint8Array(wordArray: any): Uint8Array; | ||
} |
@@ -1,2 +0,1 @@ | ||
import * as CryptoJS from 'crypto-js'; | ||
export declare class Converter { | ||
@@ -9,7 +8,7 @@ static convertHexStringToByteArray(hex: any): number[]; | ||
static checkBytesToIntInput(bytes: any, numBytes: any, opt_startIndex: any): any; | ||
static convertByteArrayToWordArray(ba: any): CryptoJS.LibWordArray; | ||
static convertByteArrayToWordArray(ba: any): any; | ||
static convertWordToByteArray(word: any, length: any): any[]; | ||
static convertWordArrayToByteArray(wordArray: any, length?: number): any[]; | ||
static convertWordArrayToByteArray(wordArray: any, length?: number): any; | ||
static convertByteArrayToString(bytes: any, opt_startIndex?: number, length?: number): string; | ||
static convertWordArrayToUint8Array(wordArray: any): Uint8Array; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Converter = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -5,0 +4,0 @@ class Converter { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Curve25519 = void 0; | ||
class Curve25519 { | ||
@@ -5,0 +4,0 @@ static clamp(k) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decryptAES = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -5,0 +4,0 @@ exports.decryptAES = (encryptedBase64, key) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decryptData = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -5,0 +4,0 @@ const inflate_1 = require("pako/lib/inflate"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decryptMessage = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -5,0 +4,0 @@ const decryptData_1 = require("./decryptData"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ECKCDSA = void 0; | ||
const curve25519_1 = require("./curve25519"); | ||
@@ -5,0 +4,0 @@ class ECKCDSA { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encryptAES = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -5,0 +4,0 @@ exports.encryptAES = (text, key) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encryptData = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -5,0 +4,0 @@ const deflate_1 = require("pako/lib/deflate"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encryptMessage = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -5,0 +4,0 @@ const encryptData_1 = require("./encryptData"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateMasterKeys = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -5,0 +4,0 @@ const ec_kcdsa_1 = require("./ec-kcdsa"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateSignature = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -5,0 +4,0 @@ const ec_kcdsa_1 = require("./ec-kcdsa"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateSignedTransactionBytes = void 0; | ||
exports.generateSignedTransactionBytes = (unsignedTransactionHex, signature) => unsignedTransactionHex.substr(0, 192) + signature + unsignedTransactionHex.substr(320); | ||
//# sourceMappingURL=generateSignedTransactionBytes.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getAccountIdFromPublicKey = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -5,0 +4,0 @@ const CryptoJS = require("crypto-js"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hashSHA256 = void 0; | ||
const CryptoJS = require("crypto-js"); | ||
@@ -5,0 +4,0 @@ exports.hashSHA256 = (input) => { |
"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 __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./encryptAES"), exports); | ||
__exportStar(require("./decryptAES"), exports); | ||
__exportStar(require("./decryptData"), exports); | ||
__exportStar(require("./encryptData"), exports); | ||
__exportStar(require("./decryptMessage"), exports); | ||
__exportStar(require("./encryptMessage"), exports); | ||
__exportStar(require("./generateMasterKeys"), exports); | ||
__exportStar(require("./getAccountIdFromPublicKey"), exports); | ||
__exportStar(require("./hashSHA256"), exports); | ||
__exportStar(require("./passPhraseGenerator"), exports); | ||
__exportStar(require("./verifySignature"), exports); | ||
__exportStar(require("./generateSignedTransactionBytes"), exports); | ||
__exportStar(require("./generateSignature"), exports); | ||
__exportStar(require("./typings/keys"), exports); | ||
__exportStar(require("./typings/encryptedMessage"), exports); | ||
__exportStar(require("./typings/encryptedData"), exports); | ||
__export(require("./encryptAES")); | ||
__export(require("./decryptAES")); | ||
__export(require("./decryptData")); | ||
__export(require("./encryptData")); | ||
__export(require("./decryptMessage")); | ||
__export(require("./encryptMessage")); | ||
__export(require("./generateMasterKeys")); | ||
__export(require("./getAccountIdFromPublicKey")); | ||
__export(require("./hashSHA256")); | ||
__export(require("./passPhraseGenerator")); | ||
__export(require("./verifySignature")); | ||
__export(require("./generateSignedTransactionBytes")); | ||
__export(require("./generateSignature")); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PassPhraseGenerator = void 0; | ||
const _seedrandom = require("seedrandom"); | ||
@@ -5,0 +4,0 @@ const words_1 = require("./words"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.verifySignature = void 0; | ||
const converter_1 = require("./converter"); | ||
@@ -5,0 +4,0 @@ const ec_kcdsa_1 = require("./ec-kcdsa"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.words = void 0; | ||
exports.words = [ | ||
@@ -5,0 +4,0 @@ 'abandon', |
{ | ||
"name": "@burstjs/crypto", | ||
"version": "0.6.0-alpha.8", | ||
"version": "0.6.0-alpha.9", | ||
"description": "Cryptographic functions for building Burstcoin apps.", | ||
@@ -59,3 +59,3 @@ "contributors": [ | ||
}, | ||
"gitHead": "f2b08a727d9147d4a264a9d418e71828a81571c8", | ||
"gitHead": "7e6cc334ef794e7046b009eeed55f96b6a351d8e", | ||
"publishConfig": { | ||
@@ -62,0 +62,0 @@ "access": "public" |
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
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 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
1714705
119
20932
332