Skip to content

Commit 618dce7

Browse files
committed
[WAHA] No prefix for verify device identity
1 parent f7628aa commit 618dce7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pair.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@ func verifyDeviceIdentityAccountSignature(deviceIdentity *waAdv.ADVSignedDeviceI
233233
signature := *(*[64]byte)(deviceIdentity.AccountSignature)
234234

235235
prefix := AdvPrefixAccountSignature
236-
if isHostedAccount {
237-
prefix = AdvHostedPrefixDeviceIdentityAccountSignature
238-
}
236+
// Even tho webjs has a different prefix for hosted accounts in the code,
237+
// it looks like it doesn't use it
238+
//if isHostedAccount {
239+
// prefix = AdvHostedPrefixDeviceIdentityAccountSignature
240+
//}
239241
message := concatBytes(prefix, deviceIdentity.Details, ikp.Pub[:])
240242
return ecc.VerifySignature(signatureKey, message, signature)
241243
}

0 commit comments

Comments
 (0)