Skip to content

Commit 29eaad7

Browse files
Added value.javaClass to the hash of CordaClaim allowing claims of different value types with the same value representation.
1 parent e8af715 commit 29eaad7

File tree

1 file changed

+1
-1
lines changed
  • onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract

1 file changed

+1
-1
lines changed

onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/CordaClaim.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ open class CordaClaim<T : Any>(
7474
get() = issuer == holder
7575

7676
final override val hash: SecureHash
77-
get() = SecureHash.sha256("$issuer$holder$property$value$previousStateRef")
77+
get() = SecureHash.sha256("$issuer$holder$property$value${value.javaClass}$previousStateRef")
7878

7979
override val participants: List<AbstractParty>
8080
get() = setOf(issuer, holder).toList()

0 commit comments

Comments
 (0)