eth: add personal_importRawKey for runtime private key import

This commit is contained in:
Ales Katona
2016-04-25 11:23:40 -06:00
parent 70b8b54cd2
commit 572da73d4d
3 changed files with 38 additions and 7 deletions

View File

@ -18,12 +18,13 @@
package web3ext
var Modules = map[string]string{
"txpool": TxPool_JS,
"admin": Admin_JS,
"eth": Eth_JS,
"miner": Miner_JS,
"debug": Debug_JS,
"net": Net_JS,
"txpool": TxPool_JS,
"admin": Admin_JS,
"personal": Personal_JS,
"eth": Eth_JS,
"miner": Miner_JS,
"debug": Debug_JS,
"net": Net_JS,
}
const TxPool_JS = `
@ -175,6 +176,20 @@ web3._extend({
});
`
const Personal_JS = `
web3._extend({
property: 'personal',
methods:
[
new web3._extend.Method({
name: 'importRawKey',
call: 'personal_importRawKey',
params: 2
})
]
});
`
const Eth_JS = `
web3._extend({
property: 'eth',