Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/include/secp256k1.h
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
/** Prefix byte used to tag various encoded curvepoints for specific purposes */ | /** Prefix byte used to tag various encoded curvepoints for specific purposes */ | ||||
#define SECP256K1_TAG_PUBKEY_EVEN 0x02 | #define SECP256K1_TAG_PUBKEY_EVEN 0x02 | ||||
#define SECP256K1_TAG_PUBKEY_ODD 0x03 | #define SECP256K1_TAG_PUBKEY_ODD 0x03 | ||||
#define SECP256K1_TAG_PUBKEY_UNCOMPRESSED 0x04 | #define SECP256K1_TAG_PUBKEY_UNCOMPRESSED 0x04 | ||||
#define SECP256K1_TAG_PUBKEY_HYBRID_EVEN 0x06 | #define SECP256K1_TAG_PUBKEY_HYBRID_EVEN 0x06 | ||||
#define SECP256K1_TAG_PUBKEY_HYBRID_ODD 0x07 | #define SECP256K1_TAG_PUBKEY_HYBRID_ODD 0x07 | ||||
/** A simple secp256k1 context object with no precomputed tables. These are useful for | |||||
* type serialization/parsing functions which require a context object to maintain | |||||
* API consistency, but currently do not require expensive precomputations or dynamic | |||||
* allocations. | |||||
*/ | |||||
SECP256K1_API extern const secp256k1_context *secp256k1_context_no_precomp; | |||||
/** Create a secp256k1 context object. | /** Create a secp256k1 context object. | ||||
* | * | ||||
* Returns: a newly created context object. | * Returns: a newly created context object. | ||||
* In: flags: which parts of the context to initialize. | * In: flags: which parts of the context to initialize. | ||||
* | * | ||||
* See also secp256k1_context_randomize. | * See also secp256k1_context_randomize. | ||||
*/ | */ | ||||
SECP256K1_API secp256k1_context* secp256k1_context_create( | SECP256K1_API secp256k1_context* secp256k1_context_create( | ||||
▲ Show 20 Lines • Show All 465 Lines • Show Last 20 Lines |