Misc comments

This commit is contained in:
Mike Hearn 2015-11-11 14:20:24 +00:00
parent 3041ca73f2
commit a7bfff486a
3 changed files with 7 additions and 2 deletions

View File

@ -55,7 +55,10 @@ object Cash : Contract {
override fun hashCode() = 0
}
/** A command stating that money has been withdrawn from the shared ledger and is now accounted for in some other way */
/**
* A command stating that money has been withdrawn from the shared ledger and is now accounted for
* in some other way.
*/
class Exit(val amount: Amount) : Command {
override fun equals(other: Any?) = other is Exit && other.amount == amount
override fun hashCode() = amount.hashCode()

View File

@ -61,7 +61,7 @@ data class SignedCommand(
/** Obtained from a [SignedCommand], deserialised and signature checked */
data class VerifiedSigned<out T : Command>(
val signers: List<PublicKey>,
/** If the public key was recognised, the looked up institution is available here, otherwise it's null */
/** If any public keys were recognised, the looked up institutions are available here */
val signingInstitutions: List<Institution>,
val value: T
)

View File

@ -30,6 +30,8 @@ class LedgerTransaction(
val args: List<SignedCommand>,
/** The moment the transaction was timestamped for */
val time: Instant
// TODO: nLockTime equivalent?
)
/** A transaction in fully resolved form, ready for passing as input to a verification function */