Package-level declarations

Types

Link copied to clipboard
class AttachmentsClassLoader(attachments: List<Attachment>, val params: NetworkParameters, sampleTxId: SecureHash, isAttachmentTrusted: (Attachment) -> Boolean, parent: ClassLoader = ClassLoader.getSystemClassLoader()) : URLClassLoader

A custom ClassLoader that knows how to load classes from a set of attachments. The attachments themselves only need to provide JAR streams, and so could be fetched from a database, local disk, etc. Constructing an AttachmentsClassLoader is somewhat expensive, as every attachment is scanned to ensure that there are no overlapping file paths. In addition, every JAR is scanned to ensure that it doesn't violate the package namespace ownership rules.

Link copied to clipboard

This is just a factory that provides caches to optimise expensive construction/loading of classloaders, serializers, whitelisted classes.

Link copied to clipboard
Link copied to clipboard
data class AttachmentsClassLoaderKey(val hashes: Set<SecureHash>, val params: NetworkParameters)
Link copied to clipboard
Link copied to clipboard

Registers a new internal "attachment" protocol. This will not be exposed as an API.

Link copied to clipboard

Parameters to checkpoint serialization and deserialization.

Link copied to clipboard
Link copied to clipboard

Thrown by the serialization framework, probably indicating that a custom serializer needs to be included in a transaction.

Link copied to clipboard

Properties

Functions

Link copied to clipboard
inline fun <T : Any> ByteArray.checkpointDeserialize(context: CheckpointSerializationContext = effectiveSerializationEnv.checkpointContext): T

Convenience extension method for deserializing a ByteArray, utilising the default factory.

inline fun <T : Any> SerializedBytes<T>.checkpointDeserialize(context: CheckpointSerializationContext = effectiveSerializationEnv.checkpointContext): T

Convenience extension method for deserializing SerializedBytes with type matching, utilising the default factory.

inline fun <T : Any> ByteSequence.checkpointDeserialize(context: CheckpointSerializationContext = effectiveSerializationEnv.checkpointContext): T
Link copied to clipboard
fun <T : Any> T.checkpointSerialize(context: CheckpointSerializationContext = effectiveSerializationEnv.checkpointContext): SerializedBytes<T>

Convenience extension method for serializing an object of type T, utilising the default factory.