trusted-setup-server/lib/phase2
Alexey c88dc70552 get hash from webassm 2020-04-27 14:11:35 +03:00
..
LICENSE-APACHE phase2 lib 2020-01-29 16:20:11 +03:00
LICENSE-MIT phase2 lib 2020-01-29 16:20:11 +03:00
README.md phase2 lib 2020-01-29 16:20:11 +03:00
package.json providing user entropy 2020-03-11 13:08:01 +03:00
phase2.d.ts providing user entropy 2020-03-11 13:08:01 +03:00
phase2.js providing user entropy 2020-03-11 13:08:01 +03:00
phase2_bg.d.ts providing user entropy 2020-03-11 13:08:01 +03:00
phase2_bg.wasm get hash from webassm 2020-04-27 14:11:35 +03:00

README.md

phase2 Crates.io

This library is still under development.

WebAssembly how-to

Build wasm package using wasm-pack build --release -- --no-default-features --features wasm

this will generate ./pkg directory with wasm file and js bindings. After that you can use this package in your browser application like so:

async function main() {
    const phase2 = await import("./pkg/phase2.js")
    let data = await fetch('params')
    data = await data.arrayBuffer()
    data = new Uint8Array(data)
    console.log('Source params', data)
    const result = phase2.contribute(data)
    console.log('Updated params', result)
    // upload updated params
}

main().catch(console.error)

Documentation

Security Warnings

This library does not make any guarantees about constant-time operations, memory access patterns, or resistance to side-channel attacks.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.