Skip to content

Commit

Permalink
[ecdsa] add mini docstring for verify
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Dec 28, 2024
1 parent c5b003c commit 5a43ae2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions constantine/ecdsa_secp256k1.nim
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ proc verify*(
message: openArray[byte],
signature: Signature
): bool {.libPrefix: prefix_ffi, genCharAPI.} =
## Verify `signature` using `publicKey` for `message`.
result = publicKey.raw.coreVerify(message, signature, sha256)

func derive_pubkey*(public_key: var PublicKey, secret_key: SecretKey) {.libPrefix: prefix_ffi.} =
Expand Down

0 comments on commit 5a43ae2

Please sign in to comment.