mirror of https://github.com/zcash/halo2.git
commit
0b6bd66714
|
@ -322,7 +322,7 @@ impl Builder {
|
||||||
// Create the proof.
|
// Create the proof.
|
||||||
let instances: Vec<_> = actions
|
let instances: Vec<_> = actions
|
||||||
.iter()
|
.iter()
|
||||||
.map(|a| a.to_instance(flags, anchor.clone()))
|
.map(|a| a.to_instance(flags, anchor))
|
||||||
.collect();
|
.collect();
|
||||||
let proof = Proof::create(pk, &circuits, &instances)?;
|
let proof = Proof::create(pk, &circuits, &instances)?;
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ impl ExtractedNoteCommitment {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serialize the value commitment to its canonical byte representation.
|
/// Serialize the value commitment to its canonical byte representation.
|
||||||
pub fn to_bytes(&self) -> [u8; 32] {
|
pub fn to_bytes(self) -> [u8; 32] {
|
||||||
self.0.to_bytes()
|
self.0.to_bytes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -259,7 +259,7 @@ impl<T> From<&Action<T>> for CompactAction {
|
||||||
fn from(action: &Action<T>) -> Self {
|
fn from(action: &Action<T>) -> Self {
|
||||||
CompactAction {
|
CompactAction {
|
||||||
ephemeral_key: action.ephemeral_key(),
|
ephemeral_key: action.ephemeral_key(),
|
||||||
cmx: action.cmx().clone(),
|
cmx: *action.cmx(),
|
||||||
enc_ciphertext: action.encrypted_note().enc_ciphertext[..52]
|
enc_ciphertext: action.encrypted_note().enc_ciphertext[..52]
|
||||||
.try_into()
|
.try_into()
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
|
|
Loading…
Reference in New Issue