mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +00:00
Remove unnecessary TODO
This commit is contained in:
parent
3c4e89e766
commit
f4925c0fa9
@ -208,7 +208,6 @@ interface KeyManagementService {
|
||||
/** Returns a snapshot of the current pubkey->privkey mapping. */
|
||||
val keys: Map<PublicKey, PrivateKey>
|
||||
|
||||
// TODO: make toPrivate return null if not found instead of throwing
|
||||
fun toPrivate(publicKey: PublicKey) = keys[publicKey] ?: throw IllegalStateException("No private key known for requested public key ${publicKey.toStringShort()}")
|
||||
|
||||
fun toKeyPair(publicKey: PublicKey) = KeyPair(publicKey, toPrivate(publicKey))
|
||||
|
Loading…
Reference in New Issue
Block a user