mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
Misc comments
This commit is contained in:
parent
3041ca73f2
commit
a7bfff486a
@ -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()
|
||||
|
@ -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
|
||||
)
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user