Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
use split_at
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 committed Jun 7, 2024
1 parent f250b36 commit 14f1438
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compat/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ pub fn check_note_ownership(args: i32, len: i32) -> i64 {
// function arguments else we might get undefined behavior
let args = unsafe { core::slice::from_raw_parts(args as _, len as _) };

let seed = &args[..64];
let leaves: &[u8] = &args[64..];
let (seed, leaves) = args.split_at(64);

let seed = match seed.try_into() {
Ok(s) => s,
Expand Down

0 comments on commit 14f1438

Please sign in to comment.