From 590d1940365edf0eb582cb20f8d53ab797440664 Mon Sep 17 00:00:00 2001 From: Howard Wu <9260812+howardwu@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:48:24 -0700 Subject: [PATCH] Add better loading for dev mode block --- Cargo.lock | 114 +++++++++++++++++++------------------- Cargo.toml | 2 +- cli/src/commands/start.rs | 24 +++++++- 3 files changed, 80 insertions(+), 60 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9c4197e948..c6a354ee0e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3338,7 +3338,7 @@ dependencies = [ [[package]] name = "snarkvm" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "anstyle", "anyhow", @@ -3367,7 +3367,7 @@ dependencies = [ [[package]] name = "snarkvm-algorithms" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "anyhow", @@ -3397,7 +3397,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-account", "snarkvm-circuit-algorithms", @@ -3411,7 +3411,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-account" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-network", @@ -3422,7 +3422,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-algorithms" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-types", "snarkvm-console-algorithms", @@ -3432,7 +3432,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-collections" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-types", @@ -3442,7 +3442,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-environment" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "indexmap 2.0.2", "itertools 0.11.0", @@ -3460,12 +3460,12 @@ dependencies = [ [[package]] name = "snarkvm-circuit-environment-witness" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" [[package]] name = "snarkvm-circuit-network" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-collections", @@ -3476,7 +3476,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-program" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "paste", "snarkvm-circuit-account", @@ -3491,7 +3491,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-address", @@ -3506,7 +3506,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-address" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -3519,7 +3519,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-boolean" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-environment", "snarkvm-console-types-boolean", @@ -3528,7 +3528,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-field" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -3538,7 +3538,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-group" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -3550,7 +3550,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-integers" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -3562,7 +3562,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-scalar" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -3573,7 +3573,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-string" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -3585,7 +3585,7 @@ dependencies = [ [[package]] name = "snarkvm-console" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-account", "snarkvm-console-algorithms", @@ -3598,7 +3598,7 @@ dependencies = [ [[package]] name = "snarkvm-console-account" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "bs58", "snarkvm-console-network", @@ -3609,7 +3609,7 @@ dependencies = [ [[package]] name = "snarkvm-console-algorithms" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "blake2s_simd", "smallvec", @@ -3622,7 +3622,7 @@ dependencies = [ [[package]] name = "snarkvm-console-collections" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "rayon", @@ -3633,7 +3633,7 @@ dependencies = [ [[package]] name = "snarkvm-console-network" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "anyhow", "indexmap 2.0.2", @@ -3656,7 +3656,7 @@ dependencies = [ [[package]] name = "snarkvm-console-network-environment" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "anyhow", "bech32", @@ -3674,7 +3674,7 @@ dependencies = [ [[package]] name = "snarkvm-console-program" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "enum_index", "enum_index_derive", @@ -3695,7 +3695,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-address", @@ -3710,7 +3710,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-address" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -3721,7 +3721,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-boolean" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-network-environment", ] @@ -3729,7 +3729,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-field" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -3739,7 +3739,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-group" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -3750,7 +3750,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-integers" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -3761,7 +3761,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-scalar" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -3772,7 +3772,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-string" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -3783,7 +3783,7 @@ dependencies = [ [[package]] name = "snarkvm-curves" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "rand", "rayon", @@ -3797,7 +3797,7 @@ dependencies = [ [[package]] name = "snarkvm-fields" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "anyhow", @@ -3815,7 +3815,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "anyhow", @@ -3840,7 +3840,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-authority" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "anyhow", "rand", @@ -3852,7 +3852,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-block" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "indexmap 2.0.2", "rayon", @@ -3870,7 +3870,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-coinbase" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "anyhow", @@ -3890,7 +3890,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-committee" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "anyhow", "indexmap 2.0.2", @@ -3906,7 +3906,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-ledger-narwhal-batch-certificate", "snarkvm-ledger-narwhal-batch-header", @@ -3919,7 +3919,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-batch-certificate" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "indexmap 2.0.2", "serde_json", @@ -3932,7 +3932,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-batch-header" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "indexmap 2.0.2", "serde_json", @@ -3944,7 +3944,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-data" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "bytes", "serde_json", @@ -3955,7 +3955,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-subdag" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "indexmap 2.0.2", "rayon", @@ -3968,7 +3968,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-transmission" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "bytes", "serde_json", @@ -3981,7 +3981,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-transmission-id" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "snarkvm-console", "snarkvm-ledger-coinbase", @@ -3990,7 +3990,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-query" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "async-trait", "reqwest", @@ -4003,7 +4003,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-store" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "anyhow", @@ -4028,7 +4028,7 @@ dependencies = [ [[package]] name = "snarkvm-ledger-test-helpers" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "once_cell", "snarkvm-circuit", @@ -4043,7 +4043,7 @@ dependencies = [ [[package]] name = "snarkvm-parameters" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "anyhow", @@ -4067,7 +4067,7 @@ dependencies = [ [[package]] name = "snarkvm-synthesizer" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "anyhow", @@ -4092,7 +4092,7 @@ dependencies = [ [[package]] name = "snarkvm-synthesizer-process" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "colored", @@ -4114,7 +4114,7 @@ dependencies = [ [[package]] name = "snarkvm-synthesizer-program" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "indexmap 2.0.2", "paste", @@ -4128,7 +4128,7 @@ dependencies = [ [[package]] name = "snarkvm-synthesizer-snark" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "bincode", "once_cell", @@ -4141,7 +4141,7 @@ dependencies = [ [[package]] name = "snarkvm-utilities" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "aleo-std", "anyhow", @@ -4162,7 +4162,7 @@ dependencies = [ [[package]] name = "snarkvm-utilities-derives" version = "0.15.4" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=9558c41#9558c411dc38d03d0a46c6d5b004d6f55788f1c0" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=d691cef#d691cefea1c39be7f9317113448e635b5f2fc669" dependencies = [ "proc-macro2", "quote 1.0.33", diff --git a/Cargo.toml b/Cargo.toml index a84e914085..1a9a3a3105 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ members = [ [workspace.dependencies.snarkvm] #path = "../snarkvm" git = "https://github.com/AleoHQ/snarkVM.git" -rev = "9558c41" +rev = "d691cef" #version = "=0.15.4" features = [ "circuit", "console", "rocks" ] diff --git a/cli/src/commands/start.rs b/cli/src/commands/start.rs index 9de382a8fb..7582633507 100644 --- a/cli/src/commands/start.rs +++ b/cli/src/commands/start.rs @@ -457,11 +457,31 @@ fn load_or_compute_genesis( rng: &mut ChaChaRng, ) -> Result> { // Construct the preimage. - let bytes = to_bytes_le![genesis_private_key, committee, public_balances.iter().collect::>()]?; + let mut preimage = Vec::new(); + + // Input the genesis private key, committee, and public balances. + preimage.extend(genesis_private_key.to_bytes_le()?); + preimage.extend(committee.to_bytes_le()?); + preimage.extend(&to_bytes_le![public_balances.iter().collect::>()]?); + + // Input the parameters. + preimage.extend(snarkvm::parameters::testnet3::BondPublicVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::UnbondPublicVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::UnbondDelegatorAsValidatorVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::ClaimUnbondPublicVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::SetValidatorStateVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::TransferPrivateVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::TransferPublicVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::TransferPrivateToPublicVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::TransferPublicToPrivateVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::FeePrivateVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::FeePublicVerifier::load_bytes()?); + preimage.extend(snarkvm::parameters::testnet3::InclusionVerifier::load_bytes()?); + // Initialize the hasher. let hasher = snarkvm::console::algorithms::BHP256::::setup("aleo.dev.block")?; // Compute the hash. - let hash = hasher.hash(&bytes.to_bits_le())?.to_string(); + let hash = hasher.hash(&preimage.to_bits_le())?.to_string(); // A closure to load the block. let load_block = |file_path| -> Result> {