J'ai édité la réponse ci-dessus au point plusieurs observations faites à partir de l'inspection de la transaction validée. Comme un nœud (utilisateur, lorsque je reçois un nouveau bloc) comment puis-je dire que de transaction à l'intérieur de ce bloc sont valables et pas manipuler par le mineur s'agit de la première fois quand je vois que la transaction? Je peux le comprendre si, avant une transaction est de l'envoyer dans mempool également à envoyer à chaque nœud de réseau p2p et de stocker cette transaction. Quand un nouveau bloc arrive je peux comparer mon local des transactions avec ceux de la bloquer. Si une transaction locale correspond à un bloc de se déclarer en tant que valide le reste j'ai pas valide. C'est la façon dont je vois les choses mais je ne suis pas chose est d'écrire.

Juste pour le fun, voici un peu de code que j'ai jeté ensemble qui va essayer de substituer à n caractères pour essayer de faire une adresse valide.

Comme un avertissement, il n'y a aucune garantie que toutes les adresses qu'il trouve est en fait le "bon", ça pourrait être une adresse différente de celle qui est valide, mais n'appartient pas à n'importe qui, dans ce cas, les pièces envoyées, il serait perdu à jamais. Utilisez à vos propres risques.

L'exécution avec n=3 trouvé l'adresse

1a8LDh3qtCdMFAgRXzMrdvB8w1EG4h1Xi

qui a un solde de BTC 29658.80268195. Il apparaît à l'actuel lieu de repos de l' Bitcoins saisis à partir de la Route de la Soie qui ont été mis aux enchères aujourd'hui.


Pour la compilation (sous Linux):

gcc-O3 -o subst subst.c -lssl -lcrypto

Vous aurez besoin d'OpenSSL en-têtes et les bibliothèques installées.

Pour exécuter:

 ./subst 2 1a8LDh3qtCdMSAgRXzMr4zB8w1EG4h1Xi

Va essayer de remplacer jusqu'à 2 caractères pour faire une adresse valide. Vous pouvez remplacer 2 par 1 si vous êtes impatient, ou par un plus grand nombre si vous êtes très patient.

Voici subst.c. Il y a une nouvelle fonction pour essayer de la transposition de caractères à partir de l'adresse, mais il est redondant avec n >= 2. Le code de validation est de Rosetta Code.

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <openssl/sha.h>

const char *coin_err;
#define caution(s) { coin_err = s; return 0; }

static const char *tmpl = "123456789"
"ABCDEFGHJKLMNPQRSTUVWXYZ"
"abcdefghijkmnopqrstuvwxyz";

char *xstrdup(const char *s) {
 char *p;
 p = strdup(s);
 if (!p) {
 fprintf(stderr, "Comment pouvez-vous être plus de mémoire?\n");
exit(1);
}
 return p;
}

int unbase58(const char *s, unsigned char *out) {
 int i, j, c;
 const char *p;

 memset(out, 0, 25);
 for (i = 0; s[i]; i++) {
 if (!(p = strchr(tmpl, s[i])))
 caution("mauvais caractère");

 c = p - tmpl;
 for (j = 25; j--; ) {
 c += 58 * le[j];
 le[j] = c % 256;
 c /= 256;
}

 si (c) caution("adresse trop longue");
}

 return 1;
}

int valide(const char *s) {
 unsigned char dec[32], d1[SHA256_DIGEST_LENGTH], 
d2[SHA256_DIGEST_LENGTH];

 coin_err = "";
 if (!unbase58(s, dec)) return 0;

 SHA256(SHA256(dec 21, d1), SHA256_DIGEST_LENGTH, d2);

 si (memcmp(dec + 21, d2, 4))
 caution("mauvais digest");

 return 1;
}

inline void afficher(const char *s) {
 si (valide(s)) {
 printf("Valide:\t%s\n", s);
}
}

void subst_int(char *s, char *p0, int n) {
 si (n == 0)
retour;
 char *p;
 pour (p = p0; *p; p++) {
 char orig = *p;
 const char *q;
 for (q = tmpl; *q; q++) {
 si (*q != orig) {
 *p = *q;
essayez(s);
 subst_int(s, p+1, n-1);
}
}
 *p = orig;
}
}

void subst(const char *s, int n) {
 char *buf = xstrdup(s);
 subst_int(buf, buf, n);
gratuit(buf);
}

inline void swap(char *s, char *q) {
 char tmp;
 tmp = *p;
 *p = *q;
 *q = tmp;
}

void transposition(const char *s) {
 char *buf = xstrdup(s);
 char *p, *q;
 pour (p = buf; *p; p++) {
 for (q = p + 1; *q; q++) {
 if (*p != *q) {
 swap(p, q);
essayez(buf);
 swap(p, q);
}
}
}
}

int main(int argc, char *argv[]) {
 int i;
 int n;

 if (argc < 3 || (n = atoi(argv[1])) <= 0) {
 fprintf(stderr, "Usage: %s n addr...\n", argv[0]);
 fprintf(stderr, "Substituer jusqu'à la n des caractères\n");
exit(2);
}


 for (i = 2; i < argc; i++) {
 char *s = argv[i];
 printf("%s:\t%s\n", valable(s) ? "Valide" : "Orig", s);
 subst(s, n);
#if 0 /* redondant avec n >= 2 */
transposition(s);
#endif
 si (i+1 < argc)
printf("\n");
}
 return 0;
}
$200 cialis coupon 10 mg tadalafil generic 5 mg cialis over the counter at walmart best price for tadalafil 20 mg buy cialis buy cialis generic tadalafil buy cialis online buy cialis online without script buy tadalafil buy tadalafil online canadian cialis online pharmacy canadian pharmacy cialis cheap cialis cheap cialis generic cialis cialis 20 mg best price cialis 20mg cialis 30 day sample cialis 30 day trial coupon cialis and alcohol cialis before and after cialis canada cialis canada pharmacy online cialis cost cialis coupon cialis coupons cialis coupons printable cialis dosage cialis dosage information cialis for daily use cialis for sale cialis free trial cialis free trial voucher for cialis cialis generic cialis generic release date cialis generic tadalafil cialis lowest price cialis online cialis online pharmacy cialis over the counter cialis over the counter at walmart cialis patent expiration date extended cialis picture testimonials cialis pills cialis price cialis prices cialis reviews cialis side effects cialis tadalafil cialis tadalafil 20 mg cialis vs viagra cialis vs viagra which is better cialis without a doctor's prescription cialis without doctor prescription cost of cialis cost of tadalafil generic at walgreens coupon for cialis by manufacturer does cialis lower blood pressure generic cialis generic cialis at walmart generic cialis canada generic cialis canada pharmacy generic cialis from india generic cialis tadalafil generic tadalafil generic tadalafil 20 mg is there a generic for cialis online cialis purchasing cialis on the internet side effects for cialis side effects for tadalafil side effects of cialis tadalafil tadalafil 20 mg tadalafil 20 mg canadian drug stores tadalafil 20mg tadalafil 20mg lowest price tadalafil 5 mg tadalafil 5mg tadalafil cost at walmart tadalafil dosage tadalafil generic tadalafil generic at walgreens tadalafil generic best prices tadalafil online tadalafil price tadalafil side effects tadalafil tablets tadalafil without a doctor's prescription viagra vs cialis viagra vs cialis vs levitra warnings for tadalafil $200 cialis coupon 10 mg tadalafil generic 5 mg cialis over the counter at walmart best price for tadalafil 20 mg buy cialis buy cialis generic tadalafil buy cialis online buy cialis online without script buy tadalafil buy tadalafil online canadian cialis online pharmacy canadian pharmacy cialis cheap cialis cheap cialis generic cialis cialis 20 mg best price cialis 20mg cialis 30 day sample cialis 30 day trial coupon cialis and alcohol cialis before and after cialis canada cialis canada pharmacy online cialis cost cialis coupon cialis coupons cialis coupons printable cialis dosage cialis dosage information cialis for daily use cialis for sale cialis free trial cialis free trial voucher for cialis cialis generic cialis generic release date cialis generic tadalafil cialis lowest price cialis online cialis online pharmacy cialis over the counter cialis over the counter at walmart cialis patent expiration date extended cialis picture testimonials cialis pills cialis price cialis prices cialis reviews cialis side effects cialis tadalafil cialis tadalafil 20 mg cialis vs viagra cialis vs viagra which is better cialis without a doctor's prescription cialis without doctor prescription cost of cialis cost of tadalafil generic at walgreens coupon for cialis by manufacturer does cialis lower blood pressure generic cialis generic cialis at walmart generic cialis canada generic cialis canada pharmacy generic cialis from india generic cialis tadalafil generic tadalafil generic tadalafil 20 mg is there a generic for cialis online cialis purchasing cialis on the internet side effects for cialis side effects for tadalafil side effects of cialis tadalafil tadalafil 20 mg tadalafil 20 mg canadian drug stores tadalafil 20mg tadalafil 20mg lowest price tadalafil 5 mg tadalafil 5mg tadalafil cost at walmart tadalafil dosage tadalafil generic tadalafil generic at walgreens tadalafil generic best prices tadalafil online tadalafil price tadalafil side effects tadalafil tablets tadalafil without a doctor's prescription viagra vs cialis viagra vs cialis vs levitra warnings for tadalafil blue chew viagra scam buy viagra buy viagra online buy viagra online canada pharmacy buy viagra online without script canada pharmacy viagra generic canadian pharcharmy online viagra canadian viagra canadian viagra without a doctor prescription cheap viagra cialis vs viagra cost of viagra female viagra female viagra pills free viagra free viagra samples generic viagra generic viagra 100mg generic viagra available generic viagra canada price generic viagra online pharmacy generic viagra sildenafil citrate generic viagra without a doctor prescription herbal viagra how does viagra work how long does viagra last how much does viagra cost how to take viagra for maximum effect i took viagra mom levitra vs viagra mom gives son viagra natural viagra natural viagra alternatives that work natural viagra substitute nizagara 100 mg vs viagra online viagra online viagra without subscription over the counter viagra real life viagra demonstration revatio vs viagra side effects of viagra sildenafil sildenafil 100mg sildenafil 20 mg sildenafil 20 mg tablet sildenafil 20 mg tablet vs viagra sildenafil citrate sildenafil citrate 100mg sildenafil citrate 20 mg sildenafil coupons sildenafil dosage sildenafil dosage recommendations sildenafil generic sildenafil side effects sophia viagra sophia viagra bikini sophia viagra hot stendra vs viagra stepmom gives son viagra viagra viagra 100mg viagra before after photo actual viagra boner viagra canada online pharmacy viagra coupon viagra coupons viagra coupons from pfizer viagra dosage viagra dosage recommendations viagra erection viagra erection after ejaculation viagra for men viagra for sale viagra for sale on amazon viagra for women viagra generic viagra generic availability viagra generic release date viagra in action viagra on line viagra online viagra online canada pharmacy viagra online pharmacy viagra patent expiration viagra pill viagra pills viagra porn viagra prank viagra prices viagra samples viagra sex viagra side effects viagra substitute viagra vs cialis viagra without a doctor prescription viagra without doctor prescription what is viagra when will generic viagra be available blue chew viagra scam buy viagra buy viagra online buy viagra online canada pharmacy buy viagra online without script canada pharmacy viagra generic canadian pharcharmy online viagra canadian viagra canadian viagra without a doctor prescription cheap viagra cialis vs viagra cost of viagra female viagra female viagra pills free viagra free viagra samples generic viagra generic viagra 100mg generic viagra available generic viagra canada price generic viagra online pharmacy generic viagra sildenafil citrate generic viagra without a doctor prescription herbal viagra how does viagra work how long does viagra last how much does viagra cost how to take viagra for maximum effect i took viagra mom levitra vs viagra mom gives son viagra natural viagra natural viagra alternatives that work natural viagra substitute nizagara 100 mg vs viagra online viagra online viagra without subscription over the counter viagra real life viagra demonstration revatio vs viagra side effects of viagra sildenafil sildenafil 100mg sildenafil 20 mg sildenafil 20 mg tablet sildenafil 20 mg tablet vs viagra sildenafil citrate sildenafil citrate 100mg sildenafil citrate 20 mg sildenafil coupons sildenafil dosage sildenafil dosage recommendations sildenafil generic sildenafil side effects sophia viagra sophia viagra bikini sophia viagra hot stendra vs viagra stepmom gives son viagra viagra viagra 100mg viagra before after photo actual viagra boner viagra canada online pharmacy viagra coupon viagra coupons viagra coupons from pfizer viagra dosage viagra dosage recommendations viagra erection viagra erection after ejaculation viagra for men viagra for sale viagra for sale on amazon viagra for women viagra generic viagra generic availability viagra generic release date viagra in action viagra on line viagra online viagra online canada pharmacy viagra online pharmacy viagra patent expiration viagra pill viagra pills viagra porn viagra prank viagra prices viagra samples viagra sex viagra side effects viagra substitute viagra vs cialis viagra without a doctor prescription viagra without doctor prescription what is viagra when will generic viagra be available $200 cialis coupon 10 mg tadalafil generic 5 mg cialis over the counter at walmart best price for tadalafil 20 mg buy cialis buy cialis generic tadalafil buy cialis online buy cialis online without script buy tadalafil buy tadalafil online canadian cialis online pharmacy canadian pharmacy cialis cheap cialis cheap cialis generic cialis cialis 20 mg best price cialis 20mg cialis 30 day sample cialis 30 day trial coupon cialis and alcohol cialis before and after cialis canada cialis canada pharmacy online cialis cost cialis coupon cialis coupons cialis coupons printable cialis dosage cialis dosage information cialis for daily use cialis for sale cialis free trial cialis free trial voucher for cialis cialis generic cialis generic release date cialis generic tadalafil cialis lowest price cialis online cialis online pharmacy cialis over the counter cialis over the counter at walmart cialis patent expiration date extended cialis picture testimonials cialis pills cialis price cialis prices cialis reviews cialis side effects cialis tadalafil cialis tadalafil 20 mg cialis vs viagra cialis vs viagra which is better cialis without a doctor's prescription cialis without doctor prescription cost of cialis cost of tadalafil generic at walgreens coupon for cialis by manufacturer does cialis lower blood pressure generic cialis generic cialis at walmart generic cialis canada generic cialis canada pharmacy generic cialis from india generic cialis tadalafil generic tadalafil generic tadalafil 20 mg is there a generic for cialis online cialis purchasing cialis on the internet side effects for cialis side effects for tadalafil side effects of cialis tadalafil tadalafil 20 mg tadalafil 20 mg canadian drug stores tadalafil 20mg tadalafil 20mg lowest price tadalafil 5 mg tadalafil 5mg tadalafil cost at walmart tadalafil dosage tadalafil generic tadalafil generic at walgreens tadalafil generic best prices tadalafil online tadalafil price tadalafil side effects tadalafil tablets tadalafil without a doctor's prescription viagra vs cialis viagra vs cialis vs levitra warnings for tadalafil