Skip to content

Commit

Permalink
add v2 types
Browse files Browse the repository at this point in the history
lint: allow large enum variant

temp
  • Loading branch information
n8maninger committed Nov 7, 2024
1 parent 421f774 commit 32e0b2e
Show file tree
Hide file tree
Showing 3 changed files with 789 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
newline_style="Unix"
reorder_imports=true
# only supported in nightly
imports_granularity="Module"
imports_granularity="Module"
6 changes: 6 additions & 0 deletions sia/src/signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ impl AsRef<[u8; 64]> for Signature {
}
}

impl From<[u8; 64]> for Signature {
fn from(buf: [u8; 64]) -> Self {
Signature(buf)
}
}

impl fmt::Display for Signature {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", hex::encode(self.0))
Expand Down
Loading

0 comments on commit 32e0b2e

Please sign in to comment.