From 93fd05b30f33fb694c77522b9e966e2eac1cdea4 Mon Sep 17 00:00:00 2001 From: Hanwen Cheng Date: Mon, 2 Sep 2019 23:45:40 -0700 Subject: [PATCH] feat: introduce react-native-ecc --- package.json | 1 + src/stores/SecureStore.js | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/stores/SecureStore.js diff --git a/package.json b/package.json index a195999b53..51eb8843eb 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "react": "^16.9.0", "react-native": "0.60.5", "react-native-camera": "^3.3.0", + "react-native-ecc": "2.2.0", "react-native-gesture-handler": "^1.4.1", "react-native-keyboard-aware-scroll-view": "^0.9.1", "react-native-markdown-renderer": "^3.2.8", diff --git a/src/stores/SecureStore.js b/src/stores/SecureStore.js new file mode 100644 index 0000000000..1f91c7faf7 --- /dev/null +++ b/src/stores/SecureStore.js @@ -0,0 +1,29 @@ +// Copyright 2015-2019 Parity Technologies (UK) Ltd. +// This file is part of Parity. + +// Parity is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Parity is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Parity. If not, see . + +// @flow + +import { Container } from 'unstated'; +import { NativeModules } from 'react-native'; + +type SecureStoreType = { + accounts: Map, + pin: string, +} + +export default class AccountsStore extends Container { + +}