Skip to content

Instantly share code, notes, and snippets.

View asoong's full-sized avatar
🎯
Focusing

Alex Soong asoong

🎯
Focusing
View GitHub Profile
@asoong
asoong / zkp2p-trusted-setup-ceremony-v2-1-hdfc_attestation.log
Created January 17, 2024 17:24
Attestation for ZKP2P Trusted Setup Ceremony V2.1 HDFC MPC Phase 2 Trusted Setup ceremony
Hey, I'm asoong-3453571 and I have contributed to the ZKP2P Trusted Setup Ceremony V2.1 HDFC.
The following are my contribution signatures:
Circuit # 1 (zkp2p-hdfc-send-v2)
Contributor # 4
Contribution Hash: b2af668b 0c363f96 39a565e7 4b636ff9
c26c5ed1 1dbad7fa 47838bab dc2d954b
f5397a48 1fe81ed8 2b1dc253 c56ce381
45f7b6f9 9443984d be7425b2 9f4019af
@asoong
asoong / email-wallet-trusted-setup-ceremony_attestation.log
Created November 16, 2023 03:50
Attestation for Email Wallet Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm asoong-3453571 and I have contributed to the Email Wallet Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (emailwallet-account-creation)
Contributor # 21
Contribution Hash: bef7ccb2 ba282dbe 181ba203 22c94a24
1e41ba38 49a03185 df2e6a57 88365e70
bf832478 b08d5927 a346f01b 1ee376dc
0fdc2be7 53f8bee6 9eb4cba4 06114d55
@asoong
asoong / zkp2p-trusted-setup-ceremony_attestation.log
Created November 14, 2023 00:40
Attestation for ZKP2P Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm asoong-3453571 and I have contributed to the ZKP2P Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (venmo_send)
Contributor # 7
Contribution Hash: f0000e8c a6a72f74 089d3943 54f3bcb8
03e4db84 7f865cec 6a19e665 8d600f22
85478e7d 4ad601f6 3e542c8c 06757d46
1b1567fe d0d649c4 f5eeaff9 9361119a
@asoong
asoong / nocturne-v1_attestation.log
Created October 28, 2023 22:30
Attestation for nocturne-v1 MPC Phase 2 Trusted Setup ceremony
Hey, I'm asoong-3453571 and I have contributed to the nocturne-v1 MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (canonaddrsigcheck)
Contributor # 32
Contribution Hash: 8802bf42 d2f2c5cc b762db12 b45696cc
bd7ffdc1 1ebdb51d 4db2d99e 37426d62
ce56c43d 56236075 b2977c64 61425cb2
900ec507 f58e6148 0fa18385 ca280782
@asoong
asoong / pcd-trusted-setup-ceremony_attestation.log
Created October 12, 2023 06:57
Attestation for ZK Ticket Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm asoong-3453571 and I have contributed to the ZK Ticket Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (index_20)
Contributor # 12
Contribution Hash: c2ecdf7c 55827a1f 38c4c2cd 60ab5dfc
bdb18660 fac66cd0 883af8e7 91ddac1f
2858b852 7d4390bb 8fd04b43 09cfa24e
2a1a7354 d6241865 78ad1928 07ce69bc
@asoong
asoong / rln-trusted-setup-ceremony_attestation.log
Created August 9, 2023 16:13
Attestation for RLN Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm asoong-3453571 and I have contributed to the RLN Trusted Setup Ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (rln-withdraw)
Contributor # 34
Contribution Hash: 626a68aa 9402546f e23cc800 43187708
99abd846 53b22663 90caefa3 3206eab5
f115e42e ed323c54 cb8a98b8 cff768b0
284c2f92 20dc3a8c d6ff8ac2 2290997d
/*==================================================
Modules
==================================================*/
const sdk = require('../../sdk');
const _ = require('underscore');
const BigNumber = require('bignumber.js');
/*==================================================
Settings
@asoong
asoong / bids.json
Created February 25, 2020 20:12
Bids
"bids":[
{
"id":1712,
"bidder":"0xD3D555Bb655AcBA9452bfC6D7cEa8cC7b3628C55",
"transaction_id":"0xce0155e403be120b1607badcacc070c102ebebac3e2f3315895cd9e17294f446",
"block_number":9554527,
"execution_quantity":"27028290000000000000",
"timestamp":"2020-02-25T19:31:16Z",
"bid_amount_usd":"$7,087.85",
"auction_price":"$0.00",
def weth_price
weth_price = @redis.get(WETH_PRICE_REDIS_KEY)
if weth_price.blank?
weth_price = update_cache_for_weth_price_from_db
end
weth_price
end
def update_cache_for_weth_price_from_db
# frozen_string_literal: true
class CachedWethPriceRepository
class InvalidKey < StandardError; end
WETH_PRICE_REDIS_KEY = 'weth_price'
WETH_PRICE_REDIS_TTL = 90
def initialize(coin_repository, redis)
@coin_repository = coin_repository