from ._libsecp256k1 import ffi, lib
I looked into the filesystem of that python module secp256k1, there is the file:
but I have no clue what's inside. Can anyone explain to me, please?
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
from ._libsecp256k1 import ffi, lib
02d6c0643e40b0db549cbbd7eb47dcab71a59d7017199ebde6b272f28fbbf95f
[...]
def ecdsa_sign_recoverable(self, msg, raw=False, digest=hashlib.sha256):
if not HAS_RECOVERABLE:
raise Exception("secp256k1_recovery not enabled")
msg32 = _hash32(msg, raw, digest)
[...]
02d6c0643e40b0db549cbbd7eb47dcab71a59d7017199ebde6b272f28fbbf95f
[...]
elif args.action == 'signrec':
priv, sig = sign('ecdsa_sign_recoverable', args)
[...]
[...]
def ecdsa_sign_recoverable(self, msg, raw=False, digest=hashlib.sha256):
if not HAS_RECOVERABLE:
raise Exception("secp256k1_recovery not enabled")
msg32 = _hash32(msg, raw, digest)
[...]
[...]
raw_sig = ffi.new('secp256k1_ecdsa_recoverable_signature *')
signed = lib.secp256k1_ecdsa_sign_recoverable(
secp256k1_ctx, raw_sig, msg32, self.private_key,
ffi.NULL, ffi.NULL)
assert signed == 1
return raw_sig
[...]
from ._libsecp256k1 import ffi, lib