
generateAddress() {
  echo "Generating an IOTA address holding all IOTAs..."

  local seed=$(generateSeed)
  echo $seed >./utils/nodex.seed

  # Now we run a tiny Node.js utility to get the first address to be on the snapshot
  docker-compose run --rm -w /usr/src/app address-generator sh -c 'npm install --prefix=/package "@iota/core" > /dev/null && node address-generator.js $(cat nodex.seed) 2> /dev/null > address.txt'
}

generateAddress2() {
  echo "Generating an IOTA address holding all IOTAs..."