Skip to content

Instantly share code, notes, and snippets.

View sjodiel's full-sized avatar
🏠
Working from home

Jodiel Fabricio sjodiel

🏠
Working from home
View GitHub Profile
@sjodiel
sjodiel / zkCoins.md
Created August 12, 2023 15:55 — forked from RobinLinus/zkCoins.md
zkCoins: A payment system with strong privacy and scalability, combining a client-side validation protocol with validity proofs

zkCoins

zkCoins is a novel blockchain design with strong privacy and scalability properties. It combines client-side validation with a zero-knowledge proof system. The chain is reduced to a minimum base layer to prevent double spending. Most of the verification complexity is moved off-chain and communicated directly between the individual sender and recipient of a transaction. There are very few global consensus rules, which makes block validation simple. Not even a global UTXO set is required.

In contrast to zk-rollups there is no data availability problem, and no sequencer is required to coordinate a global proof aggregation. The protocol can be implemented as an additional layer contained in Bitcoin's blockchain (similar to RGB[^5] or Taro[^6]) or as a standalone sidechain.

The throughput scales to hundreds of transactions per second without sacrificing decentralization.

Design Principles

The core design principle is to *"use the chain for what the chain is good for, which is an immutable order

@sjodiel
sjodiel / Quicksort.java
Created April 5, 2018 18:25 — forked from asoftwareguy/Quicksort.java
Blog - QuickSort Example
package example.sort;
public final class Quicksort {
/**
* Sort the given array, calling the recursive sort method..
*
* @param array
* the array we are sorting
*/
@sjodiel
sjodiel / ArvoreBinaria.java
Created November 30, 2017 15:11 — forked from leandrogualter/ArvoreBinaria.java
Árvore binária em java adaptando código de um amigo.
public class ArvoreBinaria {
private No raiz;
private ArvoreBinaria arvoreEsquerda;
private ArvoreBinaria arvoreDireita;
public ArvoreBinaria() { }
public ArvoreBinaria getArvoreDireita() {
return arvoreDireita;
}
@sjodiel
sjodiel / matrix.py
Created November 30, 2017 14:59 — forked from willhbr/matrix.py
Python Matrix Determinant Calculator
#! py
def solve(matrix, mul):
width = len(matrix)
if width == 1:
return mul * matrix[0][0]
else:
sign = -1
total = 0
for i in range(width):
m = []

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@sjodiel
sjodiel / git-update-fork.sh
Created February 28, 2017 22:58 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
@sjodiel
sjodiel / perfectelementary.bash
Created September 10, 2016 17:33
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@sjodiel
sjodiel / doubly_linked_list.c
Created March 5, 2016 23:36 — forked from joffilyfe/doubly_linked_list.c
Lista duplamente encadeada com cabeçalho
#include <stdio.h>
typedef struct head {
int * first;
int * last;
int count;
} head_t;
typedef struct node {
struct node *prev;
/*==========================================================
Open Sans
==========================================================*/
@font-face {
font-family: 'OpenSans';
src: url('../fonts/OpenSans-Light-webfont.eot');
src: url('../fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/OpenSans-Light-webfont.woff') format('woff'),
url('../fonts/OpenSans-Light-webfont.ttf') format('truetype'),