mssmt 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/lib/mssmt/branch_node.rb +4 -0
- data/lib/mssmt/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a2e3088bd53bf09f21064c1ba8f394810e199dfddf72b01fd9d3982271a48d2
|
4
|
+
data.tar.gz: 7b4b46b927e1bd6d6a08137955ac2a64e82f4d0cfa86332653c2564e80873ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e975adad70a54abe302e29070be56eca24ed2388ce2d31a92579d39b76fd94a75a9d33a81d34e84cab4175670c04c28c5cf9d2b6a33d80ce897c8bcfc9c69538
|
7
|
+
data.tar.gz: 0b2065278888d093490d2293f871871ded6c9e11592a6aaed71afce1451fe5d766eb6573139e4cf2aec930f00d9944b01e6c3ed2ace3924a22aa8581ebeed404
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.1
|
1
|
+
ruby-3.3.1
|
data/Gemfile
CHANGED
data/lib/mssmt/branch_node.rb
CHANGED
@@ -36,5 +36,9 @@ module MSSMT
|
|
36
36
|
return false unless [BranchNode, ComputedNode].include?(other.class)
|
37
37
|
node_hash == other.node_hash && sum == other.sum
|
38
38
|
end
|
39
|
+
|
40
|
+
def inspect
|
41
|
+
"left: #{left.node_hash.unpack1("H*")}, right: #{right.node_hash.unpack1("H*")}, sum: #{sum}"
|
42
|
+
end
|
39
43
|
end
|
40
44
|
end
|
data/lib/mssmt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mssmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azuchi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby implementation of Merkle Sum Sparse Merkle Tree
|
14
14
|
email:
|
@@ -48,7 +48,7 @@ metadata:
|
|
48
48
|
homepage_uri: https://github.com/azuchi/mssmtrb
|
49
49
|
source_code_uri: https://github.com/azuchi/mssmtrb
|
50
50
|
changelog_uri: https://github.com/azuchi/mssmtrb
|
51
|
-
post_install_message:
|
51
|
+
post_install_message:
|
52
52
|
rdoc_options: []
|
53
53
|
require_paths:
|
54
54
|
- lib
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubygems_version: 3.3.23
|
67
|
-
signing_key:
|
67
|
+
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Ruby implementation of Merkle Sum Sparse Merkle Tree
|
70
70
|
test_files: []
|