Skip to content

Commit

Permalink
Merge pull request #1226 from dusk-network/new-genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia authored Dec 30, 2023
2 parents cbd5c50 + 306b92e commit 9acc757
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 142 deletions.
1 change: 1 addition & 0 deletions rusk-recovery/assets/dusk.address
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
68UiBbsJ4PumJyVpS91VbffhKgq9p6QaLC8QCqzgLiKBX71mvCswmeViTHDsBJ3RMwsVcxBSkZ3HbjHAL9qCNxh
1 change: 0 additions & 1 deletion rusk-recovery/assets/dusk.cpk

This file was deleted.

Binary file removed rusk-recovery/assets/dusk.psk
Binary file not shown.
1 change: 1 addition & 0 deletions rusk-recovery/assets/faucet.address
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4LULsDGr3CkeZcVDSfM9UtNr1Xa9DF7HqCEnfnbsDH2HXkkoCfdQWKpEwKwPF6enrSVoTTfb2bGCB8v2VyHHFoUJ
1 change: 0 additions & 1 deletion rusk-recovery/assets/faucet.psk

This file was deleted.

267 changes: 133 additions & 134 deletions rusk-recovery/config/testnet.toml

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions rusk-recovery/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::Theme;

use dusk_bls12_381::BlsScalar;
use dusk_bls12_381_sign::PublicKey as BlsPublicKey;
use dusk_bytes::Serializable;
use dusk_bytes::DeserializableSlice;
use dusk_jubjub::JubJubScalar;
use dusk_pki::PublicSpendKey;
use ff::Field;
Expand Down Expand Up @@ -40,13 +40,15 @@ pub const DEFAULT_SNAPSHOT: &str =
const GENESIS_BLOCK_HEIGHT: u64 = 0;

pub static DUSK_KEY: Lazy<PublicSpendKey> = Lazy::new(|| {
let bytes = include_bytes!("../assets/dusk.psk");
PublicSpendKey::from_bytes(bytes).expect("faucet should have a valid key")
let addr = include_str!("../assets/dusk.address");
let bytes = bs58::decode(addr).into_vec().expect("valid hex");
PublicSpendKey::from_slice(&bytes).expect("dusk should have a valid key")
});

pub static FAUCET_KEY: Lazy<PublicSpendKey> = Lazy::new(|| {
let bytes = include_bytes!("../assets/faucet.psk");
PublicSpendKey::from_bytes(bytes).expect("faucet should have a valid key")
let addr = include_str!("../assets/faucet.address");
let bytes = bs58::decode(addr).into_vec().expect("valid hex");
PublicSpendKey::from_slice(&bytes).expect("faucet should have a valid key")
});

fn deploy_governance_contract(
Expand Down
3 changes: 3 additions & 0 deletions rusk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ node = { version = "0.1", path = "../node" }
dusk-consensus = { version = "0.1.1-rc.3", path = "../consensus" }
node-data = { version = "0.1", path = "../node-data" }

## Bump to 0.8.7 requires rust 1.71.0 due to `build_hasher_simple_hash_one` feature stabilization
ahash = "=0.8.6"

## GraphQL deps
async-graphql = "5.0"

Expand Down
2 changes: 1 addition & 1 deletion rusk/src/assets/dusk.cpk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
�ND<ngxCq���S��H�c^!�&�^��v'��Ѕxb�^���t��Նm��-#�`�?�κ6����V� �|�P���E:�M�}��a=(v
j�<$m��U]@����$s!ԕ��3ꠅ�EZH�� ��Y�'먎�+i!�/6�Y�^�,�2^'�Gs{�x�Rh8�~hڀEY�^t������

0 comments on commit 9acc757

Please sign in to comment.