Skip to content

Maybe use some builder or struct pattern #31

@raphjaph

Description

@raphjaph
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!()
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions