Search in sources :

Example 1 with TimestampedECDSASignature

use of com.radixdlt.hotstuff.TimestampedECDSASignature in project radixdlt by radixdlt.

the class DifferentTimestampsCauseTimeoutTest method mutateTimestampedSignature.

private TimestampedECDSASignature mutateTimestampedSignature(TimestampedECDSASignature signature, int destination) {
    long timestamp = signature.timestamp();
    ECDSASignature sig = signature.signature();
    return TimestampedECDSASignature.from(timestamp + destination, sig);
}
Also used : ECDSASignature(com.radixdlt.crypto.ECDSASignature) TimestampedECDSASignature(com.radixdlt.hotstuff.TimestampedECDSASignature)

Aggregations

ECDSASignature (com.radixdlt.crypto.ECDSASignature)1 TimestampedECDSASignature (com.radixdlt.hotstuff.TimestampedECDSASignature)1