Created
October 24, 2021 06:56
-
-
Save ashutoshmeher-r3/80053249157c99afffddb9b976da9aed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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