Skip to content

Instantly share code, notes, and snippets.

View jonasschnelli's full-sized avatar

Jonas Schnelli jonasschnelli

View GitHub Profile
@jonasschnelli
jonasschnelli / dummy.c
Created June 3, 2018 19:58
Simple 4 char bech32 bruteforce
char hrp[8];
char bech32_str[128] = "xp1qqqqqq8z4rsgv54z9a92yla4m2yrsqdlwdl7gn6qldvwkuh3zrg66z8ad2snf832tgaxcuv3kmwugzl5x8wtnkj2q3a03ky0kg8p7dvv4czpjqgvv4zgn";
int range[4] = {10, 15, 20, 36};
uint8_t dblcheck5[100] = {};
size_t dblcheck5_len = 0;
if (!bech32_decode(hrp, dblcheck5, &dblcheck5_len, bech32_str)) {
printf("bech32_decode fails: '%s'\n", bech32_str);
}
uint8_t dblcheck8[128] = {};
size_t dblcheck8_len = 0;


  BIP: ??? (tbr after sending to mailing list)
  Layer: Applications
  Title: Bech32X encoded keys
  Author&#58; Jonas Schnelli <dev@jonasschnelli.ch>
  Comments&#45;Summary&#58; No comments yet.
  Comments&#45;URI&#58; 
  Status&#58; Draft
  Type&#58; Standards Track
  Created&#58; 2018&#45;06&#45;03

@jonasschnelli
jonasschnelli / resource_profiles.md
Last active April 12, 2018 07:39
Bitcoin Core resource profiles

Problem

Bitcoin Core has been designed to synchronise/verify as fast as possible. This is usually desirable, though, on systems where other applications require a reasonable amount of CPU time (ex. desktop systems) the CPU usage maximisation of Bitcoin Core may be intrusive. While it is possible to configure Bitcoin Core to use less resources, it cannot be changed during runtime which leads to unideal user experience.

Concept of profiles

Profiles could help improve the situation by allowing to change the resource consumption profile during runtime.

Ideally, profiles could be recommended configuration sets for different machine- and use-case-types while the detailed settings could be tweaked via a configuration file (user defined resource profiles).