You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/Extensions.Attestation.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ inline fun <reified T : ContractState, reified U : Attestation<T>> StateAndRef<U
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/Extensions.StateAndRef.kt
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/attestations/AttestationContract.kt
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/attestations/AttestationPointer.kt
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ import java.util.*
37
37
* @param T The underlying [ContractState] type.
38
38
* @property stateType The [Class] of the witnessed state being attested.
39
39
* @property statePointer The pointer to the witnessed state being attested.
40
+
* @property identifier Provides an additional, external identifier which can be used to track states across state transitions.
40
41
* @property hash The hash of the attestation pointer.
41
42
*
42
43
* Note that attestation pointer hashes should be unique for static attestation pointers since they point to the
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/attestations/AttestationSchema.kt
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/main/resources/migration/attestation-schema.changelog-master.xml
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/test/kotlin/io/onixlabs/corda/identityframework/contract/ContractTest.kt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,8 @@ abstract class ContractTest {
72
72
73
73
fun <T:LinearState> StateAndRef<Attestation<T>>.withInvalidPointer(): Attestation<T> {
74
74
returnwith(state.data) {
75
-
val invalidPointer =LinearAttestationPointer(pointer.stateType, UniqueIdentifier())
75
+
val invalidLinearId =UniqueIdentifier()
76
+
val invalidPointer =LinearAttestationPointer(pointer.stateType, invalidLinearId, invalidLinearId.toString())
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/test/kotlin/io/onixlabs/corda/identityframework/contract/attestations/AttestationContractAmendCommandTests.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ class AttestationContractAmendCommandTests : ContractTest() {
72
72
}
73
73
74
74
@Test
75
-
fun`On attestation amending, the attestor, linear ID, pointer class and pointer linear ID must not change (wrong attestor)`() {
75
+
fun`On attestation amending, the attestor, linear ID, pointer class and pointer identifier must not change (wrong attestor)`() {
76
76
services.ledger {
77
77
transaction {
78
78
val issuedClaim1 = issue(CLAIM_1)
@@ -87,7 +87,7 @@ class AttestationContractAmendCommandTests : ContractTest() {
87
87
}
88
88
89
89
@Test
90
-
fun`On attestation amending, the attestor, linear ID, pointer class and pointer linear ID must not change (wrong pointer)`() {
90
+
fun`On attestation amending, the attestor, linear ID, pointer class and pointer identifier must not change (wrong pointer)`() {
0 commit comments