Open JesseAbram opened 2 months ago
curent behaviors leave much to desire. previously we were able to read the stream response directly as json. that now returns undefined
we have get as a utf8 blob which once decoded looks like this:
result string:
[
{"Ok":["0su+wghEQsfw845m7A477mnt3pWRXgOPRFqmvHPusN9u7eOrY38q5IISe/ripZ6djxsHJf+H8dyTZYtSQunoPwA=","663476e2870f96d3e44b2b0a11f25cf9ac04ab3fbff916c7bddfaf87bed53822039eb78e26df3f1bdf23e5012fc48bc766de16b654b3e37aa61fb924a3dae881"]},
{"Ok": ["0su+wghEQsfw845m7A477mnt3pWRXgOPRFqmvHPusN9u7eOrY38q5IISe/ripZ6djxsHJf+H8dyTZYtSQunoPwA=","1220344a1d5a4d0f47f366fc24baec97b9c0ba25d0532278ea913f55fe441b34ec13f32f4e65fda90175adb4c477917fa5e16cc3f294e2ba9b561dbd7cac438c"]}
]
desires:
{
signature: '0su+wghEQsfw845m7A477mnt3pWRXgOPRFqmvHPusN9u7eOrY38q5IISe/ripZ6djxsHJf+H8dyTZYtSQunoPwA=',
proof: '1220344a1d5a4d0f47f366fc24baec97b9c0ba25d0532278ea913f55fe441b34ec13f32f4e65fda90175adb4c477917fa5e16cc3f294e2ba9b561dbd7cac438c',
signer_public_key: '0x123...',
}
Questions:
1) the multiple signatures are from the signers that signed the message 2) T = 2 signers = 3 only 2 signers sign 3) that would be up to the client, the point in not selecting one is to not be opinionated or trusting of the relayer, here are the messages back 4) "Err" see here for an example 5) @ameba23 initially implemented it, and I was following that, idk could probably make it an object 6) On the endpoint yes here for higher level documentation @johnnymatthews and I are working on it soon
As for sending the public key back ya sure if the client checks that, that key is in the signer however I would be worried they would just assume it is
in #1050 we now have a relayer taking in the messages from all signers and passing it to the client.
The question is how should we handle that, how much pre processing and checking should we do.
What is the safest and best UX choice for the user
Some relevant comments
https://github.com/entropyxyz/entropy-core/pull/1050#discussion_r1770912009
https://github.com/entropyxyz/entropy-core/pull/1050#discussion_r1771210781