diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-05-25 18:53:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 18:53:37 +0800 |
commit | dc1ca23e3006dc614e512353aa2ae354e584f1cf (patch) | |
tree | 3016829f0dabe508af7f52e3d4893c7e7d0b8de3 /src/ts/schemas | |
parent | 5d64b562c60710e9b9b6a6286d4278718f043d0d (diff) | |
parent | b1a6c895cc095b39c263ff508d98395b1b901dc6 (diff) | |
download | dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.gz dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.bz2 dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.lz dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.xz dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.zst dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.zip |
Merge branch 'master' into isValidOrderHash
Diffstat (limited to 'src/ts/schemas')
-rw-r--r-- | src/ts/schemas/ec_signature_schema.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ts/schemas/ec_signature_schema.ts b/src/ts/schemas/ec_signature_schema.ts new file mode 100644 index 000000000..94e58e53c --- /dev/null +++ b/src/ts/schemas/ec_signature_schema.ts @@ -0,0 +1,20 @@ +export const ECSignatureParameter = { + id: '/ECSignatureParameter', + type: 'string', + pattern: '^0[xX][0-9A-Fa-f]{64}$', +}; + +export const ECSignatureSchema = { + id: '/ECSignature', + properties: { + v: { + type: 'number', + minimum: 27, + maximum: 28, + }, + r: {$ref: '/ECSignatureParameter'}, + s: {$ref: '/ECSignatureParameter'}, + }, + required: ['v', 'r', 's'], + type: 'object', +}; |