Skip to content

Commit

Permalink
Reformat CurveType and SignatureType
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Jun 26, 2020
1 parent 3f4e8b7 commit 12f2676
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ In the near future, we will update this section with tips and helpful links for
Construction API implementation.

### Supported CurveTypes
* secp256k1: 1SEC compressed 33-bytes.
* edwards25519 = y (255-bits) || x-sign-bit (32-bytes).
* 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)

### Supported SignatureTypes
* ecdsa = r (32-bytes) || s (32-bytes)
* ecdsa_recovery = r (32-bytes) || s (32-bytes) || v (1-byte)
* ed25519 = R (32-byte) || s (32-bytes)
* ecdsa: `r (32-bytes) || s (32-bytes)` - `64 bytes`
* ecdsa_recovery: `r (32-bytes) || s (32-bytes) || v (1-byte)` - `65 bytes`
* ed25519: `R (32-byte) || s (32-bytes)` - `64 bytes`

### Decoupled Signature Schemes
CurveType and SignatureType are purposely decoupled as a curve could be used
Expand Down
4 changes: 2 additions & 2 deletions models/CurveType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
description: |
CurveType is the type of cryptographic curve associated with a PublicKey.
* secp256k1 = SEC compressed 33-bytes.
* edwards25519 = y (255-bits) || x-sign-bit (32-bytes).
* 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)
type: string
enum:
- secp256k1
Expand Down
6 changes: 3 additions & 3 deletions models/SignatureType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
description: |
SignatureType is the type of a cryptographic signature.
* ecdsa = r (32-bytes) || s (32-bytes)
* ecdsa_recovery = r (32-bytes) || s (32-bytes) || v (1-byte)
* ed25519 = R (32-byte) || s (32-bytes)
* ecdsa: `r (32-bytes) || s (32-bytes)` - `64 bytes`
* ecdsa_recovery: `r (32-bytes) || s (32-bytes) || v (1-byte)` - `65 bytes`
* ed25519: `R (32-byte) || s (32-bytes)` - `64 bytes`
type: string
enum:
- ecdsa
Expand Down

0 comments on commit 12f2676

Please sign in to comment.