mirror of https://github.com/waku-org/js-waku.git
Move key handling modules to common dir
This commit is contained in:
parent
9a68cc2a86
commit
f9152f24b0
|
@ -17,8 +17,8 @@ import { Message, Messages } from './Messages';
|
||||||
import 'fontsource-roboto';
|
import 'fontsource-roboto';
|
||||||
import { Button } from '@material-ui/core';
|
import { Button } from '@material-ui/core';
|
||||||
import { SendMessage } from './SendMessage';
|
import { SendMessage } from './SendMessage';
|
||||||
import { SaveKeyToStorage } from './SaveKeyToStorage';
|
import { SaveKeyToStorage } from './key_handling/SaveKeyToStorage';
|
||||||
import { LoadKeyFromStorage } from './LoadKeyFromStorage';
|
import { LoadKeyFromStorage } from './key_handling/LoadKeyFromStorage';
|
||||||
|
|
||||||
export const PublicKeyContentTopic = '/eth-dm/1/public-key/json';
|
export const PublicKeyContentTopic = '/eth-dm/1/public-key/json';
|
||||||
export const DirectMessageContentTopic = '/eth-dm/1/direct-message/json';
|
export const DirectMessageContentTopic = '/eth-dm/1/direct-message/json';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Button, TextField } from '@material-ui/core';
|
import { Button, TextField } from '@material-ui/core';
|
||||||
import React, { ChangeEvent, useState } from 'react';
|
import React, { ChangeEvent, useState } from 'react';
|
||||||
import { loadKeyPairFromStorage } from './keyStorage';
|
import { loadKeyPairFromStorage } from './key_storage';
|
||||||
import { KeyPair } from './crypto';
|
import { KeyPair } from '../crypto';
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
setEthDmKeyPair: (keyPair: KeyPair) => void;
|
setEthDmKeyPair: (keyPair: KeyPair) => void;
|
|
@ -1,7 +1,7 @@
|
||||||
import { Button, TextField } from '@material-ui/core';
|
import { Button, TextField } from '@material-ui/core';
|
||||||
import React, { ChangeEvent, useState } from 'react';
|
import React, { ChangeEvent, useState } from 'react';
|
||||||
import { KeyPair } from './crypto';
|
import { KeyPair } from '../crypto';
|
||||||
import { saveKeyPairToStorage } from './keyStorage';
|
import { saveKeyPairToStorage } from './key_storage';
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
ethDmKeyPair: KeyPair | undefined;
|
ethDmKeyPair: KeyPair | undefined;
|
|
@ -1,4 +1,4 @@
|
||||||
import { KeyPair } from './crypto';
|
import { KeyPair } from '../crypto';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save keypair to storage, encrypted with password
|
* Save keypair to storage, encrypted with password
|
Loading…
Reference in New Issue