fun PrivateKey.signWithECDSA(bytes: ByteArray): DigitalSignature
Utility to simplify the act of signing a byte array
fun PrivateKey.signWithECDSA(bytesToSign: ByteArray, publicKey: PublicKey): WithKey