iscc-lib 0.5.0-aarch64-linux → 0.6.0-aarch64-linux

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: 102f91e686b1e80962d80f9920aba2ce761d854f87198c8fdb0ad5c83ff78d98
4
- data.tar.gz: 308e892a1add16519666d952c1784aa581af6727010037bdbfeb626bd92a8504
3
+ metadata.gz: 8e545b282811fb280198ee32b4108ef3ae658104e98b354d910c6bdcdbe907e0
4
+ data.tar.gz: b60cc706c8ba6f9f792ddc94cc3363f73c526f7cb0c17b80001a5789c25f8f37
5
5
  SHA512:
6
- metadata.gz: 8fb9818a19893dcff9e022a822ca668bd2e107c31b552bac4569339f91d4ba960f87ad934815e80597f9a8e2677942890a172222fde35f7efc5ced1c9686dab9
7
- data.tar.gz: cbb4b85e5080293b50556877fc8d3647e11893e93bea75a1a935df930b380cf9f1273738a5823eca2aa44c3b6bc6b1b1fa3f0a2cffd4de9f41ca26e5413a682a
6
+ metadata.gz: fa447d3fa3870a925cbd40e07a50f1396ebfb3717bfa45884b2d2da2b60103c13acc8e336c429631a96d1314bde82d50d5965400f9c6b915b7fe51185da3e099
7
+ data.tar.gz: f72682de16d21bc4fabeac8d1f42ea1d5ff2c02a6bbe88d39ea9b5fe32dddc2142ef696c26c6840068dadc3e490329963ec77a9b975c81c9db707c74623037f0
Binary file
Binary file
Binary file
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version constant for the iscc-lib gem (synced from root Cargo.toml).
4
4
  module IsccLib
5
- VERSION = "0.5.0"
5
+ VERSION = "0.6.0"
6
6
  end
data/lib/iscc_lib.rb CHANGED
@@ -63,6 +63,9 @@ module IsccLib
63
63
  # Result from gen_sum_code_v0.
64
64
  class SumCodeResult < Result; end
65
65
 
66
+ # Result from gen_iscc_id_v1.
67
+ class IdCodeResult < Result; end
68
+
66
69
  # Generate a Meta-Code from name and optional metadata.
67
70
  #
68
71
  # @param name [String] content name (required, non-empty)
@@ -157,6 +160,21 @@ module IsccLib
157
160
  SumCodeResult[_gen_sum_code_v0(path, bits, wide, add_units)]
158
161
  end
159
162
 
163
+ # Generate an ISCC-IDv1 from a timestamp and a HUB-ID (experimental).
164
+ #
165
+ # Packs a 52-bit microsecond UTC timestamp and a 12-bit HUB-ID into an
166
+ # ISCC-ID unit with realm as SubType and Version V1. There is no dedicated
167
+ # decoder — use iscc_decode to decode.
168
+ #
169
+ # @param timestamp [Integer] microsecond UTC timestamp (0 <= timestamp < 2^52)
170
+ # @param hub_id [Integer] HUB-ID (0 <= hub_id < 4096)
171
+ # @param realm [Integer] realm (0 = testnet, 1 = mainnet)
172
+ # @return [IdCodeResult] hash with iscc
173
+ # @raise [RuntimeError] if any parameter is negative or out of range
174
+ def self.gen_iscc_id_v1(timestamp, hub_id, realm)
175
+ IdCodeResult[_gen_iscc_id_v1(timestamp, hub_id, realm)]
176
+ end
177
+
160
178
  # Streaming Data-Code generator (reopens native class).
161
179
  #
162
180
  # Incrementally processes data with content-defined chunking and MinHash
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iscc-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Titusz Pan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-18 00:00:00.000000000 Z
11
+ date: 2026-07-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: High-performance Ruby bindings for ISO 24138:2024 (ISCC). Native Rust
14
14
  extension via Magnus for content identification and matching.