-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontract-agreement-verification-message.puml
45 lines (36 loc) · 1.22 KB
/
contract-agreement-verification-message.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@startuml "contract-agreement-verification-message"
!pragma layout smetana
!include ../../../common/style/diagram.styles.puml
hide empty description
class "dspace:ContractAgreementVerificationMessage" {
@context : "https://w3id.org/dspace/v0.8/context.json"
@type : "dspace:ContractAgreementVerificationMessage"
dspace:providerPid : String
dspace:consumerPid : String
cred:credentialSubject : dspace:ContractAgreementMessage
sec:proof : sec:Proof
}
class dspace:ContractAgreementMessage {
@type : "dspace:ContractAgreementMessage"
dspace:hash : String
}
class sec:Proof {
@type : Signature
dct:created : xsd:dateTime
sec:jws : String
}
enum Signature {
sec:EcdsaSecp256k1Signature2019
sec:EcdsaSecp256k1RecoverySignature2020
sec:RsaSignature2018
sec:SchnorrSecp256k1Signature2019
sec:MerkleProof2019
sec:Ed25519Signature2020
sec:JsonWebSignature2020
sec:BbsBlsSignature2020
sec:BbsBlsSignatureProof2020
}
"dspace:ContractAgreementVerificationMessage" "1" *-- "1" "dspace:ContractAgreementMessage" : "cred:credentialSubject"
"dspace:ContractAgreementVerificationMessage" "1" *-- "0..2" "sec:Proof" : "sec:proof"
"sec:Proof" "1" *-- "1" Signature : @type
@enduml