@celo/poprf
Advanced tools
+1
-1
| { | ||
| "name": "@celo/poprf", | ||
| "description": "A threshold-computable partially-oblivous psuedo-random function", | ||
| "version": "0.1.5", | ||
| "version": "0.1.6", | ||
| "license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "repository": { |
+30
-8
@@ -463,6 +463,17 @@ let imports = {}; | ||
| module.exports.thresholdKeygen = function(n, t, seed) { | ||
| var ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc); | ||
| var len0 = WASM_VECTOR_LEN; | ||
| var ret = wasm.thresholdKeygen(n, t, ptr0, len0); | ||
| return Keys.__wrap(ret); | ||
| try { | ||
| const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
| var ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc); | ||
| var len0 = WASM_VECTOR_LEN; | ||
| wasm.thresholdKeygen(retptr, n, t, ptr0, len0); | ||
| var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
| var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
| var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
| if (r2) { | ||
| throw takeObject(r1); | ||
| } | ||
| return Keys.__wrap(r0); | ||
| } finally { | ||
| wasm.__wbindgen_add_to_stack_pointer(16); | ||
| } | ||
| }; | ||
@@ -476,6 +487,17 @@ | ||
| module.exports.keygen = function(seed) { | ||
| var ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc); | ||
| var len0 = WASM_VECTOR_LEN; | ||
| var ret = wasm.keygen(ptr0, len0); | ||
| return Keypair.__wrap(ret); | ||
| try { | ||
| const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
| var ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc); | ||
| var len0 = WASM_VECTOR_LEN; | ||
| wasm.keygen(retptr, ptr0, len0); | ||
| var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
| var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
| var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
| if (r2) { | ||
| throw takeObject(r1); | ||
| } | ||
| return Keypair.__wrap(r0); | ||
| } finally { | ||
| wasm.__wbindgen_add_to_stack_pointer(16); | ||
| } | ||
| }; | ||
@@ -482,0 +504,0 @@ |
+7
-0
@@ -10,2 +10,9 @@ # Pith POPRF | ||
| A partially-oblivious PRF (POPRF) is a protocol between a client and a server to evaluate the keyed | ||
| pseudo-random function F(k, t, m). The client provides the tag input, t, and message input, m. The | ||
| server provides the secret key input k. During the exchange the server learns the client-provided | ||
| tag, but gains no other information. In particular, they learn nothing about the message. The client | ||
| learns the output of the PRF function F, but no other information about the secret key held by the | ||
| server. | ||
| Building upon the existing [BLS threshold signature based OPRF] implemented for use on Celo in | ||
@@ -12,0 +19,0 @@ [ODIS], this repository implements an extension to the [Pythia] POPRF specification to provide |
Sorry, the diff of this file is not supported yet
1017
2.21%105
7.14%372227
-0.43%