Skip to content

Commit

Permalink
⬆️ scarb 2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Sep 18, 2024
1 parent 5b1b60c commit b966d92
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scarb 2.7.0
scarb 2.8.2
4 changes: 2 additions & 2 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2023_11"

[dependencies]
starknet = "2.7.0"
starknet = "2.8.2"

[dev-dependencies]
cairo_test = "2.7.0"
cairo_test = "2.8.2"
7 changes: 1 addition & 6 deletions src/core.cairo
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
// Core lib imports
use core::traits::Into;
use core::option::OptionTrait;
use core::starknet::SyscallResultTrait;
use core::sha256::compute_sha256_byte_array;

// Starknet imports
use starknet::{secp256k1::{Secp256k1Point}, secp256_trait::{Secp256Trait, Secp256PointTrait}};

// Internal imports
use bdhke::utils::{
U256IntoByteArray, U32IntoByteArray, slice_to_byte_array, hash_to_u256, byte_array_to_hex,
};
use bdhke::utils::{U256IntoByteArray, U32IntoByteArray, slice_to_byte_array, hash_to_u256,};

fn domain_separator() -> ByteArray {
"Secp256k1_HashToCurve_Cashu_"
Expand Down Expand Up @@ -71,10 +68,8 @@ pub fn hash_to_curve(message: ByteArray) -> Option<Secp256k1Point> {
#[cfg(test)]
mod tests {
// Core lib imports
use core::traits::Into;
use core::option::OptionTrait;
use core::starknet::SyscallResultTrait;
use core::sha256::compute_sha256_byte_array;

// Starknet imports
use starknet::{secp256k1::{Secp256k1Point}, secp256_trait::{Secp256Trait, Secp256PointTrait}};
Expand Down
7 changes: 2 additions & 5 deletions src/main.cairo
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use starknet::{
secp256k1::{Secp256k1Point},
secp256_trait::{
Secp256Trait, Secp256PointTrait, recover_public_key, is_signature_entry_valid, Signature,
},
SyscallResult, SyscallResultTrait
secp256k1::{Secp256k1Point}, secp256_trait::{Secp256Trait, Secp256PointTrait,},
SyscallResultTrait
};

use bdhke::core::step1_alice;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use core::traits::{Into, TryInto};
use core::fmt::{Display, Formatter, Error};
use core::fmt::Formatter;
use core::to_byte_array::AppendFormattedToByteArray;

/// Converts an array of 8 u32 values into a u256 value.
Expand Down

0 comments on commit b966d92

Please sign in to comment.