zk-token-sdk: update errors in comments (#27602)

update errors in comments
This commit is contained in:
samkim-crypto 2022-09-15 17:11:14 +09:00 committed by GitHub
parent 6eeff08b15
commit bac6ebcd88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -42,10 +42,10 @@ lazy_static::lazy_static! {
#[derive(Clone, Copy, Pod, Zeroable)]
#[repr(C)]
pub struct TransferData {
/// Group encryption of the low 32 bits of the transfer amount
/// Group encryption of the low 16 bits of the transfer amount
pub ciphertext_lo: pod::TransferAmountEncryption,
/// Group encryption of the high 32 bits of the transfer amount
/// Group encryption of the high 48 bits of the transfer amount
pub ciphertext_hi: pod::TransferAmountEncryption,
/// The public encryption keys associated with the transfer: source, dest, and auditor

View File

@ -21,9 +21,9 @@ use {
/// This struct includes the cryptographic proof *and* the account data information needed to verify
/// the proof
///
/// - The pre-instruction should call WithdrawData::verify_proof(&self)
/// - The actual program should check that `current_ct` is consistent with what is
/// currently stored in the confidential token account TODO: update this statement
/// - The pre-instruction should call WithdrawWithheldTokensData::verify_proof(&self)
/// - The actual program should check that the ciphertext in this struct is consistent with what is
/// currently stored in the confidential token account
///
#[derive(Clone, Copy, Pod, Zeroable)]
#[repr(C)]

View File

@ -34,7 +34,7 @@ impl InnerProductProof {
/// protocols).
///
/// The lengths of the vectors must all be the same, and must all be
/// either 0 or a power of 2.
/// a power of 2.
#[allow(clippy::too_many_arguments)]
pub fn new(
Q: &RistrettoPoint,