Skip to content

Commit

Permalink
feat: add SafeAddress and SafeUint160 (#85)
Browse files Browse the repository at this point in the history
* feat: add SafeAddress and SafeUint160

* fix incorrect byte size
  • Loading branch information
PatStiles authored Jun 14, 2023
1 parent e4b956b commit 5293793
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions halo2-base/src/safe_types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ pub type SafeUint32<F> = CompactSafeType<F, 32>;
pub type SafeUint64<F> = CompactSafeType<F, 64>;
/// SafeType for uint128.
pub type SafeUint128<F> = CompactSafeType<F, 128>;
/// SafeType for uint160.
pub type SafeUint160<F> = CompactSafeType<F, 160>;
/// SafeType for uint256.
pub type SafeUint256<F> = CompactSafeType<F, 256>;
/// SafeType for Address.
pub type SafeAddress<F> = SafeType<F, 1, 160>;
/// SafeType for bytes32.
pub type SafeBytes32<F> = SafeType<F, 1, 256>;

Expand Down

0 comments on commit 5293793

Please sign in to comment.