Background: future fast Quantum Computers (QCs) are hypothesized to be much faster at solving various forms of the Discrete Log Problem (DLP) than classical computers (e.g. what we use now). Bitcoin uses the DLP in what's called a trapdoor function: a function that's easy to compute one way (a private key generating a public key) but hard to compute the other way (using a public key to recover the original private key). Fast QCs break that trapdoor, hypothetically allowing the operator of the QC to steal the bitcoins from anyone whose public key is publicly known.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Country code lookup using offline quadtree generated by Yggdrasil. | |
# https://github.com/leonardvandriel/Yggdrasil | |
# This Ruby script can be used to determine the ISO 3166 country at a given | |
# WGS 84 coordinate. Lookup is based on quadtree data stored in the remainder | |
# of this file. This data can be compressed to under 20 KB, while providing | |
# lookup accuracy under 40 km. | |
# License: BSD | |
# Author: Leonard van Driel, 2013 | |
require 'json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Searcher | |
def search(query) | |
with_retries do | |
Item.search(query, populate: true) | |
end | |
end | |
private |