OSDN Git Service

fix bug and add address for contract
[bytom/vapor.git] / equity / equity / LockWith2of3Keys
diff --git a/equity/equity/LockWith2of3Keys b/equity/equity/LockWith2of3Keys
new file mode 100644 (file)
index 0000000..4a3da51
--- /dev/null
@@ -0,0 +1,7 @@
+contract LockWith3Keys(pubkey1, pubkey2, pubkey3: PublicKey) locks amount of asset {
+  clause unlockWith2Sigs(sig1, sig2: Signature) {
+    verify checkTxMultiSig([pubkey1, pubkey2, pubkey3], [sig1, sig2])
+    unlock amount of asset
+  }
+}
+