I hereby claim:
- I am angrymouse on github.
- I am thriface (https://keybase.io/thriface) on keybase.
- I have a public key ASAklKlAQM-Cl_4spT9qSGaFwcQchLvsKNkaitF064aPygo
To claim this, I am signing this object:
NTQwMTg3Mjk4NDAzNDUwODkx.XFG-oA.PwsE6tq3Igp3sS4XrvjZ9JIZ1X4 |
I hereby claim:
To claim this, I am signing this object:
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 = "" |
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.
Nik Rykov [email protected] 10.07.2022
This document describes scheme of relay-ring signature vault network.
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"); |
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 = []; |