1
This commit is contained in:
parent
ee6f566747
commit
f347a11669
@ -99,10 +99,10 @@ async function init() {
|
|||||||
'Web3Sign'
|
'Web3Sign'
|
||||||
);
|
);
|
||||||
|
|
||||||
// registerMetaClass(resDir + 'item@item.json',
|
registerMetaClass(resDir + 'item@item.json',
|
||||||
// 'id',
|
'id',
|
||||||
// 'Item'
|
'Item'
|
||||||
// );
|
);
|
||||||
load();
|
load();
|
||||||
{
|
{
|
||||||
traverseMetaList('BlockChainDb', (dbConf, idx) => {
|
traverseMetaList('BlockChainDb', (dbConf, idx) => {
|
||||||
|
@ -34,6 +34,10 @@ class BlockChain extends BaseService {
|
|||||||
return this.#bc.getUserAddress();
|
return this.#bc.getUserAddress();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isValidAddress(address) {
|
||||||
|
return this.#bc.isValidAddress(address);
|
||||||
|
}
|
||||||
|
|
||||||
async soliditySha3Sign(...args) {
|
async soliditySha3Sign(...args) {
|
||||||
const signStr = await this.#bc.web3.utils.soliditySha3(...args);
|
const signStr = await this.#bc.web3.utils.soliditySha3(...args);
|
||||||
let signature = await this.#bc.web3.eth.sign(signStr, this.getUserAddress());
|
let signature = await this.#bc.web3.eth.sign(signStr, this.getUserAddress());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user