ExamplesHash chain

Examples: Hash chain

Woven from its 140 bytes

Hash chain

Hash a seed a hundred times and return the end of the chain.

Language
Lisp
Bytecode
140bytes
Cards
16
Units on the Weft VM
262 259CU
Budget it opens with
300 000CU
Runs
Inline, in one transaction
(define h "weft")
(dotimes (i 100)
  (set! h (sha256 h)))
(log "after 100 rounds" h)
h