An open API service indexing awesome lists of open source software.

https://github.com/raphaelrrcoelho/commitment-scheme

In cryptography, a commitment scheme allows one to commit to a chosen value (or chosen statement) while keeping it hidden to others, with the ability to reveal the committed value later. Commitment schemes are designed so that a party cannot change the value or statement after they have committed to it: that is, commitment schemes are binding.
https://github.com/raphaelrrcoelho/commitment-scheme

cryptography hashing python3

Last synced: 14 days ago
JSON representation

In cryptography, a commitment scheme allows one to commit to a chosen value (or chosen statement) while keeping it hidden to others, with the ability to reveal the committed value later. Commitment schemes are designed so that a party cannot change the value or statement after they have committed to it: that is, commitment schemes are binding.

Awesome Lists containing this project

README

          

Commitment Scheme API

```
commit(msg) -> (com, key)
veryfy(com, key, msg) -> boolean
```

Commitment Scheme API Implementation

```
commit(msg) -> (Hash(key | msg), key) // key = randon 256-bit value
veryfy(com, key, msg) -> com == Hash(key | msg)
```
Usage

```
python commitment.py [commit]
python commitment.py [verify]
```