【文件属性】:
文件名称:oblivious-transfer:遗忘转移
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-16 04:47:43
cryptography ot oblivious-transfer JavaScript
遗忘转移
用
npm install --save oblivious-transfer const OT = require('oblivious-transfer');
const Message1 = 'Alice did it';
const Message2 = 'Bob did it';
const Choice = 0; // 0 or 1
const Alice = OT.aliceInit();
const Bob = OT.bobInit({
E: Alice.E,
N: Alice.N,
Alice: Alice.Alice,
Choice,
});
const Encrypted = OT.aliceEncrypt({
...Alice,
Bob: Bob.Bob,
Message1,
Message2,
});
const Dec
【文件预览】:
oblivious-transfer-master
----.npmignore(13B)
----LICENSE.md(1KB)
----README.md(773B)
----tests()
--------tests.js(1KB)
----.gitignore(23B)
----index.js(3KB)
----package-lock.json(12KB)
----package.json(840B)