-
Notifications
You must be signed in to change notification settings - Fork 44
/
cred_jwt_test.go
264 lines (241 loc) · 17.6 KB
/
cred_jwt_test.go
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
/*
* Copyright (C) 2018 The ontology Authors
* This file is part of The ontology library.
*
* The ontology is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The ontology is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with The ontology. If not, see <http://www.gnu.org/licenses/>.
*/
package ontology_go_sdk
import (
"encoding/json"
"fmt"
"testing"
"time"
"github.com/ontio/ontology-go-sdk/utils"
"github.com/stretchr/testify/assert"
"github.com/ontio/ontology/common"
)
const (
CredentialCode = "59c56b05322e302e306a00527ac42241476d7269314b786847736b6d6a733236366f4a347066626b79336e784e6351613668204f6e746f6c6f67792e52756e74696d652e426173653538546f416464726573736a51527ac41400000000000000000000000000000000000000036a52527ac4681953797374656d2e53746f726167652e476574436f6e746578746a53527ac46c0123c56b6a00527ac46a51527ac46a52527ac46a51c306436f6d6d69747d9c7c75645c006a52c3c0547d9e7c75640a00006c75666203006a52c300c36a53527ac46a52c351c36a54527ac46a52c352c36a55527ac46a52c353c36a56527ac46a56c36a55c36a54c36a53c3546a00c306a502000000006e6c75666203006a51c3065265766f6b657d9c7c75644f006a52c3c0537d9e7c75640a00006c75666203006a52c300c36a53527ac46a52c351c36a58527ac46a52c352c36a55527ac46a55c36a58c36a53c3536a00c3065504000000006e6c75666203006a51c30652656d6f76657d9c7c75644f006a52c3c0537d9e7c75640a00006c75666203006a52c300c36a53527ac46a52c351c36a56527ac46a52c352c36a55527ac46a55c36a56c36a53c3536a00c3065306000000006e6c75666203006a51c3094765745374617475737d9c7c756435006a52c3c0517d9e7c75640a00006c75666203006a52c300c36a53527ac46a53c3516a00c3060708000000006e6c75666203006a51c307557067726164657d9c7c756483006a52c3c0577d9e7c75640a00006c75666203006a52c300c36a59527ac46a52c351c36a5a527ac46a52c352c36a5b527ac46a52c353c36a5c527ac46a52c354c36a5d527ac46a52c355c36a5e527ac46a52c356c36a5f527ac46a5fc36a5ec36a5dc36a5cc36a5bc36a5ac36a59c3576a00c306af08000000006e6c75666203006c75665fc56b6a00527ac46a51527ac46a52527ac46a53527ac46a54527ac46a55527ac46203006a54c36a53c352c66b6a00527ac46a51527ac46c6a56527ac46a56c30f7665726966795369676e61747572656a00c352c30068164f6e746f6c6f67792e4e61746976652e496e766f6b656a57527ac46a57c301017d9e7c7564290021636f6d6d697465724964207665726966795369676e6174757265206572726f722ef06203006a55c358007b6b766b946c6c52727f086469643a6f6e743a7d9e7c75641f0017696c6c6567616c206f776e6572496420666f726d61742ef06203006a52c36a00c353c3681253797374656d2e53746f726167652e4765746a58527ac46a58c3c0007d9e7c756425001d436f6d6d69742c20636c61696d496420616c7265616479206578697374f06203006a52c3516a53c36a55c354c176c96a59527ac46a59c3681853797374656d2e52756e74696d652e53657269616c697a656a58527ac46a58c36a52c36a00c353c3681253797374656d2e53746f726167652e5075746a55c36a53c36a52c306436f6d6d697454c1681553797374656d2e52756e74696d652e4e6f74696679516c75665fc56b6a00527ac46a51527ac46a52527ac46a53527ac46a54527ac46203006a54c36a53c352c66b6a00527ac46a51527ac46c6a55527ac46a55c30f7665726966795369676e61747572656a00c352c30068164f6e746f6c6f67792e4e61746976652e496e766f6b656a56527ac46a56c301017d9e7c756424001c6f6e744964207665726966795369676e6174757265206572726f722ef06203006a52c36a00c353c3681253797374656d2e53746f726167652e4765746a57527ac46a57c3c0007d9c7c756424001c5265766f6b652c20636c61696d496420646f206e6f74206578697374f06203006a57c3681a53797374656d2e52756e74696d652e446573657269616c697a656a58527ac46a58c3c0547d9f7c756427001f5265766f6b652c20696c6c6567616c20666f726d6174206f6620636c61696df06203006a58c352c36a53c37d9e7c7576641000756a58c353c36a53c37d9e7c756432002a5265766f6b652c206f6e74496420646f206e6f7420686176652061636365737320746f207265766f6b65f0620300006a58c3517bc46a58c3681853797374656d2e52756e74696d652e53657269616c697a656a59527ac46a59c36a52c36a00c353c3681253797374656d2e53746f726167652e5075746a53c36a52c3065265766f6b6553c1681553797374656d2e52756e74696d652e4e6f74696679516c75665dc56b6a00527ac46a51527ac46a52527ac46a53527ac46a54527ac46203006a54c36a53c352c66b6a00527ac46a51527ac46c6a55527ac46a55c30f7665726966795369676e61747572656a00c352c30068164f6e746f6c6f67792e4e61746976652e496e766f6b656a56527ac46a56c301017d9e7c756426001e6f776e65724964207665726966795369676e6174757265206572726f722ef06203006a52c36a00c353c3681253797374656d2e53746f726167652e4765746a57527ac46a57c3c0007d9c7c756424001c52656d6f76652c20636c61696d496420646f206e6f74206578697374f06203006a57c3681a53797374656d2e52756e74696d652e446573657269616c697a656a58527ac46a58c3c0547d9f7c756427001f52656d6f76652c20696c6c6567616c20666f726d6174206f6620636c61696df06203006a58c353c36a53c37d9e7c756420001852656d6f76652c206f776e657249642069732077726f6e67f06203006a52c36a00c353c3681553797374656d2e53746f726167652e44656c6574656a53c36a52c30652656d6f766553c1681553797374656d2e52756e74696d652e4e6f74696679516c75665ac56b6a00527ac46a51527ac46a52527ac46203006a52c36a00c353c3681253797374656d2e53746f726167652e4765746a53527ac46a53c3c0007d9c7c75640a00526c75666203006a53c3681a53797374656d2e52756e74696d652e446573657269616c697a656a54527ac46a54c3c0547d9f7c75642a00224765745374617475732c20696c6c6567616c20666f726d6174206f6620636c61696df06203006a54c351c36c75665ec56b6a00527ac46a51527ac46a52527ac46a53527ac46a54527ac46a55527ac46a56527ac46a57527ac46a58527ac46203006a00c351c3681b53797374656d2e52756e74696d652e436865636b5769746e65737391641b0013436865636b5769746e657373206661696c6564f06203006a58c36a57c36a56c36a55c36a54c36a53c36a52c368194f6e746f6c6f67792e436f6e74726163742e4d6967726174656a59527ac46a59c3916416000e4d696772617465206661696c6564f0620300516c7566"
)
func TestNeoVMContract_DeployNeoVMSmartContract(t *testing.T) {
Init()
txHash, err := testOntSdk.NeoVM.DeployNeoVMSmartContract(testGasPrice, 20400000, testDefAcc, false, CredentialCode, "cred", "1.0", "auth", "", "")
assert.Nil(t, err)
t.Logf("txHash:%v", txHash)
}
func TestJWTCredential(t *testing.T) {
Init()
contractAddr, err := utils.GetContractAddress(CredentialCode)
assert.Nil(t, err)
err = testOntSdk.SetCredContractAddress(contractAddr.ToHexString())
assert.Nil(t, err)
issuer, err := testWallet.NewDefaultSettingIdentity(testPasswd)
if err != nil {
t.Errorf("TestJWTCredential NewDefaultSettingIdentity error:%s", err)
return
}
holder, err := testWallet.NewDefaultSettingIdentity(testPasswd)
if err != nil {
t.Errorf("TestJWTCredential NewDefaultSettingIdentity error:%s", err)
return
}
_, err = testOntSdk.Native.OntId.RegIDWithPublicKey(testGasPrice, testGasLimit, testDefAcc, issuer.ID, testDefAcc)
if err != nil {
t.Errorf("TestJWTCredential RegIDWithPublicKey error:%s", err)
return
}
_, err = testOntSdk.Native.OntId.RegIDWithPublicKey(testGasPrice, testGasLimit, testDefAcc, holder.ID, testDefAcc)
if err != nil {
t.Errorf("TestJWTCredential RegIDWithPublicKey error:%s", err)
return
}
testOntSdk.WaitForGenerateBlock(30 * time.Second)
credentialSubject := RelationshipCredential(
[]*Relationship{{"did:example:ebfeb1f712ebc6f1c276e12ec21", "Jayden Doe", "did:example:c276e12ec21ebfeb1f712ebc6f1"},
{"did:example:c276e12ec21ebfeb1f712ebc6f1", "Morgan Doe", "did:example:ebfeb1f712ebc6f1c276e12ec21"}},
)
//var credentialSubject2 interface{}
request, err := testOntSdk.Credential.GenSignReq(credentialSubject, holder.ID, testDefAcc)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.GenSignReq error:%s", err)
return
}
err = testOntSdk.Credential.VerifySignReq(request)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.VerifySignReq error:%s", err)
return
}
contexts := []string{"context1", "context2"}
types := []string{"RelationshipCredential"}
expirationDate := time.Now().UTC().Unix() + 86400
s, err := testOntSdk.Credential.CreateJWTCredential(contexts, types, credentialSubject, issuer.ID, expirationDate,
"", "", testDefAcc)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.CreateCredential error:%s", err)
return
}
fmt.Println("JWTcredential is: ", s)
cred, err := DeserializeJWT(s)
if err != nil {
t.Errorf("TestJWTCredential DeserializeJWT error:%s", err)
return
}
contractAddress, err := common.AddressFromHexString(cred.Payload.VC.CredentialStatus.Id)
if err != nil {
t.Errorf("TestJWTCredential common.AddressFromHexString:%s", err)
return
}
txHash, err := testOntSdk.Credential.CommitCredential(contractAddress, 2500, 20000, cred.Payload.Jti,
issuer.ID, holder.ID, testDefAcc, testDefAcc)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.CommitCredential error:%s", err)
return
}
fmt.Println("txHash 1 is: ", txHash.ToHexString())
testOntSdk.WaitForGenerateBlock(30 * time.Second)
err = testOntSdk.Credential.VerifyJWTCredibleOntId([]string{issuer.ID}, s)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.VerifyCredibleOntId error:%s", err)
return
}
err = testOntSdk.Credential.VerifyJWTIssuanceDate(s)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.VerifyJWTIssuanceDate error:%s", err)
return
}
err = testOntSdk.Credential.VerifyJWTExpirationDate(s)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.VerifyJWTExpirationDate error:%s", err)
return
}
err = testOntSdk.Credential.VerifyJWTIssuerSignature(s)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.VerifyIssuerSignature credential error:%s", err)
return
}
err = testOntSdk.Credential.VerifyJWTStatus(s)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.VerifyStatus error:%s", err)
return
}
ps, err := testOntSdk.Credential.CreateJWTPresentation([]string{s}, contexts, types, holder.ID,
"", "", testDefAcc)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.CreatePresentation error:%s", err)
return
}
fmt.Println("JWTPresentation is: ", ps)
err = testOntSdk.Credential.VerifyJWTIssuerSignature(ps)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.VerifyIssuerSignature presentation error:%s", err)
return
}
credential, err := testOntSdk.Credential.JWTCred2Json(s)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.JWTCred2Json error:%s", err)
return
}
credentialJson, err := json.Marshal(credential)
if err != nil {
t.Errorf("TestJWTCredential json.Marshal credential error:%s", err)
return
}
fmt.Println("credential is: ", string(credentialJson))
presentation, err := testOntSdk.Credential.JWTPresentation2Json(ps)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.JWTPresentation2Json error:%s", err)
return
}
presentationJson, err := json.Marshal(presentation)
if err != nil {
t.Errorf("TestJWTCredential json.Marshal presentation error:%s", err)
return
}
fmt.Println("presentation is: ", string(presentationJson))
s2, err := testOntSdk.Credential.JsonCred2JWT(credential)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.JsonCred2JWT error:%s", err)
return
}
fmt.Println("JWTcredential2 is: ", s2)
ps2, err := testOntSdk.Credential.JsonPresentation2JWT(presentation, presentation.Proof[0])
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.JsonCred2JWT error:%s", err)
return
}
fmt.Println("JWTPresentation2 is: ", ps2)
credential2, err := testOntSdk.Credential.JWTCred2Json(s2)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.JWTCred2Json error:%s", err)
return
}
credentialJson2, err := json.Marshal(credential2)
if err != nil {
t.Errorf("TestJWTCredential json.Marshal credential error:%s", err)
return
}
fmt.Println("credential2 is: ", string(credentialJson2))
presentation2, err := testOntSdk.Credential.JWTPresentation2Json(ps2)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.JWTPresentation2Json error:%s", err)
return
}
presentationJson2, err := json.Marshal(presentation2)
if err != nil {
t.Errorf("TestJWTCredential json.Marshal presentation error:%s", err)
return
}
fmt.Println("presentation2 is: ", string(presentationJson2))
txHash, err = testOntSdk.Credential.RevokeJWTCredentialByHolder(2500, 20000, s, holder.ID, testDefAcc, testDefAcc)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.RevokeCredentialByHolder error:%s", err)
return
}
fmt.Println("txHash 2 is: ", txHash.ToHexString())
testOntSdk.WaitForGenerateBlock(30 * time.Second)
txHash, err = testOntSdk.Credential.RemoveJWTCredential(2500, 20000, s, holder.ID, testDefAcc, testDefAcc)
if err != nil {
t.Errorf("TestJWTCredential testOntSdk.Credential.RevokeCredentialByHolder error:%s", err)
return
}
fmt.Println("txHash 3 is: ", txHash.ToHexString())
}
//func TestVerifyStringJWT(t *testing.T) {
// Init()
//
// credibleOntIds := []string{"did:ont:AJ4C9aTYxTGUhEpaZdPjFSqCqzMCqJDRUd",
// "did:ont:AVe4zVZzteo6HoLpdBwpKNtDXLjJBzB9fv"}
// jwtCred := "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDpvbnQ6QUo0QzlhVFl4VEdVaEVwYVpkUGpGU3FDcXpNQ3FKRFJVZCNrZXlzLTIiLCJ0eXAiOiJKV1QifQ==.eyJpc3MiOiJkaWQ6b250OkFKNEM5YVRZeFRHVWhFcGFaZFBqRlNxQ3F6TUNxSkRSVWQiLCJzdWIiOiJkaWQ6b250OjExMTExMSIsImV4cCI6MTU5MzUwODg0NywibmJmIjoxNTkzNDIyNDQ3LCJpYXQiOjE1OTM0MjI0NDcsImp0aSI6InVybjp1dWlkOjBjNjM5NzIwLWRjNGEtNGE1YS1hZTJmLTI4ZDgzNDg2ZDc4ZCIsInZjIjp7IkBjb250ZXh0IjpbImh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxzL3YxIiwiaHR0cHM6Ly9vbnRpZC5vbnQuaW8vY3JlZGVudGlhbHMvdjEiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCIsIlJlbGF0aW9uc2hpcENyZWRlbnRpYWwiXSwiY3JlZGVudGlhbFN1YmplY3QiOnsibmFtZSI6IkJvYiIsInNwb3VzZSI6IkFsaWNlIn0sImNyZWRlbnRpYWxTdGF0dXMiOnsiaWQiOiI1MmRmMzcwNjgwZGUxN2JjNWQ0MjYyYzQ0NmYxMDJhMGVlMGQ2MzEyIiwidHlwZSI6IkF0dGVzdENvbnRyYWN0In0sInByb29mIjp7ImNyZWF0ZWQiOiIyMDIwLTA2LTI5VDE3OjIwOjQ3WiIsInByb29mUHVycG9zZSI6ImFzc2VydGlvbk1ldGhvZCJ9fX0=.AZJzqbjmW8g5GNLn9QTgFGA86d4DIPd8A/rkoj5M+VNMsF76VteiHLy/j1srO8rORX36Xzp6ajIZ6NIMmBRH6M8="
// err := testOntSdk.Credential.VerifyJWTCredibleOntId(credibleOntIds, jwtCred)
// if err != nil {
// t.Fatal(err)
// }
// err = testOntSdk.Credential.VerifyJWTDate(jwtCred)
// if err != nil {
// t.Fatal(err)
// }
// err = testOntSdk.Credential.VerifyJWTIssuerSignature(jwtCred)
// if err != nil {
// t.Fatal(err)
// }
// err = testOntSdk.Credential.VerifyJWTStatus(jwtCred)
// if err != nil {
// t.Fatal(err)
// }
// jwtPresentation := "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDpvbnQ6QVZlNHpWWnp0ZW82SG9McGRCd3BLTnREWExqSkJ6QjlmdiNrZXlzLTIiLCJ0eXAiOiJKV1QifQ==.eyJpc3MiOiJkaWQ6b250OkFWZTR6Vlp6dGVvNkhvTHBkQndwS050RFhMakpCekI5ZnYiLCJhdWQiOlsiaHR0cHM6Ly9leGFtcGxlLmNvbSJdLCJqdGkiOiJ1cm46dXVpZDo1ODU3ZDdiMS04ZDM5LTRmMzktOTYwNi0xNGRjNjIwZjExYzciLCJub25jZSI6ImQxYjIzZDMuLi4zZDIzZDMyZDIiLCJ2cCI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSIsImh0dHBzOi8vb250aWQub250LmlvL2NyZWRlbnRpYWxzL3YxIl0sInR5cGUiOlsiVmVyaWZpYWJsZVByZXNlbnRhdGlvbiIsIkNyZWRlbnRpYWxNYW5hZ2VyUHJlc2VudGF0aW9uIl0sInZlcmlmaWFibGVDcmVkZW50aWFsIjpbImV5SmhiR2NpT2lKRlV6STFOaUlzSW10cFpDSTZJbVJwWkRwdmJuUTZRVW8wUXpsaFZGbDRWRWRWYUVWd1lWcGtVR3BHVTNGRGNYcE5RM0ZLUkZKVlpDTnJaWGx6TFRJaUxDSjBlWEFpT2lKS1YxUWlmUT09LmV5SnBjM01pT2lKa2FXUTZiMjUwT2tGS05FTTVZVlJaZUZSSFZXaEZjR0ZhWkZCcVJsTnhRM0Y2VFVOeFNrUlNWV1FpTENKemRXSWlPaUprYVdRNmIyNTBPakV4TVRFeE1TSXNJbVY0Y0NJNk1UVTVNelV3T0RnME55d2libUptSWpveE5Ua3pORE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