Skip to content

Commit 65e70e7

Browse files
committed
Merge pull request bitcoin#235
5098f62 Improve documentation formatting consistency (Daniel Cousens)
2 parents d5b53aa + 5098f62 commit 65e70e7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/secp256k1.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_recover_compact(
204204
*/
205205
SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_verify(const unsigned char *seckey) SECP256K1_ARG_NONNULL(1);
206206

207-
/** Just validate a public key.
208-
* Returns: 1: valid public key
209-
* 0: invalid public key
207+
/** Verify an ECDSA public key.
208+
* Returns: 1: public key is valid
209+
* 0: public key is invalid
210210
* In: pubkey: pointer to a 33-byte or 65-byte public key (cannot be NULL).
211211
* pubkeylen: length of pubkey
212212
*/
@@ -220,7 +220,7 @@ SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_verify(const unsigned char
220220
* pubkeylen: pointer to int that will be updated to contains the pubkey's
221221
* length (cannot be NULL)
222222
* Returns: 1: secret was valid, public key stores
223-
* 0: secret was invalid, try again.
223+
* 0: secret was invalid, try again
224224
* Requires starting using SECP256K1_START_SIGN.
225225
*/
226226
SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create(
@@ -232,11 +232,11 @@ SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create(
232232

233233
/** Decompress a public key.
234234
* In/Out: pubkey: pointer to a 65-byte array to put the decompressed public key.
235-
It must contain a 33-byte or 65-byte public key already (cannot be NULL)
235+
* It must contain a 33-byte or 65-byte public key already (cannot be NULL)
236236
* pubkeylen: pointer to the size of the public key pointed to by pubkey (cannot be NULL)
237-
It will be updated to reflect the new size.
238-
* Returns: 0 if the passed public key was invalid, 1 otherwise. If 1 is returned, the
239-
pubkey is replaced with its decompressed version.
237+
* It will be updated to reflect the new size.
238+
* Returns: 0: pubkey was invalid
239+
* 1: pubkey was valid, and was replaced with its decompressed version
240240
*/
241241
SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_decompress(
242242
unsigned char *pubkey,

0 commit comments

Comments
 (0)