nostr_ruby 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: e00f86ed7be72e972550e69600e39cb66aabb68c544c49d78fa2187c659f758f
4
- data.tar.gz: 3ee6d5158fdf2875b1a250da54034c693b811a8f9de1385f23e4f0b6d1391140
3
+ metadata.gz: e9e2e02e2b8c70afabd82449bc571b36d9c32e37d042543231851b3a2cefb121
4
+ data.tar.gz: 2a5d4ba703aeb2e389f72861f0b7effd801431ab5e6de28ea57eb93139509293
5
5
  SHA512:
6
- metadata.gz: '03848ad6d793f19ea6a36a6b7d829129929a15c3adb873029f2bb66a65c5cbdef0400f407292cacd0d49ed94ef77c04eab361c2b219b5a5130060a85e03e333c'
7
- data.tar.gz: 8786d82bcb14658491ab3c2a659f0d78b1cedc25f9d9048bece634331da488b5d276e3b0e844ea8900102809b70ab356d0bb3028abd2b4ca4f18e7e0224dcb84
6
+ metadata.gz: a0398648739c344f3c1176782a17ea6d3ec01e0828c0876dbced24d2a66778926cf55124b73506f0dfbe02939a0a99642bd3b4cf67d6c021e53db3f879290646
7
+ data.tar.gz: b9851ca1896ad9fd6bcd4b4660ecada5e9c2995eb705298208e8ab230d105b5ce672f2c597caabf9ed06aabac9a1685db7c19102ede2438d22e1531b4ead926f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nostr_ruby (0.1.0)
4
+ nostr_ruby (0.1.2)
5
5
  base64 (~> 0.1.1)
6
6
  bech32 (~> 1.3.0)
7
7
  bip-schnorr (~> 0.4.0)
@@ -1,3 +1,3 @@
1
1
  module NostrRuby
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/nostr_ruby.rb CHANGED
@@ -28,7 +28,7 @@ class Nostr
28
28
  if hex_private_key
29
29
  @private_key = hex_private_key
30
30
  group = ECDSA::Group::Secp256k1
31
- @public_key = group.generator.multiply_by_scalar(private_key.to_i(16)).x.to_s(16)
31
+ @public_key = group.generator.multiply_by_scalar(private_key.to_i(16)).x.to_s(16).rjust(64, '0')
32
32
  elsif hex_public_key
33
33
  @public_key = hex_public_key
34
34
  else
data/nostr_ruby.gemspec CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
  s.name = 'nostr_ruby'
6
6
  s.version = NostrRuby::VERSION
7
7
  s.summary = 'A Ruby library to interact with the Nostr protocol'
8
- s.description = 'This gem provides a simple class, MyGem, that can be used in other Ruby projects.'
8
+ s.description = 'NostrRuby is a Ruby library to interact with the Nostr protocol. At this stage the focus is the creation of public events and private encrypted messages.'
9
9
  s.authors = ['Daniele Tonon']
10
10
  s.homepage = 'https://github.com/dtonon/nostr-ruby'
11
11
  s.licenses = ['MIT']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nostr_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniele Tonon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-26 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -94,8 +94,8 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.6.0
97
- description: This gem provides a simple class, MyGem, that can be used in other Ruby
98
- projects.
97
+ description: NostrRuby is a Ruby library to interact with the Nostr protocol. At this
98
+ stage the focus is the creation of public events and private encrypted messages.
99
99
  email:
100
100
  executables: []
101
101
  extensions: []