Interface ContractState

  • All Implemented Interfaces:

    
    public interface ContractState
    
                        

    Defines a contract state.

    A contract state (or just "state") contains opaque data used by a contract program. It can be thought of as a disk file that the program can use to persist data across transactions.

    States are immutable. Once created, they are never updated, instead, any changes must generate a new successor state. States can be updated (consumed) only once. The notary is responsible for ensuring there is no "double spending" by only signing a transaction if the input states are all free.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract List<PublicKey> getParticipants() Gets the public keys of any participants associated with the current contract state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getParticipants

        @NotNull() abstract List<PublicKey> getParticipants()

        Gets the public keys of any participants associated with the current contract state.