etscrivner / rbsecp256k1

Compiled Ruby wrapper around libsecp256k1 for secp256k1 ECDSA.
The Unlicense
19 stars 13 forks source link

Use Static Contexts Where Possible #35

Closed etscrivner closed 5 years ago

etscrivner commented 5 years ago

Closes #34

Remove much of the cloning of secp256k1_context objects by using the secp256k1_context_no_precomp object in the serialization / deserialization methods where it is possible to use it.

Removed:

Added:

Tests and documentation have also been updated to match these changes. Overall this makes the Context object significantly smaller and only uses it when we actually need a context with precomputed data.