Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create commit from pubkey function #64

Merged
merged 2 commits into from
Mar 25, 2020

Conversation

yeastplume
Copy link
Member

Following on from mimblewimble/secp256k1-zkp#54, adds the ffi function, from_pubkey Commit constructor and related test.

@yeastplume yeastplume requested a review from jaspervdm March 25, 2020 14:25
let blinding = SecretKey::new(&secp, &mut thread_rng());
let commit = secp.commit(1, blinding).unwrap();
let pubkey = commit.to_pubkey(&secp);
let p = match pubkey {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could replace it with a .expect() but not very important, so 👍

@yeastplume yeastplume merged commit 69adbfc into mimblewimble:master Mar 25, 2020
suemto pushed a commit to mwcproject/rust-secp256k1-zkp that referenced this pull request Oct 28, 2020
vekamo added a commit to mwcproject/rust-secp256k1-zkp that referenced this pull request Sep 9, 2023
* Update CI (mimblewimble#65)

* attempt to fix windows build

* remove all explicit rust installation steps

* update mac os image

* Implement PartialOrd and Ord (mimblewimble#62)

* Implement PartialOrd and Ord

* Fix spaces

* Add create commit from pubkey function (mimblewimble#64)

* Update azure to use latest, fix warnings (mimblewimble#66)

* update azure to use latest, fix warnings

* add toolchain commands

* Fix Win CI

* Go back to previous command

* The Fix

Co-authored-by: Quentin Le Sceller <[email protected]>

* version bump for release (mimblewimble#67)

* fix from_pubkey function

* Revert "fix from_pubkey function"

This reverts commit a5f08e3.

* Update Grin Website

* Commit to pubkey fix (mimblewimble#68)

* commit_to_pubkey fix

* version bump for next release

* retrigger build

* Fix compiler warning (mimblewimble#70)

* Fuzz tests for various components

* Fix error formatting (mimblewimble#75)

* Update version to v0.7.10

* Update zeroize dependency (mimblewimble#78)

* Bump version to v0.7.11 (mimblewimble#79)

* update dependency seck256k1 branch to latest master with aggsig subtraction function

* Aggsig signature subtraction function, rust side (mimblewimble#81)

* addition of ffi+api functions for aggsig partial sig subtract

* updated aggsig lib function to return more results based on underlying function

* update submodule to latest master

* clean up test result check

* bump version number

* update depend/secp256k1-zkp

* update version

---------

Co-authored-by: Yeastplume <[email protected]>
Co-authored-by: jaspervdm <[email protected]>
Co-authored-by: Quentin Le Sceller <[email protected]>
Co-authored-by: Nym Seddon <[email protected]>
Co-authored-by: GeneFerneau <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants