Skip to main content
. 2025 Aug 7;25(15):4856. doi: 10.3390/s25154856
Algorithm 2 TEE-enforced single-use self-parent.
Require: Event en, stored hash hlast
Ensure: Signed event (en,σn) or Reject
  • 1:

    hparentHash(en.self_parent)

  • 2:

    if  hparent=hlast  then

  • 3:

        σnTEE.Sign(en)

  • 4:

        hlastHash(en)               ▹ Update the hash for the next event

  • 5:

        return (en,σn)

  • 6:

    else

  • 7:

        return Reject

  • 8:

    end if