MCPcopy Create free account
hub / github.com/JeanLucPons/VanitySearch / checkAddrSSE

Method checkAddrSSE

Vanity.cpp:830–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830void VanitySearch::checkAddrSSE(uint8_t *h1, uint8_t *h2, uint8_t *h3, uint8_t *h4,
831 int32_t incr1, int32_t incr2, int32_t incr3, int32_t incr4,
832 Int &key, int endomorphism, bool mode) {
833
834 vector<string> addr = secp->GetAddress(searchType, mode, h1,h2,h3,h4);
835
836 for (int i = 0; i < (int)inputPrefixes.size(); i++) {
837
838 if (Wildcard::match(addr[0].c_str(), inputPrefixes[i].c_str(), caseSensitive)) {
839
840 // Found it !
841 //*((*pi)[i].found) = true;
842 if (checkPrivKey(addr[0], key, incr1, endomorphism, mode)) {
843 nbFoundKey++;
844 patternFound[i] = true;
845 updateFound();
846 }
847
848 }
849
850 if (Wildcard::match(addr[1].c_str(), inputPrefixes[i].c_str(), caseSensitive)) {
851
852 // Found it !
853 //*((*pi)[i].found) = true;
854 if (checkPrivKey(addr[1], key, incr2, endomorphism, mode)) {
855 nbFoundKey++;
856 patternFound[i] = true;
857 updateFound();
858 }
859
860 }
861
862 if (Wildcard::match(addr[2].c_str(), inputPrefixes[i].c_str(), caseSensitive)) {
863
864 // Found it !
865 //*((*pi)[i].found) = true;
866 if (checkPrivKey(addr[2], key, incr3, endomorphism, mode)) {
867 nbFoundKey++;
868 patternFound[i] = true;
869 updateFound();
870 }
871
872 }
873
874 if (Wildcard::match(addr[3].c_str(), inputPrefixes[i].c_str(), caseSensitive)) {
875
876 // Found it !
877 //*((*pi)[i].found) = true;
878 if (checkPrivKey(addr[3], key, incr4, endomorphism, mode)) {
879 nbFoundKey++;
880 patternFound[i] = true;
881 updateFound();
882 }
883
884 }
885
886 }
887

Callers

nothing calls this directly

Calls 1

GetAddressMethod · 0.80

Tested by

no test coverage detected