Skip to content

Instantly share code, notes, and snippets.

View bbjubjub2494's full-sized avatar

Julie B. bbjubjub2494

View GitHub Profile
@bbjubjub2494
bbjubjub2494 / rln-trusted-setup-ceremony_attestation.log
Created August 12, 2023 18:26
Attestation for RLN Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm lourkeur-15657735 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 # 43
Contribution Hash: 197ddbaa 79e65111 761bc9fe 8a8bbb5e
314a6ab3 c53683b9 248b2846 ee5b0b71
9abc7607 d789dbef 20c987da 329a04de
2c14c036 d174f616 64af0823 3a6e1a5a
@bbjubjub2494
bbjubjub2494 / solve.sage
Created April 24, 2023 22:48
solve script for Curta Challenge 8, "Groovy"
#!/usr/bin/env sage
punch = 906459278810089239293436146013992401709
# challenge value here
s = 13763640145752339203207
def verify(s, a,b):
"""solution verifier ported from the contract"""
c = 1
assert a > 100 and b > 100
{
"receipt": "{\"identity\":\"git|15657735|lourkeur\",\"witness\":[\"0xb05c3c5cb62636f16cbaceb0c83a3deadf71ebee1a3ab88a0b7d08faf041809ac0cd76e2807c5b5b6e2110f261de43e2098056c56460e754677d503603ded944093f116a6c9d44079328358a2c71abd0d2012fe1dd260d60166803863d64c6cb\",\"0x9207b0fb846ac9ec148ee69ff62674957fd8d0f6e937daba4a93bb519991c464681ca2fda3dbbaea23f8cb09f69af80917a33436bed5555df833c2824d39378e51e3c40afe91fac3f205b97e120e2a3ecdfb0ccd4dea904d8f8014c247c6f009\",\"0x8b96416b743217a8b7938e96fb2fc4aac24d364eea5d4548a4f1a71df24c46879bcb4f79c72f23730cde8a86543e44db0fb4a669bebe0998a22874f3eafcacf40ead725f2d2970f3fc4632ce1fbdeb43ef4536107f4d1f46531d07bd6db9d9d8\",\"0x8ff4b337eb2b39ee84ba607c473f7ee155e644c399f6d0ef5cb4c7ef37bd58680419b96cf15b19a9a01c330514653f2714510c6640647d7d4ebfb7038c79a3f792f62d8d3c41d260838d0ac8d453c0d51b985f7bb0f5fb61b230b7ac94d2f7c3\"]}",
"signature": "eb44f11615239ffe51516ec5bb81bbf2ed37d145de3a3e4465422909088d3c7a79abe78d05abdb2971860a24c2774ace03ea9b1fc2427293a6955826e616ff5f1b"
}
@bbjubjub2494
bbjubjub2494 / sha1.py
Created December 29, 2022 14:06
SHA-1 implementation produced by ChatGPT
import struct
def sha1(data):
"""
Implementation of the SHA-1 hash function in pure Python.
"""
# Initialize variables
h0 = 0x67452301
h1 = 0xEFCDAB89
h2 = 0x98BADCFE
{
"nodes": {
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1650374568,
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
@bbjubjub2494
bbjubjub2494 / transaction_id.ipynb
Last active May 7, 2022 21:25
Transaction_louis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1637851243,
"narHash": "sha256-7xbj8IchRGy8fB/OLJ2Igyk+wq1qJxJEPCcSr9WLc84=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "83a79a0f4bd000eaa0bc7a2ec7419a5afd1150bc",
"type": "github"
with import <nixpkgs> {};
buildGoModule rec {
pname = "wails";
version = "1.16.7";
vendorSha256 = "JO01u2pQsp90buJpATOr28qoQkLbmdoC6+HTKS/LuYE=";
src = fetchFromGitHub {
owner = "wailsapp";
repo = pname;
@bbjubjub2494
bbjubjub2494 / out.txt
Created July 29, 2021 17:26
nix-locate cacert.pem
zoneminder.out 253,746 r /nix/store/03dry3rywflpz99j0r8f4cbf716lsyl5-zoneminder-1.34.22/share/zoneminder/www/api/lib/Cake/Config/cacert.pem
(zabbix-cli.out) 259,465 r /nix/store/p43d43nn2mxviqb652ghzhisvz2w51n6-python2.7-certifi-2019.11.28/lib/python2.7/site-packages/certifi/cacert.pem
ycmd.out 281,457 r /nix/store/chxbrfj62asmrm9rm82dqn11z9bb2hh7-ycmd-2020-02-22/lib/ycmd/third_party/requests_deps/certifi/certifi/cacert.pem
ycmd.out 1,379 r /nix/store/chxbrfj62asmrm9rm82dqn11z9bb2hh7-ycmd-2020-02-22/lib/ycmd/third_party/requests_deps/urllib3/dummyserver/certs/cacert.pem
(xcode-install.out) 221,418 r /nix/store/6z3xdb6hs5dw19z33yzrglcngx6b4rn4-ruby2.7.4-excon-0.78.1/lib/ruby/gems/2.7.0/gems/excon-0.78.1/data/cacert.pem
wakatime.out 281,457 r /nix/store/nzkr6vhzaanp5ykyk5mgxanhgm1ky01g-wakatime-13.0.7/lib/py
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase