Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ContextFlag

Flag to pass to a Secp256k1.contextCreate method.

The purpose of context structures is to cache large precomputed data tables that are expensive to construct, and also to maintain the randomization data for blinding.

You can create a context with only VERIFY or only SIGN capabilities, or you can use BOTH. (NONE can be used for conversion/serialization.)

Index

Enumeration members

Enumeration members

BOTH

BOTH: = SECP256K1_CONTEXT_SIGN | (SECP256K1_CONTEXT_VERIFY as 769)

NONE

NONE: = SECP256K1_CONTEXT_NONE as 1

SIGN

SIGN: = SECP256K1_CONTEXT_SIGN as 513

VERIFY

VERIFY: = SECP256K1_CONTEXT_VERIFY as 257

Generated using TypeDoc