aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/schemas
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-25 17:27:27 +0800
committerFabio Berger <me@fabioberger.com>2017-05-25 17:27:27 +0800
commit0b8ddc1ee18c6d52fbc72177e8c5e180f9106708 (patch)
treea9d6204be88ecdb724742ab1a2fdabe24ffc8e29 /src/ts/schemas
parentd23dbf53fd3689613f28d576d03ccfdce94b6646 (diff)
downloaddexon-sol-tools-0b8ddc1ee18c6d52fbc72177e8c5e180f9106708.tar
dexon-sol-tools-0b8ddc1ee18c6d52fbc72177e8c5e180f9106708.tar.gz
dexon-sol-tools-0b8ddc1ee18c6d52fbc72177e8c5e180f9106708.tar.bz2
dexon-sol-tools-0b8ddc1ee18c6d52fbc72177e8c5e180f9106708.tar.lz
dexon-sol-tools-0b8ddc1ee18c6d52fbc72177e8c5e180f9106708.tar.xz
dexon-sol-tools-0b8ddc1ee18c6d52fbc72177e8c5e180f9106708.tar.zst
dexon-sol-tools-0b8ddc1ee18c6d52fbc72177e8c5e180f9106708.zip
Add schema validation and assertion, create ECSignature schema
Diffstat (limited to 'src/ts/schemas')
-rw-r--r--src/ts/schemas/ec_signature_schema.ts10
1 files changed, 10 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..e4249afc2
--- /dev/null
+++ b/src/ts/schemas/ec_signature_schema.ts
@@ -0,0 +1,10 @@
+export const ECSignatureSchema = {
+ id: '/ECSignature',
+ properties: {
+ v: {type: 'number'},
+ r: {type: 'string'},
+ s: {type: 'string'},
+ },
+ required: ['v', 'r', 's'],
+ type: 'object',
+};