Explorer

core.sha256

description
The SHA-256 hash (32 bytes) of bytes (FIPS 180-4)
type
Fn(bytes: List<Number>) -> List<Number>
expression
fn(bytes$0) =>
  let h$1 = @core.sha256-blocks(bytes: @core.sha256-padded(bytes: $0), offset: 0, state: @core.sha256-initial-hash);
  @core.list-concat(
    left: @core.uint32-to-bytes(value: @core.number-at-or-zero(list: $1, index: 0)),
    right: @core.list-concat(
      left: @core.uint32-to-bytes(value: @core.number-at-or-zero(list: $1, index: 1)),
      right: @core.list-concat(
        left: @core.uint32-to-bytes(value: @core.number-at-or-zero(list: $1, index: 2)),
        right: @core.list-concat(
          left: @core.uint32-to-bytes(value: @core.number-at-or-zero(list: $1, index: 3)),
          right: @core.list-concat(
            left: @core.uint32-to-bytes(value: @core.number-at-or-zero(list: $1, index: 4)),
            right: @core.list-concat(
              left: @core.uint32-to-bytes(value: @core.number-at-or-zero(list: $1, index: 5)),
              right: @core.list-concat(
                left: @core.uint32-to-bytes(value: @core.number-at-or-zero(list: $1, index: 6)),
                right: @core.uint32-to-bytes(value: @core.number-at-or-zero(list: $1, index: 7))
              )
            )
          )
        )
      )
    )
  )
visibility
public
core.sha256 (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: VUviNrSLYv4IH5VDmT4puga_jnCorx_C0D4Ym1VscWw
content hash: cY1B6Uk7NY2S3zlKuP-bu44nFuo8BRUwK5qV1vEJ_Oc