Governance: Mnemonic import implemented for creating profile.

This commit is contained in:
Luis Fernando Molina committed 2021-08-18 12:17:29 +02:00
1 parent 0d2d91ef09
commit a42a4c025c
6 files changed
+352 -4207

No files matched your search

+9
View File
@@ -160,6 +160,15 @@ exports.newHttpInterface = function newHttpInterface(
respondWithContent(JSON.stringify(serverResponse), httpResponse)
return
}
case 'mnemonicToPrivateKey': {
let serverResponse = await WEB3_SERVER.mnemonicToPrivateKey(
params.mnemonic
)
respondWithContent(JSON.stringify(serverResponse), httpResponse)
return
}
default: {
respondWithContent(JSON.stringify({ error: 'Method ' + params.method + ' is invalid.' }), httpResponse)
}