This commit is contained in:
parent
afae857b2b
commit
50580a1d91
|
@ -307,12 +307,21 @@ class RequestClient {
|
|||
// eslint-disable-next-line no-empty
|
||||
}
|
||||
|
||||
const decodedMetadata =
|
||||
ApplicationMetadataMessage.fromBinary(messageToDecode)
|
||||
let decodedMetadata
|
||||
try {
|
||||
decodedMetadata = ApplicationMetadataMessage.fromBinary(messageToDecode)
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
|
||||
if (!decodedMetadata.payload) {
|
||||
return
|
||||
}
|
||||
|
||||
if (!decodedMetadata.signature.length) {
|
||||
return
|
||||
}
|
||||
|
||||
const signerPublicKeyBytes = recoverPublicKey(
|
||||
decodedMetadata.signature,
|
||||
decodedMetadata.payload
|
||||
|
|
Loading…
Reference in New Issue