Skip to content

Commit

Permalink
🚧 step1_alice
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Aug 5, 2024
1 parent 0f908f9 commit c4660fe
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/core.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ fn domain_separator() -> ByteArray {
/// # Returns
/// - The blinded message.
pub fn step1_alice(secret_msg: ByteArray, blinding_factor: Secp256k1Point) -> Secp256k1Point {
let maybe_Y = hash_to_curve(secret_msg);
if maybe_Y.is_none() {
panic!("Failed to hash to curve");
}
let B_ = Secp256Trait::<Secp256k1Point>::get_generator_point();
B_
let Y = hash_to_curve(secret_msg).expect('ERR_HASH_TO_CURVE');
Y.add(blinding_factor).unwrap()
}


Expand Down

0 comments on commit c4660fe

Please sign in to comment.