generateAttestation
actual suspend fun generateAttestation(secureArea: SecureArea, challenge: ByteString): DeviceAttestationResult
expect suspend fun generateAttestation(secureArea: SecureArea, challenge: ByteString): DeviceAttestationResult
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
secureArea
a platform-specific SecureArea, on Android use AndroidKeystoreSecureArea and on iOS use SecureEnclaveSecureArea.
challenge
should come from the party requesting the attestation, for freshness.
actual suspend fun generateAttestation(secureArea: <Error class: unknown class>, challenge: <Error class: unknown class>): <Error class: unknown class>
actual suspend fun generateAttestation(secureArea: SecureArea, challenge: ByteString): DeviceAttestationResult