As of today, clarity hash functions (sha-256, sha-512, ...) can only take 1 buffer argument.
Instead, this functions should probably be variadic, so that smart contracts can re-compute onchain hashed values that have been constructed offchain (useful for commit-reveal patterns, where the commit phase is based on a hash mixing multiple inputs).
As of today, clarity hash functions (
sha-256
,sha-512
, ...) can only take 1 buffer argument. Instead, this functions should probably be variadic, so that smart contracts can re-compute onchain hashed values that have been constructed offchain (useful for commit-reveal patterns, where the commit phase is based on a hash mixing multiple inputs).