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
// In html, | |
// <script src="http://path-to-/covalent-js-sign.js"></script> | |
// To create the payload to that include the challenge data and the signature in base64, | |
const privateKey = "59e96b740f0af54f2d4335ddd033816fa24348b4097d3fddad4f6edc939f52e9"; | |
const walletAddress = "0x71d094E5382CA33B25B92d3A75d5C6f269A78fAe"; | |
const chainId = "1"; // default is "1" | |
// browser |