Search in sources :

Example 6 with JEd25519Key

use of com.hedera.services.legacy.core.jproto.JEd25519Key in project hedera-services by hashgraph.

the class PlatformSigOpsTest method doesntIgnoreUnrecognizedProblemForScheduledSig.

@Test
void doesntIgnoreUnrecognizedProblemForScheduledSig() throws Throwable {
    final JKey scheduledKey = new JEd25519Key("01234578901234578901234578901".getBytes());
    scheduledKey.setForScheduledTxn(true);
    given(sigBytes.sigBytesFor(any())).willThrow(IllegalStateException.class);
    final var result = createCryptoSigsFrom(List.of(scheduledKey), sigBytes, sigFactory);
    assertTrue(result.hasFailed());
}
Also used : JKey(com.hedera.services.legacy.core.jproto.JKey) JEd25519Key(com.hedera.services.legacy.core.jproto.JEd25519Key) Test(org.junit.jupiter.api.Test)

Aggregations

JEd25519Key (com.hedera.services.legacy.core.jproto.JEd25519Key)6 JKey (com.hedera.services.legacy.core.jproto.JKey)5 Test (org.junit.jupiter.api.Test)5 MerkleAccountState (com.hedera.services.state.merkle.MerkleAccountState)1 EntityId (com.hedera.services.state.submerkle.EntityId)1 TransactionSignature (com.swirlds.common.crypto.TransactionSignature)1 ArrayList (java.util.ArrayList)1