Skip to content

Orchard backward compatibility#1

Closed
alexeykoren wants to merge 5 commits intozsa1from
orchard-backward-compatibility
Closed

Orchard backward compatibility#1
alexeykoren wants to merge 5 commits intozsa1from
orchard-backward-compatibility

Conversation

@alexeykoren
Copy link
Collaborator

@alexeykoren alexeykoren commented Jun 4, 2024

Constants have been moved from zcash_note_encryption
New components are implemented for SaplingDomain

dmidem: This PR can be closed in favor of #2 as #2 uses the changes from this PR and makes additional modifications to sync with the latest updates in zcash_note_encryption.

@alexeykoren
Copy link
Collaborator Author

NoteBytes are copied from Orchard to avoid dependency or extracting micro-crate

@alexeykoren alexeykoren requested a review from PaulLaux June 4, 2024 09:47
Copy link

@PaulLaux PaulLaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments, not for immediate execution.

Cargo.toml Outdated
harness = false

[patch.crates-io]
zcash_note_encryption = { version = "0.4", git = "https://github.com/QED-it/zcash_note_encryption", branch = "zsa1" } No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

try_sapling_output_recovery_with_ock, CompactOutputDescription, SaplingDomain,
Zip212Enforcement,
};
use super::{prf_ock, sapling_note_encryption, try_sapling_compact_note_decryption, try_sapling_note_decryption, try_sapling_output_recovery, try_sapling_output_recovery_with_ock, CompactOutputDescription, SaplingDomain, Zip212Enforcement, NOTE_PLAINTEXT_SIZE, ENC_CIPHERTEXT_SIZE};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to reduce the diff here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

/// Defines the behavior for types that support both read and write access to their internal byte array.
pub trait NoteByteWriter: NoteByteReader + AsMut<[u8]> {}

impl<const N: usize> NoteByteWriter for NoteBytes<N> {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entire file should move to zcash_note_encryption and reused here and in Orchard.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are few PRs now created around that

@PaulLaux
Copy link

PaulLaux commented Aug 1, 2024

closed in favor of #2

@PaulLaux PaulLaux closed this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants