zold 0.10.15 → 0.10.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zold/node/front.rb +10 -9
- data/lib/zold/version.rb +1 -1
- data/wp/wp.tex +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 536093f30ee45d39b82fbc770313fce6128ac912
|
|
4
|
+
data.tar.gz: 24babf9751c618fd19ca6cb4ae0bcd1459995ff9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d892b348b6b8b60e59d3543efc5d2634c33d8ca7083436df2295ba9de24ab06471fd926b722e701aa7593b4d85911598d32eb7546f82d27288dbe435923230ac
|
|
7
|
+
data.tar.gz: 79e9f411780263871b9c39d22d47a5a68cb8c6ba65b57f3fe3df538127e30031ec152e43ab33c21d1f91b290fc249d4aae1d53dd091c3a4ce34e0359ac212f4a
|
data/lib/zold/node/front.rb
CHANGED
|
@@ -59,9 +59,15 @@ module Zold
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
before do
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
name = "HTTP-#{Http::SCORE_HEADER}".upcase.tr('-', '_')
|
|
63
|
+
header = request.env[name]
|
|
64
|
+
unless header
|
|
65
|
+
settings.log.debug("#{request.url}: HTTP header #{Http::SCORE_HEADER} is absent (#{name})")
|
|
66
|
+
return
|
|
67
|
+
end
|
|
68
|
+
if settings.remotes.all.empty?
|
|
69
|
+
settings.log.debug("#{request.url}: we are in standalone mode, won't update remotes")
|
|
70
|
+
end
|
|
65
71
|
s = Score.parse_text(header)
|
|
66
72
|
error(400, 'The score is invalid') unless s.valid?
|
|
67
73
|
error(400, 'The score is weak') if s.strength < Score::STRENGTH && !settings.ignore_score_weakness
|
|
@@ -139,12 +145,7 @@ module Zold
|
|
|
139
145
|
JSON.pretty_generate(
|
|
140
146
|
version: VERSION,
|
|
141
147
|
score: score.to_h,
|
|
142
|
-
all: settings.remotes.all
|
|
143
|
-
{
|
|
144
|
-
host: r[:host],
|
|
145
|
-
port: r[:port]
|
|
146
|
-
}
|
|
147
|
-
end
|
|
148
|
+
all: settings.remotes.all
|
|
148
149
|
)
|
|
149
150
|
end
|
|
150
151
|
|
data/lib/zold/version.rb
CHANGED
data/wp/wp.tex
CHANGED
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
In the last few years digital currencies have successfully demonstrated
|
|
40
40
|
their ability to become an alternative financial instrument in many
|
|
41
41
|
different markets. Most of the technologies available at the moment are
|
|
42
|
-
based on the principles of Blockchain architecture, including
|
|
42
|
+
based on the principles of Blockchain architecture, including
|
|
43
43
|
dominating currencies like Bitcoin and Etherium. Despite its
|
|
44
|
-
popularity, Blockchain is not the
|
|
44
|
+
popularity, Blockchain is not the best possible solution for all scenarios. One such example is
|
|
45
45
|
for fast micro-payments.
|
|
46
46
|
Zold is an \emph{experimental} alternative that enables distributed transactions between
|
|
47
47
|
anonymous users, making micro-payments financially feasible.
|
|
48
48
|
It borrows the ``proof of work'' principle from Bitcoin,
|
|
49
|
-
and suggests a different architecture for digital
|
|
49
|
+
and suggests a different architecture for digital wallet maintenance.
|
|
50
50
|
\end{abstract}
|
|
51
51
|
|
|
52
52
|
\section{Motivation}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zold
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yegor Bugayenko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-06-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|