Skip to content

Instantly share code, notes, and snippets.

@ashutoshmeher-r3
Created October 24, 2021 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashutoshmeher-r3/80053249157c99afffddb9b976da9aed to your computer and use it in GitHub Desktop.
Save ashutoshmeher-r3/80053249157c99afffddb9b976da9aed to your computer and use it in GitHub Desktop.
public class LandTitleContract implements Contract {
// This is used to identify our contract when building a transaction.
public static final String ID = "net.corda.c5.sample.landregistry.LandContract";
// A transaction is valid if the verify() function of the contract of all the transaction's input and output states
// does not throw an exception.
@Override
public void verify(@NotNull LedgerTransaction tx) {
// Implement your contract validation logic here.
}
// Used to indicate the transaction's intent.
public interface Commands extends CommandData {
//In our hello-world app, We will only have one command.
class Issue implements Commands {}
class Transfer implements Commands {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment