reticulum-js
    Preparing search index...

    Function stampValid

    • Validates a stamp against a target proof-of-work cost.

      target_cost is the required number of leading zero bits in SHA256(workblock || stamp). A stamp with target_cost = 8 is valid when the hash is <= 2^248.

      Parameters

      • stamp: Uint8Array<ArrayBufferLike>
      • targetCost: number
      • workblock: Uint8Array<ArrayBufferLike>

      Returns Promise<boolean>