Core Library for Corda

A modular toolkit of contract, workflow and integration APIs that takes the boilerplate out of CorDapp development.

What's inside

Discover the capabilities built to elevate your Corda applications.

Contract APIs

Implementing ContractID automates and standardises how contract identifiers are generated and managed, eliminating boilerplate and reducing future refactoring. It ensures every contract has a deterministic and idiomatic ID from day one.

Corda's flows often require explicit verification of who initiated a transaction, which isn’t always straightforward in a decentralised context. To solve this, the library introduces SignatureData and SignedCommandData, enforcing that each command be signed by its originator before a counterparty can endorse the transaction. This mechanism strengthens authorisation guarantees and provides clear attribution of transaction intent.

Enhanced State Types

Chained States create a cryptographic sequence of state transitions, preventing splits, merges, or duplicates and preserving a verifiable linear history.

Hashable States emit unique hashes at each transition to guarantee tamper-proof uniqueness and allow integrity verification without exposing underlying data.

Resolvable States enhance Corda's pointer model by enabling expressive relationships—one-to-one, one-to-many, or many-to-many. This empowers developers to model complex state relations with minimal code.

Vault Adapters

Vault access via CordaRPCOps and ServiceHub often varies subtly, leading to inconsistent implementations. ONIXLabs Vault Adapters abstract these differences behind a cohesive interface for consistent and predictable vault queries.

Vault Query DSL

Pairing vault adapters with the expressive Vault Query DSL brings Corda's vault querying in line with idiomatic Kotlin. Use familiar operators, such as where, filter, and map to write clear and extensible queries, improving readability and reducing complexity.

Transaction DSL

The Transaction Builder DSL provides a clean, structured approach to constructing ledger transactions—grouping inputs, outputs, commands, and signatures logically by intent. This enhances clarity and maintainability in flow development.

Flow Steps

Complemented by reusable Flow Step utilities, the library standardises tasks like session initiation, subflow invocation, and error handling. These helpers eliminate boilerplate and simplify workflow logic for faster development.

Messaging Workflows

The low-level messaging API enables reliable inter-node communication with built-in acknowledgement support. It also simplifies distributing vault transaction notifications to counterparties, ensuring consistent and traceable workflows.

Extensions

Powered by a rich collection of extension methods, covering transactions, key and flow management, signed transactions, builders, and more, this library wraps common tasks into expressive, reusable functions that elevate productivity and reduce errors.