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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c13d50b51db3aad428e4dc97ed0036c8bdd2bc04340a13af4d5634f372015300
4
- data.tar.gz: 9ec070ab4fd53ad9b6cfc0e64d7bb9de66cee2bb6644b235f4557eebc96feabc
3
+ metadata.gz: ca31c2dd41a851c385d062e4450db0c6e83dbbbb092a48c4bcedaa10e5c061be
4
+ data.tar.gz: e94af075c25958bfc4e3b11a40d3a756cf68ca1f5ff250be5059b119ff7abcb7
5
5
  SHA512:
6
- metadata.gz: ebbf68a3fb7bbcd5b07530d435cc78901fdc1c64e8135a87d12bb053b4fb70088da9fa2ea540ec10f85863efad2e750c4510d475e87059bd62a778b5b98c7b7b
7
- data.tar.gz: 34b20e1373a2d0953f04d2fca08e465b4dc2549b4df53c3bcd08207dccc7aad7b945a955918ce6c748752d005927595053394668097c62b04ba7c02bd410598f
6
+ metadata.gz: c007db7d1f7489eea486b9abc081653498993d34b69f64cea2250fd2ec2b21ba61f2a8addbd45393953711274c7b8c2228a7791c240fbf69b115212e8c108ca4
7
+ data.tar.gz: e0bc79726b159ad725eecdf59aad62d7704afb92849744bbbc8ecd553b42972fceec5778705cd3b3fe841db858e99c5425e34a930bb2ac81c9194abe0dd2cd78
data/CHANGELOG.md CHANGED
@@ -1,15 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2025-12-29
3
+ ## [1.1.0] - 2026-01-05
4
4
 
5
- ### Added
6
- - Initial release of `cardano-bech32`
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
- ## [0.1.0] - 2026-01-05
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
- # Convert 5-bit array to bytes
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cardano
4
4
  module Bech32
5
- VERSION = "1.0.0"
5
+ VERSION = "1.1.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cardano-bech32
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Böning