Skip to content

Instantly share code, notes, and snippets.

@siv2r
siv2r / 2022-nix-book.md
Created November 25, 2023 17:49 — forked from fricklerhandwerk/2022-nix-book.md
Summer of Nix 2022: The Nix Book

Summer of Nix 2022: The Nix Book

tl;dr

Goals

  • Improve the autodidactic Nix onboarding experience to increase community growth
  • Provide a clear learning path from first impression down to source code

Tasks

@siv2r
siv2r / libsecp_sha256.c
Last active December 11, 2021 11:19
using secp256k1_sha256 internal api
/* this is the main function of test.c of libsecp */
/* you can find my complete code here: https://github.com/siv2r/secp256k1/commit/b3a1437f715dad7478515a55728ecb12aaf4dad1 */
#include "modules/debug/main_impl.h"
int main() {
unsigned char msg[40] = "Hey, this message is going to be hashed";
unsigned char out[32];
secp256k1_sha256 hash;
@siv2r
siv2r / 2darray.c
Created December 4, 2021 03:32
argv vs 2d char array
#include<stdio.h>
int main(int argc, char** argv){
// argv
int i;
for(i=0; i<argc; i++) {
printf("argv : %s (val), ", argv);
printf("argv : %x (addr)\n", argv);
printf("*argv: %s (val), ", *argv);
@siv2r
siv2r / bench (ecdsa option)
Created November 6, 2021 16:09
testing bench
$ ./bench ecdsa
Benchmark , Min(us) , Avg(us) , Max(us)
ecdsa_verify , 142.0 , 144.0 , 147.0
ecdsa_sign , 106.0 , 108.0 , 109.0
@siv2r
siv2r / bench_ecdh
Created October 19, 2021 01:29
Benchmark Command Line Output
```bash
Benchmark , Min(us) , Avg(us) , Max(us)
ecdh , 92.3 , 92.7 , 93.6
```
@siv2r
siv2r / gist:cdfeb50e9ea68932d503e9a8974932e9
Created February 15, 2021 15:49 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: