starknet-rs
starknet-rs copied to clipboard
refactor: simplify k generation following RFC 6979
Summary
This pull request introduces a direct integration of the rfc6979 crate to generate the scalar k according to RFC 6979. The integration is aimed at streamlining the logic within our codebase, ensuring simplicity, and reducing maintenance overheads by relying on established libraries from RustCrypto.
Changes Made
- Integrated the
rfc6979crate to handle the generation of scalark. - Refactored relevant sections of the codebase to utilize the new integration.
- Ensured consistency and compliance with RFC 6979 standards.
Motivation
- Simplifying Codebase: By directly leveraging the
rfc6979crate, we simplify the logic related tokgeneration, making it more concise and maintainable. - Reduced Maintenance Burden: Depending on established libraries from RustCrypto reduces the need for maintaining custom solutions in our repository, ensuring compatibility and reliability.
Rebased to keep branch from becoming staled.