From 4a80c0782bdce6917c5bffb23680cb175a64d3e4 Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Wed, 2 Oct 2024 23:53:23 +0300 Subject: [PATCH] Be more explicit in requesting remote ETH keys for Windows --- scripts/windows/generate.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/windows/generate.bat b/scripts/windows/generate.bat index 1b3ae6a..becd98e 100644 --- a/scripts/windows/generate.bat +++ b/scripts/windows/generate.bat @@ -4,9 +4,10 @@ setlocal enabledelayedexpansion :: Variables set key_file="%cd%\eth.key" set address_file="%cd%\eth.address" +set url="https://key.codex.storage/json" :: Generate -echo Generating private key... +echo "Generating private key from remote <%url%>..." :: Use PowerShell to make the API call and process the response powershell -Command "& { $response = Invoke-RestMethod -Uri 'https://key.codex.storage/json'; $privateKey = $response.private; $address = $response.address; $privateKey | Out-File -Encoding ASCII -FilePath '%key_file%'; $address | Out-File -Encoding ASCII -FilePath '%address_file%'; Write-Host ' * your private key has been saved to %key_file%'; Write-Host ' * your address has been saved to %address_file%'; Write-Host (' * your ethereum address is ' + $address); }"