Skip to content

Commit

Permalink
[codecs] clean up imports in codecs_ecdsa.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Dec 28, 2024
1 parent 5a43ae2 commit 776258d
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions constantine/serialization/codecs_ecdsa.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,12 @@ In contrast to `codecs_ecdsa_secp256k1.nim` this file is generic under the choic
of elliptic curve.
]##

#import
# constantine/named/algebras,
# constantine/platforms/primitives,
# constantine/platforms/abstractions,
# constantine/math/arithmetic/finite_fields,
# constantine/math/elliptic/ec_shortweierstrass_affine,
# constantine/math/io/io_bigints

import
constantine/hashes,
constantine/named/algebras,
constantine/math/io/[io_bigints, io_fields, io_ec],
constantine/math/elliptic/[ec_shortweierstrass_affine, ec_shortweierstrass_jacobian, ec_scalar_mul, ec_multi_scalar_mul],
constantine/math/[arithmetic, ec_shortweierstrass],
constantine/math/io/[io_bigints, io_fields],
constantine/math/elliptic/[ec_shortweierstrass_affine],
constantine/platforms/[abstractions, views],
constantine/serialization/codecs, # for fromHex and (in the future) base64 encoding
constantine/mac/mac_hmac, # for deterministic nonce generation via RFC 6979
constantine/named/zoo_generators, # for generator
constantine/csprngs/sysrand,
constantine/signatures/common_signature_ops # for `derivePubkey`
constantine/serialization/codecs # for fromHex and (in the future) base64 encoding

type
## Helper type for ASN.1 DER signatures to avoid allocation.
Expand Down

0 comments on commit 776258d

Please sign in to comment.