From 25e2fd9a69ba1e06942b5095a8b989f8cab72f01 Mon Sep 17 00:00:00 2001 From: joeqian Date: Fri, 21 Aug 2020 16:10:45 +0800 Subject: [PATCH 1/2] Add secp256r1 to CurveType --- models/CurveType.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/CurveType.yaml b/models/CurveType.yaml index 5569602..e40601c 100644 --- a/models/CurveType.yaml +++ b/models/CurveType.yaml @@ -16,8 +16,10 @@ description: | CurveType is the type of cryptographic curve associated with a PublicKey. * secp256k1: SEC compressed - `33 bytes` (https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) + * secp256r1: SEC compressed - `33 bytes` (https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) * edwards25519: `y (255-bits) || x-sign-bit (1-bit)` - `32 bytes` (https://ed25519.cr.yp.to/ed25519-20110926.pdf) type: string enum: - secp256k1 + - secp256r1 - edwards25519 From 1545286f4aaf8aa0d496954d14e505d18d2cd96e Mon Sep 17 00:00:00 2001 From: joeqian10 Date: Tue, 25 Aug 2020 03:06:29 +0000 Subject: [PATCH 2/2] modify api.json with signature --- api.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.json b/api.json index da77bdb..6cdca46 100644 --- a/api.json +++ b/api.json @@ -1159,10 +1159,11 @@ } }, "CurveType": { - "description":"CurveType is the type of cryptographic curve associated with a PublicKey. * secp256k1: SEC compressed - `33 bytes` (https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) * edwards25519: `y (255-bits) || x-sign-bit (1-bit)` - `32 bytes` (https://ed25519.cr.yp.to/ed25519-20110926.pdf)", + "description":"CurveType is the type of cryptographic curve associated with a PublicKey. * secp256k1: SEC compressed - `33 bytes` (https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) * secp256r1: SEC compressed - `33 bytes` (https://secg.org/sec1-v2.pdf#subsubsection.2.3.3) * edwards25519: `y (255-bits) || x-sign-bit (1-bit)` - `32 bytes` (https://ed25519.cr.yp.to/ed25519-20110926.pdf)", "type":"string", "enum": [ "secp256k1", + "secp256r1", "edwards25519" ] },