generateAttestation
Generates a device attestation that proves the integrity of the device/OS/wallet app and creates a certain opaque private key that resides securely on the device.
The only operation that this opaque private key can be used for is generating assertions using generateAssertion method.
The party requesting the attestation can verify it using DeviceAttestation.validate and can use the object to request further assertions using generateAssertion.
Return
a DeviceAttestationResult containing a DeviceAttestation which can be sent to the party requesting the attestation.
Parameters
a platform-specific SecureArea, on Android use AndroidKeystoreSecureArea and on iOS use SecureEnclaveSecureArea.
should come from the party requesting the attestation, for freshness.
optional secret for identifying the client, only used in DeviceAttestationSoftware.