Skip to content

Commit

Permalink
Simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 12, 2024
1 parent 06e3904 commit f09e228
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions types/primitive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ BitList:
type: string
format: hex
example: "0x01"
pattern: "^0x([a-fA-F0-9]{2}){1,32}$"
pattern: "^0x[a-fA-F0-9]{2,64}$"

Bitvector:
type: string
format: hex
example: "0x01"
pattern: "^0x([a-fA-F0-9]{2}){1,32}$"
pattern: "^0x[a-fA-F0-9]{2,64}$"

Uint8:
type: string
Expand Down Expand Up @@ -137,12 +137,11 @@ KZGCommitment:
type: string
format: hex
pattern: "^0x[a-fA-F0-9]{96}$"
description: "A G1 curve point. Same as BLS standard \"is valid pubkey\" check but also allows `0x00..00` for point-at-infinity"
description: 'A G1 curve point. Same as BLS standard "is valid pubkey" check but also allows `0x00..00` for point-at-infinity'
example: "0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a"

KZGProof:
type: string
format: hex
pattern: "^0x[a-fA-F0-9]{96}$"
description: "A G1 curve point. Used for verifying that the `KZGCommitment` for a given `Blob` is correct."

0 comments on commit f09e228

Please sign in to comment.