Blockchain Commons LifeHash TypeScript Library - v1.0.0-alpha.20
    Preparing search index...

    Function makeFromDigest

    • Make a LifeHash from the SHA256 digest of some other data. The digest must be exactly 32 pseudorandom bytes. This is the base LifeHash creation algorithm, but if you don't already have a SHA256 hash of some data, then you should access it by calling makeFromData(). If you are starting with a UTF-8 string, call makeFromUtf8().

      Parameters

      • digest: Data
      • version: Version = Version.version2
      • moduleSize: number = 1
      • hasAlpha: boolean = false

      Returns Image