Closed JoshOrndorff closed 5 years ago
I'm starting to lean toward expressing URIs in RHOCore using some constructor. There's a standard URL constructor that seems to work:
new URL('rho:id:wdwc36f4ixa6xacck3ddepmgueum7zueuczgthcqp6771kdu8jogm8')
Likewise byte arrays as Uint8Array
.
And GPrivate
from RhoTypes.
Supporting GPrivate
in toRholang
would be tricky... one way to do it would be to assume the rholang code to create is in a scope where the GPrivate
is bound to a variable. We'd need an additional environment parameter that maps GPrivate
values to variable names.
See:
I could / should separate these from work on proxying and payment, but I haven't done so yet.
The environment stuff for GPrivate
turned out to be not needed.
Some relevant context is in #17 An example of the problem this creates is
This is really more of a problem with the design of rhocore. I guess our options are.