eyg/ir/cid

Types

To make the gleam_ir library portable over browser, node and erlang you need to bring your own sha implementation

pub type Effect(t) {
  Sha256(bytes: BitArray, resume: fn(BitArray) -> t)
}

Constructors

  • Sha256(bytes: BitArray, resume: fn(BitArray) -> t)

Values

pub fn from_block(bytes: BitArray) -> Effect(v1.Cid)
pub fn from_tree(
  source: #(tree.Expression(a), a),
) -> Effect(v1.Cid)
Search Document