Move key handling modules to common dir

This commit is contained in:
Franck Royer 2021-06-29 11:52:48 +10:00
parent 9a68cc2a86
commit f9152f24b0
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
4 changed files with 7 additions and 7 deletions

View File

@ -17,8 +17,8 @@ import { Message, Messages } from './Messages';
import 'fontsource-roboto';
import { Button } from '@material-ui/core';
import { SendMessage } from './SendMessage';
import { SaveKeyToStorage } from './SaveKeyToStorage';
import { LoadKeyFromStorage } from './LoadKeyFromStorage';
import { SaveKeyToStorage } from './key_handling/SaveKeyToStorage';
import { LoadKeyFromStorage } from './key_handling/LoadKeyFromStorage';
export const PublicKeyContentTopic = '/eth-dm/1/public-key/json';
export const DirectMessageContentTopic = '/eth-dm/1/direct-message/json';

View File

@ -1,7 +1,7 @@
import { Button, TextField } from '@material-ui/core';
import React, { ChangeEvent, useState } from 'react';
import { loadKeyPairFromStorage } from './keyStorage';
import { KeyPair } from './crypto';
import { loadKeyPairFromStorage } from './key_storage';
import { KeyPair } from '../crypto';
export interface Props {
setEthDmKeyPair: (keyPair: KeyPair) => void;

View File

@ -1,7 +1,7 @@
import { Button, TextField } from '@material-ui/core';
import React, { ChangeEvent, useState } from 'react';
import { KeyPair } from './crypto';
import { saveKeyPairToStorage } from './keyStorage';
import { KeyPair } from '../crypto';
import { saveKeyPairToStorage } from './key_storage';
export interface Props {
ethDmKeyPair: KeyPair | undefined;

View File

@ -1,4 +1,4 @@
import { KeyPair } from './crypto';
import { KeyPair } from '../crypto';
/**
* Save keypair to storage, encrypted with password