Skip to content

Instantly share code, notes, and snippets.

@vivianjeng
Created November 1, 2023 12:56
Show Gist options
  • Save vivianjeng/24d1a94b158f42f86f781720ccf7b037 to your computer and use it in GitHub Desktop.
Save vivianjeng/24d1a94b158f42f86f781720ccf7b037 to your computer and use it in GitHub Desktop.
let outputs: [String] = ["21888242871839275222246405745257275088548364400416034343698204186575808495616", "21888242871839275222246405745257275088548364400416034343698204186575808495616"]
print(outputs)
// ["21888242871839275222246405745257275088548364400416034343698204186575808495616", "21888242871839275222246405745257275088548364400416034343698204186575808495616"]
let generateProofResult = try moproCircom.generateProof(circuitInputs: inputs)
print(generateProofResult.inputs)
// 72 bytes
print([UInt8](generateProofResult.inputs))
// [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 147, 245, 225, 67, 145, 112, 185, 121, 72, 232, 51, 40, 93, 88, 129, 129, 182, 69, 80, 184, 41, 160, 49, 225, 114, 78, 100, 48, 0, 0, 0, 240, 147, 245, 225, 67, 145, 112, 185, 121, 72, 232, 51, 40, 93, 88, 129, 129, 182, 69, 80, 184, 41, 160, 49, 225, 114, 78, 100, 48]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment