Skip to content

Distributed key generation for Erlang (using pairing based cryptography)

License

Notifications You must be signed in to change notification settings

helium/erlang-dkg

Repository files navigation

erlang-dkg

CI codecov

An implementation of the protocol described in "Distributed Key Generation in the Wild" (see references) for Erlang (using pairing based cryptography). This library will allow some number of Erlang processes (where N >= 4) to generate one PBC (see here for more details) key in a manner tolerant of Byzantine faults.

Some limitations, where this code does not implement the full protocol:

  • It produces only one key, as it does not support round changes.
  • It does not implement the pessimistic phase (leader change). Recovery (or rather retry) is handled outside of the protocol.
  • It does not implement the recovery phase. Since there is no concept of rounds, a user must start a new dkg if the process fails or times out.

This code is not run directly, but as a relcast behavior. To see an example of how this code is run and used, see here.

Build

$ make

Test

$ make test

References

About

Distributed key generation for Erlang (using pairing based cryptography)

Resources

License

Stars

Watchers

Forks

Packages

No packages published