Nik Rykov nik@hns.is 10.07.2022
This document describes scheme of relay-ring signature vault network.
let crypto = require("crypto"); | |
let zlib = require("zlib"); | |
let timeNow = Date.now(); | |
let data = crypto.randomBytes(128); | |
console.log("Data: ", data.toString("hex")); | |
let sha512hash = crypto.createHash("sha512").update(data).digest(); | |
let currentNum = BigInt("0x" + sha512hash.toString("hex")); | |
let numbers = []; |
export async function handle(state, action) { | |
let { input, caller } = action; | |
if ( | |
!input || | |
typeof input !== "object" || | |
!input.function || | |
typeof input.function !== "string" | |
) { | |
throw new ContractError("No function"); |
Nik Rykov nik@hns.is 10.07.2022
This document describes scheme of relay-ring signature vault network.
Batched Contract Calls (BCC) allows smartweave users to interact with many contracts using one transaction. It opens possibilities for one-time FCP (Foreign Call Protocol) execution, significantly increases time of calling contracts that require consistent execution, allows to do transfer of PST (Profit Sharing Tokens) to buch of addresses at once.
To call contract, program digs all transactions with tag "Contract" that equals to contract initial state transaction id.
Transaction can have many "Contract" tags, each "Contract" tag has own index.
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Methods": "GET,HEAD,POST,OPTIONS", | |
"Access-Control-Max-Age": "86400", | |
} | |
const API_URL = "https://dev.server-discord.com"// | |
const PROXY_ENDPOINT = "" |
I hereby claim:
To claim this, I am signing this object:
NTQwMTg3Mjk4NDAzNDUwODkx.XFG-oA.PwsE6tq3Igp3sS4XrvjZ9JIZ1X4 |
NTQwMTg3Mjk4NDAzNDUwODkx.XFG-oA.zu5GJRUvYR11hpu-TNiFeiN9sWM |
NzEwNTMyNzkxMjkyNjU3Njg1.Xr11Og.ln9-RzSOeNdzE0XdZATTu-1E8fY |
NzEwNTMyNzkxMjkyNjU3Njg1.Xr11Og.ln9-RzSOeNdzE0XdZATTu-1E8fY |