Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Oct 20, 2023
1 parent 095a328 commit 8f45183
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 2 additions & 12 deletions src/elgamal.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import {
Field,
Group,
isReady,
PrivateKey,
PublicKey,
shutdown,
} from 'o1js';
import { Field, Group, isReady, PrivateKey, PublicKey, shutdown } from 'o1js';
import { ElGamalECC, ElGamalFF } from './elgamal';
import { generateLookup, lookUp, modExp } from './lib';

Expand All @@ -26,10 +19,7 @@ describe('ElGamal', () => {

describe('ElGamal EC', () => {
it('Should encrypt and decrypt correctly', () => {
const msg = Group.fromJSON({
x: 5,
y: 5,
})!;
const msg = Group.generator;

const cipher = ElGamalECC.encrypt(msg, pk);

Expand Down

0 comments on commit 8f45183

Please sign in to comment.