Skip to content

Commit

Permalink
Merge pull request #39 from joeqian10/master
Browse files Browse the repository at this point in the history
Add secp256r1 to CurveType
  • Loading branch information
patrick-ogrady authored Aug 26, 2020
2 parents 1a506fe + 1545286 commit 311d2b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand Down
2 changes: 2 additions & 0 deletions models/CurveType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 311d2b6

Please sign in to comment.