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

feat: podspec for cocoapods #8

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright (c) 2020 Torus Labs Private Limited (https://tor.us)

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 2 additions & 2 deletions Sources/curve_secp256k1/include/curve_secp256k1.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ char * curve_secp256k1_get_version(int *error_code);
void curve_secp256k1_string_free(char *ptr);

// PrivateKey
struct SecretKey * curve_secp256k1_private_key_generate();
struct SecretKey * curve_secp256k1_private_key_generate(void);
struct SecretKey * curve_secp256k1_private_key_parse(char *input, int *error_code);
void curve_secp256k1_private_key_tweak_add_assign(struct SecretKey *key, struct SecretKey *tweak, int *error_code);
void curve_secp256k1_private_key_tweak_mul_assign(struct SecretKey *key, struct SecretKey *tweak, int *error_code);
Expand All @@ -41,7 +41,7 @@ struct PublicKey * curve_secp256k1_public_key_combine(struct PublicKeyCollection
void curve_secp256k1_public_key_free(struct PublicKey *key);

// PublicKeyCollection
struct PublicKeyCollection * curve_secp256k1_public_key_collection_new();
struct PublicKeyCollection * curve_secp256k1_public_key_collection_new(void);
void curve_secp256k1_public_key_collection_add(struct PublicKeyCollection *collection, struct PublicKey *key, int *error_code);
void curve_secp256k1_public_key_collection_free(struct PublicKeyCollection *collection);

Expand Down
14 changes: 14 additions & 0 deletions curvelib.swift.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Pod::Spec.new do |spec|
spec.name = "curvelib.swift"
spec.version = "1.0.1"
spec.ios.deployment_target = '13.0'
spec.summary = "Elliptic Curve operations"
spec.homepage = "https://github.com/tkey/curvelib.swift"
spec.license = { :type => 'BSD', :file => 'License.md' }
spec.swift_version = "5.3"
spec.author = { "Torus Labs" => "[email protected]" }
spec.source = { :git => "https://github.com/tkey/curvelib.swift.git", :tag => spec.version }
spec.source_files = "Sources/**/*.{swift,h,c}"
spec.vendored_frameworks = "Sources/curve_secp256k1/curve_secp256k1.xcframework"
spec.module_name = "curveSecp256k1"
end
Loading