UNPKG

snarkyjs-elgamal

Version:

This repository implements Elgmal, a partial homomorphic encryption scheme originally described by [Taher Elgamal in 1985](https://caislab.kaist.ac.kr/lecture/2010/spring/cs548/basic/B02.pdf). This implementation includes the original version of Elgamal,

24 lines (23 loc) 565 B
/** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ export default { verbose: true, preset: 'ts-jest/presets/default-esm', testEnvironment: 'node', globals: { 'ts-jest': { useESM: true, }, }, transform: { '^.+\\.(t)s$': 'ts-jest', '^.+\\.(j)s$': 'babel-jest', }, resolver: '<rootDir>/jest-resolver.cjs', transformIgnorePatterns: [ '<rootDir>/node_modules/(?!snarkyjs/node_modules/tslib)', ], modulePathIgnorePatterns: ['<rootDir>/build/'], moduleNameMapper: { '^(\\.{1,2}/.+)\\.js$': '$1', } };