text: 'use strict';
  Object.defineProperty(exports, '__esModule', { value: true });
  exports.hash256 = exports.hash160 = exports.sha256 = exports.sha1 = exports.ripemd160 = void 0;
  const createHash = require('create-hash');
  function ripemd160(buffer) {
    try {
      return createHash('rmd160')
        .update(buffer)
        .digest();
    } catch (err) {
      return createHash('ripemd160')
        .update(buffer)
        .digest();
    }
  }
  exports.ripemd160 = ripemd160;
  function sha1(buffer) {
    return createHash('sha1')
      .update(buffer)
      .digest();
  }
  exports.sha1 = sha1;
  function sha256(buffer) {
    return createHash('sha256')
      .update(buffer)
      .digest();
  }
  exports.sha256 = sha256;
  function hash160(buffer) {
    return ripemd160(sha256(buffer));
  }
  exports.hash160 = hash160;
  function hash256(buffer) {
    return sha256(sha256(buffer));
  }
  exports.hash256 = hash256;
  