cardano-bech32 1.0.0 → 1.1.0
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.md +13 -8
- data/lib/cardano/bech32/address.rb +1 -2
- data/lib/cardano/bech32/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: ca31c2dd41a851c385d062e4450db0c6e83dbbbb092a48c4bcedaa10e5c061be
|
|
4
|
+
data.tar.gz: e94af075c25958bfc4e3b11a40d3a756cf68ca1f5ff250be5059b119ff7abcb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c007db7d1f7489eea486b9abc081653498993d34b69f64cea2250fd2ec2b21ba61f2a8addbd45393953711274c7b8c2228a7791c240fbf69b115212e8c108ca4
|
|
7
|
+
data.tar.gz: e0bc79726b159ad725eecdf59aad62d7704afb92849744bbbc8ecd553b42972fceec5778705cd3b3fe841db858e99c5425e34a930bb2ac81c9194abe0dd2cd78
|
data/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [1.1.0] - 2026-01-05
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
-
|
|
7
|
-
- Encoding of Cardano Governance Action IDs (`gov_action`) as defined in CIP-0129
|
|
8
|
-
- Decoding of `gov_action` Bech32 identifiers into transaction ID and index
|
|
9
|
-
- Validation helpers for governance action identifiers
|
|
10
|
-
- RSpec test suite with normative CIP-0129 test vectors
|
|
5
|
+
### Fixed
|
|
6
|
+
- Decoding of Addresses: Byte length too long due to padding
|
|
11
7
|
|
|
12
|
-
## [
|
|
8
|
+
## [1.0.0] - 2026-01-05
|
|
13
9
|
|
|
14
10
|
### Added
|
|
15
11
|
- Encoding of DRep IDs `drep` as defined in CIP-0129
|
|
@@ -19,3 +15,12 @@
|
|
|
19
15
|
- Encoding of Stake Pool identifier `pool`
|
|
20
16
|
- Decoding of Stake Pool identifiers into hex and byte data
|
|
21
17
|
- Decoding of Addresses such as Base, Stake, Pointer, Enterprise into network info, byte data
|
|
18
|
+
|
|
19
|
+
## [0.1.0] - 2025-12-29
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- Initial release of `cardano-bech32`
|
|
23
|
+
- Encoding of Cardano Governance Action IDs (`gov_action`) as defined in CIP-0129
|
|
24
|
+
- Decoding of `gov_action` Bech32 identifiers into transaction ID and index
|
|
25
|
+
- Validation helpers for governance action identifiers
|
|
26
|
+
- RSpec test suite with normative CIP-0129 test vectors
|
|
@@ -73,8 +73,7 @@ module Cardano
|
|
|
73
73
|
hrp, data = Cardano::Bech32.decode(bech32)
|
|
74
74
|
raise InvalidFormat, "invalid bech32 string" if hrp.nil? || data.nil?
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
payload_bytes = Cardano::Bech32.convert_bits(data, from_bits: 5, to_bits: 8, pad: true)
|
|
76
|
+
payload_bytes = Cardano::Bech32.convert_bits(data, from_bits: 5, to_bits: 8, pad: false)
|
|
78
77
|
raise InvalidPayload, "invalid payload length" unless payload_bytes.length.positive?
|
|
79
78
|
|
|
80
79
|
header = payload_bytes.first
|