addCircuit

fun addCircuit(circuitFilename: String, circuitBytes: ByteString): Boolean

Longfellow encodes a version number, the number of attributes, and the circuit hash in the filename with the circuit data so in addition to circuitBytes, pass this information in circuitFilename encoded in the following way: <version>_<numAttributes>_<circuitHash>. circuitFilename should be only the name of the file, and must not include any path separators.

Parameters

circuitFilename

the name of the circuit file

circuitBytes

the bytes of the circuit file

Throws

if the circuitFilename is invalid