@okxweb3/coin-stellar
Version:
@okxweb3/coin-stellar is a Stellar SDK for building Web3 wallets and applications. It supports Stellar and PI blockchains, enabling private key management, address generation, transaction signing, trustline creation, and asset transfers
11 lines • 319 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hash = void 0;
const sha_js_1 = require("sha.js");
function hash(data) {
const hasher = new sha_js_1.sha256();
hasher.update(data, 'utf8');
return hasher.digest();
}
exports.hash = hash;
//# sourceMappingURL=hashing.js.map