cargo fmt and fix clippy
This commit is contained in:
parent
30871784e4
commit
7a568482de
|
@ -263,13 +263,8 @@ impl TransferProof {
|
|||
);
|
||||
|
||||
// generate ciphertext validity proof
|
||||
let validity_proof = ValidityProof::new(
|
||||
&dest_pk,
|
||||
&auditor_pk,
|
||||
transfer_amt,
|
||||
openings,
|
||||
&mut transcript,
|
||||
);
|
||||
let validity_proof =
|
||||
ValidityProof::new(dest_pk, auditor_pk, transfer_amt, openings, &mut transcript);
|
||||
|
||||
// generate the range proof
|
||||
let range_proof = RangeProof::create(
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#[cfg(not(target_arch = "bpf"))]
|
||||
use {
|
||||
crate::encryption::{
|
||||
elgamal::{ElGamalKeypair, ElGamalPubkey},
|
||||
elgamal::ElGamalPubkey,
|
||||
pedersen::{PedersenBase, PedersenCommitment, PedersenDecryptHandle, PedersenOpening},
|
||||
},
|
||||
curve25519_dalek::traits::MultiscalarMul,
|
||||
|
@ -171,7 +171,7 @@ impl ValidityProof {
|
|||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::encryption::pedersen::Pedersen;
|
||||
use crate::encryption::{elgamal::ElGamalKeypair, pedersen::Pedersen};
|
||||
|
||||
#[test]
|
||||
fn test_validity_proof() {
|
||||
|
|
|
@ -69,7 +69,6 @@ pub struct ValidityProof(pub [u8; 160]);
|
|||
unsafe impl Zeroable for ValidityProof {}
|
||||
unsafe impl Pod for ValidityProof {}
|
||||
|
||||
|
||||
/// Serialization of range proofs for 64-bit numbers (for `Withdraw` instruction)
|
||||
#[derive(Clone, Copy)]
|
||||
#[repr(transparent)]
|
||||
|
|
Loading…
Reference in New Issue