MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / gen_b2a_graph

Function gen_b2a_graph

ciphercore-base/src/bin/ciphercore_a2b.rs:37–44  ·  view source on GitHub ↗
(context: Context, k: u32, st: ScalarType)

Source from the content-addressed store, hash-verified

35}
36
37fn gen_b2a_graph(context: Context, k: u32, st: ScalarType) -> Result<Graph> {
38 let graph = context.create_graph()?;
39 let n = 2u64.pow(k);
40 let i = graph.input(array_type(vec![n, st.size_in_bits()], BIT))?;
41 graph.set_output_node(i.b2a(st)?)?;
42 graph.finalize()?;
43 Ok(graph)
44}
45
46/// This binary prints the serialized a2b/b2a context on the non-encrypted input in (serde) JSON format.
47///

Callers 1

mainFunction · 0.85

Calls 6

array_typeFunction · 0.50
create_graphMethod · 0.45
inputMethod · 0.45
set_output_nodeMethod · 0.45
b2aMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected