Module sui::nitro_attestation
use std::ascii;
use std::bcs;
use std::option;
use std::string;
use std::vector;
use sui::address;
use sui::clock;
use sui::hex;
use sui::object;
use sui::transfer;
use sui::tx_context;
Function verify_nitro_attestation_internal
Internal native function
fun verify_nitro_attestation_internal(attestation: &vector<u8>, current_timestamp: u64): vector<vector<u8>>
Click to open
Implementation
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: &sui::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))
}