-
Notifications
You must be signed in to change notification settings - Fork 2
Secp_Point_Import
anatol edited this page Jul 13, 2021
·
1 revision
uint8_t Secp_Point_Import(Secp_point& p , const PubKey& pk);
Sets the point object p
to the specified value pk
, given in a compact form (X-coordinate and a flag for Y).
-
p
: point object handle (opaque pointer) to write result -
pk
: point in a compact form (X-coordinate and a flag for Y)
- 1 if the import was successful
- 0 otherwise
- If the import is unsuccessful the point is set to 0
- if
pk
is zeroed - it's considered a valid 0 point, and the return value is 1 (i.e. successfully imported zero point)