File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
neptune-core/src/state/wallet Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,7 @@ impl One for BField32Bytes {
386386impl 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 {
426427impl 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 }
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ use tasm_lib::twenty_first::math::b_field_element::BFieldElement;
77use tasm_lib:: twenty_first:: math:: bfield_codec:: BFieldCodec ;
88use tasm_lib:: twenty_first:: tip5:: digest:: Digest ;
99use zeroize:: ZeroizeOnDrop ;
10-
10+ use crate :: prelude:: twenty_first:: xfe;
11+ use crate :: prelude:: triton_vm:: prelude:: XFieldElement ;
1112use super :: address:: ReceivingAddress ;
1213use crate :: protocol:: consensus:: block:: block_height:: BlockHeight ;
1314use crate :: state:: wallet:: address:: generation_address;
1415use crate :: state:: wallet:: address:: symmetric_key;
15- use crate :: state:: wallet:: secret_key_material:: BField32Bytes ;
1616use 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)
You can’t perform that action at this time.
0 commit comments