useEffect(() => { const genRandomKey = async () => { console.log(await ecc.randomKey()) }; genRandomKey(); }, []);