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

Add helper functions for to vec and from_bytes #225

Open
SWvheerden opened this issue Mar 7, 2024 · 1 comment
Open

Add helper functions for to vec and from_bytes #225

SWvheerden opened this issue Mar 7, 2024 · 1 comment

Comments

@SWvheerden
Copy link
Contributor

add helper function to do the following

fn to_vec(&self) -> vec<u8>
fn from_bytes(&[u8]) -> self

These should use borsh internally to do,

@AaronFeickert
Copy link
Contributor

For which constructions?

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

No branches or pull requests

2 participants