def hex_walk

bend-collections@1.0.0.0 · src/crypto/sha/packed/sha256.bend:30

import bend-collections@1.0.0.0/src/crypto/sha/packed/sha256.bend as Sha256
import Base

30# Formatting helper consumes eight words; it does not create a digest list.
31def hex_walk(n: Nat, +index: U32, pair: Array<U32> & U32) -> String:
32  match n pair:
33    case 0n Tuple{a,w}: hex_word(w)
34    case 1n+p Tuple{a,w}: hex_word(w) ++ hex_walk(p,U32.inc(index),Array.get(U32,a,index))

Uses (10)

Used by (1)