Skip to content

Commit 6c3db51

Browse files
committed
pairing: remove unnecessary assert
1 parent 9f5e701 commit 6c3db51

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/pairing.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ pub const Pairing = extern struct {
1616
/// - can use stack allocation at consumer side
1717
/// - can reuse memory if it makes sense at consumer side
1818
pub fn init(buffer: *[Self.sizeOf()]u8, hash_or_encode: bool, dst: []const u8) Self {
19-
std.debug.assert(buffer.len == Self.sizeOf());
20-
2119
const obj = Self{ .ctx = @ptrCast(buffer) };
2220
c.blst_pairing_init(obj.ctx, hash_or_encode, @ptrCast(dst.ptr), dst.len);
2321

0 commit comments

Comments
 (0)