1. Introduction
The use of unmanned aerial vehicles (UAVs), has gained significant attraction in recent years due to their flexibility and mobility enabling them to participate in hazardous environments where human interaction is impossible. The advances in this domain offer solutions for a variety of tasks and operations including search and rescue missions [
1], surveillance operations [
2], and emergency response situations [
3]. Apart from these, UAVs find applications in numerous domains such as agriculture [
4], the supply chain [
5], or even acting as relays to enhance network connectivity [
6]. Despite the attempts that have been made to secure communication in the Internet-of-Drones (IoD) environments, these devices still lack robust technology that safeguards these aspects. Drones are prone to attacks including DoS, spoofing, or even authenticity attacks, and the communication protocols that are widely used such as the Micro Air Vehicle Link (MAVLink) protocol are still vulnerable [
7].
To address some of the security attacks that affect drones and set questions on the operations’ success, researchers have focused on securing the existing protocols [
8], or proposing new, more secure schemes [
9]. Additionally, an increasing number of studies focus on applying solutions such as blockchains [
10] to ensure a reliable, trusted, and secure environment in which drones can operate. Blockchains can offer automation in decision-making and support, bringing solutions to problems regarding air congestion, generating flight paths, and handling emergency situations, especially nowadays where the increased number of UAVs affects all these, and additionally requires resilient solutions.
Despite the promise and innovation that blockchains bring to the security of unmanned aerial vehicles (UAVs), several intricate privacy issues remain unresolved [
11]. One of the foremost challenges in modern UAV systems is ensuring that the communication between a drone and a ground control station (GCS) is secure and trustworthy. It is essential for the GCS to accurately identify and authenticate the drone it is communicating with. This authentication is critical because, without it, malicious drones could transmit false and misleading information, potentially compromising the entire mission. The risk of such deception underlines the necessity for robust authentication mechanisms, which are pivotal in maintaining the security and reliability of UAV operations.
Moreover, various UAV applications demand that entities, whether the GCS or the UAV, verify specific conditions such as location without compromising sensitive information. For instance, in military missions, disclosing the UAV’s exact coordinates could jeopardize the mission and endanger personnel. In these high-stakes scenarios, the ability to prove location without revealing classified information is crucial for the mission’s success and the safety of involved entities. Similarly, in commercial contexts, while concealing a drone’s location might be impractical, exposing this information could reveal strategic business insights to competitors, leading to significant operational security risks. Therefore, addressing privacy and security concerns is vital for the effective and secure deployment of UAV systems in both military and commercial settings. Ensuring the protection of sensitive data, verifying authenticity, and maintaining communication integrity are fundamental to the successful use of UAV technology [
12].
To address the aforementioned privacy concerns, we propose a novel scheme that leverages zk-SNARK [
13] (Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge), a non-interactive, zero-knowledge proof algorithm, for authentication and proof of location. This approach allows the UAV to generate proof of its authenticity and communication with a specific GCS, enabling a secure and decentralized authentication process without compromising the overall system’s security [
14]. Furthermore, this technique allows UAVs to verify their presence within an operational area without revealing their exact coordinates [
15]. By combining zero-knowledge proof with blockchain technology, a tamper-proof and resistant-to-outside-attacks architecture that enables UAVs and operators to exchange information in a private manner can be achieved. The necessary circuits are developed and tested using the Zokrates tool [
16], and the smart contracts are deployed and evaluated on the Ethereum Sepolia testnet [
17]. The outcome is a complete set of resources, including the source code, testing files, deployment script, and configuration file, designed to guide developers with software development knowledge but no prior experience in smart contracts.
This work’s structure is as follows:
Section 2 briefly presents works related to this area.
Section 3 is a thorough examination of the pillars of blockchain technology and zero-knowledge proof schemes.
Section 4 is an in-depth review of the proposed architecture, and the tools used to implement it. In
Section 5, the results of the proposed scheme and its functionality are presented. Finally, in
Section 6, a discussion of the proposed architecture is provided, along with an examination of its limitations and suggestions for future research to enhance this work.
2. Related Work
The creation of a secure and trusted environment in the realm of unmanned vehicles, especially UAVs, has gained increased popularity nowadays, thus more and more researchers propose various schemes and frameworks, leveraging blockchain to achieve a solution to this problem.
In [
18], the UTM-Chain, a lightweight blockchain-based security solution utilizing Hyperledger Fabric, is designed to address security concerns and provide secure and unalterable traffic data exchanges between UAVs and ground control stations. The authors in [
19] try to enhance the security of 5G wireless networks by leveraging blockchain-enabled unmanned aerial vehicles (UAVs). They aim to address the dynamic user demands, irregular data and service requests in smart city scenarios while ensuring reliable and secure service delivery. The work proposed in [
20] addresses the limitations of current drone-based systems utilized in Search and Rescue (SAR) missions. To overcome these challenges and enhance SAR quality of service (QoS), the proposed solution integrates blockchain and artificial intelligence at the edge into an Internet-of-Drones (IoD) system architecture.
To face the security challenges posed in multi-drone collaboration scenarios, in case Byzantine UAVs are present (a serious threat to consensus achievement), the authors in [
21] proposed a blockchain-based framework to ensure secure communications. In [
22], smart contracts are proposed to enhance communication in an intelligent UAV swarm and automate the process of formation selection based on the mission’s nature. A blockchain-based IoT platform for autonomous drone operation management is proposed in [
23]. The paper presents findings on Drone-Assisted Wireless Communications for 5G and beyond, showcasing the potential of blockchain in facilitating drone operation management.
The authors in [
24] propose a blockchain approach for road traffic monitoring in smart cities utilizing UAVs, addressing congestion challenges by leveraging IoD for comprehensive traffic monitoring. In [
25], a novel collaborative approach named B-Drone, integrating Hyperledger Fabric and metaheuristic-enabled genetic algorithms for fog node management is introduced. This work addresses the challenges of privacy, security, and preservation in fog-enabled drone-based data management and optimization. B-Drone ensures integrity, transparency, and security in the processing, scheduling, and management of drone data, leading to improved system robustness and efficiency.
A secure and lightweight blockchain-based authentication scheme for UAVs and RSUs is proposed in [
26]. The proposed work is evaluated through both informal and formal methods, including Burrows–Abadi–Needham (BAN) logic, the AVISPA simulation tool, and the real-or-random (RoR) model. In [
27], a blockchain-based resource trading mechanism (BRTM) and a double auction-based resource trading algorithm (DARA) for multi-UAV edge computing systems is introduced. The proposed approach integrates blockchain technology with double auction theory to enhance the security and fairness of resource exchanges. The interactions between user equipment and unmanned aerial vehicles (UAVs) are modeled as a two-stage Stackelberg game, where a pricing-based incentive strategy is developed. This strategy promotes active involvement from both UEs and UAVs and aims to maximize their combined utilities. The effectiveness of this method is demonstrated through security evaluations and numerical results, showing its superiority over other benchmark approaches.
A lightweight blockchain for UAV authentication and authorization that integrates non-interactive zero-knowledge proof (NIZKP) with a bilinear map is introduced in [
28]. This scheme is tested through four different approaches. The first approach ensures user identity unlinkability, the second adds malleability attack resistance with unlinkability, the third ensures sender trackability by the receiver, and the fourth allows a UAV to delegate transaction tracking to GCS without GCS claiming authority, all supported by security proofs for Signature Unforgeability and Unlinkability in Ciphertext (UN-C). A blockchain-based UAV location authentication scheme that uses a distance bounding protocol to establish location proof and ensure UAV position authenticity is proposed in [
29]. This framework employs anonymous certificates and zero-knowledge proof for privacy and has been analyzed for security, with evaluations demonstrating its efficiency and feasibility.
Recent advancements in blockchain and zero-knowledge-proof technologies have opened new avenues for enhancing the security and privacy of unmanned aerial vehicle (UAV) systems. An interesting approach for enhancing privacy in identity management in public blockchains is proposed in [
30]. The concept of identity management can be extended to UAVs, ensuring that proof of UAV authenticity can be established without compromising security. Additionally, in [
31] Hawk, a blockchain model incorporating cryptographic and privacy-preserving smart contracts, demonstrating how zk-SNARKs can enhance the security and privacy of autonomous systems is proposed. These frameworks highlight the potential of zk-SNARKs in creating tamper-proof and resilient architectures for UAV operations, addressing key challenges such as Byzantine UAVs that try to prove their authenticity or provide false information regarding their position.
While numerous authentication schemes for UAVs exist, the proposed zk-SNARK-based approach addresses critical gaps in current methodologies, particularly in balancing security with privacy. To the best of our knowledge, most of the proposed authentication methods often rely on either symmetric or asymmetric cryptography, which, while secure, may not adequately protect sensitive information such as a UAV’s precise location. Additionally, these methods can be vulnerable to various attacks, especially when deployed in decentralized environments like public blockchains, where privacy is paramount.
The core innovation of our approach lies in leveraging zk-SNARKs to allow UAVs to prove their authenticity or demonstrate specific facts (like their location) without revealing any underlying data. This ensures that even in a public blockchain setting, where transactions and interactions are transparent, sensitive information remains confidential. This capability is particularly crucial in scenarios where revealing a UAV’s location could lead to security breaches, such as in military or strategic commercial operations.
4. Proposed Scheme
In order to mitigate the risk of a malicious drone connecting with the ground control station (GCS) and transferring false data, we propose the following scheme for privacy-preserved operations in UAV systems.
Firstly, there are four main participants in such a system: the UAV, the ground control station (GCS), the user who interacts with the UAV through the GCS, and the smart contract (SC) that automates the verification process on-chain (blockchain). The trusted GCS develops and deploys the SC on the Ethereum blockchain. The SC is designed to include the verification process code for the authentication and proof of location of the UAV, as it is produced by the Zokrates tool. A high-level overview of the proposed architecture is illustrated in
Figure 3.
The process begins when the UAV sends a communication request to the GCS. In response, the GCS issues a challenge to the UAV, which involves specific input data that the UAV must use to generate proof of its authenticity and location. This challenge-response mechanism ensures that the UAV is actively engaged in the verification process.
Next, the UAV uses the Zokrates tool to compile the circuit required for generating zk-SNARK (Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge). This circuit includes the proving key and verification key, which are essential for the cryptographic operations involved. The UAV inputs the required data, known as the witness, into the compiled circuit to generate proof. This proof is a cryptographic guarantee that the UAV’s location and identity are valid, without revealing the actual sensitive data.
Once the proof is generated, it is sent to the verification smart contract (SC) on the blockchain. The smart contract, which has been pre-deployed by the GCS, includes the necessary logic to verify the proof. This involves using the verification key to check the validity of the proof provided by the UAV. If the proof is valid, the smart contract confirms the UAV’s authentication and location, ensuring that only legitimate UAVs can interact with the GCS and transmit data.
The verification SC imports the other two SCs: the authentication SC and the location SC. The authentication SC is for the on-chain verification of the authenticity of the UAV, and at the same time keeps a list of the already authenticated UAVs, while the location SC handles the verification of the UAV’s geographical location. These contracts utilize the verification logic from the verification SC as was generated by the Zokrates tool.
By leveraging the blockchain for on-chain verification, the proposed scheme ensures that the UAV authentication process is transparent, tamper-proof, and resistant to external attacks. This architecture not only enhances the security and reliability of UAV operations but also preserves the privacy of sensitive information. The use of zk-SNARKs ensures that the UAV can prove its identity and location without disclosing actual data, thereby protecting the privacy of the UAV’s operations and the user’s interactions with the system.
4.1. Authentication
The authentication process for the UAVs can be described in the following steps.
- (i)
Let
be an elliptic curve group defined by the equation
, over the finite field
, where
. The UAV generates the private key
as a random number in
. The corresponding public key is calculated using the generator
g of the elliptic curve group
:
. The algorithm that is used for the key generation process is based on the BN-128 (Barreto–Naehrig) elliptic curve [
50].
- (ii)
The UAV stores its generated public key in the blockchain as a transaction. The GCS verifies this transaction and stores the in its database, ensuring that only trusted UAVs can participate.
- (iii)
When a UAV requests a connection to communicate with the GCS, the GCS generates a challenge c demanding the UAV to prove that it possesses the corresponding secret key based on the registered public . The challenge then is sent to the UAV.
- (iv)
The UAV generates a proof
for the statement based on the pseudocode in Algorithm 1. The circuit is compiled and the witness is calculated based on the UAV’s input. The proof is then generated based on this witness and the drone’s secret key and is stored in the blockchain along with the verification key (verifier.sol):
. The Zokrates process for generating the proof is presented in more detail in
Figure 3.
Algorithm 1 Zokrates circuit pseudocode for UAV authentication |
- 1:
function UAVAuthentication(, ) → bool - 2:
Initialize: generator point g - 3:
public key - 4:
bool valid - 5:
return valid - 6:
end function
|
- (v)
The proof verification for the UAV authenticity happens on-chain through the verification smart contract (SC). If the proof is valid, , then the UAV is authenticated and the list with authenticated drones is updated to include the last UAV that proved the challenge. The SC used for the UAV authentication is illustrated by Algorithm 2.
Algorithm 2 Smart contract for UAV authentication |
- 1:
Import: verifier.sol - 2:
Verifier verifier - 3:
mapping(address → bool) authUAVs - 4:
function verProof() → bool - 5:
bool valid verifier.verifyProof() - 6:
if valid then - 7:
authUAVs[]← 1 - 8:
end if - 9:
return valid - 10:
end function
|
4.2. Proof of Location
After the drone has been authenticated, it can prove that it has already been in a specific area without revealing its exact coordinates. The drone retrieves its coordinates from the GPS. Then, it generates a proof that its coordinates lie between the predefined boundaries using the Zokrates circuit provided by Algorithm 3. Finally, the proof is submitted to the blockchain as in the authentication case. The verification happens on-chain through the SC. A pre-authenticated drone can now prove that is in a specific location without revealing its coordinates. If the proof is valid and the GCS verifies it, it can ensure that the UAV operates inside the specified area.
Algorithm 3 Zokrates circuit pseudocode for the UAV operation area |
- 1:
Input: x, y, z - 2:
Input: , , , , , - 3:
bool InX - 4:
bool InY - 5:
bool InZ - 6:
bool valid← (InX and InY and InZ) - 7:
return valid
| ▹ UAV’s coordinates (private) ▹ Bounding box coordinates (public) |
The following function presented in Algorithm 4 is part of the SC and is used to verify the location proof that was submitted by the UAV on the blockchain. This functionality could prove invaluable in scenarios such as confidential military missions or commercial drone operations where revealing their exact location is not permissible.
Here,
a,
b, and
c are the proof elements used in the construction of zk-SNARK for Groth16 [
50]; this is the key part of the proof so that both its integrity and zero-knowledge property can hold. More precisely, commitment element
a is a combination of the secret parameter
, the value of polynomial in secret point
s and a randomization factor, while
b is built similarly using a different secret parameter
and another randomization factor element. Finally,
c is a more complex element since it is calculated from a combination of mid-polynomial evaluations of these polynomials to ensure the entire proof’s consistency. A pairing equation that utilizes these elements is used by the verifier to confirm the proof’s validity without revealing any information about the underlying witness.
Algorithm 4 Pseudocode for the proveLocation function |
- 1:
function proveLocation(a, b, c, ) - 2:
Require: authUAVs[msg.sender] is true - 3:
if authUAVs[msg.sender] == 0 then - 4:
Revert with error “UAV not authenticated” - 5:
end if - 6:
valid - 7:
return valid - 8:
end function
| ▹ Ensure the UAV is authenticated ▹ Verify the zk-SNARK proof |
A UML diagram of the proposed scheme that describes in detail the process of UAV authentication and the location proof is illustrated in
Figure 4.
5. Evaluation
The proposed smart contracts were evaluated through the Sepolia test network, which is an Ethereum testnet that uses PoA as a consensus mechanism. The smart contracts were compiled and run through the remix IDE platform [
51]. The Zokrates version which upon the proposed cicruits were built and the proofs were generated was 0.8.4 in the Ubuntu 22.04 LTS operating system. As was mentioned in
Section 3.2, the proof system that was used for the zk-SNARK proof construction is the Groth16 system, which is a scheme based on pairing-friendly elliptic curves, such as the Barreto–Naehrig 128-bit curve (in our case). Groth16 was chosen because of its smaller proof sizes, constant-time verification, and better performance [
52,
53] over the Pinocchio, Marlin, GM17, and other schemes.
The first step is to compile the proposed circuit for the UAV authentication that it is illustrated in Algorithm 1. Zokrates compiles the .zok circuit file and generates an output file which includes the corresponding polynomials. After the successful compilation of the circuit, the setup step follows, where the polynomials from the output file are used to generate the proving (PK) and verification key (VK) pair, using the Groth16 scheme. Furthermore, the witness is computed based on the user’s private key, a public statement, and the polynomials that were generated during the compilation process of the circuit. This witness is then used along with the PK to generate the corresponding proof. The JSON representation of this proof is illustrated in
Figure 5.
In
Figure 5, the scheme labeled as “g16” refers to the Groth16 zk-SNARK system, while the curve mentioned, “bn128”, refers to the Barreto–Naehrig curve with a 128-bit security level. Furthermore, the
a,
b, and
c proof elements are presented in this JSON in hexadecimal format. In addition to these proof elements, the JSON file includes an “inputs” section, which lists the public inputs to the zk-SNARK. These inputs are crucial because they typically encode information about the computation or statement being proven; thus, they allow the verifier to confirm the proof’s validity without revealing the prover’s private data (the witness). The structure of the proof—being both compact and efficient—makes it ideal for submission to a smart contract for on-chain verification, especially in platforms like Ethereum, where minimizing gas costs is essential.
The proof generated by the UAV can be verified using the corresponding verification key (VK). This process involves submitting the proof to a smart contract designed to perform the verification on the Ethereum blockchain. If the verification is successful, the contract will return a “PASS” status, indicating that the proof is valid and that the UAV can be authenticated. If the verification fails, the contract will return a “FAILED” status, meaning that the proof is invalid and the UAV’s identity cannot be confirmed.
The smart contract responsible for this verification is referred to as verifier.sol.Once generated, this contract is deployed to the Ethereum blockchain. As illustrated in
Figure 6, the contract was deployed on the Sepolia testnet, with the contract address being 0x86c...97. The UAV or user deploying this contract is associated with the Ethereum address 0x5B3...C4.
The image captures key details of the deployment transaction. The status field shows that the transaction was successfully mined and executed, confirming that the smart contract was successfully deployed. The transaction hash 0xd411...3f879e and block hash 0xf905...d87a9ee are unique identifiers for this specific transaction and the block in which it was included, respectively.
Finally, deploying a smart contract on Ethereum involves a cost, measured in gas, which is the unit of computational work in Ethereum. The cost for deploying this verification smart contract was 82,858 gas units. The cost of gas fluctuates depending on network conditions, and in this case, an average gas price of GWEI 6.195 was assumed. Given this price, and knowing that GWEI 1 equals ETH , the total deployment cost of this smart contract is approximately ETH 0.0005095767. Based on the exchange rate at that time (June 2024), this amount corresponds to around USD 1.78.
Figure 7 illustrates the deployment of the main smart contract, which incorporates the verifier.sol contract, on the Ethereum Sepolia testnet. The main smart contract is presented by Algorithm 2. This contract facilitates the verification of zk-SNARK proofs, crucial for the authentication process.
The transaction was successfully mined, as indicated by the status, while the transaction hash 0x211...a2b uniquely identifies this deployment transaction. The block hash 0x87f...d0e and block number indicate the specific block in the blockchain where this transaction was recorded, and is uniquely identified by the transaction hash.
The contract was deployed to the Ethereum address 0x1d3...0b03, which now serves as the address where this smart contract resides on the Sepolia testnet. The deployment was initiated from the address 0x5b3...c4, the same address that was involved in deploying the initial verifier.sol contract.
In terms of cost, deploying this smart contract consumed a total of 1,006,299 gas units. Given an average gas price, this amount translates to approximately ETH 0.00618873885, which was worth about USD 21.96 at the time of deployment.
Figure 8 details the verification transaction for UAV authentication, highlighting the final step in the process where the UAV’s proof is submitted to the smart contract for verification. After the successful deployment of the smart contract, the UAV generates a zk-SNARK proof to authenticate itself to the ground control station (GCS). This proof is sent as part of a transaction invoking the verifyProof() function of the smart contract. The verifyProof() function is specifically designed to handle the verification of zk-SNARK proofs. In this context, it ensures that the UAV’s claims (such as its identity or the validity of certain conditions such as location) are correct without revealing any sensitive information.
The transaction shown in
Figure 8 was successfully executed, as indicated by the status. The transaction hash 0xcc6...de3e and block hash 0x8f6...83a9e uniquely identify this specific transaction within the blockchain, while the block number places it within the sequence of blockchain events.
The key focus here is on the gas used for the verification process. The transaction consumed 61,085 gas units, with a transaction cost of 53,117 gas units dedicated to the actual verification operation. This cost reflects the computational resources required to execute the zk-SNARK verification on the Ethereum network. At the time of the transaction, this amounted to ETH 0.000329059815, or approximately USD 1.16.
Figure 9 presents the interface of the smart contract used for UAV authentication. This interface is crucial for the GCS when verifying the identity and authenticity of a UAV. The interface requires the input of several parameters, a, b, and c, which are the proof elements generated by the zk-SNARK proof (
Figure 5), as well as the input values and public key of the UAV uavPubKey. The elements a, b, and c are the cryptographic components that encapsulate the proof, ensuring that the UAV’s claims can be verified without revealing any sensitive underlying information. The input field contains the public inputs that the verifier uses to confirm the proof’s validity, while the uavPubKey parameter is the public key associated with the UAV. This key helps to ensure that the proof is tied to a specific UAV, preventing impersonation or other forms of fraud.
Once the GCS inputs these values into the interface and initiates the transaction by clicking the “transact” button, the smart contract will execute the verifyProof() function. This function will process the provided proof against the stored verification key (VK) and determine whether the UAV’s proof is valid on-chain. If successful, the UAV’s authenticity is confirmed, and the GCS can securely interact with the UAV, confident in its identity.
This interface also highlights the flexibility of zk-SNARK-based authentication systems. For instance, the same interface structure can be adapted for other verification tasks, such as proving that a UAV is within a specific area without disclosing its exact location. In such cases, a slightly modified circuit—compiled (Algorithm 3) similarly to the authentication circuit using ZoKrates—can produce a proof that only requires the parameters a, b, c, and input. The public key uavPubKey may no longer be necessary if the UAV has already been authenticated, streamlining the process for subsequent verifications.
By utilizing this interface, the GCS can efficiently manage UAVs, verifying their identity or confirming their location with minimal overhead. The use of zk-SNARKs ensures that these verifications are both secure and privacy-preserving, making it possible to deploy UAVs in sensitive operations without compromising their confidentiality or security.
If the proof is valid, and the UAV is inside the bounds, then the output of the transaction is true, as illustrated in
Figure 10.
In the event that the UAV is not located within the designated area or if the proof of its location is found to be invalid, the system will return a false value.
It is important to note that for the verification process to be considered valid, the UAV must have been properly authenticated prior to generating the proof. This prerequisite ensures that only legitimate UAVs, which have already been authenticated, are capable of participating in the verification process, thereby maintaining the system’s security and integrity (
Figure 11).
The financial cost associated with conducting a transaction to verify whether the UAV is within the specified area or not is approximately 59,470 gas units. This amount of gas translates to roughly ETH 0.00036841665, which is approximately USD 1.3. These costs are significant, particularly in scenarios involving multiple UAVs or frequent verification requests, as they can add up quickly and impact the overall budget for UAV operations. The bar graph presented in
Figure 12 provides a visual summary of the costs in USD associated with deploying and interacting with the smart contracts that were presented before. This graph is crucial for understanding the financial implications of utilizing blockchain technology in zk-SNARK-based UAV operations, as it breaks down the various costs associated with different stages of smart contract deployment and interaction. The costs illustrated in this graph are vital for strategic planning and decision-making within organizations, considering the implementation of blockchain-based solutions for UAV authentication and area verification.
To provide a better understanding of the energy consumption, which is crucial in the cryptographic techniques that are applied in UAV operations, we benchmarked the power consumption on an isolated docker container that runs the Zokrated tool, in our Raspberry Pi. High power consumption could lead to high operational costs, especially under heavy computation. This could jeopardize UAV missions, especially in the military context. Therefore, it is important to measure the power consumption when developing and implementing cryptographic schemes, especially where blockchain is used in authentication and verification steps.
The graph in
Figure 13 shows the power usage of the CPU while performing elliptic curve operations, which are fundamental in the proof generation process of zk-SNARKs. The power consumption values in the graph vary over time due to variations in the CPU load levels associated with different stages of the zk-SNARK computation. These variations are a result of several factors specific to zk-SNARKs. The operations involved in constructing zk-SNARK proofs, such as arithmetic circuit evaluation and elliptic curve multiplications, vary in computational complexity, leading to corresponding fluctuations in power consumption. During the proof generation phase, more intensive computations occur, causing higher power usage, while the verifier exporting phase may consume less power.
Additionally, the graph in
Figure 14 demonstrates the CPU utilization over time while performing the same elliptic curve operations, which are integral to zk-SNARK proof generation. The fluctuations in CPU usage highlight the varying computational demands during different stages of the zk-SNARK operations.
This variability is due to the different complexities of the operations being performed. Certain phases of zk-SNARK generation require more computational resources, leading to spikes in CPU usage, while other phases may be less demanding. The red dashed line indicates the mean CPU usage during the benchmarking period, which is approximately 68.89%. Despite the peaks and troughs, the average CPU usage remains relatively high, reflecting the intensive nature of zk-SNARK computations.
6. Discussion
In our work, we propose a novel scheme that leverages the zk-SNARK protocol to enable UAVs to prove their authenticity and location. Using the Zokrates tool, we compiled the circuits and generated the proofs. Our results suggest that while this approach is power-intensive and thus better suited for drones with higher battery capacities, it holds significant promise. Additionally, we optimized the smart contracts to be as lightweight as possible to minimize gas fees. These contracts were evaluated on the Sepolia testnet. Our proposed solution is versatile, offering potential applications not only for authentication but also for geo-fencing and related use cases. By incorporating zk-SNARKs, UAVs can verify their adherence to defined geographical boundaries without disclosing their precise location data (stay within certain areas or avoid restricted zones).
To the best of our knowledge, the idea of using zero-knowledge proof protocols such as the zk-SNARKs that we used in this study for authentication and proof of locations has so far not been considered in the literature. The method explored in this paper is distinctive, particularly among existing published research, as evidenced by the lack of schemes demonstrating this capability. However, there are still some limitations that we should be aware of and that we further analyze below.
6.1. Security and Privacy Analysis
The approach proposed in this work offers solutions to several critical issues present in traditional systems by combining zk-SNARKs with blockchain technology, providing robust protection against a wide range of security threats while inheriting the benefits of both technologies.
One of the key benefits of zk-SNARKs is their ability to allow a UAV to demonstrate knowledge of specific information, such as identity or location, without revealing the information itself. This zero-knowledge property ensures that sensitive data remain confidential throughout the authentication and verification process. This approach not only preserves the confidentiality of sensitive data but also maintains the integrity of the information being processed. Even if communication between UAVs and the GCS is intercepted, the zk-SNARK proofs provide no exploitable information to the attacker, thereby securing critical data like the UAV’s operational parameters or mission details.
Additionally, the incorporation of blockchain technology enhances security by decentralizing the verification process. Traditional systems often rely on centralized servers for verification, creating single points of failure vulnerable to attacks. In contrast, blockchain distributes the verification process across multiple nodes in the network, reducing the risk of attacks targeting a single entity. This decentralized approach ensures that the system’s integrity does not depend on any one node or server.
Furthermore, the blockchain’s immutable ledger guarantees that once a zk-SNARK proof is verified, the record of that verification cannot be altered or tampered with. Every transaction, including proof verifications, is permanently recorded across all nodes, making it extremely difficult for any malicious actor to modify or falsify the records without detection. This tamper-resistant feature of the blockchain provides robust defense against attempts to alter verification results or compromise UAV authenticity.
The combination of zk-SNARKs and blockchain technology also effectively mitigates common attack vectors such as replay attacks and man-in-the-middle attacks. Each zk-SNARK proof is uniquely generated for a specific transaction and timestamp, ensuring that the proof cannot be reused by an attacker in a different context. The blockchain’s time-ordered, immutable structure further reinforces this protection by recording each verification transparently and permanently, ensuring that every action can be traced back to its origin. This approach makes it impossible for attackers to reuse or manipulate old proofs.
Moreover, the cryptographic robustness of zk-SNARKs, coupled with the decentralized nature of blockchain, guards against MITM attacks. Even if an attacker manages to intercept the communication, they cannot alter the zk-SNARK proof or inject fraudulent data without being detected by the blockchain’s consensus mechanism, which requires agreement across multiple nodes before any transaction is validated. This makes it extremely difficult for an attacker to compromise the system.
Ensuring the authenticity of UAVs and preventing impersonation is another critical aspect of the proposed scheme. By directly linking UAV identity to zk-SNARK proofs, the system guarantees that only legitimate UAVs can be authenticated. This cryptographic binding of identity to proof eliminates the possibility of impersonation, as the zk-SNARK proof can only be generated by a UAV with the corresponding private key.
The blockchain further strengthens this security by immutably recording each verification, ensuring that once a UAV is authenticated, its identity cannot be tampered with or falsified. The use of zk-SNARKs also means that the authentication process does not require revealing the UAV’s private information, which is crucial in sensitive operations, thereby ensuring that the authenticity of the UAV can be verified without compromising its operational security.
6.2. Challenges
Despite the promising potential of using blockchain technology and zk-SNARKs to enhance the security and privacy of UAV systems, several limitations need to be addressed. One major limitation is the computational overhead associated with generating and verifying zk-SNARK proofs. These cryptographic operations are computationally intensive, which can be a significant constraint for UAVs with limited processing capabilities and energy resources. As illustrated in
Figure 13, the mean value for the power consumption is approximately 58.7 W for a period of 60 s. This could be acceptable regarding the UAV mission. For instance, in a small quad-rotor drone, which usually has a 30 Wh battery, if we assume that each rotor demands approximately 30 W, the sensors and communication systems require 15 W, and the navigation systems require 5 W, then the total power consumption is approximately 198.6 W (including the zk-SNARK operations). Therefore, the total flight time is approximately 30 Wh/198.6 W ≈ 0.151 h ≈ 9.1 min. A flight time of 9.1 min is impractical for most applications.
However, things differentiate, in the case of larger UAVs with higher capabilities such as drones that are commonly used in military operations, or for commercial use. Such UAVs could have batteries of 500 Wh (or more) capacity [
54]. In that case, for a quad-rotor drone, if we assume that each rotor demands 100 W, and the rest of the technology demands 30 W in total, then the final power demand is approximately 488.6 W including the zk-SNARK operations. Therefore, the flight time can be estimated to be 500 Wh/488.6 W ≈ 1.023 h ≈ 61.4 min, which could be acceptable depending on the nature of the mission.
Another limitation to consider in the case of public blockchains is the cost of blockchain transactions. Based on the thorough analysis in
Section 5 for the transaction costs, it is evident that although blockchain provides a secure and tamper-proof platform for recording and verifying transactions, the associated costs can be prohibitive. Each transaction on a blockchain network, such as Ethereum, incurs a gas fee, which can accumulate rapidly in scenarios involving frequent transactions or multiple UAVs. The financial implications of these costs must be carefully considered as the cost of blockchain operations could hinder the widespread adoption of such solutions in resource-constrained environments. These costs are particularly relevant in the context of UAV operations, where maintaining a balance between security and operational efficiency is crucial.
Finally, the integration of zk-SNARKs and blockchain technology introduces challenges related to latency and scalability, which are critical in real-time UAV operations. The computational intensity involved in generating and verifying zk-SNARK proofs can lead to latency, which is particularly problematic in environments where decisions and actions need to be executed within milliseconds. This delay can significantly undermine the effectiveness of UAVs in mission-critical tasks, such as search and rescue or military operations, where swift responses are essential. Furthermore, as the number of UAVs increases, scalability concerns arise due to the growing volume of transactions that must be processed. While blockchain’s decentralized architecture helps distribute the computational load, the sheer scale of operations in large networks can result in congestion and delays, especially on public blockchains. These bottlenecks could slow down transaction times and increase costs, potentially compromising the system’s performance in large-scale deployments.
6.3. Future Work
Looking ahead, the integration of blockchain technology and zk-SNARKs into UAV systems presents numerous exciting possibilities for future research and development. One key area for future work is the optimization of zk-SNARK processes to reduce their computational overhead and make them more feasible for use in UAVs with limited processing capabilities. This could involve testing hardware acceleration methods (GPUs or FPGAs) specifically designed for cryptographic operations. Enhancing these aspects will be critical for enabling, in real-time UAV operations, secure communication and verification.
In addition to optimization efforts, rigorous security and privacy tests will be essential in validating the robustness of zk-SNARKs and blockchain integration. Future research should focus on developing comprehensive testing frameworks that assess the resilience of these technologies against various attack vectors, such as replay attacks, man-in-the-middle attacks, and potential side-channel attacks. By conducting extensive real-world tests, critical issues can be identified, allowing the system to be refined to meet the highest security standards for UAV applications.
Finally, another promising avenue for future research is the exploration of applying these techniques in the case of drone swarms. Situations where multiple UAVs need to prove their authenticity or locations simultaneously could be a challenging task. Since aggregating these proofs in real time can become complex, studies on recursive zk-SNARKs or aggregated proofs, which allow for combining multiple proofs into a compact form, could be a good research path that would help in reducing the computational and communication overhead in such networks. This swarm-based UAV case could also help in the understanding of scalability-related issues that arise. As the number of drones in a swarm increases, the system needs to handle a growing number of proofs efficiently. Again, verification techniques that include recursive zk-SNARKs or aggregated proofs could be explored here. This would allow the system to verify multiple zk-SNARK proofs simultaneously and resolve scalability-related issues to an extent.