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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d07e68431e9d8539727c514f6bbe42006709b980214d6fdeaca0cb6fb0613d5d
4
- data.tar.gz: 76da8e23b8b45119ab20fc875657688dd26dd2b24a8dc82f7704162c6ae61a24
3
+ metadata.gz: 4a2e3088bd53bf09f21064c1ba8f394810e199dfddf72b01fd9d3982271a48d2
4
+ data.tar.gz: 7b4b46b927e1bd6d6a08137955ac2a64e82f4d0cfa86332653c2564e80873ac4
5
5
  SHA512:
6
- metadata.gz: 3dc973a5f83f8399af0b617a34db243464d15878e27fe1b748ba576622c7a7d7e28e5ac736efef4d0e4a4e53231525aad6a8d4e99d3b1b6f732948dc72a8dc3c
7
- data.tar.gz: 482b24550810aa7c070b0b51845088094d17d4afca4a1ae60677c58be3fecf89eaf88651b3795eca268a05f08b7d265602ee6fb6c699a06a1bf80d8bb450c659
6
+ metadata.gz: e975adad70a54abe302e29070be56eca24ed2388ce2d31a92579d39b76fd94a75a9d33a81d34e84cab4175670c04c28c5cf9d2b6a33d80ce897c8bcfc9c69538
7
+ data.tar.gz: 0b2065278888d093490d2293f871871ded6c9e11592a6aaed71afce1451fe5d766eb6573139e4cf2aec930f00d9944b01e6c3ed2ace3924a22aa8581ebeed404
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1.2
1
+ ruby-3.3.1
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ gem 'rake', '~> 13.0'
9
9
 
10
10
  gem 'rspec', '~> 3.0'
11
11
 
12
- gem 'prettier'
12
+ gem 'prettier', '4.0.3'
13
13
 
14
14
  gem 'rubocop-rake'
15
15
  gem 'rubocop-rspec'
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MSSMT
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
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.0
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: 2022-10-30 00:00:00.000000000 Z
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: []