Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ofek/coincurve
/ functions
Functions
161 in github.com/ofek/coincurve
⨍
Functions
161
◇
Types & classes
17
↓ 21 callers
Method
format
Formats the public key. Parameters: compressed: Whether to use the compressed format. Returns: The
src/coincurve/keys.py:490
↓ 10 callers
Function
pad_scalar
(scalar: bytes)
src/coincurve/utils.py:90
↓ 9 callers
Function
bytes_to_int
(bytestr: bytes)
src/coincurve/utils.py:55
↓ 9 callers
Function
validate_secret
(secret: bytes)
src/coincurve/utils.py:94
↓ 8 callers
Function
decode_length
Decode a DER length field. Parameters: data: The DER-encoded data offset: The current offset in the data Returns:
src/coincurve/der.py:154
↓ 5 callers
Function
encode_length
Encode a length in DER format.
src/coincurve/der.py:66
↓ 5 callers
Function
int_to_bytes_padded
(num: int)
src/coincurve/utils.py:63
↓ 5 callers
Method
to_int
Returns the private key as an integer.
src/coincurve/keys.py:251
↓ 4 callers
Method
format
Serializes the public key. Returns: The public key serialized as 32 bytes. Raises: ValueError: If t
src/coincurve/keys.py:716
↓ 4 callers
Function
generate_table
(rows: list[list[str]])
scripts/bench.py:207
↓ 4 callers
Function
verify_signature
Verify an ECDSA signature. Parameters: signature: The ECDSA signature. message: The message that was supposedly signed.
src/coincurve/utils.py:101
↓ 3 callers
Method
from_secret
Derives a public key from a private key secret. Parameters: secret: The private key secret. context: The con
src/coincurve/keys.py:370
↓ 3 callers
Function
int_to_bytes
(num: int)
src/coincurve/utils.py:59
↓ 3 callers
Method
multiply
Multiplies the public key by a scalar. Parameters: scalar: The scalar with which to multiply. update: Whethe
src/coincurve/keys.py:575
↓ 3 callers
Method
sign_schnorr
Creates a Schnorr signature. Parameters: message: The message to sign. aux_randomness: 32 bytes of fresh ran
src/coincurve/keys.py:78
↓ 3 callers
Method
tweak_add
Adds a scalar to the public key. Parameters: scalar: The scalar with which to add. Returns: The mod
src/coincurve/keys.py:757
↓ 2 callers
Method
_update_public_key
(self)
src/coincurve/keys.py:325
↓ 2 callers
Method
add
Adds a scalar to the public key. Parameters: scalar: The scalar with which to add. update: Whether to update
src/coincurve/keys.py:545
↓ 2 callers
Function
cdata_to_der
(cdata, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:16
↓ 2 callers
Function
chunk_data
(data: bytes, size: int)
src/coincurve/utils.py:71
↓ 2 callers
Function
decode_der
Decode a DER-encoded EC private key to extract the private key secret. Optimized for secp256k1 keys. Parameters: der_data: The D
src/coincurve/der.py:181
↓ 2 callers
Function
der_to_cdata
(der: bytes, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:25
↓ 2 callers
Function
der_to_pem
(der: bytes)
src/coincurve/utils.py:75
↓ 2 callers
Function
deserialize_recoverable
(serialized: bytes, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:59
↓ 2 callers
Method
ecdh
Computes an EC Diffie-Hellman secret in constant time. !!! note This prevents malleability by returning `sha256(compress
src/coincurve/keys.py:163
↓ 2 callers
Function
encode_octet_string
Encode an OCTET STRING in DER format.
src/coincurve/der.py:77
↓ 2 callers
Method
from_valid_secret
Derives a public key from a valid private key secret, avoiding input checks. Parameters: secret: The private key secret.
src/coincurve/keys.py:399
↓ 2 callers
Function
get_valid_secret
()
src/coincurve/utils.py:83
↓ 2 callers
Function
pem_to_der
(pem: bytes)
src/coincurve/utils.py:79
↓ 2 callers
Function
recover
(message: bytes, recover_sig, hasher: Hasher = sha256, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:36
↓ 2 callers
Method
sign
()
scripts/bench.py:45
↓ 2 callers
Method
to_der
Returns the private key encoded in DER format.
src/coincurve/keys.py:263
↓ 2 callers
Method
verify
()
scripts/bench.py:50
↓ 1 callers
Method
add
Adds a scalar to the private key. Parameters: scalar: The scalar with which to add. update: Whether to updat
src/coincurve/keys.py:186
↓ 1 callers
Function
apply_cffi_defines_syntax
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:24
↓ 1 callers
Method
combine
Adds a number of public keys together. Parameters: public_keys: A sequence of public keys. update: Whether t
src/coincurve/keys.py:598
↓ 1 callers
Method
combine_keys
Adds a number of public keys together. Parameters: public_keys: A sequence of public keys. context: The cont
src/coincurve/keys.py:464
↓ 1 callers
Function
concatenate_c_defines
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:51
↓ 1 callers
Function
encode_bit_string
Encode a BIT STRING in DER format.
src/coincurve/der.py:88
↓ 1 callers
Function
encode_der
Encode an EC private key in DER format (PKCS#8/RFC 5208). Optimized for secp256k1 keys. Parameters: private_key: The private key
src/coincurve/der.py:100
↓ 1 callers
Method
from_der
Creates a private key from DER format. Parameters: der: The private key encoded in DER format. context: The
src/coincurve/keys.py:312
↓ 1 callers
Method
from_hex
Creates a private key from a hex string. Parameters: hexed: The private key encoded as a hex string. context
src/coincurve/keys.py:270
↓ 1 callers
Method
from_int
Creates a private key from an integer. Parameters: num: The private key as an integer. context: The context
src/coincurve/keys.py:284
↓ 1 callers
Method
from_pem
Creates a private key from PEM format. Parameters: pem: The private key encoded in PEM format. context: The
src/coincurve/keys.py:298
↓ 1 callers
Method
from_point
Derives a public key from a coordinate point. Parameters: x: The x coordinate. y: The y coordinate.
src/coincurve/keys.py:424
↓ 1 callers
Method
from_signature_and_message
Recovers an ECDSA public key from a recoverable signature. Parameters: signature: The recoverable ECDSA signature.
src/coincurve/keys.py:439
↓ 1 callers
Function
gather_sources_from_directory
Gather source files from a given directory. :param directory: The directory where source files are located. :return: A list of Source na
cm_library_c_binding/build.py:20
↓ 1 callers
Function
hex_to_bytes
(hexed: str)
src/coincurve/utils.py:67
↓ 1 callers
Function
main
()
scripts/bench.py:222
↓ 1 callers
Function
make_header_cffi_compliant
(src_header_dir, src_header, cffi_dir)
cm_library_cffi_headers/compose_cffi_headers.py:175
↓ 1 callers
Function
mk_ffi
Create an FFI object. :param sources: A list of Source namedtuples. :param static_lib: Whether to generate a static lib in Windows.
cm_library_c_binding/build.py:42
↓ 1 callers
Method
multiply
Multiplies the private key by a scalar. Parameters: scalar: The scalar with which to multiply. update: Wheth
src/coincurve/keys.py:219
↓ 1 callers
Method
name
()
scripts/bench.py:35
↓ 1 callers
Function
pad_hex
(hexed: str)
src/coincurve/utils.py:50
↓ 1 callers
Method
point
Returns the public key as a coordinate point.
src/coincurve/keys.py:511
↓ 1 callers
Function
remove_c_comments_emptylines
(text)
cm_library_cffi_headers/compose_cffi_headers.py:10
↓ 1 callers
Function
remove_c_ifdef
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:28
↓ 1 callers
Function
remove_c_includes
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:16
↓ 1 callers
Function
remove_deprecated_functions
(lines, deprecation)
cm_library_cffi_headers/compose_cffi_headers.py:78
↓ 1 callers
Function
remove_function_attributes
(lines, attributes)
cm_library_cffi_headers/compose_cffi_headers.py:113
↓ 1 callers
Function
remove_header_guard
(lines, keywords)
cm_library_cffi_headers/compose_cffi_headers.py:137
↓ 1 callers
Function
remove_special_defines
(lines, defines)
cm_library_cffi_headers/compose_cffi_headers.py:20
↓ 1 callers
Method
reseed
Protects against certain possible future side-channel timing attacks.
src/coincurve/context.py:22
↓ 1 callers
Function
serialize_recoverable
(recover_sig, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:50
↓ 1 callers
Method
sign
Creates an ECDSA signature. Parameters: message: The message to sign. hasher (collections.abc.Callable[[byte
src/coincurve/keys.py:43
↓ 1 callers
Method
sign_recoverable
Creates a recoverable ECDSA signature. Parameters: message: The message to sign. hasher (collections.abc.Cal
src/coincurve/keys.py:126
↓ 1 callers
Method
to_hex
Returns the private key encoded as a hex string.
src/coincurve/keys.py:245
↓ 1 callers
Method
to_pem
Returns the private key encoded in PEM format.
src/coincurve/keys.py:257
↓ 1 callers
Method
verify
Verifies an ECDSA signature. Parameters: signature: The ECDSA signature. message: The message that was suppo
src/coincurve/keys.py:518
Method
__call__
(self, bytestr: bytes)
src/coincurve/utils.py:40
Method
__eq__
(self, other)
src/coincurve/keys.py:332
Method
__eq__
(self, other)
src/coincurve/keys.py:628
Method
__eq__
(self, other)
src/coincurve/keys.py:782
Method
__hash__
(self)
src/coincurve/keys.py:335
Method
__hash__
(self)
src/coincurve/keys.py:631
Method
__hash__
(self)
src/coincurve/keys.py:786
Method
__init__
(self, seed: bytes | None = None, flag=CONTEXT_NONE, name: str = "")
src/coincurve/context.py:11
Method
__init__
Initializes a private key. Parameters: secret: The secret used to initialize the private key. If not
src/coincurve/keys.py:29
Method
__init__
Initializes a public key. Parameters: data (bytes): The formatted public key. This class supports parsing
src/coincurve/keys.py:340
Method
__init__
Initializes a BIP340 `x-only` public key. Parameters: data (bytes): The formatted public key. parity: Whethe
src/coincurve/keys.py:636
Method
__init__
(self, setup: str, statement: str)
scripts/bench.py:27
Method
__repr__
(self)
src/coincurve/context.py:33
Method
__repr__
(self)
src/coincurve/utils.py:36
Method
__repr__
(self)
src/coincurve/utils.py:43
Function
concatenate_c_struct
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:151
Function
deserialize_compact
(ser_sig: bytes, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:97
Method
finalize
(self, version: str, build_data: dict[str, Any], artifact: str)
hatch_build.py:40
Method
from_secret
Derives an x-only public key from a private key secret. Parameters: secret: The private key secret. context:
src/coincurve/keys.py:663
Method
from_valid_secret
Derives an x-only public key from a valid private key secret, avoiding input checks. Parameters: secret: The private key
src/coincurve/keys.py:690
Method
generate_key_pair
()
scripts/bench.py:40
Method
generate_key_pair
()
scripts/bench.py:70
Method
generate_key_pair
()
scripts/bench.py:140
Method
initialize
(self, version: str, build_data: dict[str, Any])
hatch_build.py:25
Method
key_export
()
scripts/bench.py:55
Method
key_export
()
scripts/bench.py:109
Method
key_export
()
scripts/bench.py:178
Method
key_import
()
scripts/bench.py:60
Method
key_import
()
scripts/bench.py:121
Method
key_import
()
scripts/bench.py:192
Method
local_cffi_license
(self)
hatch_build.py:22
next →
1–100 of 161, ranked by callers