Governance: Mnemonic import implemented for creating profile.
This commit is contained in:
1 parent
0d2d91ef09
commit
a42a4c025c
6 files changed
+352
-4207
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user