Skip to content

Instantly share code, notes, and snippets.

@ligi
ligi / gist:015374c5a7225dd452f5963c32f6af21
Created March 5, 2023 12:37
whisper.cpp transcription of Brewster Kahle's DEVCon5 talk Money and Debt and Digital Contracts
[00:00:00.000 --> 00:00:07.760] I was very impressed with Prague last year.
[00:00:07.760 --> 00:00:12.960] I was very impressed because there was a lot of thinking going on about what should we
[00:00:12.960 --> 00:00:14.500] do?
[00:00:14.500 --> 00:00:16.080] What's the point here?
[00:00:16.080 --> 00:00:18.200] How could this thing go wrong?
[00:00:18.200 --> 00:00:22.400] How could we learn from the .com guys that seem to have screwed things up?
[00:00:22.400 --> 00:00:28.320] The internet guys, or those guys in the financial crisis, how did they screw things up?
[00:00:28.320 --> 00:00:31.320] How can we learn from to grow from?
[00:00:31.320 --> 00:00:37.160] I'm taking that as the starting point for this talk to try to suggest something you
[00:00:37.160 --> 00:00:41.440] might want to think about and look at anew.
[00:00:00.000 --> 00:00:07.760] I was very impressed with Prague last year.
[00:00:07.760 --> 00:00:12.960] I was very impressed because there was a lot of thinking going on about what should we
[00:00:12.960 --> 00:00:14.500] do?
[00:00:14.500 --> 00:00:16.080] What's the point here?
[00:00:16.080 --> 00:00:18.200] How could this thing go wrong?
[00:00:18.200 --> 00:00:22.400] How could we learn from the .com guys that seem to have screwed things up?
[00:00:22.400 --> 00:00:28.320] The internet guys, or those guys in the financial crisis, how did they screw things up?
[00:00:28.320 --> 00:00:31.320] How can we learn from to grow from?
[00:00:31.320 --> 00:00:37.160] I'm taking that as the starting point for this talk to try to suggest something you
[00:00:37.160 --> 00:00:41.440] might want to think about and look at anew.
@ligi
ligi / attestation.txt
Created April 5, 2022 07:07
Attestation
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 50
Hash: f28ad04e 1c6c24d9 1631551e 00810e02
cd2f6960 2e7e57c3 d54cf461 f8bb906f
ff93a358 62f68a49 858dba02 1d9eed02
9d79f175 c8265ce3 4a17319e ca919e71
@ligi
ligi / gist:3140a7d25f7baac0bd08e5dd3061ea70
Created February 26, 2022 10:57
find first contract tx
(1L..Long.MAX_VALUE).forEach { i ->
rpc.getBlockByNumber(BigInteger.valueOf(i))?.transactions?.forEach {
if (it.transaction.to == null) {
println("Found contract tx " + it.transaction.txHash)
return
}
}
}
'old':
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0033 099 099 010 Pre-fail Always - 1
9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 5491
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 10
177 Wear_Leveling_Count 0x0013 098 098 000 Pre-fail Always - 44
179 Used_Rsvd_Blk_Cnt_Tot 0x0013 099 099 010 Pre-fail Always - 1
181 Program_Fail_Cnt_Total 0x0032 100 100 010 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 010 Old_age Always - 0
✓ ~ curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x1854d7","latest"],"id":1}' https://mainnet.optimism.io
{"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 1: json: cannot unmarshal string into Go value of type bool"}}
✓ ~ curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x1854d7",true],"id":1}' https://mainnet.optimism.io
{"jsonrpc":"2.0","id":1,"result":{"difficulty":"0x2","extraData":"0xd98301090a846765746889676f312e31352e3133856c696e7578000000000000de1b1e6e36b36c622af41489904a3187513c173aad0e9bd0708d7c6a3efa9e4f20220cd4d55dd89f595a7b885347f5af0eb6f77df62ca99c181a4db826218ae800","gasLimit":"0xa7d8c0","gasUsed":"0x2c024f","hash":"0xc365ee0054387dfcdb78f103634c0e99ac83df9949093cae7a80bc1c361ab9af","logsBloom":"0x00000002000000000000000000000000000000000000000000040000200000000000000000000100000080100000000100000000000020000080004000000000000000
@ligi
ligi / attestation.txt
Created September 2, 2021 22:30
Attestation
I contributed to the clr.fund Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: qvt32
Contributor # 6
Hash: 17fd3789 491b544c e80360ea 0830b7da
dd44560d e494672f 12250fbc 43e08948
4854c70d a9abd2db 1c1de36e 0b77f602
498876d8 f0377f6e 2a20f7a5 c53a48cc
suggestFees()
[{
maxFeePerGas: 5000000000.875,
maxPriorityFeePerGas: 4999999993
}, {
maxFeePerGas: 5000000000,
maxPriorityFeePerGas: 4999999993
}, {
maxFeePerGas: 5000000000,
maxPriorityFeePerGas: 4999999993
{
"types": {
"Order": [
{
"name": "sellToken",
"type": "address"
},
{
"name": "buyToken",
"type": "address"
@ligi
ligi / attestation.txt
Created March 26, 2021 16:40
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_1_3",
"ceremonyId": "k9CJHwJoeSRMGtjHUiF6",
"time": "2021-03-26T16:40:06.113Z",
"contributionNumber": 27,
"hash": "02d401cf 073ff9ee 41e1d2c5 72f75d0a\n 5ab0db32 2592fd6c abcbbf72 9f9a6630\n c2002afa a7ebe0b6 0ee7d626 e76905c2\n 323cd0d5 8cf572e2 760fc239 e5b72b2b\n"
}