We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe62bb4 commit f8fcd68Copy full SHA for f8fcd68
pair.go
@@ -233,9 +233,11 @@ func verifyDeviceIdentityAccountSignature(deviceIdentity *waAdv.ADVSignedDeviceI
233
signature := *(*[64]byte)(deviceIdentity.AccountSignature)
234
235
prefix := AdvPrefixAccountSignature
236
- if isHostedAccount {
237
- prefix = AdvHostedPrefixDeviceIdentityAccountSignature
238
- }
+ // Even tho webjs has a different prefix for hosted accounts in the code,
+ // it looks like it doesn't use it
+ //if isHostedAccount {
239
+ // prefix = AdvHostedPrefixDeviceIdentityAccountSignature
240
+ //}
241
message := concatBytes(prefix, deviceIdentity.Details, ikp.Pub[:])
242
return ecc.VerifySignature(signatureKey, message, signature)
243
}
0 commit comments