Skip to content

This example generates a random 32-byte secret key and a random 32-byte value, and then creates a Pedersen commitment to the value using the secp256k1 library. It then generates a Bulletproof for the commitment using the secp256k1_bulletproofs library, and verifies the proof using the same library.

License

Notifications You must be signed in to change notification settings

guillaumelauzier/Bulletproofs-libsecp256k1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Bulletproofs-libsecp256k1

This example generates a random 32-byte secret key and a random 32-byte value, and then creates a Pedersen commitment to the value using the secp256k1 library. It then generates a Bulletproof for the commitment using the secp256k1_bulletproofs library, and verifies the proof using the same library.

Note that this is a simplified example and does not include error checking or handling of all possible edge cases. It is also important to use secure random number generation when generating secret keys and other sensitive data.

About

This example generates a random 32-byte secret key and a random 32-byte value, and then creates a Pedersen commitment to the value using the secp256k1 library. It then generates a Bulletproof for the commitment using the secp256k1_bulletproofs library, and verifies the proof using the same library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages