allow qr to scan seed qr (#330)

* allow qr to scan seed qr

* simplify flow

* use original orders

* remove trailing spaces
This commit is contained in:
Hanwen Cheng
2020-06-12 22:54:40 +02:00
committed by GitHub
parent 48327feb34
commit c7bf1d2ec9
2 changed files with 15 additions and 6 deletions
+2
View File
@@ -3,6 +3,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
const ADDRESS_PREFIX = 'substrate';
const SEED_PREFIX = 'secret';
const FRAME_SIZE = 1024;
const SUBSTRATE_ID = new Uint8Array([0x53]);
const CRYPTO_SR25519 = new Uint8Array([0x01]);
@@ -19,5 +20,6 @@ export {
CMD_SIGN_MSG,
CRYPTO_SR25519,
FRAME_SIZE,
SEED_PREFIX,
SUBSTRATE_ID
};