Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poc microcrate account #972

Closed
wants to merge 7 commits into from
Closed

Conversation

zancas
Copy link
Member

@zancas zancas commented Apr 20, 2024

This is an experiment. I don't have a great idea for what the tradeoffs might be, but all other things being equal, I think more encapsulated is better.

@zancas
Copy link
Member Author

zancas commented Apr 20, 2024

I like it that there are no use statements. I like it that it can be plugged into zingolib as a "completely" contained component. It should be easy to integration test..

//! By constraining the wrapper to be independent of internal zingolib functionality
//! we expose a shareable component, and refine the definition of zingolib.

/// The a view-only abstraction that provides a management interface for
Copy link
Contributor

Choose a reason for hiding this comment

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

"The a view-only" is a typo? also comment seems to just ...end. I am ok to chalk that up to the TODO if you want

/// TODO: Explain more about our Account abstraction.
pub struct ZingoAccount(
pub zip32::AccountId,
pub zcash_keys::keys::UnifiedFullViewingKey,
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont think we should make fields pub unless there is a really good reason? is there one?
the id and ufvk methods are private though which is surprising. Have you looked at how this Account trait is used in LRZ?

@Oscar-Pepper
Copy link
Contributor

I think we should probably have a crate for many "primitive" wallet objects like account. I think one crate for just this one struct will end up with a silly amount of crates. Or we just have the struct in zingolib.

@zancas zancas closed this Apr 22, 2024
@zancas zancas deleted the POC_microcrate_account branch May 30, 2024 18:10
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