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

Maybe use some builder or struct pattern #31

Open
raphjaph opened this issue Aug 22, 2024 · 0 comments
Open

Maybe use some builder or struct pattern #31

raphjaph opened this issue Aug 22, 2024 · 0 comments

Comments

@raphjaph
Copy link
Collaborator

pub struct Foo {
  pub adddress: Address,
  pub message: Vec<u8>,
  pub signature: Transaction,
}

// could also be builder pattern
impl Foo {
  fn verify(&self) -> Result<()> {
    todo!()
  }

  fn from_base64(address: &str, message: &str, signature: &str) -> Result<Self> {
    todo!()
  }
}
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

1 participant