17 changed files with 660 additions and 3368 deletions
@ -1,17 +0,0 @@ |
|||
|
|||
var Web3 = require('web3') |
|||
|
|||
var web3 = new Web3('https://bsc-dataseed.binance.org/'); |
|||
|
|||
|
|||
|
|||
module.exports = function (callback) { |
|||
|
|||
var data= web3.eth.accounts.create(); |
|||
callback(null, { |
|||
address: data.address, |
|||
privateKey: data.privateKey |
|||
}); |
|||
} |
|||
|
|||
|
@ -1,27 +0,0 @@ |
|||
|
|||
var Web3 = require('web3') |
|||
const sigUtil = require('eth-sig-util') |
|||
const ethUtil = require('ethereumjs-util') |
|||
|
|||
var web3 = new Web3('https://bsc-dataseed.binance.org/'); |
|||
|
|||
|
|||
|
|||
module.exports = function (callback, obj) { |
|||
var extraParams = {} |
|||
var key = obj.privateKey; |
|||
obj = obj.data; |
|||
|
|||
var from = obj.params[0]; |
|||
var message = obj.params[1]; |
|||
|
|||
var msgParams = { |
|||
from: from, |
|||
data: JSON.parse(message), |
|||
} |
|||
|
|||
const serialized = sigUtil.signTypedData(Buffer.from(key.replace('0x', ''), 'hex'), msgParams); |
|||
callback(null, serialized); |
|||
} |
|||
|
|||
|
@ -1,17 +0,0 @@ |
|||
{ |
|||
"name": "script", |
|||
"version": "1.0.0", |
|||
"description": "", |
|||
"main": "app.js", |
|||
"scripts": { |
|||
"test": "echo \"Error: no test specified\" && exit 1" |
|||
}, |
|||
"keywords": [], |
|||
"author": "", |
|||
"license": "ISC", |
|||
"dependencies": { |
|||
"eth-sig-util": "^3.0.1", |
|||
"ethereumjs-util": "^7.1.3", |
|||
"web3": "^1.6.1" |
|||
} |
|||
} |
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>client</title><link href="/css/app.cbd86d30.css" rel="preload" as="style"><link href="/css/app.css" rel="preload" as="style"><link href="/css/chunk-vendors.09af4a6b.css" rel="preload" as="style"><link href="/css/chunk-vendors.css" rel="preload" as="style"><link href="/js/app.js" rel="preload" as="script"><link href="/js/chunk-vendors.js" rel="preload" as="script"><link href="/css/chunk-vendors.09af4a6b.css" rel="stylesheet"><link href="/css/chunk-vendors.css" rel="stylesheet"><link href="/css/app.cbd86d30.css" rel="stylesheet"><link href="/css/app.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.js"></script><script src="/js/app.js"></script></body></html> |
|||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>client</title><link href="/css/app.a281d79c.css" rel="preload" as="style"><link href="/css/app.css" rel="preload" as="style"><link href="/css/chunk-vendors.09af4a6b.css" rel="preload" as="style"><link href="/css/chunk-vendors.css" rel="preload" as="style"><link href="/js/app.js" rel="preload" as="script"><link href="/js/chunk-vendors.js" rel="preload" as="script"><link href="/css/chunk-vendors.09af4a6b.css" rel="stylesheet"><link href="/css/chunk-vendors.css" rel="stylesheet"><link href="/css/app.a281d79c.css" rel="stylesheet"><link href="/css/app.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.js"></script><script src="/js/app.js"></script></body></html> |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue