Live data from Hacker News

AP reports US election results via Ethereum blockchain

developer.ap.org

21–25 of 25 posts

Re: AP reports US election results via Ethereum blockchain

#21
post #19

Shouldn't the election boards be reporting via Ethereum and not news orgs?

Election boards' responsibility is to make sure the mechanisms of democracy function (the right electors get certified, that kind of thing). Helping people build smart-contracts seems somewhat out of scope.

Re: AP reports US election results via Ethereum blockchain

#22
post #17

Earlier quoted context omitted.

Smart contracts do solve one additional problem: for contracts where performance is measured on purely objective, measurable criteria, execution is swift - there is no scope of disputes hence legal costs are reduced. You also don't need a 3rd party to oversee the execution of contracts, reducing management/transaction costs.

where performance is objectively measurable on the blockchain, if it's in the real world, you introduce trust issues again. How could one trust the measurement was objective in the real world?

Yes, definitely in the current format, smart contracts don't obviate trust issues. It is proposed that a 3rd party oracle will be used to verify the criteria is met for execution. Oracles can be incentivized to build credibility.

For example, in the case of insurance contracts, the oracle can be sensors on the car which can make decisions about who's at-fault and accurately assess damage.

Re: AP reports US election results via Ethereum blockchain

#23
post #17

Earlier quoted context omitted.

where performance is objectively measurable on the blockchain, if it's in the real world, you introduce trust issues again. How could one trust the measurement was objective in the real world?

Yes, definitely in the current format, smart contracts don't obviate trust issues. It is proposed that a 3rd party oracle will be used to verify the criteria is met for execution. Oracles can be incentivized to build credibility. For example, in the case of insurance contracts, the oracle can be sensors on the car which can make decisions about who's at-fault and accurately assess damage.

How do you trust the sensors are delivering good data to the oracle?

Re: AP reports US election results via Ethereum blockchain

#24
post #18

This API is confusing for multiple reasons. The obvious question is why involve a blockchain at all. I don't think there is a coherent answer to that question. The second is why are we asking people to poll for information instead of broadcasting it to them via something like webhooks? It's much easier to notify people of updates rather than have them constantly ask for updates.

This suddenly becomes less questionable after Trump wants to legally challenge the election. Blockchain is an immutable and public database, the popular blockhains have economic incentives to be kept alive/running for the operators and protects against censor, so its an obvious place to store public data that needs/should be audited.

Re: AP reports US election results via Ethereum blockchain

#25
Here is a simple script to grab election results from AP via The Guardian. No API key required. No over-enegineered "ELEX" Python scripts. Just request the JSON and do whatever you want with the numbers.

Usage: 1.sh [2-letter state abbrev uppercase]

Example: 1.sh PA

   cat > 1.sh

   #!/bin/sh

   x=$(curl  https://interactive.guim.co.uk/2020/11/us-general-election-data/prod/last_updated.json|sed -n '/"time":/{s/{"time":"//;s/"}//;p;}')
   curl https://interactive.guim.co.uk/2020/11/us-general-election-data/prod/data-out/$x/president_details.json|sed 's/.*\"'"$1"'\"://;s/\"[A-Z][A-Z]\":.*//;s/,/\
   /g;s/"candidates":\[//;'
echo $x

   ^D
Post reply on HN