Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qiweiii committed Oct 17, 2024
1 parent 070080f commit 3bd538b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Utils/Sources/Utils/Crypto/BLS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public enum BLS: KeyType {
public func verify(signature: Data, message: Data) throws(Error) -> Bool {
var output = false

FFIUtils.call(signature, message) { ptrs in
try FFIUtils.call(signature, message) { ptrs in
public_verify(
ptr.value,
ptrs[0].ptr,
Expand All @@ -124,6 +124,9 @@ public enum BLS: KeyType {
ptrs[1].count,
&output
)
} onErr: { err throws(Error) in
// no need to throw here, but still need to catch errors
logger.debug("PublicKey.verify failed: \(err)")
}

return output
Expand Down

0 comments on commit 3bd538b

Please sign in to comment.