Skip to content

Instantly share code, notes, and snippets.

View arik-so's full-sized avatar

Arik arik-so

View GitHub Profile
@LLFourn
LLFourn / unifing-frost-and-musig.md
Last active March 28, 2023 02:30
Unifing FROST and MuSig

Unifing FROST and MuSig

There might be a secure scheme that non-interactively generates a n-of-n FROST key and from there you can interactively turn it into a t-of-n by issuing new shares (i.e. enrolment). I don't really know if this is a useful contribution even if it works. There might be some utility in not having multiple schemes but rather a one size fits all approach.

Idea

MuSig takes a "multiset" of n public keys and outputs a single aggregated key which takes n-of-n secret keys to sign. Set z_i = H(X_1,.. X_i, .. X_n, X_i) for i = 1,2, .. n.

@lrvick
lrvick / secure_crypto_asset_custody.md
Last active January 27, 2023 04:23
Secure Crypto Asset Custody Requirements

Secure Crypto-Asset Custody

Summary

This document seeks to outline a broad set of requirements for crypto-asset custodians based on lessons learned from historical failures to understand and remove attack surface.

It will also assume that not everyone has equal resources or equal risk and as such four incrementally harder security levels to that effect, depending on

@paolocarrasco
paolocarrasco / README.md
Last active May 1, 2024 11:06
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@rtt
rtt / tinder-api-documentation.md
Last active April 20, 2024 17:01
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@unix1
unix1 / test-matrix-invert.php
Last active September 18, 2022 13:09
A sample matrix inversion in PHP using Gauss-Jordan elimination. This is implementation is meant for clarity, not for performance, memory usage, or numerical stability. You can optionally turn on the debug flag to output matrix state after every iteration. See https://en.wikipedia.org/wiki/Gauss-Jordan_elimination for more info. Enjoy!
<?php
/**
* Inverts a given matrix
*
* @param array $A matrix to invert
* @param boolean $debug whether to print out debug info
*
* @return array inverted matrix
*/