Skip to content

Instantly share code, notes, and snippets.

View zmanian's full-sized avatar

Zaki Manian zmanian

View GitHub Profile
@zmanian
zmanian / bn.magma
Created September 25, 2016 19:21
/**
* Compute the apparent security level of BN curves,
* according to Kim-Barbaulecu "Extended Tower Number Field Sieve:
* A New Complexity for the Medium Prime Case" -- CRYPTO 2016.
*/
function ApparentSecLevel(n,c)
k:= 12; //embedding degree of BN Curve
ln_m := k*n*Log(2); ln_ln_m := Log(ln_m);
return Log(2, Exp(c*(ln_m*ln_ln_m^2)^(1/3))); // section 4.1
end function;
  1. Develop chaincode and unit test
  2. Verify the chaincode works locally under "peer peer --chaincode-dev"
  3. Vendor all dependencies into /vendor
  4. Create a temporary $GOPATH. Copy source to either "$GOPATH/src/build-chaincode" or "$GOPATH/src/[your aboslution go path]"
  5. "go install build-chaincode" or "go install [your chaincode path]". Think about editing hfc.js 1231-1235 if you have issues here or use the REST API
  6. Ready for deployment to hyperledger instance
  • The two options for the paths depende on whether or not you plan to deploy with the SDK or REST api
Survey/ Review papers on Ring Learning with Error
http://www.cims.nyu.edu/~regev/papers/lwesurvey.pdf ( Very good introduction with diagrams)
https://www.imperialviolet.org/2015/12/24/rlwe.html
https://eprint.iacr.org/2015/939 (Insanely comprehensive)
Hybrid Protocols
https://eprint.iacr.org/2014/599 ( First shot at hybrid TLS)
https://eprint.iacr.org/2015/1092.pdf ( A New Hope) (Peter's Paper)

#Encrypted Communication things to learn about?

##ECC

  • What's the difference between X25519 and ed25519?

  • What are prekeys?

  • What is the difference between a deniable and irrepudiable shared secret?

@zmanian
zmanian / keybase.md
Last active February 11, 2016 07:53

Keybase proof

I hereby claim:

  • I am zmanian on github.
  • I am zmanian (https://keybase.io/zmanian) on keybase.
  • I have a public key ASB-utkMxWWWw5PJ7L4LbKoos78hYgLv_OKZd0QFnfe7yQo

To claim this, I am signing this object:

@zmanian
zmanian / fixtap.sh
Created January 18, 2016 22:01
Inadvertent three finger clicks in crouton on Pixel 2 fix
#!/bin/bash
synclient ClickFinger3=2
synclient TapButton3=2
@zmanian
zmanian / binding.gyp
Created December 24, 2015 20:44
Debug for neon cli for eddyb
# THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT.
{
"target_defaults": {
"default_configuration": "Release"
},
"targets": [{
"target_name": "bitcoin_poc",
@zmanian
zmanian / keyping.go
Last active March 19, 2024 11:04
Key Pinning in #Golang
package main
import (
"bytes"
"crypto/sha256"
"crypto/tls"
"crypto/x509"
"log"
"net"
"net/http"
@zmanian
zmanian / CryptoLearnGuide.md
Last active February 26, 2017 00:16
Crypto learning guide(DRAFT)

Encryption things to learn.

  1. Most encryption courses start with a simple XOR cipher like Dan Boneh's Coursea course and crypto pals.

  2. Learn about RSA

  • Learn why naked RSA will cause your family to be murdered in their sleep
    • Learn About signature forgery
    • Observe how RSA is crazy slow.
    • Learn about the solutions to this and see why RSA is practically impossible to use correctly
  • Learn about GPG