2023-02-09 22:26:20 +03:00
|
|
|
// @ts-ignore
|
2023-03-03 04:09:50 +03:00
|
|
|
export { secp256k1 as secp } from '../secp256k1.js';
|
|
|
|
import { secp256k1 as _secp } from '../secp256k1.js';
|
|
|
|
export { bytesToNumberBE, numberToBytesBE } from '../abstract/utils.js';
|
|
|
|
export { mod } from '../abstract/modular.js';
|
2023-02-09 22:26:20 +03:00
|
|
|
export const sigFromDER = (der) => {
|
|
|
|
return _secp.Signature.fromDER(der);
|
|
|
|
};
|
|
|
|
export const sigToDER = (sig) => sig.toDERHex();
|
|
|
|
export const selectHash = (secp) => secp.CURVE.hash;
|
|
|
|
export const normVerifySig = (s) => _secp.Signature.fromDER(s);
|
|
|
|
// export const bytesToNumberBE = secp256k1.utils.bytesToNumberBE;
|
|
|
|
// export const numberToBytesBE = secp256k1.utils.numberToBytesBE;
|
|
|
|
// export const mod = mod_;
|