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:
Context#private_key_from_data
Context#public_key_from_data
Context#signature_from_compact
Context#signature_from_der_encoded
Added:
PublicKey#from_data
PrivateKey#from_data
Signature#from_compact
Signature#from_der_encoded
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.
Closes #34
Remove much of the cloning of
secp256k1_context
objects by using thesecp256k1_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.