async function genSign(json) {
const secret = "";
const hash = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(json));
const signature = Array.from(new Uint8Array(hash)).map(b => b.toString(16).padStart(2, '0')).join('');
json.signature = signature;
return signature;
}