INNER CODE UNIT · Rust

extensions

tlsnotary/tlsn · crates/attestation/src/lib.rs:347

    pub fn extensions(&self) -> impl Iterator<Item = &Extension> {
        self.extensions.iter().map(|field| &field.data)
    }

    /// Returns the attestation verifying key.
    pub fn verifying_key(&self) -> &VerifyingKey {
        &self.verifying_key.data
    }

    /// Computes the Merkle root of the attestation fields.
    ///
    /// This is only used when building an attestation.
    pub(crate) fn root(&self, hasher: &dyn HashAlgorithm) -> TypedHash {
        let mut tree = MerkleTree::new(hasher.id());
        let fields = self
            .hash_fields(hasher)
            .into_iter()
            .map(|(_, hash)| hash)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…