libbucharesthashing 0.1.12

libbucharesthashing contains the proving Arbitrum Stylus smart contract, and the prover function.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env rc

fn median {
	sort -n \
		| awk '{a[NR]=$1} END{mid=NR/2; print (NR%2 ? a[int(mid+1)] : (a[mid]+a[mid+1])/2)}'
}

fn test {
	cast estimate --rpc-url https://testnet-rpc.superposition.so 0x5dd8798537815ccc93b142d3f0dd1b09eb968e88 'prove(bytes,uint32)' `{cast calldata 'hello(uint256)' $1} 0
}

seq 100 | parallel -j100 test | median