Skip to content

raphaelrrcoelho/commitment-scheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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] <msg>
python commitment.py [verify] <com> <key> <msg>

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages