<reponame>folkfigur/dada<filename>src/signFolkfigurJson.js<gh_stars>0// example of signing 
var fs = require('fs');

main = async ()=>{
    const ethers = require("ethers")
    let privateKey = '9q3vfhm7l33rus21toc8fndupq76itje';
    let wallet = new ethers.Wallet(privateKey);

    // console.log(wallet.address);
    // "0x14791697260E4c9A71f18484C9f997B308e59325"


    // Sign the string message
    
    let flatSig = await wallet.signMessage(fs.readFileSync("json-for-mint/folkfigur#42.json", { encoding: 'utf8' }));
    console.log(flatSig);
};

main();
