forked from filecoin-project/sapling-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify seal function to be callable from C (zcash#99)
* modify seal function to be callable from cgo - can't pass arrays by value in C; need to pass pointer to first cell - seal accepts pointer to result-array so that callers manage memory instead of Rust * line reorg * rename symbol * apply cargo fmt * add comments for seal parameters * create lib crate-type for Rust tests * dylib seems to work with cgo * kick off ci
- Loading branch information
Showing
2 changed files
with
117 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ name = "proofs" | |
version = "0.1.0" | ||
authors = ["dignifiedquire <[email protected]>"] | ||
|
||
[lib] | ||
crate-type = ["rlib", "dylib"] | ||
|
||
[dependencies] | ||
sapling-crypto = { git = "https://github.com/zcash-hackworks/sapling-crypto", branch = "master" } | ||
rand = "0.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters