Class: IsccLib::InstanceHasher
- Inherits:
-
Object
- Object
- IsccLib::InstanceHasher
- Defined in:
- lib/iscc_lib.rb
Overview
Streaming Instance-Code generator (reopens native class).
Incrementally hashes data with BLAKE3 to produce results identical to gen_instance_code_v0.
Instance Method Summary collapse
-
#finalize(bits: 64) ⇒ InstanceCodeResult
Consume the hasher and produce an Instance-Code result.
-
#update(data) ⇒ self
Push binary data into the hasher.
Instance Method Details
#finalize(bits: 64) ⇒ InstanceCodeResult
Consume the hasher and produce an Instance-Code result.
231 232 233 |
# File 'lib/iscc_lib.rb', line 231 def finalize(bits: 64) InstanceCodeResult[_finalize(bits)] end |
#update(data) ⇒ self
Push binary data into the hasher.
221 222 223 224 |
# File 'lib/iscc_lib.rb', line 221 def update(data) _update(data) self end |