r3prototyping / core.node.services / NodeTimestamperService

NodeTimestamperService

@ThreadSafe class NodeTimestamperService

This class implements the server side of the timestamping protocol, using the local clock. A future version might add features like checking against other NTP servers to make sure the clock hasnt drifted by too much.

See the doc site to learn more about timestamping authorities (nodes) and the role they play in the data model.





Constructors

<init> NodeTimestamperService(net: MessagingService, identity: Party, signingKey: KeyPair, clock: Clock = Clock.systemDefaultZone(), tolerance: Duration = 30.seconds)

This class implements the server side of the timestamping protocol, using the local clock. A future version might add features like checking against other NTP servers to make sure the clock hasnt drifted by too much.

Properties

clock val clock: Clock
identity val identity: Party
signingKey val signingKey: KeyPair
tolerance val tolerance: Duration

Functions

processRequest fun processRequest(req: Request): LegallyIdentifiable

Companion Object Properties

TIMESTAMPING_PROTOCOL_TOPIC val TIMESTAMPING_PROTOCOL_TOPIC: String