Module 0x2::attestation
use 0x2::clock;
Function verify_nitro_attestation_internal
Internal native function
public fun verify_nitro_attestation_internal(attestation: &vector<u8>, current_timestamp: u64): vector<vector<u8>>
Click to open
Implementation
public native fun verify_nitro_attestation_internal(
attestation: &vector<u8>,
current_timestamp: u64
): vector<vector<u8>>;
Function verify_nitro_attestation
@param attestation: attesttaion documents bytes data. @param clock: the clock object.
Returns parsed pcrs after verifying the attestation.
public fun verify_nitro_attestation(attestation: &vector<u8>, clock: &clock::Clock): vector<vector<u8>>
Click to open
Implementation
public fun verify_nitro_attestation(
attestation: &vector<u8>,
clock: &Clock
): vector<vector<u8>> {
verify_nitro_attestation_internal(attestation, clock::timestamp_ms(clock))
}