Port bitcoin-core/secp256k1#1628 to zkp public API
This commit is contained in:
@@ -25,7 +25,7 @@ extern "C" {
|
|||||||
* If you need to convert to a format suitable for storage, transmission, or
|
* If you need to convert to a format suitable for storage, transmission, or
|
||||||
* comparison, use secp256k1_ecdsa_s2c_opening_serialize and secp256k1_ecdsa_s2c_opening_parse.
|
* comparison, use secp256k1_ecdsa_s2c_opening_serialize and secp256k1_ecdsa_s2c_opening_parse.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct secp256k1_ecdsa_s2c_opening {
|
||||||
unsigned char data[64];
|
unsigned char data[64];
|
||||||
} secp256k1_ecdsa_s2c_opening;
|
} secp256k1_ecdsa_s2c_opening;
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ extern "C" {
|
|||||||
* If you need to convert to a format suitable for storage, transmission, or
|
* If you need to convert to a format suitable for storage, transmission, or
|
||||||
* comparison, use secp256k1_generator_serialize and secp256k1_generator_parse.
|
* comparison, use secp256k1_generator_serialize and secp256k1_generator_parse.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct secp256k1_generator {
|
||||||
unsigned char data[64];
|
unsigned char data[64];
|
||||||
} secp256k1_generator;
|
} secp256k1_generator;
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_generator_generate_blin
|
|||||||
* comparison, use secp256k1_pedersen_commitment_serialize and
|
* comparison, use secp256k1_pedersen_commitment_serialize and
|
||||||
* secp256k1_pedersen_commitment_parse.
|
* secp256k1_pedersen_commitment_parse.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct secp256k1_pedersen_commitment {
|
||||||
unsigned char data[64];
|
unsigned char data[64];
|
||||||
} secp256k1_pedersen_commitment;
|
} secp256k1_pedersen_commitment;
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ extern "C" {
|
|||||||
* The representation is exposed to allow creation of these objects on the
|
* The representation is exposed to allow creation of these objects on the
|
||||||
* stack; please *do not* use these internals directly.
|
* stack; please *do not* use these internals directly.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct secp256k1_surjectionproof {
|
||||||
#ifdef VERIFY
|
#ifdef VERIFY
|
||||||
/** Mark whether this proof has gone through `secp256k1_surjectionproof_initialize` */
|
/** Mark whether this proof has gone through `secp256k1_surjectionproof_initialize` */
|
||||||
int initialized;
|
int initialized;
|
||||||
@@ -100,7 +100,7 @@ SECP256K1_API int secp256k1_surjectionproof_serialize(
|
|||||||
* data the API user wants to use as an asset tag. Its contents have no
|
* data the API user wants to use as an asset tag. Its contents have no
|
||||||
* semantic meaning to libsecp whatsoever.
|
* semantic meaning to libsecp whatsoever.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct secp256k1_fixed_asset_tag {
|
||||||
unsigned char data[32];
|
unsigned char data[32];
|
||||||
} secp256k1_fixed_asset_tag;
|
} secp256k1_fixed_asset_tag;
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ extern "C" {
|
|||||||
* stack; please *do not* use these internals directly. To learn the number
|
* stack; please *do not* use these internals directly. To learn the number
|
||||||
* of keys for a signature, use `secp256k1_whitelist_signature_n_keys`.
|
* of keys for a signature, use `secp256k1_whitelist_signature_n_keys`.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct secp256k1_whitelist_signature {
|
||||||
size_t n_keys;
|
size_t n_keys;
|
||||||
/* e0, scalars */
|
/* e0, scalars */
|
||||||
unsigned char data[32 * (1 + SECP256K1_WHITELIST_MAX_N_KEYS)];
|
unsigned char data[32 * (1 + SECP256K1_WHITELIST_MAX_N_KEYS)];
|
||||||
|
|||||||
Reference in New Issue
Block a user