mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-22 06:08:54 -04:00
fix lints
This commit is contained in:
parent
aeaf34e55d
commit
d1559c949d
4 changed files with 6 additions and 6 deletions
|
@ -19,7 +19,7 @@ class MessageIntegrity {
|
|||
////////////////////////////////////////////////////////////////////////////
|
||||
// Public interface
|
||||
|
||||
Future<Uint8List> generateMessageId(proto.Message? previous) async {
|
||||
Future<Uint8List> generateMessageId(proto.Message? previous) {
|
||||
if (previous == null) {
|
||||
// If there's no last sent message,
|
||||
// we start at a hash of the identity public key
|
||||
|
@ -47,7 +47,7 @@ class MessageIntegrity {
|
|||
message.signature = signature.toProto();
|
||||
}
|
||||
|
||||
Future<bool> verifyMessage(proto.Message message) async {
|
||||
Future<bool> verifyMessage(proto.Message message) {
|
||||
// Ensure the message is signed
|
||||
assert(message.hasSignature(), 'should not verify unsigned message');
|
||||
final signature = message.signature.toVeilid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue