solace 0.0.5 → 0.0.6
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/CHANGELOG +6 -4
- data/lib/solace/public_key.rb +13 -0
- data/lib/solace/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6a955af361ac7765d33c34560a09704730c8a394cd74e0bc17196d8cf3cb8eb
|
4
|
+
data.tar.gz: 3c86565b3f728bdd4b116dff1abc63125d187b2cc6d8b5fcb44c8444c2d15def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 489042853cdc2ca68d2e35abab66c26bb1363e9ae31fa9816203b6c267d9083361a006cc73610467581ed179999317f0fefc0b09460497d1ac6f10dcb273b5c2
|
7
|
+
data.tar.gz: bc66a1d998abf224a30365e44ea026b034437cbdc3cf09092bf45147510bf010d8d97178047ee485f088255d86a928a58a752694aa813595e5622d6bd66d1310
|
data/CHANGELOG
CHANGED
@@ -16,17 +16,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
16
16
|
### Fixed
|
17
17
|
```
|
18
18
|
|
19
|
-
## [
|
19
|
+
## [0.0.6] - 2025-08-07
|
20
20
|
|
21
21
|
### Added
|
22
|
-
1.
|
22
|
+
1. Added `from_address` method to `Solace::PublicKey`.
|
23
|
+
2. Change docs on most methods to include an `@example` section.
|
23
24
|
|
24
25
|
### Changed
|
25
26
|
1. Change `private_key` method on Keypair to `pivate_key_bytes`
|
26
|
-
2. Change
|
27
|
-
3. Change README to include a practical example of using composers.
|
27
|
+
2. Change README to include a practical example of using composers.
|
28
28
|
|
29
29
|
### Fixed
|
30
|
+
1. Fix `encode_signatures` method in `Solace::Serializers::TransactionSerializer` to correctly count the number of signatures using the `num_required_signatures` field in the message.
|
31
|
+
|
30
32
|
|
31
33
|
## [0.0.3] - 2025-07-30
|
32
34
|
|
data/lib/solace/public_key.rb
CHANGED
@@ -95,5 +95,18 @@ module Solace
|
|
95
95
|
def to_bytes
|
96
96
|
@bytes.dup
|
97
97
|
end
|
98
|
+
|
99
|
+
class << self
|
100
|
+
# Create a public key instance from a base58 address
|
101
|
+
#
|
102
|
+
# @example
|
103
|
+
# pubkey = Solace::PublicKey.from_address(address)
|
104
|
+
#
|
105
|
+
# @param address [String] The base58 address of the public key
|
106
|
+
# @return [PublicKey]
|
107
|
+
def from_address(address)
|
108
|
+
new(Solace::Utils::Codecs.base58_to_bytes(address))
|
109
|
+
end
|
110
|
+
end
|
98
111
|
end
|
99
112
|
end
|
data/lib/solace/version.rb
CHANGED