Skip to content

Commit ff989a5

Browse files
committed
temp
1 parent 0163501 commit ff989a5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

neptune-core/src/state/wallet/secret_key_material.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ impl One for BField32Bytes {
386386
impl Mul<Self> for BField32Bytes {
387387
type Output = Self;
388388

389+
#[allow(clippy::many_single_char_names)]
389390
#[inline]
390391
fn mul(self, other: Self) -> Self {
391392
// (a x^3 + b x^2 + c x + d) * (e x^3 + f x^2 + g x + h) mod (x^4 + x + 1)
@@ -426,6 +427,7 @@ impl Sub<Self> for BField32Bytes {
426427
impl Div<Self> for BField32Bytes {
427428
type Output = Self;
428429

430+
#[allow(clippy::suspicious_arithmetic_impl)]
429431
fn div(self, rhs: Self) -> Self::Output {
430432
rhs.inverse() * self
431433
}

neptune-core/src/state/wallet/wallet_entropy.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ use tasm_lib::twenty_first::math::b_field_element::BFieldElement;
77
use tasm_lib::twenty_first::math::bfield_codec::BFieldCodec;
88
use tasm_lib::twenty_first::tip5::digest::Digest;
99
use zeroize::ZeroizeOnDrop;
10-
10+
use crate::prelude::twenty_first::xfe;
11+
use crate::prelude::triton_vm::prelude::XFieldElement;
1112
use super::address::ReceivingAddress;
1213
use crate::protocol::consensus::block::block_height::BlockHeight;
1314
use crate::state::wallet::address::generation_address;
1415
use crate::state::wallet::address::symmetric_key;
15-
use crate::state::wallet::secret_key_material::BField32Bytes;
1616
use crate::state::wallet::secret_key_material::SecretKeyMaterial;
1717

1818
/// The wallet's one source of randomness, from which all keys are derived.
@@ -33,11 +33,10 @@ impl WalletEntropy {
3333

3434
/// Create a `WalletEntropy` object with a fixed digest
3535
pub fn devnet_wallet() -> Self {
36-
let secret_seed = SecretKeyMaterial::V1(BField32Bytes::from([
36+
let secret_seed = SecretKeyMaterial::V0(xfe!([
3737
12063201067205522823_u64,
3838
1529663126377206632_u64,
3939
2090171368883726200_u64,
40-
2140191564833716103_u64,
4140
]));
4241

4342
Self::new(secret_seed)

0 commit comments

Comments
 (0)