Package org.bouncycastle.pqc.crypto

## Interface StateAwareMessageSigner

- All Superinterfaces:
    `MessageSigner`
  All Known Implementing Classes:
    `GMSSStateAwareSigner`, `XMSSMTSigner`, `XMSSSigner`

      public interface StateAwareMessageSigner
      extends MessageSigner

  Base interface for a PQC stateful signature algorithm.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `AsymmetricKeyParameter` | `getUpdatedPrivateKey()` | Return the current version of the private key with the updated state.

    - ### Methods inherited from interface org.bouncycastle.pqc.crypto.MessageSigner

      `generateSignature, init, verifySignature`

- - ### Method Detail

    - #### getUpdatedPrivateKey

          AsymmetricKeyParameter getUpdatedPrivateKey()

      Return the current version of the private key with the updated state.

      Note: calling this method will effectively disable the Signer from being used for further signature generation without another call to init().

      Returns:
        an updated private key object, which can be used for later signature generation.