incorporate validity proof into transfer proof
This commit is contained in:
@@ -6,11 +6,11 @@ use {
|
||||
|
||||
pub trait TranscriptProtocol {
|
||||
/// Append a domain separator for an `n`-bit rangeproof for ElGamalKeypair
|
||||
/// ciphertext using a decryption key // TODO: remove?
|
||||
/// ciphertext using a decryption key
|
||||
fn rangeproof_from_key_domain_sep(&mut self, n: u64);
|
||||
|
||||
/// Append a domain separator for an `n`-bit rangeproof for ElGamalKeypair
|
||||
/// ciphertext using an opening // TODO: remove?
|
||||
/// ciphertext using an opening
|
||||
fn rangeproof_from_opening_domain_sep(&mut self, n: u64);
|
||||
|
||||
/// Append a domain separator for a length-`n` inner product proof.
|
||||
@@ -19,6 +19,9 @@ pub trait TranscriptProtocol {
|
||||
/// Append a domain separator for close account proof.
|
||||
fn close_account_proof_domain_sep(&mut self);
|
||||
|
||||
/// Append a domain separator for update account public key proof.
|
||||
fn update_account_public_key_proof_domain_sep(&mut self);
|
||||
|
||||
/// Append a domain separator for withdraw proof.
|
||||
fn withdraw_proof_domain_sep(&mut self);
|
||||
|
||||
@@ -60,15 +63,19 @@ impl TranscriptProtocol for Transcript {
|
||||
}
|
||||
|
||||
fn close_account_proof_domain_sep(&mut self) {
|
||||
self.append_message(b"dom_sep", b"CloseAccountProof");
|
||||
self.append_message(b"dom-sep", b"CloseAccountProof");
|
||||
}
|
||||
|
||||
fn update_account_public_key_proof_domain_sep(&mut self) {
|
||||
self.append_message(b"dom-sep", b"UpdateAccountPublicKeyProof");
|
||||
}
|
||||
|
||||
fn withdraw_proof_domain_sep(&mut self) {
|
||||
self.append_message(b"dom_sep", b"WithdrawProof");
|
||||
self.append_message(b"dom-sep", b"WithdrawProof");
|
||||
}
|
||||
|
||||
fn transfer_proof_domain_sep(&mut self) {
|
||||
self.append_message(b"dom_sep", b"TransferProof");
|
||||
self.append_message(b"dom-sep", b"TransferProof");
|
||||
}
|
||||
|
||||
fn append_scalar(&mut self, label: &'static [u8], scalar: &Scalar) {
|
||||
|
||||
Reference in New Issue
Block a user