mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-16 15:03:10 +00:00
Remove Buffer from validateDataIntegrity
This commit is contained in:
parent
64ea36faa3
commit
0964425a12
@ -234,9 +234,7 @@ function validateDataIntegrity(
|
||||
return false;
|
||||
}
|
||||
|
||||
return !(
|
||||
expectedSize > 3 && Buffer.from(value).equals(Buffer.alloc(value.length))
|
||||
);
|
||||
return expectedSize <= 3 || value.findIndex((i) => i !== 0) !== -1;
|
||||
}
|
||||
|
||||
function getSignature(message: Uint8Array): Uint8Array {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user