mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +00:00
Move Cash into new contracts subfolder, move base code into core
This commit is contained in:
parent
d7a5289c3d
commit
847770ed2e
@ -1,3 +1,4 @@
|
|||||||
|
import core.*
|
||||||
import java.security.PublicKey
|
import java.security.PublicKey
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@ -1,3 +1,5 @@
|
|||||||
|
package core
|
||||||
|
|
||||||
import java.math.BigDecimal
|
import java.math.BigDecimal
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlin.math.div
|
import kotlin.math.div
|
@ -1,7 +1,8 @@
|
|||||||
|
package core
|
||||||
|
|
||||||
import com.google.common.io.BaseEncoding
|
import com.google.common.io.BaseEncoding
|
||||||
import java.security.MessageDigest
|
import java.security.MessageDigest
|
||||||
import java.security.PublicKey
|
import java.security.PublicKey
|
||||||
import java.util.*
|
|
||||||
|
|
||||||
// "sealed" here means there can't be any subclasses other than the ones defined here.
|
// "sealed" here means there can't be any subclasses other than the ones defined here.
|
||||||
sealed class SecureHash(bits: ByteArray) : OpaqueBytes(bits) {
|
sealed class SecureHash(bits: ByteArray) : OpaqueBytes(bits) {
|
@ -1,3 +1,5 @@
|
|||||||
|
package core
|
||||||
|
|
||||||
// TODO: Make a decision on basic timestamping approach (use external TSAs? use fake TSA?)
|
// TODO: Make a decision on basic timestamping approach (use external TSAs? use fake TSA?)
|
||||||
// TODO: Think about how to expose time to the contract
|
// TODO: Think about how to expose time to the contract
|
||||||
// TODO: Pick a serialisation solution for the prototype (kryo?)
|
// TODO: Pick a serialisation solution for the prototype (kryo?)
|
@ -1,3 +1,5 @@
|
|||||||
|
package core
|
||||||
|
|
||||||
import java.security.PublicKey
|
import java.security.PublicKey
|
||||||
import java.security.Timestamp
|
import java.security.Timestamp
|
||||||
|
|
@ -1,3 +1,5 @@
|
|||||||
|
package core
|
||||||
|
|
||||||
import java.math.BigInteger
|
import java.math.BigInteger
|
||||||
import java.security.PublicKey
|
import java.security.PublicKey
|
||||||
import kotlin.test.fail
|
import kotlin.test.fail
|
@ -1,3 +1,5 @@
|
|||||||
|
package core
|
||||||
|
|
||||||
import com.google.common.io.BaseEncoding
|
import com.google.common.io.BaseEncoding
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
@ -1,3 +1,4 @@
|
|||||||
|
import core.*
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
import kotlin.test.assertFailsWith
|
import kotlin.test.assertFailsWith
|
Loading…
x
Reference in New Issue
Block a user