Passing strings through a compute circuit #8
wwwehr
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experimenting to see how I can pass messages along data into a circuit so that the result party can use it.
Certainly this has holes in it's concept, but could be interesting strategy for app builders until we can properly support this kind of thing.
I want to build a circuit where all dealers input an integer but also provide their public wallet address. This way, when the circuit computes an outcome, the dealers address is sent with the result output to the result dealer (not the program executor).
Since I'm using the nada tool for developing my circuit, this above python script will poop out a yaml section that I can easily integrate into my
tests/
dir.In a real application, I would instead use the functions above so that I can create Secrets with them and pass into the compute() function as usual.
Hope this is helpful! Add comments or questions below.
Beta Was this translation helpful? Give feedback.
All reactions