net.corda.core.crypto / java.security.PrivateKey

Extensions for java.security.PrivateKey

signWithECDSA fun PrivateKey.signWithECDSA(bytes: ByteArray): DigitalSignature

Utility to simplify the act of signing a byte array

fun PrivateKey.signWithECDSA(bytesToSign: ByteArray, publicKey: PublicKey): WithKey