liability-proof 0.0.6 → 0.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db5ca59224c57ebe11b02903e9dd708ae4886850
4
- data.tar.gz: c95e4b04d3a91733924d48e8abd555f3451bde0d
3
+ metadata.gz: 24aabcf5dfad086a981d257b1d29a4c6525ba078
4
+ data.tar.gz: 61edc67662fb9f4e6cd147238aa006235a2b503b
5
5
  SHA512:
6
- metadata.gz: eb7225d8ef7cfe15823183e4c10850483b23cd5304c1e761772d55cfa631f0b62c8f43b1cdcad11913e2e646291ab82d518f33fe02f089ab4280098b066789be
7
- data.tar.gz: 86f79282441b53e8ecd5718d223e6372a16c3e850b6627721fcc150d310b8fe6768c341d60c8ebd65907974184c43f2233f6efce722f290dcc870b17870bc0ea
6
+ metadata.gz: 6b484929b86f60313af6e47910a0f92f2dddf19984a0cd38a9808a73d298c4cf8523b97c9f27f9ef5bc94242f69262ee153415eff23bb24eb51feac81b9b28c2
7
+ data.tar.gz: 2d63d57c7e747d2108189e6f16fec720fb2452958a9b6b719300d9c9dffeeffa41509e3a583a063946601b597f63201d1f317f53a8a0b1449763440a84369d27
@@ -26,7 +26,7 @@ module LiabilityProof
26
26
  'sum' => root.sum_string
27
27
  },
28
28
  'currency' => @currency,
29
- 'timestamp' => rfc822_format(Time.now)
29
+ 'timestamp' => Time.now.to_f*1000 # milliseconds since Epoch
30
30
  }
31
31
  end
32
32
 
@@ -97,9 +97,5 @@ module LiabilityProof
97
97
  end
98
98
  end
99
99
 
100
- def rfc822_format(time)
101
- time.strftime("%a, %d %b %Y %H:%M:%S %z")
102
- end
103
-
104
100
  end
105
101
  end
@@ -14,7 +14,7 @@ module LiabilityProof
14
14
  private
15
15
 
16
16
  def generate_hash
17
- LiabilityProof.sha256_base64 "#{sum_string}#{left.hash}#{right.hash}"
17
+ LiabilityProof.sha256_base64 "#{sum_string}|#{left.hash}|#{right.hash}"
18
18
  end
19
19
 
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module LiabilityProof
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liability-proof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peatio Opensource
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print