core.node.subsystems / StorageService

# StorageService

`interface StorageService`

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 isnt intended to imply lack of SQL or anything like that, this interface is only big enough to support the prototyping work.

### Properties

attachments | `abstract val attachments: AttachmentStorage` Provides access to storage of arbitrary JAR files (which may contain only data, no code).
checkpointStorage | `abstract val checkpointStorage: CheckpointStorage`
myLegalIdentity | `abstract val myLegalIdentity: Party` Returns the legal identity that this node is configured with. Assumed to be initialised when the node is first installed.
myLegalIdentityKey | `abstract val myLegalIdentityKey: KeyPair`
validatedTransactions | `abstract val validatedTransactions: MutableMap<SecureHash, SignedTransaction>` A map of hash->tx where tx has been signature/contract validated and the states are known to be correct. The signatures arent technically needed after that point, but we keep them around so that we can relay the transaction data to other nodes that need it.

### Inheritors

StorageServiceImpl | `open class StorageServiceImpl : StorageService`