Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HashReader

Reader decorator that computes the Ion hash of values read.

see

Reader

Hierarchy

  • Reader
    • HashReader

Index

Methods

Methods

digest

  • digest(): Uint8Array
  • Provides the Ion hash of the previous value (where Reader.next() positions the reader at a new current value).

    Implementations must calculate the hash independent of how the Ion value is traversed (i.e., the hash of a container must be identical whether the caller skips over it, steps into it, or any combination thereof).

    throws

    if invoked at a different depth than when the HashReader was instantiated

    Returns Uint8Array

    bytes representing the Ion hash of the previous value