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