Skip to content

Commit

Permalink
Merge pull request #2380 from dusk-network/rusk-wallet-moonlight-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 authored Sep 13, 2024
2 parents c02ab74 + ac2a03f commit 55c5e82
Show file tree
Hide file tree
Showing 12 changed files with 787 additions and 241 deletions.
13 changes: 13 additions & 0 deletions execution-core/src/transfer/phoenix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ impl AsRef<Note> for NoteLeaf {
}
}

/// Ord compares positions, not values, note values need to be decrypted first
impl cmp::Ord for NoteLeaf {
fn cmp(&self, other: &Self) -> cmp::Ordering {
self.note.pos().cmp(other.note.pos())
}
}

impl cmp::PartialOrd for NoteLeaf {
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
Some(self.cmp(other))
}
}

/// Label used for the ZK transcript initialization. Must be the same for prover
/// and verifier.
pub const TRANSCRIPT_LABEL: &[u8] = b"dusk-network";
Expand Down
Loading

0 comments on commit 55c5e82

Please sign in to comment.