def hex_word_go
import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Coreimport Base
3598# Decode hexadecimal word go for the SHA-256 compression implementation.
3599def hex_word_go(digit_count: Nat, +word: U32, acc: String) -> String:
3600 match digit_count:
3601 case 0n:
3602 acc
3603 case 1n+p:
3604 hex_word_go(p, U32.shrn(word, 4n), SCon{hex_digit((word .&. 15 : U32)), acc})