Structs§
- An ECDSA signature holding
r
ands
.
Enums§
- P256 errors
Functions§
- Return p * s
- Return base * s
- Sign
msg
withsk
andnonce
usinghash
with EcDSA on P256. - Verify EcDSA
signature
over P256 onmsg
withpk
usinghash
. Note that the public keypk
must be a compressed or uncompressed point. - Generate a new P256 scalar (private key).
- Generate a random nonce for ECDSA.
- Validate a P256 secret key.
Type Aliases§
- Nonces are 32 byte arrays.
- P256 public keys are 64-byte arrays containing the 32-byte X and 32-byte Y coordinate.
- Scalars are 32 byte arrays.