flashbots / andromeda-sirrah-contracts

forge development env for SUAVE key management
MIT License
18 stars 5 forks source link

Add x509 generate binding #54

Open nhynes opened 2 months ago

nhynes commented 2 months ago

And a supporting P256 scalar (private key) testing function. The function to actually generate the P256 private key is not included, as it can be generated using hkdf, a simple keccak256, entropy, or a hardware secret; and then the generation is fallible and recovery mechanism might vary depending on the application.

The curve order here can be verified against a rust crate, a website, and from the NIST spec manually.