2 Commits

Author SHA1 Message Date
larabr
c499c791af Rename NIST curve identifiers from enums.curves.p{256, 384, 521} to .nistP{256, 384, 521}
Also, cleanup `enums.curves` removing internal aliases which are no longer relevant.
2024-02-01 15:57:58 +01:00
larabr
9e1962f006 Import noble-hashes, noble-curves and BN.js only on demand
This primarily affects the lightweight build, which will not include these
(fairly large) libs in the main bundle file. This allows fetching their code only if required:
- Noble-curves is only needed for curves other than curve25519.
- Noble-hashes is needed for streamed hashing and e.g. SHA3 on web.
- BN.js is used by the above libs, and it's also separately needed for platforms
without native BigInt support.
2023-10-25 12:53:14 +02:00