From e80253f0caf91d2453aa3dfdbaffe7f84559b750 Mon Sep 17 00:00:00 2001 From: wang yan Date: Mon, 10 Jul 2023 13:47:11 +0800 Subject: [PATCH] add notation support Accept and recognize the signature of notation client Signed-off-by: wang yan --- icons/notation.png | Bin 0 -> 295 bytes src/controller/icon/controller.go | 4 + src/core/main.go | 1 + src/lib/icon/const.go | 7 +- src/pkg/accessory/manager.go | 5 +- src/pkg/accessory/model/accessory.go | 3 + src/pkg/accessory/model/notation/notation.go | 46 +++++++++++ .../accessory/model/notation/notation_test.go | 73 ++++++++++++++++++ src/server/middleware/subject/subject.go | 12 ++- 9 files changed, 145 insertions(+), 6 deletions(-) create mode 100644 icons/notation.png create mode 100644 src/pkg/accessory/model/notation/notation.go create mode 100644 src/pkg/accessory/model/notation/notation_test.go diff --git a/icons/notation.png b/icons/notation.png new file mode 100644 index 0000000000000000000000000000000000000000..5d9d8a9854bef4cc22f800a80d1acc0e1034fbb9 GIT binary patch literal 295 zcmeAS@N?(olHy`uVBq!ia0vp^svyk41|*NpQ(y*C?>t=`Ln`9l_BnDLcHlYk=fD5< z2e&y~5*O^4!cj7lBRxGW&i>hWA}&p^NV@@y|0{d@c-ZYi*M9k zN)Wd_{%uC)hVFUE)n`m@xSro=nQ(i