Skip to content

Commit

Permalink
simplify private key generator
Browse files Browse the repository at this point in the history
  • Loading branch information
md00ux committed Aug 18, 2024
1 parent 97437e4 commit 7a1836a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/create_ocean_node_docker_compose_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ else
fi

echo "Generating Private Key, please wait..."
output=$(docker run --rm oceanprotocol/web3-account-generator)
PRIVATE_KEY=$(echo "$output" | grep "Private Key:" | awk '{print $3}')
output=$(head -c 32 /dev/urandom | xxd -p | tr -d '\n' | awk '{print "0x" $0}')
PRIVATE_KEY=$(echo "$output")
echo -e "Generated Private Key: \e[1;31m$PRIVATE_KEY\e[0m"
validate_hex "$PRIVATE_KEY"
fi
Expand Down

0 comments on commit 7a1836a

Please sign in to comment.