12 lines
501 B
JavaScript
12 lines
501 B
JavaScript
// @ts-ignore
|
|
export { secp256k1 as secp } from '../esm/secp256k1.js';
|
|
import { secp256k1 as _secp } from '../esm/secp256k1.js';
|
|
export { bytesToNumberBE, numberToBytesBE } from '../esm/abstract/utils.js';
|
|
export { mod } from '../esm/abstract/modular.js';
|
|
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);
|