net.corda.core.crypto.java.security.KeyPair - corda

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

### Extensions for java.security.KeyPair

#### component1 | `operator fun KeyPair.component1(): PrivateKey`
#### component2 | `operator fun KeyPair.component2(): PublicKey`
#### sign | Helper function to sign with a key pair. `fun KeyPair.sign(bytesToSign: ByteArray): WithKey` Helper function to sign the bytes of bytesToSign with a key pair. `fun KeyPair.sign(bytesToSign: OpaqueBytes): WithKey` Helper function for signing a SignableData object. `fun KeyPair.sign(signableData: SignableData): TransactionSignature`
#### verify | Helper function for the signers to verify their own signature. `fun KeyPair.verify(signatureData: ByteArray, clearData: ByteArray): Boolean`