Utilizes machine learning algorithms to maintain a stable exchange rate of $314.159 for Pi Coin.
103 |
104 |
105 |
106 |
Seamless Integration
107 |
Integrates with the Pi Network to automatically create and distribute Pi Coin as a stable store of value.
108 |
109 |
110 |
111 |
Advanced Econometric Models
112 |
Employs advanced econometric models to mitigate price volatility and ensure a reliable medium of exchange.
113 |
114 |
115 |
118 |
119 |
120 |
--------------------------------------------------------------------------------
/payment_systems/payment_gateway.py:
--------------------------------------------------------------------------------
1 | import hashlib
2 | import ecdsa
3 | from ecdsa.util import sigdecode_der
4 | import binascii
5 | from cryptography.hazmat.primitives import serialization
6 | from cryptography.hazmat.primitives.asymmetric import padding
7 | from cryptography.hazmat.primitives import hashes
8 | from cryptography.hazmat.backends import default_backend
9 |
10 | class PaymentGateway:
11 | def __init__(self, pi_coin):
12 | self.pi_coin = pi_coin
13 | self.payment_requests = {}
14 |
15 | def create_payment_request(self, sender, recipient, amount):
16 | payment_request = {
17 | "sender": sender,
18 | "recipient": recipient,
19 | "amount": amount,
20 | "timestamp": int(time.time())
21 | }
22 | self.payment_requests[payment_request["timestamp"]] = payment_request
23 | return payment_request
24 |
25 | def process_payment(self, payment_request, private_key):
26 | transaction = self.pi_coin.create_transaction(payment_request["sender"], payment_request["recipient"], payment_request["amount"])
27 | signature = self.sign_transaction(transaction, private_key)
28 | self.pi_coin.add_transaction(transaction)
29 | self.pi_coin.mine_block("PiCoin Miner")
30 | return signature
31 |
32 | def sign_transaction(self, transaction, private_key):
33 | transaction_hash = hashlib.sha256(str(transaction).encode()).hexdigest()
34 | private_key_pem = private_key.to_pem()
35 | private_key_obj = serialization.load_pem_private_key(private_key_pem, password=None, backend=default_backend())
36 | signature = private_key_obj.sign(
37 | transaction_hash.encode(),
38 | padding.PSS(
39 | mgf=padding.MGF1(algorithm=hashes.SHA256()),
40 | salt_length=padding.PSS.MAX_LENGTH
41 | ),
42 | hashes.SHA256()
43 | )
44 | return signature
45 |
46 | def verify_payment(self, payment_request, signature, public_key):
47 | transaction = self.pi_coin.create_transaction(payment_request["sender"], payment_request["recipient"], payment_request["amount"])
48 | transaction_hash = hashlib.sha256(str(transaction).encode()).hexdigest()
49 | public_key_pem = public_key.to_pem()
50 | public_key_obj = serialization.load_pem_public_key(public_key_pem, backend=default_backend())
51 | try:
52 | public_key_obj.verify(
53 | signature,
54 | transaction_hash.encode(),
55 | padding.PSS(
56 | mgf=padding.MGF1(algorithm=hashes.SHA256()),
57 | salt_length=padding.PSS.MAX_LENGTH
58 | ),
59 | hashes.SHA256()
60 | )
61 | return True
62 | except:
63 | return False
64 |
65 | class PaymentProcessor:
66 | def __init__(self, payment_gateway):
67 | self.payment_gateway = payment_gateway
68 |
69 | def process_payment_request(self, payment_request, private_key):
70 | payment_request_signature = self.payment_gateway.process_payment(payment_request, private_key)
71 | return payment_request_signature
72 |
73 | def verify_payment_request(self, payment_request, signature, public_key):
74 | return self.payment_gateway.verify_payment(payment_request, signature, public_key)
75 |
76 | class Merchant:
77 | def __init__(self, payment_processor, public_key):
78 | self.payment_processor = payment_processor
79 | self.public_key = public_key
80 |
81 | def receive_payment(self, payment_request, signature):
82 | if self.payment_processor.verify_payment_request(payment_request, signature, self.public_key):
83 | print("Payment received successfully!")
84 | else:
85 | print("Payment verification failed!")
86 |
87 | class Customer:
88 | def __init__(self, payment_processor, private_key):
89 | self.payment_processor = payment_processor
90 | self.private_key = private_key
91 |
92 | def make_payment(self, payment_request):
93 | payment_request_signature = self.payment_processor.process_payment_request(payment_request, self.private_key)
94 | return payment_request_signature
95 |
--------------------------------------------------------------------------------
/wallet/wallet_app.py:
--------------------------------------------------------------------------------
1 | import os
2 | import json
3 | from cryptography.hazmat.primitives import serialization
4 | from cryptography.hazmat.primitives.asymmetric import rsa, ec
5 | from cryptography.hazmat.primitives import hashes
6 | from cryptography.hazmat.backends import default_backend
7 | from wallet.wallet_core import WalletCore
8 | from wallet.secure_multiparty_computation import SecureMultipartyComputation
9 | from wallet.homomorphic_encryption import HomomorphicEncryption
10 | from wallet.zero_knowledge_proofs import ZeroKnowledgeProofs
11 |
12 | class WalletApp:
13 | def __init__(self, wallet_core):
14 | self.wallet_core = wallet_core
15 | self.secure_multiparty_computation = SecureMultipartyComputation()
16 | self.homomorphic_encryption = HomomorphicEncryption()
17 | self.zero_knowledge_proofs = ZeroKnowledgeProofs()
18 |
19 | def create_wallet(self, password):
20 | private_key = rsa.generate_private_key(
21 | public_exponent=65537,
22 | key_size=2048,
23 | backend=default_backend()
24 | )
25 | private_key_pem = private_key.private_bytes(
26 | encoding=serialization.Encoding.PEM,
27 | format=serialization.PrivateFormat.PKCS8,
28 | encryption_algorithm=serialization.BestAvailableEncryption(password.encode())
29 | )
30 | public_key_pem = private_key.public_key().public_bytes(
31 | encoding=serialization.Encoding.OpenSSH,
32 | format=serialization.PublicFormat.OpenSSH
33 | )
34 | wallet_data = {
35 | "private_key": private_key_pem.decode(),
36 | "public_key": public_key_pem.decode()
37 | }
38 | with open("wallet.json", "w") as f:
39 | json.dump(wallet_data, f)
40 | return wallet_data
41 |
42 | def load_wallet(self, password):
43 | with open("wallet.json", "r") as f:
44 | wallet_data = json.load(f)
45 | private_key_pem = wallet_data["private_key"].encode()
46 | private_key = serialization.load_pem_private_key(private_key_pem, password.encode(), backend=default_backend())
47 | public_key_pem = wallet_data["public_key"].encode()
48 | public_key = serialization.load_ssh_public_key(public_key_pem, backend=default_backend())
49 | return private_key, public_key
50 |
51 | def get_balance(self, public_key):
52 | # Use homomorphic encryption to encrypt the balance query
53 | encrypted_balance_query = self.homomorphic_encryption.encrypt(public_key, "get_balance")
54 | # Use secure multi-party computation to compute the balance
55 | balance = self.secure_multiparty_computation.compute_balance(encrypted_balance_query)
56 | # Use zero-knowledge proofs to verify the balance
57 | proof = self.zero_knowledge_proofs.generate_proof(balance)
58 | return proof
59 |
60 | def send_transaction(self, private_key, recipient, amount):
61 | # Use secure multi-party computation to compute the transaction
62 | transaction = self.secure_multiparty_computation.compute_transaction(private_key, recipient, amount)
63 | # Use homomorphic encryption to encrypt the transaction
64 | encrypted_transaction = self.homomorphic_encryption.encrypt(transaction)
65 | # Use zero-knowledge proofs to verify the transaction
66 | proof = self.zero_knowledge_proofs.generate_proof(encrypted_transaction)
67 | return proof
68 |
69 | def receive_transaction(self, public_key, transaction):
70 | # Use homomorphic encryption to decrypt the transaction
71 | decrypted_transaction = self.homomorphic_encryption.decrypt(public_key, transaction)
72 | # Use secure multi-party computation to verify the transaction
73 | verified_transaction = self.secure_multiparty_computation.verify_transaction(decrypted_transaction)
74 | # Use zero-knowledge proofs to verify the transaction
75 | proof = self.zero_knowledge_proofs.generate_proof(verified_transaction)
76 | return proof
77 |
78 | def add_allah_features(self):
79 | # Add Allah features, such as prayer reminders and Quranic verses
80 | print("Allah features added!")
81 |
82 | def main():
83 | wallet_core = WalletCore()
84 | wallet_app = WalletApp(wallet_core)
85 | while True:
86 | print("1. Create Wallet")
87 | print("2. Load Wallet")
88 | print("3. Get Balance")
89 | print("4. Send Transaction")
90 | print("5. Receive Transaction")
91 | print("6. Add Allah Features")
92 | print("7. Exit")
93 | choice = input("Enter your choice: ")
94 | if choice == "1":
95 | password = input("Enter password: ")
96 | wallet_app.create_wallet(password)
97 | elif choice == "2":
98 | password = input("Enter password: ")
99 | private_key, public_key = wallet_app.load_wallet(password)
100 | print("Private Key:", private_key)
101 | print("Public Key:", public_key)
102 | elif choice == "3":
103 | public_key = input("Enter public key: ")
104 | balance = wallet_app.get_balance(public_key)
105 | print("Balance:", balance)
106 | elif choice == "4":
107 | private_key = input("Enter private key: ")
108 | recipient = input("Enter recipient: ")
109 | amount = int(input("Enter amount: "))
110 | transaction = wallet_app.send_transaction(private_key, recipient, amount)
111 | print("Transaction:", transaction)
112 | elif choice == "5":
113 | public_key = input("Enter public key: ")
114 | transaction = input("Enter transaction: ")
115 | verified_transaction = wallet_app.receive_transaction(public_key, transaction)
116 | print("Verified Transaction:", verified_transaction)
117 | elif choice == "6":
118 | wallet_app.add_allah_features()
119 | elif choice == "7":
120 | break
121 | else:
122 | print("Invalid choice. Please try again.")
123 |
124 | if __name__ == "__main__":
125 | main()
126 |
--------------------------------------------------------------------------------
/src/ai-engine/models/lstm.py:
--------------------------------------------------------------------------------
1 | import pandas as pd
2 | import numpy as np
3 | from sklearn.preprocessing import MinMaxScaler
4 | from keras.models import Sequential
5 | from keras.layers import LSTM, Dense
6 | from sklearn.metrics import mean_squared_error
7 | from sklearn.model_selection import TimeSeriesSplit
8 | from hyperopt import hp, fmin, tpe, Trials
9 | import matplotlib.pyplot as plt
10 |
11 | class LSTMModel:
12 | def __init__(self, data, n_features, n_steps, n_epochs, batch_size, optimizer):
13 | self.data = data
14 | self.n_features = n_features
15 | self.n_steps = n_steps
16 | self.n_epochs = n_epochs
17 | self.batch_size = batch_size
18 | self.optimizer = optimizer
19 | self.model = None
20 | self.model_fit = None
21 | self.params = None
22 |
23 | def fit(self):
24 | self.model = Sequential()
25 | self.model.add(LSTM(50, input_shape=(self.n_steps, self.n_features)))
26 | self.model.add(Dense(1))
27 | self.model.compile(loss='mean_squared_error', optimizer=self.optimizer)
28 | self.model_fit = self.model.fit(self.data, epochs=self.n_epochs, batch_size=self.batch_size, verbose=0)
29 |
30 | def _auto_n_features(self):
31 | def objective(params):
32 | n_features = params["n_features"]
33 | model = LSTMModel(self.data[:, :n_features], n_features, self.n_steps, self.n_epochs, self.batch_size, self.optimizer)
34 | model.fit()
35 | return model.model_fit.history['loss'][-1]
36 |
37 | space = {
38 | "n_features": hp.quniform("n_features", 1, self.data.shape[1], 1)
39 | }
40 | trials = Trials()
41 | best = fmin(objective, space, algo=tpe.suggest, max_evals=10, trials=trials)
42 | return int(best["n_features"])
43 |
44 | def _auto_n_steps(self):
45 | def objective(params):
46 | n_steps = params["n_steps"]
47 | model = LSTMModel(self.data[:, :, :self.n_features], self.n_features, n_steps, self.n_epochs, self.batch_size, self.optimizer)
48 | model.fit()
49 | return model.model_fit.history['loss'][-1]
50 |
51 | space = {
52 | "n_steps": hp.quniform("n_steps", 1, self.data.shape[1], 1)
53 | }
54 | trials = Trials()
55 | best = fmin(objective, space, algo=tpe.suggest, max_evals=10, trials=trials)
56 | return int(best["n_steps"])
57 |
58 | def _auto_n_epochs(self):
59 | def objective(params):
60 | n_epochs = params["n_epochs"]
61 | model = LSTMModel(self.data[:, :, :self.n_features], self.n_features, self.n_steps, n_epochs, self.batch_size, self.optimizer)
62 | model.fit()
63 | return model.model_fit.history['loss'][-1]
64 |
65 | space = {
66 | "n_epochs": hp.quniform("n_epochs", 1, 100, 1)
67 | }
68 | trials = Trials()
69 | best = fmin(objective, space, algo=tpe.suggest, max_evals=10, trials=trials)
70 | return int(best["n_epochs"])
71 |
72 | def _auto_batch_size(self):
73 | def objective(params):
74 | batch_size = params["batch_size"]
75 | model = LSTMModel(self.data[:, :, :self.n_features], self.n_features, self.n_steps, self.n_epochs, batch_size, self.optimizer)
76 | model.fit()
77 | return model.model_fit.history['loss'][-1]
78 |
79 | space = {
80 | "batch_size": hp.quniform("batch_size", 1, 128, 1)
81 | }
82 | trials = Trials()
83 | best = fmin(objective, space, algo=tpe.suggest, max_evals=10, trials=trials)
84 | return int(best["batch_size"])
85 |
86 | def _auto_optimizer(self):
87 | def objective(params):
88 | optimizer = params["optimizer"]
89 | model = LSTMModel(self.data[:, :, :self.n_features], self.n_features, self.n_steps, self.n_epochs, self.batch_size, optimizer)
90 | model.fit()
91 | return model.model_fit.history['loss'][-1]
92 |
93 | space = {
94 | "optimizer": hp.choice("optimizer", ['adam', 'rmsprop', 'sgd'])
95 | }
96 | trials = Trials()
97 | best = fmin(objective, space, algo=tpe.suggest, max_evals=10, trials=trials)
98 | return best["optimizer"]
99 |
100 | def forecast(self, steps):
101 | forecast = self.model.predict(steps)
102 | return forecast
103 |
104 | def evaluate(self, test_data):
105 | predictions = self.model.predict(test_data)
106 | mse = mean_squared_error(test_data, predictions)
107 | rmse = np.sqrt(mse)
108 | return rmse
109 |
110 | def plot_forecast(self, steps):
111 | forecast = self.forecast(steps)
112 | plt.plot(forecast)
113 | plt.title("Forecast")
114 | plt.xlabel("Time")
115 | plt.ylabel("Value")
116 | plt.show()
117 |
118 | def walk_forward_validation(self, test_size=0.2):
119 | tscv = TimeSeriesSplit(n_splits=5)
120 | scores = []
121 | for train_index, test_index in tscv.split(self.data):
122 | X_train, X_test = self.data[train_index], self.data[test_index]
123 | self.fit()
124 | score = self.evaluate(X_test)
125 | scores.append(score)
126 | return scores
127 |
128 | def hyperparameter_tuning(self):
129 | def objective(params):
130 | self.n_features = params["n_features"]
131 | self.n_steps = params["n_steps"]
132 | self.n_epochs = params["n_epochs"]
133 | self.batch_size = params["batch_size"]
134 | self.optimizer = params["optimizer"]
135 | self.fit()
136 | score = self.walk_forward_validation()
137 | return score
138 |
139 | space = {
140 | "n_features": hp.quniform("n_features", 1, self.data.shape[1], 1),
141 | "n_steps": hp.quniform("n_steps", 1, self.data.shape[1], 1),
142 | "n_epochs": hp.quniform("n_epochs", 1, 100, 1),
143 | "batch_size": hp.quniform("batch_size", 1, 128, 1),
144 | "optimizer": hp.choice("optimizer", ['adam', 'rmsprop', 'sgd'])
145 | }
146 | trials = Trials()
147 | best = fmin(objective, space, algo=tpe.suggest, max_evals=50, trials=trials)
148 | return best
149 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------