Stateful Hash-Based Signature Schemes