UNPKG

@nikkolasg/noble-bls12-381

Version:

Noble BLS12-381 pairing-friendly curve. High-security, easily auditable, 0-dep aggregated signatures & pubkey.

16 lines (15 loc) 538 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function normalized(target, propertyKey, descriptor) { const propertyValue = target[propertyKey]; if (typeof propertyValue !== "function") { return descriptor; } const previousImplementation = propertyValue; descriptor.value = function (arg) { const modifiedArgument = target.normalize(arg); return previousImplementation.call(this, modifiedArgument); }; return descriptor; } exports.normalized = normalized;