From f09c624c0f83493623e13f5ac723348ddf9e2b08 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 6 Nov 2015 14:57:16 +0100 Subject: [PATCH] Move DepositPointer into Structures --- src/contracts/Cash.kt | 8 -------- src/core/Structures.kt | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/contracts/Cash.kt b/src/contracts/Cash.kt index b8e173f2f8..e2d74969cd 100644 --- a/src/contracts/Cash.kt +++ b/src/contracts/Cash.kt @@ -8,14 +8,6 @@ import java.security.PublicKey // Just a fake program identifier for now. In a real system it could be, for instance, the hash of the program bytecode. val CASH_PROGRAM_ID = SecureHash.sha256("cash") -/** - * Reference to some money being stored by an institution e.g. in a vault or (more likely) on their normal ledger. - * The deposit reference is intended to be encrypted so it's meaningless to anyone other than the institution. - */ -data class DepositPointer(val institution: Institution, val reference: OpaqueBytes) { - override fun toString() = "${institution.name}$reference" -} - /** A state representing a claim on the cash reserves of some institution */ data class CashState( /** Where the underlying currency backing this ledger entry can be found (propagated) */ diff --git a/src/core/Structures.kt b/src/core/Structures.kt index 1d80e0e9f7..069af40751 100644 --- a/src/core/Structures.kt +++ b/src/core/Structures.kt @@ -93,3 +93,10 @@ interface Contract { fun verify(inStates: List, outStates: List, args: List) } +/** + * Reference to some money being stored by an institution e.g. in a vault or (more likely) on their normal ledger. + * The deposit reference is intended to be encrypted so it's meaningless to anyone other than the institution. + */ +data class DepositPointer(val institution: Institution, val reference: OpaqueBytes) { + override fun toString() = "${institution.name}$reference" +} \ No newline at end of file