EntryHash class final
The sha256 of one journal entry.
- Inheritance
-
- Object
- Sha256Name
- EntryHash
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
basecannot 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