Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Trukhin authored and Nikolai Trukhin committed Mar 16, 2024
1 parent 6c59773 commit 881e780
Show file tree
Hide file tree
Showing 7 changed files with 404 additions and 37 deletions.
14 changes: 0 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
/target

/include

/Example.xcframework/ios-arm64/Example.framework/*
/Example.xcframework/ios-arm64/Example.framework/Headers/*
!/Example.xcframework/ios-arm64/Example.framework/Info.plist
!/Example.xcframework/ios-arm64/Example.framework/Modules
!/Example.xcframework/ios-arm64/Example.framework/Headers
!/Example.xcframework/ios-arm64/Example.framework/Headers/exampleFFI.h

/Example.xcframework/ios-arm64_x86_64-simulator/Example.framework/*
/Example.xcframework/ios-arm64_x86_64-simulator/Example.framework/Headers/*
!/Example.xcframework/ios-arm64_x86_64-simulator/Example.framework/Info.plist
!/Example.xcframework/ios-arm64_x86_64-simulator/Example.framework/Modules
!/Example.xcframework/ios-arm64_x86_64-simulator/Example.framework/Headers
!/Example.xcframework/ios-arm64_x86_64-simulator/Example.framework/Headers/exampleFFI.h
170 changes: 166 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ crate-type = ["lib", "cdylib", "staticlib"]
uniffi = { version = "0.26.1", features = ["build"] }

[dependencies]
dusk-poseidon = { version = "0.36.0", features = ["cipher"] }
dusk-jubjub = "0.14.0"
uniffi = { version = "0.26.1", features = ["cli"] }
poseidon-ark = { git = "https://github.com/arnaucube/poseidon-ark" }
babyjubjub-ark = { git = "https://github.com/arnaucube/babyjubjub-ark", features = ["aarch64"], rev = "dbf79c5" }
sha3 = "0.10.8"
ark-ff = "0.4.2"
ark-bn254 = "0.4.0"


[[bin]]
name = "uniffi-bindgen"
path = "uniffi-bindgen.rs"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "exampleFFI.h"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "exampleFFI.h"
5 changes: 4 additions & 1 deletion src/example.udl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
namespace example {
bytes hash_embedding(bytes embedding);
bytes encrypt(bytes prk, bytes pbk, bytes message);
bytes decrypt(bytes prk, bytes pbk, bytes enc);
bytes ext_sign_pubkey(bytes to_sign, bytes prk);
bytes ext_generate_pubkey(bytes signed_bytes);
};
Loading

0 comments on commit 881e780

Please sign in to comment.