Skip to content

Instantly share code, notes, and snippets.

View Wollac's full-sized avatar

Wolfgang Welz Wollac

  • Berlin, Germany
View GitHub Profile
@Wollac
Wollac / contracts...ProofMarketFIFO.sol
Created April 12, 2024 19:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.25+commit.b61c2a91.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract ProofMarketFIFO is ReentrancyGuard {
Proof public emptyProof;
uint256 public constant MIN_REQUEST_VALUE = 0.00001 ether;
address constant STARK_VERIFIER = address(0x51);
@Wollac
Wollac / .deploys...pinned-contracts...901...0x9db8fccb21c702ec067cafaf6565a196e127249c.json
Created April 11, 2024 15:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.25+commit.b61c2a91.js&optimize=false&runs=200&gist=
{
"name": "TestVerify",
"address": "0x9db8fccb21c702ec067cafaf6565a196e127249c",
"abi": [
{
"inputs": [
{
"internalType": "bytes32",
"name": "imageID",
"type": "bytes32"
@Wollac
Wollac / risc-zero-stark-to-snark-prover_attestation.log
Created April 9, 2024 04:33
Attestation for RISC Zero STARK-to-SNARK Prover MPC Phase 2 Trusted Setup ceremony
Hey, I'm Wollac-4930426 and I have contributed to the RISC Zero STARK-to-SNARK Prover MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (stark_verify)
Contributor # 34
Contribution Hash: 9d011a11 67cf6e8e 116cc840 b6425792
c791bbea bde335ab e6cf6c29 6ab93229
9cfbcbd2 84fe7934 1ca11d8b 55d3802f
44ce38ad 5c8012c2 54ae8d09 16c93fcb
alias bmake='sudo docker run --rm -t -u "$(id -u):$(id -g)" -v "$(pwd):/project" -e BOLOS_ENV="/opt/bolos" -e BOLOS_SDK="/project/dev/sdk/nanos-secure-sdk" zondax/ledger-docker-bolos make -C /project'
@Wollac
Wollac / snaps-cleanup.sh
Created October 24, 2018 08:23
Remove all old versions of snaps
#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done
@Wollac
Wollac / guard-base.js
Last active April 8, 2018 11:18
Proposed Romeo Guard generic interface for security modules
class Guard {
constructor ({ ...anyArguments }) {
// Do the initialization work
// Arguments depend on the requirements of the specific Guard module.
}
// Returns: string
getSymmetricKey() {
// Returns the key for encrypting/decrypting arbitrary data.
@Wollac
Wollac / ledger-api.md
Created April 6, 2018 06:55
Documentation of the APDU Ledger Nano S API

APDU Ledger API

  • Everything is encoded in Little-Endian without any padding or alignment.
  • Strings have a fixed length but can be null-terminated if they are shorter.
  • All integer numbers are always encoded in 8 bytes using two's complement representation.
  • Boolean values are encoded in one byte, with 0x00 meaning false and any other value meaning true.
  • IOTA addresses are always transferred in their 81 character base-27 encoding without checksum information.

Set the active IOTA seed

@Wollac
Wollac / keybase.md
Last active September 6, 2016 10:18
My keybase.io gist to verify my GitHub account

Keybase proof

I hereby claim:

  • I am Wollac on github.
  • I am wollac (https://keybase.io/wollac) on keybase.
  • I have a public key whose fingerprint is 91AE 4D70 C63D 67A4 E726 EACB F2DA 019A 2C66 3391

To claim this, I am signing this object: