Minor: delete dead test-related code from Services.kt

This commit is contained in:
Mike Hearn 2016-03-01 15:20:03 +01:00
parent 3f19842632
commit 1bd63c030c

View File

@ -9,7 +9,6 @@
package core
import core.crypto.SecureHash
import core.crypto.generateKeyPair
import core.messaging.MessagingService
import core.messaging.NetworkMap
import java.io.InputStream
@ -84,14 +83,6 @@ interface KeyManagementService {
fun freshKey(): KeyPair
}
// Smart contracts may wish to specify explicitly which timestamping authorities are trusted to assert the time.
// We define a dummy authority here to allow to us to develop prototype contracts in the absence of a real authority.
// The timestamper itself is implemented in the unit test part of the code (in TestUtils.kt).
object DummyTimestampingAuthority {
val key = generateKeyPair()
val identity = Party("The dummy timestamper", key.public)
}
/**
* A sketch of an interface to a simple key/value storage system. Intended for persistence of simple blobs like
* transactions, serialised protocol state machines and so on. Again, this isn't intended to imply lack of SQL or