Coder Social home page Coder Social logo

multi-hop-locks's Introduction

multi-hop-locks

Library for ECDSA based construction for Anonymous Multi-Hop Locks (https://eprint.iacr.org/2018/472.pdf).

What is AMHL?

"A novel cryptographic primitive that serves as a cornerstone for the design of secure and privacy-preserving payment channel networks"

Usage:

Use Cargo test to try it. Currently tests exists for :

  1. Setup and verify setup
  2. Setup + Lock
  3. Setup + Lock + Release alt text

Protocol:

alt text

Development Process:

We use several methods for communication: you can open an issue, reach out or join the KZR Telegram for discussions on code and research. Changes are accepted in the form of pull requests

multi-hop-locks's People

Contributors

jeremyfelder avatar omershlo avatar trepca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

trepca betsy-p

multi-hop-locks's Issues

multi-hop-locks: error[E0308]: mismatched types

While running $cargo test, I am getting the bellow errors, What are the issues here?
mismatched types
$ cargo test
Updating git repository https://github.com/KZen-networks/rust-gmp
Updating git repository https://github.com/KZen-networks/curv
Updating crates.io index
Updating git repository https://github.com/KZen-networks/multi-party-ecdsa
Updating git repository https://github.com/KZen-networks/rust-paillier
Updating git repository https://github.com/KZen-networks/zk-paillier
Updating git repository https://github.com/KZen-networks/centipede
Updating git repository https://github.com/KZen-networks/rust-paillier
Updating git repository https://github.com/KZen-networks/zk-paillier
Updating git repository https://github.com/KZen-networks/bulletproofs
Compiling multi-hop-locks v0.1.0 (/home/nslab/Documents/multi-hop-locks)
error[E0308]: mismatched types
--> src/tests.rs:74:17
|
74 | &ek,
| ^^^ expected struct paillier::EncryptionKey, found a different struct paillier::EncryptionKey
|
= note: expected type &paillier::EncryptionKey (struct paillier::EncryptionKey)
found type &paillier::EncryptionKey (struct paillier::EncryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:74:17
|
74 | &ek,
| ^^^

error[E0308]: mismatched types
--> src/tests.rs:75:17
|
75 | &dk,
| ^^^ expected struct paillier::DecryptionKey, found a different struct paillier::DecryptionKey
|
= note: expected type &paillier::DecryptionKey (struct paillier::DecryptionKey)
found type &paillier::DecryptionKey (struct paillier::DecryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:75:17
|
75 | &dk,
| ^^^

error[E0308]: mismatched types
--> src/tests.rs:159:13
|
159 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct paillier::EncryptionKey, found a different struct paillier::EncryptionKey
|
= note: expected type &paillier::EncryptionKey (struct paillier::EncryptionKey)
found type &paillier::EncryptionKey (struct paillier::EncryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:159:13
|
159 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> src/tests.rs:220:17
|
220 | &ek,
| ^^^ expected struct paillier::EncryptionKey, found a different struct paillier::EncryptionKey
|
= note: expected type &paillier::EncryptionKey (struct paillier::EncryptionKey)
found type &paillier::EncryptionKey (struct paillier::EncryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:220:17
|
220 | &ek,
| ^^^

error[E0308]: mismatched types
--> src/tests.rs:221:17
|
221 | &dk,
| ^^^ expected struct paillier::DecryptionKey, found a different struct paillier::DecryptionKey
|
= note: expected type &paillier::DecryptionKey (struct paillier::DecryptionKey)
found type &paillier::DecryptionKey (struct paillier::DecryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:221:17
|
221 | &dk,
| ^^^

error[E0308]: mismatched types
--> src/tests.rs:281:13
|
281 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct paillier::EncryptionKey, found a different struct paillier::EncryptionKey
|
= note: expected type &paillier::EncryptionKey (struct paillier::EncryptionKey)
found type &paillier::EncryptionKey (struct paillier::EncryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:281:13
|
281 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> src/tests.rs:328:13
|
328 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct paillier::EncryptionKey, found a different struct paillier::EncryptionKey
|
= note: expected type &paillier::EncryptionKey (struct paillier::EncryptionKey)
found type &paillier::EncryptionKey (struct paillier::EncryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:328:13
|
328 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> src/tests.rs:375:13
|
375 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct paillier::EncryptionKey, found a different struct paillier::EncryptionKey
|
= note: expected type &paillier::EncryptionKey (struct paillier::EncryptionKey)
found type &paillier::EncryptionKey (struct paillier::EncryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:375:13
|
375 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> src/tests.rs:422:13
|
422 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct paillier::EncryptionKey, found a different struct paillier::EncryptionKey
|
= note: expected type &paillier::EncryptionKey (struct paillier::EncryptionKey)
found type &paillier::EncryptionKey (struct paillier::EncryptionKey)
note: Perhaps two different versions of crate paillier are being used?
--> src/tests.rs:422:13
|
422 | &party_two_paillier.ek,
| ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 9 previous errors

For more information about this error, try rustc --explain E0308.
error: could not compile multi-hop-locks.

To learn more, run the command again with --verbose.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.