You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by gjj <no...@github.com> on 2020/08/05 09:11:18 UTC

[apache/incubator-teaclave] 关于多方计算问题 (#401)

现在有个需求是这样的,A方和B方还有一个平台方,平台方安装好了teaclave。
A方和B方只用到了teaclave的python http服务(6789)对外映射自己的加密数据文件。

1. 首先,平台方执行PYTHONPATH=../../sdk/python python3 builtin_echo.py .....根据双方的输入数据和输出数据的label产生taskID,然后把taskID传给A方和B方
2. 然后A方和B方都是用了PYTHONPATH=../../sdk/python python3 builtin_echo.py ..根据平台方得到的taskId 来registerData自己的数据并同时approveTask。
3. 平台方收到A方和B方都registerData和approveTask成功,平台方再次执行PYTHONPATH=../../sdk/python python3 builtin_echo.py ..... 把该taskID进行approve_task和invoke_task。

现在问题出现在第三步的invoke_task 报错{'result': 'err', 'request_error': 'permission denied'}。

我这个需求主要是想A方和B方自己管理自己的加密文件和密钥、cmac值,自己进行registerData 不再统一在平台方上进行。
最终报以上错误


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/401

Re: [apache/incubator-teaclave] 关于多方计算问题 (#401)

Posted by gjj <no...@github.com>.
哦哦 我尝试了下要在平台方那边对A方和B方再次approve_task 就可以了

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/401#issuecomment-669106197

Re: [apache/incubator-teaclave] 关于多方计算问题 (#401)

Posted by gjj <no...@github.com>.
A方和B方的example\python\utils.py  的HOSTNAME 我改成了平台方的ip

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/401#issuecomment-669080296

Re: [apache/incubator-teaclave] 关于多方计算问题 (#401)

Posted by gjj <no...@github.com>.
通过阅读源码 最终定位到是这里报了错
![image](https://user-images.githubusercontent.com/30582212/89396038-a7201d80-d740-11ea-84b0-0f100ddff7ba.png)
![image](https://user-images.githubusercontent.com/30582212/89396108-bacb8400-d740-11ea-8ac8-7872b73cf885.png)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/401#issuecomment-669086438

Re: [apache/incubator-teaclave] 关于多方计算问题 (#401)

Posted by gjj <no...@github.com>.
Closed #401.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/401#event-3623971356