建议:ContextDescProto的repeated PartyProto parties排序处理
imwangyt opened this issue · 1 comments
imwangyt commented
在测试psi时,发现两方link_config
的parties
如果顺序不同,会导致rank有误,网络建立失败。
设想一下未来的多方场景,意味着多方要先排排坐,定个序号,这个体验略差。
建议yacl建立rank时,先对parties按host直接string排序一下。
"link_config": {
"parties": [{
"id": "RECEIVER",
"host": "127.0.0.1:5300"
},
{
"id": "SENDER",
"host": "127.0.0.1:5400"
}]
}
"link_config": {
"parties": [{
"id": "SENDER",
"host": "127.0.0.1:5400"
},
{
"id": "RECEIVER",
"host": "127.0.0.1:5300"
}]
}
zimu-yuxi commented
感谢您的建议,后续会先做个文档提示