UNPKG

@walletconnect/crypto

Version:

Isomorphic Cryptography Library for AES, HMAC and SHA2

27 lines 853 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ripemd160 = exports.sha512 = exports.sha256 = void 0; const tslib_1 = require("tslib"); const node_1 = require("../lib/node"); function sha256(msg) { return tslib_1.__awaiter(this, void 0, void 0, function* () { const result = (0, node_1.nodeSha256)(msg); return result; }); } exports.sha256 = sha256; function sha512(msg) { return tslib_1.__awaiter(this, void 0, void 0, function* () { const result = (0, node_1.nodeSha512)(msg); return result; }); } exports.sha512 = sha512; function ripemd160(msg) { return tslib_1.__awaiter(this, void 0, void 0, function* () { const result = (0, node_1.nodeRipemd160)(msg); return result; }); } exports.ripemd160 = ripemd160; //# sourceMappingURL=sha2.js.map