Commit 4e434b2
committed
chore: make extra signers auditable in dlog metadata
Closes #993
In both IssueMetadata and TransferMetadata, ExtraSigners was typed as
[]Identity. This prevented auditors with access to the metadata from
resolving those identities, unlike Issuer, Senders, and Receivers which
already use AuditableIdentity.
Changes:
- token/driver/protos/request.proto: change extra_signers field from
repeated Identity to repeated AuditableIdentity in both TransferMetadata
and IssueMetadata messages
- token/driver/protos-go/request/request.pb.go: update generated struct
fields and getter methods accordingly
- token/driver/request.go: change ExtraSigners []Identity to
[]*AuditableIdentity in both structs; update ToProtos/FromProtos to use
protos.ToProtosSlice/FromProtosSlice consistent with other auditable fields
- token/request.go: extract .Identity when building public Issue/Transfer
structs (which keep []Identity as their API); fix extra-signer binding
loop to use eid.Identity
- token/metadata.go: fix Match() comparisons to compare against es.Identity
- token/driver/request_test.go, token/metadata_test.go, token/request_test.go:
update all test fixtures and assertions to use []*AuditableIdentity
Signed-off-by: SurbhiAgarwal1 <agarwalsurbhi1807@gmail.com>1 parent c9c9ff5 commit 4e434b2
8 files changed
Lines changed: 97 additions & 59 deletions
File tree
- token
- driver
- protos-go/request
- protos
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
405 | 410 | | |
406 | 411 | | |
407 | 412 | | |
408 | 413 | | |
409 | | - | |
| 414 | + | |
410 | 415 | | |
411 | 416 | | |
412 | 417 | | |
| |||
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
429 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
430 | 438 | | |
431 | 439 | | |
432 | 440 | | |
| |||
536 | 544 | | |
537 | 545 | | |
538 | 546 | | |
539 | | - | |
| 547 | + | |
540 | 548 | | |
541 | 549 | | |
542 | 550 | | |
| |||
560 | 568 | | |
561 | 569 | | |
562 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
563 | 575 | | |
564 | 576 | | |
565 | 577 | | |
| |||
571 | 583 | | |
572 | 584 | | |
573 | 585 | | |
574 | | - | |
| 586 | + | |
575 | 587 | | |
576 | 588 | | |
577 | 589 | | |
| |||
585 | 597 | | |
586 | 598 | | |
587 | 599 | | |
588 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
589 | 604 | | |
590 | 605 | | |
591 | 606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
391 | 393 | | |
392 | 394 | | |
393 | 395 | | |
| |||
401 | 403 | | |
402 | 404 | | |
403 | 405 | | |
404 | | - | |
| 406 | + | |
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
| |||
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
420 | | - | |
421 | | - | |
| 422 | + | |
| 423 | + | |
422 | 424 | | |
423 | 425 | | |
424 | 426 | | |
| |||
432 | 434 | | |
433 | 435 | | |
434 | 436 | | |
435 | | - | |
| 437 | + | |
436 | 438 | | |
437 | 439 | | |
438 | 440 | | |
| |||
648 | 650 | | |
649 | 651 | | |
650 | 652 | | |
651 | | - | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
652 | 656 | | |
653 | 657 | | |
654 | 658 | | |
| |||
661 | 665 | | |
662 | 666 | | |
663 | 667 | | |
664 | | - | |
| 668 | + | |
665 | 669 | | |
666 | 670 | | |
667 | 671 | | |
| |||
689 | 693 | | |
690 | 694 | | |
691 | 695 | | |
692 | | - | |
693 | | - | |
| 696 | + | |
| 697 | + | |
694 | 698 | | |
695 | 699 | | |
696 | 700 | | |
| |||
704 | 708 | | |
705 | 709 | | |
706 | 710 | | |
707 | | - | |
| 711 | + | |
708 | 712 | | |
709 | 713 | | |
710 | 714 | | |
| |||
751 | 755 | | |
752 | 756 | | |
753 | 757 | | |
754 | | - | |
755 | | - | |
756 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
757 | 761 | | |
758 | 762 | | |
759 | 763 | | |
| |||
807 | 811 | | |
808 | 812 | | |
809 | 813 | | |
810 | | - | |
811 | | - | |
812 | | - | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
813 | 817 | | |
814 | 818 | | |
815 | 819 | | |
| |||
1312 | 1316 | | |
1313 | 1317 | | |
1314 | 1318 | | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1319 | 1323 | | |
1320 | 1324 | | |
1321 | 1325 | | |
1322 | 1326 | | |
1323 | 1327 | | |
1324 | 1328 | | |
1325 | 1329 | | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1329 | 1336 | | |
1330 | 1337 | | |
1331 | 1338 | | |
| |||
1337 | 1344 | | |
1338 | 1345 | | |
1339 | 1346 | | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1343 | 1350 | | |
1344 | 1351 | | |
1345 | 1352 | | |
| |||
1348 | 1355 | | |
1349 | 1356 | | |
1350 | 1357 | | |
1351 | | - | |
1352 | | - | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
1353 | 1362 | | |
1354 | 1363 | | |
1355 | 1364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
305 | | - | |
| 307 | + | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| |||
0 commit comments