MCPcopy Create free account

hub / github.com/ofek/coincurve / functions

Functions161 in github.com/ofek/coincurve

↓ 21 callersMethodformat
Formats the public key. Parameters: compressed: Whether to use the compressed format. Returns: The
src/coincurve/keys.py:490
↓ 10 callersFunctionpad_scalar
(scalar: bytes)
src/coincurve/utils.py:90
↓ 9 callersFunctionbytes_to_int
(bytestr: bytes)
src/coincurve/utils.py:55
↓ 9 callersFunctionvalidate_secret
(secret: bytes)
src/coincurve/utils.py:94
↓ 8 callersFunctiondecode_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 callersFunctionencode_length
Encode a length in DER format.
src/coincurve/der.py:66
↓ 5 callersFunctionint_to_bytes_padded
(num: int)
src/coincurve/utils.py:63
↓ 5 callersMethodto_int
Returns the private key as an integer.
src/coincurve/keys.py:251
↓ 4 callersMethodformat
Serializes the public key. Returns: The public key serialized as 32 bytes. Raises: ValueError: If t
src/coincurve/keys.py:716
↓ 4 callersFunctiongenerate_table
(rows: list[list[str]])
scripts/bench.py:207
↓ 4 callersFunctionverify_signature
Verify an ECDSA signature. Parameters: signature: The ECDSA signature. message: The message that was supposedly signed.
src/coincurve/utils.py:101
↓ 3 callersMethodfrom_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 callersFunctionint_to_bytes
(num: int)
src/coincurve/utils.py:59
↓ 3 callersMethodmultiply
Multiplies the public key by a scalar. Parameters: scalar: The scalar with which to multiply. update: Whethe
src/coincurve/keys.py:575
↓ 3 callersMethodsign_schnorr
Creates a Schnorr signature. Parameters: message: The message to sign. aux_randomness: 32 bytes of fresh ran
src/coincurve/keys.py:78
↓ 3 callersMethodtweak_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 callersMethod_update_public_key
(self)
src/coincurve/keys.py:325
↓ 2 callersMethodadd
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 callersFunctioncdata_to_der
(cdata, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:16
↓ 2 callersFunctionchunk_data
(data: bytes, size: int)
src/coincurve/utils.py:71
↓ 2 callersFunctiondecode_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 callersFunctionder_to_cdata
(der: bytes, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:25
↓ 2 callersFunctionder_to_pem
(der: bytes)
src/coincurve/utils.py:75
↓ 2 callersFunctiondeserialize_recoverable
(serialized: bytes, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:59
↓ 2 callersMethodecdh
Computes an EC Diffie-Hellman secret in constant time. !!! note This prevents malleability by returning `sha256(compress
src/coincurve/keys.py:163
↓ 2 callersFunctionencode_octet_string
Encode an OCTET STRING in DER format.
src/coincurve/der.py:77
↓ 2 callersMethodfrom_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 callersFunctionget_valid_secret
()
src/coincurve/utils.py:83
↓ 2 callersFunctionpem_to_der
(pem: bytes)
src/coincurve/utils.py:79
↓ 2 callersFunctionrecover
(message: bytes, recover_sig, hasher: Hasher = sha256, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:36
↓ 2 callersMethodsign
()
scripts/bench.py:45
↓ 2 callersMethodto_der
Returns the private key encoded in DER format.
src/coincurve/keys.py:263
↓ 2 callersMethodverify
()
scripts/bench.py:50
↓ 1 callersMethodadd
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 callersFunctionapply_cffi_defines_syntax
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:24
↓ 1 callersMethodcombine
Adds a number of public keys together. Parameters: public_keys: A sequence of public keys. update: Whether t
src/coincurve/keys.py:598
↓ 1 callersMethodcombine_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 callersFunctionconcatenate_c_defines
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:51
↓ 1 callersFunctionencode_bit_string
Encode a BIT STRING in DER format.
src/coincurve/der.py:88
↓ 1 callersFunctionencode_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 callersMethodfrom_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 callersMethodfrom_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 callersMethodfrom_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 callersMethodfrom_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 callersMethodfrom_point
Derives a public key from a coordinate point. Parameters: x: The x coordinate. y: The y coordinate.
src/coincurve/keys.py:424
↓ 1 callersMethodfrom_signature_and_message
Recovers an ECDSA public key from a recoverable signature. Parameters: signature: The recoverable ECDSA signature.
src/coincurve/keys.py:439
↓ 1 callersFunctiongather_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 callersFunctionhex_to_bytes
(hexed: str)
src/coincurve/utils.py:67
↓ 1 callersFunctionmain
()
scripts/bench.py:222
↓ 1 callersFunctionmake_header_cffi_compliant
(src_header_dir, src_header, cffi_dir)
cm_library_cffi_headers/compose_cffi_headers.py:175
↓ 1 callersFunctionmk_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 callersMethodmultiply
Multiplies the private key by a scalar. Parameters: scalar: The scalar with which to multiply. update: Wheth
src/coincurve/keys.py:219
↓ 1 callersMethodname
()
scripts/bench.py:35
↓ 1 callersFunctionpad_hex
(hexed: str)
src/coincurve/utils.py:50
↓ 1 callersMethodpoint
Returns the public key as a coordinate point.
src/coincurve/keys.py:511
↓ 1 callersFunctionremove_c_comments_emptylines
(text)
cm_library_cffi_headers/compose_cffi_headers.py:10
↓ 1 callersFunctionremove_c_ifdef
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:28
↓ 1 callersFunctionremove_c_includes
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:16
↓ 1 callersFunctionremove_deprecated_functions
(lines, deprecation)
cm_library_cffi_headers/compose_cffi_headers.py:78
↓ 1 callersFunctionremove_function_attributes
(lines, attributes)
cm_library_cffi_headers/compose_cffi_headers.py:113
↓ 1 callersFunctionremove_header_guard
(lines, keywords)
cm_library_cffi_headers/compose_cffi_headers.py:137
↓ 1 callersFunctionremove_special_defines
(lines, defines)
cm_library_cffi_headers/compose_cffi_headers.py:20
↓ 1 callersMethodreseed
Protects against certain possible future side-channel timing attacks.
src/coincurve/context.py:22
↓ 1 callersFunctionserialize_recoverable
(recover_sig, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:50
↓ 1 callersMethodsign
Creates an ECDSA signature. Parameters: message: The message to sign. hasher (collections.abc.Callable[[byte
src/coincurve/keys.py:43
↓ 1 callersMethodsign_recoverable
Creates a recoverable ECDSA signature. Parameters: message: The message to sign. hasher (collections.abc.Cal
src/coincurve/keys.py:126
↓ 1 callersMethodto_hex
Returns the private key encoded as a hex string.
src/coincurve/keys.py:245
↓ 1 callersMethodto_pem
Returns the private key encoded in PEM format.
src/coincurve/keys.py:257
↓ 1 callersMethodverify
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
Functionconcatenate_c_struct
(lines)
cm_library_cffi_headers/compose_cffi_headers.py:151
Functiondeserialize_compact
(ser_sig: bytes, context: Context = GLOBAL_CONTEXT)
src/coincurve/ecdsa.py:97
Methodfinalize
(self, version: str, build_data: dict[str, Any], artifact: str)
hatch_build.py:40
Methodfrom_secret
Derives an x-only public key from a private key secret. Parameters: secret: The private key secret. context:
src/coincurve/keys.py:663
Methodfrom_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
Methodgenerate_key_pair
()
scripts/bench.py:40
Methodgenerate_key_pair
()
scripts/bench.py:70
Methodgenerate_key_pair
()
scripts/bench.py:140
Methodinitialize
(self, version: str, build_data: dict[str, Any])
hatch_build.py:25
Methodkey_export
()
scripts/bench.py:55
Methodkey_export
()
scripts/bench.py:109
Methodkey_export
()
scripts/bench.py:178
Methodkey_import
()
scripts/bench.py:60
Methodkey_import
()
scripts/bench.py:121
Methodkey_import
()
scripts/bench.py:192
Methodlocal_cffi_license
(self)
hatch_build.py:22
next →1–100 of 161, ranked by callers