d00cff0e9a9b98b7e117f961921b00eb1431c1f6d29f662806fe28c7b970a4b7.json raw

   1  {"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.getHash = getHash;\nexports.createCurve = createCurve;\n/**\n * Utilities for short weierstrass curves, combined with noble-hashes.\n * @module\n */\n/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */\nconst weierstrass_ts_1 = require(\"./abstract/weierstrass.js\");\n/** connects noble-curves to noble-hashes */\nfunction getHash(hash) {\n  return {\n    hash\n  };\n}\n/** @deprecated use new `weierstrass()` and `ecdsa()` methods */\nfunction createCurve(curveDef, defHash) {\n  const create = hash => (0, weierstrass_ts_1.weierstrass)({\n    ...curveDef,\n    hash: hash\n  });\n  return {\n    ...create(defHash),\n    create\n  };\n}\n//# sourceMappingURL=_shortw_utils.js.map","map":null,"metadata":{},"sourceType":"script","externalDependencies":[]}