Skip to content

Commit

Permalink
core: implement alias as a type
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Jul 26, 2024
1 parent 88014e2 commit 85c2d6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fundamentals/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ pub type Sha256 = [u8; 32];
pub type Signature = [u8; 64];
pub type Point = [u8; 33];
pub type ShortChannelId = [u8; 8];
pub type Color = [u8; 3];

to_wire_type_with_size!(ChainHash, 32);
to_wire_type_with_size!(Signature, 64);
to_wire_type_with_size!(Point, 33);
to_wire_type_with_size!(ShortChannelId, 8);
to_wire_type_with_size!(Color, 3);

/// BigSize type implementation.
#[derive(Debug, Clone)]
Expand Down

0 comments on commit 85c2d6b

Please sign in to comment.