FROST Hubert TypeScript Library - v1.0.0-alpha.20
    Preparing search index...

    Class SignFinalizeContent

    Content wrapper for signFinalize events.

    This wraps an envelope with a unit subject and type assertion "signFinalize", implementing the traits required by SealedEvent.

    Port of struct SignFinalizeContent from cmd/sign/common.rs.

    Index

    Methods

    • Adds an assertion to the content envelope.

      Port of SignFinalizeContent::add_assertion() from cmd/sign/common.rs.

      Parameters

      • predicate: EnvelopeEncodableValue
      • object: EnvelopeEncodableValue

      Returns SignFinalizeContent

    • Returns the inner envelope.

      Port of SignFinalizeContent::envelope() from cmd/sign/common.rs.

      Returns Envelope

    • Creates a SignFinalizeContent from an envelope with validation.

      Validates that the envelope has a unit subject and type "signFinalize".

      Port of TryFrom<Envelope> for SignFinalizeContent from cmd/sign/common.rs.

      Parameters

      • envelope: Envelope

      Returns SignFinalizeContent

    • Converts this SignFinalizeContent to an Envelope.

      Port of From<SignFinalizeContent> for Envelope from cmd/sign/common.rs.

      Returns Envelope