MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / GetBase2

Method GetBase2

secp256k1/Int.cpp:1066–1080  ·  view source on GitHub ↗

------------------------------------------------

Source from the content-addressed store, hash-verified

1064
1065// ------------------------------------------------
1066char* Int::GetBase2() {
1067 char *ret = (char*) calloc(1,1024);
1068 int k=0;
1069 for(int i=0;i<NB32BLOCK-1;i++) {
1070 unsigned int mask=0x80000000;
1071 for(int j=0;j<32;j++) {
1072 if(bits[i]&mask) ret[k]='1';
1073 else ret[k]='0';
1074 k++;
1075 mask=mask>>1;
1076 }
1077 }
1078 ret[k]=0;
1079 return ret;
1080}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected