Skip to content

Commit

Permalink
Merge pull request #8 from tkey/cocoapods_podspec
Browse files Browse the repository at this point in the history
feat: podspec for cocoapods
  • Loading branch information
chaitanyapotti committed Apr 19, 2024
2 parents 2df9f63 + 9f88bd5 commit 7c2ccf1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
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" => "hello@tor.us" }
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

0 comments on commit 7c2ccf1

Please sign in to comment.