blob: df1121989fa285afeb90f42872b6a9c603431e0c (
plain) (
tree)
|
|
export const ecSignatureParameterSchema = {
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',
};
|