We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9b5df0 commit 4d24f4aCopy full SHA for 4d24f4a
circuits/atomic_swap.circom
@@ -0,0 +1,16 @@
1
+pragma circom 2.1.1;
2
+
3
+include "./ecdsa/ecdsa.circom";
4
+include "../node_modules/circomlib/circuits/poseidon.circom";
5
6
+template AtomicSwap() {
7
+ signal input secret[4];
8
9
+ signal output pubkey[2][4];
10
+ signal output secretHash;
11
12
+ pubkey <== ECDSAPrivToPub(64, 4)(secret);
13
+ secretHash <== Poseidon(4)(secret);
14
+}
15
16
+component main = AtomicSwap();
circuits/main.circom
0 commit comments