Przeglądaj źródła

tx: Draft ContractDeploy.

Luther Blissett 3 lat temu
rodzic
commit
94c6fe6027
1 zmienionych plików z 12 dodań i 0 usunięć
  1. 12 0
      src/tx/contract.rs

+ 12 - 0
src/tx/contract.rs

@@ -0,0 +1,12 @@
+pub struct ContractDeploy {
+    /// Public address of the contract, derived from the deploy key.
+    pub address: pallas::Base,
+    /// Public key of the contract, derived from the deploy key.
+    /// Used for signatures and authorizations, as well as deriving the
+    /// contract's address.
+    pub public: PublicKey,
+    /// Compiled smart contract wasm binary to be executed in the wasm vm runtime.
+    pub wasm_binary: Vec<u8>,
+    /// Compiled zkas circuits used by the smart contract provers and verifiers.
+    pub circuits: Vec<Vec<u8>>, // XXX: TODO: FIXME: The namespace of the zkas circuit should be in the bin
+}