Skip to content

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

@matthiasgeihs

Description

@matthiasgeihs

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];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions