Generate()
Generates and populates the `KeyPair` with a new public/private keys.
GetPublicKey() const
Gets the associated public key from the `KeyPair`.
GetDerBytes() const
Gets the pointer to start of the buffer containing the key-pair info in DER format. The length (number of bytes) of DER format is given by `GetDerLength()`.
GetDerLength() const
Gets the length of the byte sequence representation of the key-pair in DER format.
GetDerBytes()
Gets the pointer to start of the key-pair buffer in DER format. Gives non-const pointer to the buffer and is intended for populating the buffer and setting the key-pair (e.g., reading the key-pair from non-volatile settings). The buffer contains `kMaxDerSize` bytes. After populating the buffer, `SetDerLength()` can be used to set the the number of bytes written.
SetDerLength()
Sets the length of the byte sequence representation of the key-pair in DER format.
Sign() const
Calculates the ECDSA signature for a hashed message using the private key from `KeyPair`. Uses the deterministic digital signature generation procedure from RFC 6979.