Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client fails with party ids other than [0, 1, 2, 3] #67

Open
matthiasgeihs opened this issue Jun 13, 2024 · 0 comments
Open

client fails with party ids other than [0, 1, 2, 3] #67

matthiasgeihs opened this issue Jun 13, 2024 · 0 comments

Comments

@matthiasgeihs
Copy link
Member

The client accepts a parameter parties: number[], which it also forwards to the server. However, due to how the client maps between the provided party ids and the other parameters like endpoints and sockets, providing anything else than [0, ..., n-1], where n is the number of endpoints, fails.

The reason is that the party ids are used for indexing into the endpoints and sockets arrays, as can be seen here:

const socket = tss_client.sockets[party];

return this.endpoints[party];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant