Bitcoin Forum
April 18, 2021, 03:54:22 AM *
News: Latest Bitcoin Core release: 0.21.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 [182] 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 »
  Print  
Author Topic: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency  (Read 686977 times)
malaimult
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500



View Profile
July 04, 2015, 02:03:25 PM
 #3621

Sorry to seem lazy and not just read through the 186 pages of this thread but is XPM still being mined?

I ask only because about 2 years ago, I was actually an avid miner of XPM.  I sold it all off long ago, and stopped mining when the difficulty simply became too much.

But the scientific aspect of the coin always fascinated me.

Is it still active POW wise?

1618718062
Hero Member
*
Offline Offline

Posts: 1618718062

View Profile Personal Message (Offline)

Ignore
1618718062
Reply with quote  #2

1618718062
Report to moderator
1618718062
Hero Member
*
Offline Offline

Posts: 1618718062

View Profile Personal Message (Offline)

Ignore
1618718062
Reply with quote  #2

1618718062
Report to moderator
1618718062
Hero Member
*
Offline Offline

Posts: 1618718062

View Profile Personal Message (Offline)

Ignore
1618718062
Reply with quote  #2

1618718062
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1618718062
Hero Member
*
Offline Offline

Posts: 1618718062

View Profile Personal Message (Offline)

Ignore
1618718062
Reply with quote  #2

1618718062
Report to moderator
sasha35625
Hero Member
*****
Offline Offline

Activity: 589
Merit: 501



View Profile
July 04, 2015, 02:03:38 PM
 #3622

Primecoin is a proud member of top20 alternative cryptocurrencies Index Coinoindex.com, which can be traded at Poloniex exchange now.


mhps
Hero Member
*****
Offline Offline

Activity: 516
Merit: 500


CAT.EX Exchange


View Profile
July 05, 2015, 07:19:59 AM
 #3623

Is it still active POW wise?

POW diff is still high http://xpm.muuttuja.org/charts/




|(
▄▄██████████▄▄
▄██████████████████▄
▄█████▀ ▀█████▀ ▀██████▄
██████ ███ ▀▀▀ ███ ███████
██████▀▄███████████▄▀███████
███████ █████████████ ████████
███████ █████████████ ████████
████████▄▀█████████▀▄█████████
██████████▄ █████ ▄█▀▄▄▄▀█████
██████████ ████▌▐█ █▀▄█ ████
████████▌▐█████ █▌▐█▄▄████
▀█████▀ ██████▄ ▀ █████▀
▀██████████████████▀
▀▀██████████▀▀
)(.
)
▌   ANNOUNCE THREAD   ▌▐   BOUNTY   ▐
TWITTER  |  FACEBOOK  |  TELEGRAM  |  DISCORD
(((((((   MOBILE APP [ ANDROID / IOS ]   )))))))
)
Legionnaire
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
July 21, 2015, 05:29:54 PM
 #3624

Hi all, I dig http://xpmforall.org/, address for payments made from his wallet, a miner digs, but there is still no statistics (2 hours)
Pint8alesius
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
July 22, 2015, 12:57:06 AM
 #3625

how xpm coin go up on cryptsy, that is unusual

Solving primes baby
why is solving primes for a coin meaningful to price of the coin?

why is not solving primes more meaningful?

Primecoin broke several worldrecords if that's not meaningful to you then i'm sorry because you don't understand any of this.

Where did you learn your manners?

You didn't answer the question, but just blabber on about how you are 'sorry because your brain isn't understanding how to answer questions'
spazzdla
Legendary
*
Offline Offline

Activity: 1638
Merit: 1000


View Profile
July 22, 2015, 12:58:44 PM
 #3626

how xpm coin go up on cryptsy, that is unusual

Solving primes baby
why is solving primes for a coin meaningful to price of the coin?

why is not solving primes more meaningful?

Primecoin broke several worldrecords if that's not meaningful to you then i'm sorry because you don't understand any of this.

Where did you learn your manners?

You didn't answer the question, but just blabber on about how you are 'sorry because your brain isn't understanding how to answer questions'

Why would someone be kind to a douce on the web?
batesresearch
Legendary
*
Offline Offline

Activity: 2323
Merit: 1066


View Profile
July 30, 2015, 09:50:24 AM
 #3627



Don't forget you can use your Primecoin to purchase dedicated Website Hosting at CryptoCloudHosting.org.

Fallen down the crypto rabbithole!
spazzdla
Legendary
*
Offline Offline

Activity: 1638
Merit: 1000


View Profile
July 30, 2015, 01:04:13 PM
 #3628



Don't forget you can use your Primecoin to purchase dedicated Website Hosting at CryptoCloudHosting.org.

ooh cool!!!
systh
Sr. Member
****
Offline Offline

Activity: 390
Merit: 250



View Profile
August 10, 2015, 08:16:52 AM
 #3629

FYI

By a request by one of your community member, Primecoin was added to Cryptocoins webfont/SVG icon pack of popular alt cryptocurrencies.


It's all GNU GPL v2, so do pretty much whatever you want. If you're missing some of your fav alts, hit me on Twitter @AllienWorks or just file a issue on Github.

(Hope you don't mind this post, but many of former added coin devs were happy to post this in their thread.)

Cheers and good luck!

SNOVio – Decentralized Lead Generation  |   Telegram  |   Facebook
bsunau7
Member
**
Offline Offline

Activity: 114
Merit: 10


View Profile
August 27, 2015, 11:11:13 AM
 #3630

Hi,

Attached is a functional single threaded python miner based on the bitcoin miner.  I single threaded it and replaced the inner guts with primecoin's PoW.  It was done so I could get my head around the PoW as the white paper wasn't helping much.  It's mined some coins on testnet, but given it's performance I wouldn't even think of running in on prodnet!

I've left the config file up to the reader.  Also it doesn't use the fermat remainder as a test; it just throws the block up and lets the wallet validate (so you'll get a lot of failures with a testnet difficulty of 4.98).

Code:
#!/usr/bin/python
#
# Copyright (c) 2011 The Bitcoin developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#

import pdb
import time
import json
import pprint
import hashlib
import struct
import re
import base64
import httplib
import sys
import gmpy2
from gmpy2 import mpz

ERR_SLEEP = 15
MAX_NONCE = 0x000effff

settings = {}
pp = pprint.PrettyPrinter(indent=4)

class BitcoinRPC:
        OBJID = 1

        def __init__(self, host, port, username, password):
                authpair = "%s:%s" % (username, password)
                self.authhdr = "Basic %s" % (base64.b64encode(authpair))
                self.conn = httplib.HTTPConnection(host, port, False, 30)
        def rpc(self, method, params=None):
                self.OBJID += 1
                obj = { 'version' : '1.1',
                        'method' : method,
                        'id' : self.OBJID }
                if params is None:
                        obj['params'] = []
                else:
                        obj['params'] = params
                self.conn.request('POST', '/', json.dumps(obj),
                        { 'Authorization' : self.authhdr,
                          'Content-type' : 'application/json' })

                resp = self.conn.getresponse()
                if resp is None:
                        print "JSON-RPC: no response"
                        return None

                body = resp.read()
                resp_obj = json.loads(body)
                if resp_obj is None:
                        print "JSON-RPC: cannot JSON-decode body"
                        return None
                if 'error' in resp_obj and resp_obj['error'] != None:
                        return resp_obj['error']
                if 'result' not in resp_obj:
                        print "JSON-RPC: no result in object"
                        return None

                return resp_obj['result']
        def getblockcount(self):
                return self.rpc('getblockcount')
        def getwork(self, data=None):
                return self.rpc('getwork', data)

def uint32(x):
        return x & 0xffffffffL

def bytereverse(x):
        return uint32(( ((x) << 24) | (((x) << 8) & 0x00ff0000) |
                        (((x) >> 8) & 0x0000ff00) | ((x) >> 24) ))

def bufreverse(in_buf):
        out_words = []
        for i in range(0, len(in_buf), 4):
                word = struct.unpack('@I', in_buf[i:i+4])[0]
                out_words.append(struct.pack('@I', bytereverse(word)))
        return ''.join(out_words)

def wordreverse(in_buf):
        out_words = []
        for i in range(0, len(in_buf), 4):
                out_words.append(in_buf[i:i+4])
        out_words.reverse()
        return ''.join(out_words)

class Miner:
        def __init__(self, id):
                self.id = id
                self.max_nonce = MAX_NONCE

        def ch1_test(self,origin,l):
                t1 = gmpy2.sub(origin,1)

                while l:
                        if (gmpy2.is_prime(t1)):
                                t2 = gmpy2.add(t1,t1)
                                t1 = gmpy2.add(t2,1)
                        else:
                                break
                        l = l - 1

                # l = 0 found a complete chain, l > 0 short chain
                if(l):
                        return 0
                else:
                        return 1

        def ch2_test(self,origin,l):
                t1 = gmpy2.add(origin,1)

                while l:
                        if (gmpy2.is_prime(t1)):
                                t2 = gmpy2.add(t1,t1)
                                t1 = gmpy2.sub(t2,1)
                        else:
                                break
                        l = l - 1

                # l = 0 found a complete chain, l > 0 short chain
                if(l):
                        return 0
                else:
                        return 1

        def work(self, datastr, targetstr):
                # decode work data hex string to binary
                static_data = datastr.decode('hex')

                # before we reverse we need to extract the target
                # target is encoded in the datastr 72-75 (nBits)
                target = struct.unpack(">I",static_data[72:76])[0]
                print "target: ", target/16777216.0
                tar_len = target/16777216

                # now flip data
                static_data = bufreverse(static_data)

                # the first 76b of 80b do not change
                blk_hdr = static_data[:76]

                # pre-hash first 76b of block header
                static_hash = hashlib.sha256()
                static_hash.update(blk_hdr)

                for nonce in xrange(self.max_nonce):
                        # encode 32-bit nonce value
                        nonce_bin = struct.pack("<I", nonce)

                        # hash final 4b, the nonce value
                        hash1_o = static_hash.copy()
                        hash1_o.update(nonce_bin)
                        hash1 = hash1_o.digest()

                        # sha256 hash of sha256 hash
                        hash_o = hashlib.sha256()
                        hash_o.update(hash1)
                        hash = hash_o.digest()

                        # convert binary hash to 256-bit Python long
                        hash = bufreverse(hash)
                        hash = wordreverse(hash)

                        hash_str = hash.encode('hex')
                        l = long(hash_str, 16)
                        mpz_l = mpz(l)

                        # high bit set?
                        if l < 1<<255:
                                continue

                        # Origin cannot be a prime, perform a quick odd/even test
                        if l & 0x01:
                                continue

                        # Chain length 4 needs mod 3 and mod 5 need to be zero. So mod 15 == 0
                        if((l % 15)):
                                continue

                        # do fermat (and trial division) test on chain, must not be prime!
                        if (gmpy2.is_prime(mpz_l)):
                                continue

                        #pdb.set_trace()

                        # Multiply by a number, pick one...
                        #origin = gmpy2.mul(mpz_l,510510)
                        #origin = gmpy2.mul(mpz_l,2310)
                        origin = gmpy2.mul(mpz_l,1)

                        # chain length 4. mod 7 ;0 = bi; 1,2,4 = neg, 3,5,6 = pos
                        m7 = l % 7

                        if(m7 == 0):
                                # test both chains
                                if (self.ch1_test(origin,tar_len) or self.ch2_test(origin,tar_len)):
                                        print "origin passed +-@%d" % (nonce,)

                                        # just submit
                                        print time.asctime(), "PROOF-OF-WORK found: %064x" % (l,)
                                        return (nonce + 1, nonce_bin)
                        elif((m7 == 1) or (m7 == 2) or (m7 == 4)):
                                # negative
                                if (self.ch2_test(origin,tar_len)):
                                        print "origin passed -@%d" % (nonce,)

                                        # just submit
                                        print time.asctime(), "PROOF-OF-WORK found: %064x" % (l,)
                                        return (nonce + 1, nonce_bin)
                        else:
                                # positive
                                if (self.ch1_test(origin,tar_len)):
                                        print "origin passed +@%d" % (nonce,)

                                        # just submit
                                        print time.asctime(), "PROOF-OF-WORK found: %064x" % (l,)
                                        return (nonce + 1, nonce_bin)

                        # loop for a new nonce
                        pass

                return (nonce + 1, None)

        def submit_work(self, rpc, original_data, nonce_bin):
                nonce_bin = bufreverse(nonce_bin)
                nonce = nonce_bin.encode('hex')
                # 510510
                #solution = original_data[:152] + nonce + "07CA2E03" + original_data[168:256]
                # 2310
                #solution = original_data[:152] + nonce + "00090602" + original_data[168:256]
                # 1
                solution = original_data[:152] + nonce + "00000101" + original_data[168:256]

                param_arr = [ solution ]
                result = rpc.getwork(param_arr)
                print time.asctime(), "--> Upstream RPC result:", result

        def iterate(self, rpc):
                work = rpc.getwork()
                if work is None:
                        time.sleep(ERR_SLEEP)
                        return
                if 'data' not in work or 'target' not in work:
                        time.sleep(ERR_SLEEP)
                        return

                time_start = time.time()

                (hashes_done, nonce_bin) = self.work(work['data'],
                                                     work['target'])

                time_end = time.time()
                time_diff = time_end - time_start

                self.max_nonce = long(
                        (hashes_done * settings['scantime']) / time_diff)
                if self.max_nonce > 0xffff0000L:
                        self.max_nonce = 0xffff0000L

                if settings['hashmeter']:
                        print "HashMeter(%d): %d hashes, %.2f Khash/sec" % (
                              self.id, hashes_done,
                              (hashes_done / 1000.0) / time_diff)

                if nonce_bin is not None:
                        self.submit_work(rpc, work['data'], nonce_bin)

        def loop(self):
                rpc = BitcoinRPC(settings['host'], settings['port'],
                                 settings['rpcuser'], settings['rpcpass'])
                if rpc is None:
                        return

                while True:
                        self.iterate(rpc)

def miner_thread(id):
        miner = Miner(id)
        miner.loop()

if __name__ == '__main__':
        if len(sys.argv) != 2:
                print "Usage: pyminer.py CONFIG-FILE"
                sys.exit(1)

        f = open(sys.argv[1])
        for line in f:
                # skip comment lines
                m = re.search('^\s*#', line)
                if m:
                        continue

                # parse key=value lines
                m = re.search('^(\w+)\s*=\s*(\S.*)$', line)
                if m is None:
                        continue
                settings[m.group(1)] = m.group(2)
        f.close()

        if 'host' not in settings:
                settings['host'] = '127.0.0.1'
        if 'port' not in settings:
                settings['port'] = 9914
        if 'threads' not in settings:
                settings['threads'] = 1
        if 'hashmeter' not in settings:
                settings['hashmeter'] = 0
        if 'scantime' not in settings:
                settings['scantime'] = 30L
        if 'rpcuser' not in settings or 'rpcpass' not in settings:
                print "Missing username and/or password in cfg file"
                sys.exit(1)

        settings['port'] = int(settings['port'])
        settings['threads'] = int(settings['threads'])
        settings['hashmeter'] = int(settings['hashmeter'])
        settings['scantime'] = long(settings['scantime'])

        print time.asctime(), "Miner Starts - %s:%s" % (settings['host'], settings['port'])

        # Single thread as the python debugger is even yuckier if you use them
        miner_thread(1)

        print time.asctime(), "Miner Stops - %s:%s" % (settings['host'], settings['port'])

Regards,

--
bsunau7
prophetx
Legendary
*
Offline Offline

Activity: 1638
Merit: 1009


he who has the gold makes the rules


View Profile WWW
November 16, 2015, 10:50:37 PM
 #3631

whats the current world record set by primecoin??

would be great if there was a website
spazzdla
Legendary
*
Offline Offline

Activity: 1638
Merit: 1000


View Profile
November 16, 2015, 11:17:01 PM
 #3632

whats the current world record set by primecoin??

would be great if there was a website

The org site had it just stopped updating Sad.
Lasergun
Legendary
*
Offline Offline

Activity: 1089
Merit: 1124


https://t.me/laser9un


View Profile WWW
December 18, 2015, 05:10:02 PM
 #3633

Currently active and working for me primecoin nodes (if someone needed):
Code:
addnode=198.199.114.248:9911
addnode=210.211.117.192:9911
addnode=202.53.171.67:9911
addnode=89.179.126.88:9911
addnode=78.46.43.117:9911
addnode=91.155.234.254:9911
addnode=212.29.210.125:9911
addnode=188.155.136.70:9911


▄▄███████████▄▄
▄████▀▀`````````▀▀████▄
███▀```````````````````▀███
███`````````````````````````███
██```````````██``██````````````██
██````````▄▄▄▄██▄▄██▄▄▄▄`````````██
██`````````▀██████████████▄````````██
██`````````````███`````▀████`````````██
▐█▌`````````````███`````▄███▀`````````▐█▌
▐█▌`````````````███████████▄``````````▐█▌
▐█▌`````````````███▀▀▀▀▀▀████▄````````▐█▌
▐█▌`````````````███```````████````````▐█▌
██`````````````███`````▄▄████````````██
██`````````▄██████████████▀````````██
██````````▀▀▀▀██▀▀██▀▀▀▀`````````██
██```````````██``██````````````██
███`````````````````````````███
███▄```````````````````▄███
▀████▄▄`````````▄▄████▀
▀▀███████████▀▀
FREE
BITCOINS.com





















`````````▄
````````▄█▄
``````▄█████▄
`````█████████
```▄███████████▄
``███████████████
`█████████████████
███████████████████
███████████████████
██▌▀███████████████
`██``▀████████████
``██▄```▀████████
```▀███▄▄`█████▀
``````▀▀▀▀▀▀▀

FAUCET
▀▀▀▀▀▀▀▀▀



``````````````````▄▄▄▄▄▄
``````````````````██████
``````````````````██████
``````````````````██████
``````````██████``██████
``````````██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████

██████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

XCHANGE
▀▀▀▀▀▀▀▀▀
Lasergun
Legendary
*
Offline Offline

Activity: 1089
Merit: 1124


https://t.me/laser9un


View Profile WWW
January 16, 2016, 07:57:32 AM
Last edit: January 28, 2016, 07:14:14 PM by Lasergun
 #3634

The latest primecoin blockchain snapshot in 7z archive: XPM blockchain.


▄▄███████████▄▄
▄████▀▀`````````▀▀████▄
███▀```````````````````▀███
███`````````````````````````███
██```````````██``██````````````██
██````````▄▄▄▄██▄▄██▄▄▄▄`````````██
██`````````▀██████████████▄````````██
██`````````````███`````▀████`````````██
▐█▌`````````````███`````▄███▀`````````▐█▌
▐█▌`````````````███████████▄``````````▐█▌
▐█▌`````````````███▀▀▀▀▀▀████▄````````▐█▌
▐█▌`````````````███```````████````````▐█▌
██`````````````███`````▄▄████````````██
██`````````▄██████████████▀````````██
██````````▀▀▀▀██▀▀██▀▀▀▀`````````██
██```````````██``██````````````██
███`````````````````````````███
███▄```````````````````▄███
▀████▄▄`````````▄▄████▀
▀▀███████████▀▀
FREE
BITCOINS.com





















`````````▄
````````▄█▄
``````▄█████▄
`````█████████
```▄███████████▄
``███████████████
`█████████████████
███████████████████
███████████████████
██▌▀███████████████
`██``▀████████████
``██▄```▀████████
```▀███▄▄`█████▀
``````▀▀▀▀▀▀▀

FAUCET
▀▀▀▀▀▀▀▀▀



``````````````````▄▄▄▄▄▄
``````````````````██████
``````````````````██████
``````````````````██████
``````````██████``██████
``````````██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████

██████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

XCHANGE
▀▀▀▀▀▀▀▀▀
S3cco
Hero Member
*****
Offline Offline

Activity: 1801
Merit: 528


❤ Bitcoin Garden


View Profile WWW
February 06, 2016, 01:05:26 PM
 #3635

Will Primecoin Market Capitalization be over $1.5M at the end of 1st half 2016? Yes or no? Dare to bet in Bitcoin?
https://www.betmoose.com/bet/primecoin-over-1_5m-market-cap-end-of-1st-half-2016-1559?ref=scacco

Hacker, Pirate, Milf Hunter, Owner of Bitcoin Garden
25hashcoin
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500


View Profile
March 18, 2016, 04:27:13 AM
 #3636

Will Primecoin Market Capitalization be over $1.5M at the end of 1st half 2016? Yes or no? Dare to bet in Bitcoin?
https://www.betmoose.com/bet/primecoin-over-1_5m-market-cap-end-of-1st-half-2016-1559?ref=scacco


My vote is yes. Bitcoin halving will reignite the alt market. XPM is a solid player that has been around. I think it will have it's day again.

Bitcoin - Peer to Peer Electronic CASH
SimkoMiner
Hero Member
*****
Offline Offline

Activity: 926
Merit: 1000


View Profile
March 25, 2016, 06:41:00 AM
 #3637

Is this coin dead?
spazzdla
Legendary
*
Offline Offline

Activity: 1638
Merit: 1000


View Profile
March 25, 2016, 03:25:58 PM
 #3638

No but it does need more activity.  Would be nice if someone created something like that beeeeeeeer.org site again.  I'd use my gpu to solve some prime numbers lol.
alenevaa
Sr. Member
****
Offline Offline

Activity: 288
Merit: 260



View Profile WWW
April 28, 2016, 12:16:55 PM
 #3639

Is this coin dead?

It's still alive!  Cheesy

XPM is supported by Bitsquare.
Beta version has launched!

██████████████████████
████████████████████████
████████████████████████
████████████████████████
███████████████████████
█████████████████████
████████████████████████
████████████████████████
██████████████████████
██████████████████████
███████████████████████
████████████████████████
████████████████████████
████████████████████████
███████████████████████
██████████████████████
|
WINGS           
Where DAO Unicorns are born
|
.
1st Bitcoin & Ethereum DAO for DAOs
1st Decentralized Chatbot to Smart Contracts Interaction System

|
.
Wings Bounties Earn Eggs
X-Blockchain DAO

spazzdla
Legendary
*
Offline Offline

Activity: 1638
Merit: 1000


View Profile
May 25, 2016, 05:05:45 PM
 #3640

So do you have a question or something?
Pages: « 1 ... 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 [182] 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!