This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const web3 = new Web3(new Web3.providers.HttpProvider("https://kovan.infura.io/v3/<your key>")); | |
let pubKey = await getPublicKey(keyId); | |
let ethAddr = getEthereumAddress((pubKey.PublicKey as Buffer)); | |
let ethAddrHash = ethutil.keccak(Buffer.from(ethAddr)); | |
// signing the 1st time | |
// we're signing the hash of our ethereum address | |
let sig = await findEthereumSig(ethAddrHash); | |
let recoveredPubAddr = findRightKey(ethAddrHash, sig.r, sig.s, ethAddr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Put this in your Amazon Elastic Beanstalk repo | |
# Tested on Amazon Linux 2, Node.JS v16, puppeteer v15.3.0 | |
# File path: .platform/hooks/postdeploy/01_install_libs.sh | |
sudo amazon-linux-extras install epel -y | |
cd node_modules/puppeteer/ | |
cd .local-chromium/linux-*/chrome-linux |
OlderNewer