discontinuedPackage is_journal has been discontinued and replaced by is_logbook.

EntryHash class final

The sha256 of one journal entry.

Inheritance

Constructors

EntryHash.of(Uint8List entry)
entry's hash.
factory

Properties

bytes → Uint8List
The 32 bytes.
no setterinherited
hashCode → int
All the bytes, not just the first few, though they look random: a name read back from text or bytes has whatever bytes its sender chose. Object.hashAll's seed changes with each run, which makes such names hard to aim at one bucket, though it is not a cryptographic hash. Not cached: that seed is not promised to be the same in another isolate, and a name can be sent to one.
no setterinherited
hex → String
The bytes in lower-case hex: how the name is written in text.
latefinalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
Equal only to the same kind of name with the same bytes, where the kind is runtimeType. A kind must not override this, hashCode or runtimeType, though base cannot stop it: overriding this makes equality between two kinds depend on which one is asked, overriding hashCode puts equal names in different buckets so a set or map misses them, and overriding runtimeType lets one kind pass as another.
inherited

Static Properties

origin → EntryHash
What the first entry names as the entry before it: the sha256 of the journal format's name, so a journal in another format breaks at its first entry, and anyone can compute it with printf 'is_journal/1' | shasum -a 256.
final

Static Methods

fromDigest(Uint8List digest) → EntryHash?
parse(String s) → EntryHash?