Skip to content

Commit

Permalink
dir changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes67890 committed Dec 8, 2022
1 parent 7f02308 commit 8ce0b05
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { secp256k1 } from "./curve/curvesDefined";
import Header from "./frontend/Header";
import Menu from "./frontend/Menu";
import Keys from "./frontend/Keys";
import { EC, Point } from "./curve/EDDSA/EC";
import Signature, { signature } from "./curve/EDDSA/signature";
import { BN } from "bn.js";

const bob = new KeySet(secp256k1);
const alice = new KeySet(secp256k1);
Expand Down
2 changes: 1 addition & 1 deletion src/cdm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EC } from './curve/EDDSA/EC';
import { EC } from './curve/EC';
import KeySet from "./curve/EDDSA/keyGeneration";
import Signature from "./curve/EDDSA/signature";
import { secp256k1 } from './curve/curvesDefined';
Expand Down
4 changes: 2 additions & 2 deletions src/curve/EDDSA/EC.test.ts → src/curve/EC.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EC } from "./EC";
import { BN } from "bn.js";
import { secp256k1 } from "../curvesDefined";
import KeySet from "./keyGeneration";
import { secp256k1 } from "./curvesDefined";
import KeySet from "./EDDSA/keyGeneration";

describe("EC", () => {
const ec = new EC(secp256k1);
Expand Down
2 changes: 1 addition & 1 deletion src/curve/EDDSA/EC.ts → src/curve/EC.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BN from "bn.js";
import { curveOpt } from "../curvesDefined";
import { curveOpt } from "./curvesDefined";

export interface Point {
x: BN;
Expand Down
2 changes: 1 addition & 1 deletion src/curve/EDDSA/keyGeneration.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EC } from "./EC";
import { EC } from "../EC";
import KeySet from "./keyGeneration";
import { secp256k1 } from "../curvesDefined";
import { BN } from "bn.js";
Expand Down
2 changes: 1 addition & 1 deletion src/curve/EDDSA/keyGeneration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BN from "bn.js";
import { randomBytes } from "crypto";
import { EC } from "./EC";
import { EC } from "../EC";
import { curveOpt } from "../curvesDefined";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/curve/EDDSA/signature.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { secp256k1 } from "../curvesDefined";
import { EC } from "./EC";
import { EC } from "../EC";
import Signature, { signature } from "./signature";
import KeySet from "./keyGeneration";
import BN from "bn.js";
Expand Down
4 changes: 2 additions & 2 deletions src/curve/EDDSA/signature.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BN from "bn.js";
import { randomBytes } from "crypto";
import { Point } from "./EC";
import { EC } from "./EC";
import { Point } from "../EC";
import { EC } from "../EC";
import { hashMsgSHA256 } from "../../util";

export interface signature {
Expand Down
1 change: 1 addition & 0 deletions src/curve/curvesDefined.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { sha256 } from "hash.js";

export interface curveOpt {
name: string; // Name of the curve
prime: string; // modulo prime number p
Expand Down

0 comments on commit 8ce0b05

Please sign in to comment.