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