Bitcoin Forum
March 25, 2023, 05:11:01 AM
 Welcome, Guest. Please login or register.
 News: Latest Bitcoin Core release: 24.0.1 [Torrent]
 Home Help Search Login Register More
 Pages: 1 ... 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 [114] 115 116 117 118 119 120 121 122 123 124
 Author Topic: [ANN][GAP] Gapcoin - Prime Gap Search - New Math Algo - CPU / GPU - Zero Premine  (Read 286315 times)
BitcoinFX
Legendary

Offline

Activity: 2646
Merit: 1680

https://youtu.be/DsAVx0u9Cw4 ... Dr. WHO < KLF

 February 20, 2021, 02:42:23 PMLast edit: March 15, 2021, 11:27:34 AM by BitcoinFXMerited by xandry (2), cryptomaxsun (1)

Question... If gapcoin, riecoin and primecoin are both of them finding usefull prime numbers.. Can they be used to give results from one blockchain to the otherone? Can i mine for one on them and present results for the three of them?

To be short, nop :

Primecoin network searches for special prime number chains known as Cunningham chains and bi-twin chains.
Gapcoin is searching for large prime gaps.
Riecoin use several PoW algorithms.

Maths behind this are for mad people
cf. https://www.mersenneforum.org/forumdisplay.php?f=131

Indeed.

- https://github.com/gapcoin-project/gapcoin/blob/v0.9.4-gap/contrib/gapcoin/j0nn9-describing-gapcoin.md

Excerpt ...

"What are the advantages of Gapcoin compared with other prime number based cryptocurrencies?

First of all, Gapcoin follows Riecoin’s way and uses enough Miller-Rabin tests with random bases to avoid composite numbers being accepted as Prove of Work, like Primecoin mistakenly could.

But the real improvement is due to its easy “pool-mineable” Hashing algorithm. This means that creating a Gapcoin pool will be as easy as creating a scrypt one!

Why is that important?

When you look at Riecoin, there are only two pools. Even Primecoin, the first scientific cryptocurrency, only has three reliable pools. This is due to the difficulty of creating a fair reward system for the custom hashing algorithms of Prime- and Riecoin.

In Primecoin, which is searching for long prime chains, you can easily modify your miner to search for smaller chains. In fact, it is mostly about a simple one-line-editing. As an example, just turn a 10 into a 7 in xolominer and you will get scads of 7-chains, but your chance to find a block has diminished.

To avoid this, pools supply better payment for shares with longer chain-lengths.

In Riecoin, it is even worse. Riecoin searches for prime tuples of length 6. Pools do accept tuples with less primes, but a 6-tuple only can occur in certain places. (Look at this post for a detailed explanation.) 4-tuples, by comparison, are more frequent. There are places, where a 4-tuple can occur, but no 6-tuple, which Riecoin truly needs. So pools have to check every submitted share whether the miner really searches for 6-tuples or not. Those facts are what make it so hard to create a Prime- or Riecoin pool.

With Gapcoin, there won’t be any problems like these. While in Riecoin and Primecoin you can choose whether to search for bigger shares or smaller ones, Gapcoin is searching for prime gaps in general. The distribution of prime gaps is still a mystery for mathematicians, that’s why you can’t modify your miner to look for special results. Consequently, every submitted share can be paid equally."

...

Gapcoin also has a superior economic model to most other cryptocurrencies.

In terms of scarcity, Litecoin (for example) has a max total supply of 84 million LTC.

Gapcoin has a max total supply of 10 - 30 million GAP (because the prime gap value found is added to each block) ...
- https://bitcointalk.org/index.php?topic=822498.msg56381025#msg56381025

Finding larger prime Gaps with increased network hash rate (primespersec) is a Number Go Up technology.

Gapcoin = Bitcoin + Prime Gaps.

...

"I will sound the trumpet of mine own merits," quote Abraham Fleming in 1576 ...

So, remember folks ... I'm this guy ...
- https://bitcointalk.org/index.php?topic=5.msg188#msg188

Gapcoin is the altcoin that I will not let be forgotten, in fact, it might make sense just to get some in case it catches on ...

Seeking New Developers for GapMiner - A standalone Gapcoin (GAP) CPU, GPU, rpc, pool miner ...

Gapcoin Community Repository for GapMiner ...
- https://github.com/gapcoin-project/GapMiner

Gapcoin Community Repository
- https://github.com/gapcoin-project

Gapcoin Core 0.16.3 Work in progress

- https://github.com/gapcoin-project/gapcoin-core EDIT: N.B. last commit on Dec 10, 2020 !

- https://github.com/gjhiggins/gapcoin-core - N.B. last commit on Mar 14, 2021

Current Release(s) ...

- https://github.com/gapcoin-project/gapcoin/tree/v0.9.3-gap

Prior 'outdated' original miner and software releases ...
- https://gapcoin.network/downloads/

Working pool ...
- https://gap.suprnova.cc/

Gapcoin (Core) Project development continues though Gapcoin Club ...
- https://gapcoin.club

Cheers!

- https://bitcointalk.org/index.php?topic=5318772.msg56397219#msg56397219

"Bitcoin OG" 1JXFXUBGs2ZtEDAQMdZ3tkCKo38nT2XSEp | Bitcoin logo™ Enforcer? | Bitcoin is BTC | CSW is NOT Satoshi Nakamoto | I Mine BTC, LTC, ZEC, XMR and GAP | BTC on Tor addnodes Project | Media enquiries : Wu Ming | Enjoy The Money Machine | "You cannot compete with Open Source" and "Cryptography != Banana" | BSV and BCH are COUNTERFEIT.
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1679721061
Hero Member

Offline

Posts: 1679721061

Ignore
 1679721061

1679721061
 Report to moderator
1679721061
Hero Member

Offline

Posts: 1679721061

Ignore
 1679721061

1679721061
 Report to moderator
gjhiggins
Legendary

Offline

Activity: 2254
Merit: 1272

 February 22, 2021, 09:11:05 PMMerited by BitcoinFX (1), cryptomaxsun (1)

Are the devs MIA for a long time here or are they on the clock?

~ Septoshi

Only if MIA = “Machinating In Advance” ...
Screenshot of Gapcoin v0.20.1 synced to mainnet:

Cheers

Graham
BitcoinFX
Legendary

Offline

Activity: 2646
Merit: 1680

https://youtu.be/DsAVx0u9Cw4 ... Dr. WHO < KLF

 February 23, 2021, 05:39:06 PMLast edit: February 23, 2021, 05:55:58 PM by BitcoinFX

Are the devs MIA for a long time here or are they on the clock?

~ Septoshi

Only if MIA = “Machinating In Advance” ...
Screenshot of Gapcoin v0.20.1 synced to mainnet:

Cheers

Graham

I confirm that I am the owner of the new http://gapcoincore.org domain, currently on forward to https://gapcoin.club (which I also own).

gapcoin.org - who knows ?

"Bitcoin OG" 1JXFXUBGs2ZtEDAQMdZ3tkCKo38nT2XSEp | Bitcoin logo™ Enforcer? | Bitcoin is BTC | CSW is NOT Satoshi Nakamoto | I Mine BTC, LTC, ZEC, XMR and GAP | BTC on Tor addnodes Project | Media enquiries : Wu Ming | Enjoy The Money Machine | "You cannot compete with Open Source" and "Cryptography != Banana" | BSV and BCH are COUNTERFEIT.
BitcoinFX
Legendary

Offline

Activity: 2646
Merit: 1680

https://youtu.be/DsAVx0u9Cw4 ... Dr. WHO < KLF

 February 23, 2021, 06:34:33 PM

Also, http://mindthegap.lol (Block explorer here 'eventually' - currently on forward)

"Bitcoin OG" 1JXFXUBGs2ZtEDAQMdZ3tkCKo38nT2XSEp | Bitcoin logo™ Enforcer? | Bitcoin is BTC | CSW is NOT Satoshi Nakamoto | I Mine BTC, LTC, ZEC, XMR and GAP | BTC on Tor addnodes Project | Media enquiries : Wu Ming | Enjoy The Money Machine | "You cannot compete with Open Source" and "Cryptography != Banana" | BSV and BCH are COUNTERFEIT.
UsernameNumber7
Member

Offline

Activity: 256
Merit: 60

 February 24, 2021, 12:08:35 AMLast edit: February 24, 2021, 06:11:31 PM by UsernameNumber7

Is there anyone here who can compile the Windows .EXE for Higgins New Wallet?

Most people seem to be windows users.

For Compiling on Linux, Higgins instructions are for the standard Bitcoin compile not Gapcoin compiling.

The key to compile Gapcoin is

git submodule init
git submodule update

It will not compile without getting the submodule

Start Gapcoin Install

sudo apt-get install git synaptic gdebi pkg-config

sudo apt-get install build-essential libtool autotools-dev autoconf libssl-dev libgmp-dev libmpfr-dev

sudo apt-get install libboost-all-dev libminiupnpc-dev libqt4-dev libprotobuf-dev protobuf-compiler

sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev libqrencode-dev

sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

sudo apt install db5.3-util libdb5.3++-dev libdb5.3-dev

git clone https://github.com/gapcoin-project/gapcoin-core

cd gapcoin-core
git submodule init
git submodule update
./autogen.sh
./configure --with-incompatible-bdb --without-miniupnpc
make

To Run

How to start the QT wallet after compiling!
Open Command Line Terminal

cd gapcoin-core/src/qt
./gapcoin-qt

To Run the Daemon

cd gapcoin-core/src
./gapcoind

Higgins 16.3 to compiles, I was going to test the 20.1 but it must be private for now while he works on it.

Been using a 64 Bit HMAC with Sha-512 512 Bit Keys instead of the standard 128 bit.  It is compatible with the current blockchain no breaks after months of testing.  The original Satoshi design of Bitcoin used the HMAC to be the key feature in the security of relaying messages.

This is easily upgraded providing good security and it will further hamper ASIC development, as I don't think 32 bit ASICs could compute 64 bit Numbers, but I could be wrong.

The Newer Bitcoin which Higgins is developing is far better in a lot of ways, I love the Dandelion support.  But the HMAC has been rewritten completely and it would be a lot of work to troubleshoot the new way to make that upgrade as everything is ripped out or moved as far as I can tell.

Security would improve having 512 Bit Keys for the HMAC instead of 128 Bit keys which Bitcoin probably still uses.

So Gapcoin is more advanced than Bitcoin in some ways.  They will never stop arguing to test real development.

https://www.TRISQUEL.INFO #1 Free Software Linux Operating  System

Trisquel OS "Just Do It"        "Sic Semper Tyranis"
gjhiggins
Legendary

Offline

Activity: 2254
Merit: 1272

 February 24, 2021, 02:24:48 AMMerited by xandry (3)

Is there anyone here who can compile the Windows .EXE for Higgins New Wallet?

I adapted the Ravencoin build script - by replacing references to Ravencoin with references to Gapcoin. The resulting Windows64 binaries are here (and have previously been advertised as such):

https://github.com/gjhiggins/gapcoin-core/releases/download/v0.1rc-alpha/gapcoin-0.16.3-win64-setup.exe

https://github.com/gjhiggins/gapcoin-core/releases/download/v0.1rc-alpha/gapcoin-0.16.3-win64.zip

(I did see your HMAC PR for v0.9 but as you observe, it is an ill fit with the 0.16.3 codebase)

The 0.20 client will remain unreleased because the code in 0.16.3 that enables a soft-fork segwit transition has been removed in the Bitcoin 0.20 client. This is because the Bitcoin blockchain is now irrevocably segwit-enabled and the soft-fork code has been replaced by a simple height switch. Without this soft-fork transition code, upgrading to the 0.20 client would unfortunately necessitate a hard fork for the current Gapcoin chain AIUI and according to the chainz explorer, the overwhelming majority of Gapcoin nodes are Gapcoin 0.9.2 vintage, likely original Windows clients and there seems to be little likelihood of that changing.

Cheers

Graham

UsernameNumber7
Member

Offline

Activity: 256
Merit: 60

 February 24, 2021, 06:21:59 PMLast edit: July 06, 2021, 12:10:07 AM by Welsh

Mod note: consecutive posts merged

I didn't see the Windows 16.3 on

https:Gapcoin.club

That's probably the best place to put it!

Well, you should try to re-introduce your Notary into your .20 Gapcoin Release.

I think if enough Windows users switch to 16.3 they would than switch to your .20 Gapcoin.

But organizing such a Hard Fork is dangerous with the current situation.  Not sure anything about other miners intentions.

Are the devs MIA for a long time here or are they on the clock?

~ Septoshi

FEEL FREE to step up to lead........"Build it and They Will Come"  From Field of Dreams

Can you make a 64 Bit HMAC with 512 Bit Keys for Higgins 16.3 Gapcoin Core?

https://www.TRISQUEL.INFO #1 Free Software Linux Operating  System

Trisquel OS "Just Do It"        "Sic Semper Tyranis"
killerkeemstar
Newbie

Offline

Activity: 31
Merit: 0

 February 24, 2021, 07:18:16 PM

What's that even mean Build it and They Will Come lol
BayAreaCoins
Legendary

Offline

Activity: 3528
Merit: 1232

CEO of AltQuick.com and FreeBitcoins.com

 February 24, 2021, 07:29:23 PM

What's that even mean Build it and They Will Come lol

If you have to ask...

FreeBitcoins Gapcoin market is growing slowly but surely:  https://freebitcoins.com/xchange/market/Bitcoin-Gapcoin

It's pretty easy to sell/buy GAP now with us and it's getting easier every day!

 ▄▄███████████▄▄▄████▀▀`````````▀▀████▄███▀```````````````````▀██████`````````````````````````█████```````````██``██````````````████````````▄▄▄▄██▄▄██▄▄▄▄`````````████`````````▀██████████████▄````````████`````````````███`````▀████`````````██▐█▌`````````````███`````▄███▀`````````▐█▌▐█▌`````````````███████████▄``````````▐█▌▐█▌`````````````███▀▀▀▀▀▀████▄````````▐█▌▐█▌`````````````███```````████````````▐█▌██`````````````███`````▄▄████````````████`````````▄██████████████▀````````████````````▀▀▀▀██▀▀██▀▀▀▀`````````████```````````██``██````````````█████`````````````````````````██████▄```````````````````▄███▀████▄▄`````````▄▄████▀▀▀███████████▀▀ ALTQUICK.com ██████ --GET FREE BITCOINS FAST---AND LEARN TO TRADE ALTCOINS- ██████ `````````▄````````▄█▄``````▄█████▄`````█████████```▄███████████▄``███████████████`█████████████████████████████████████████████████████████▌▀███████████████`██``▀████████████``██▄```▀████████```▀███▄▄`█████▀``````▀▀▀▀▀▀▀ FAUCET▀▀▀▀▀▀▀▀▀ ``````````````````▄▄▄▄▄▄``````````````````██████``````````````````██████``````````````````██████``````````██████``██████``````````██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``████████████████████████████████▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ XCHANGE▀▀▀▀▀▀▀▀▀ ```````````▄`````````▄██```````▄████`````▄██████████▄`````▀███████████▄```````▀████``▀█████``````▄`▀██````▀████▄````██▄`▀``````█████▄``████▄`▀███████████▄``▀██████████▀```````████▀```````██▀```````▀ SWAP▀▀▀▀▀▀▀▀▀
gjhiggins
Legendary

Offline

Activity: 2254
Merit: 1272

 February 24, 2021, 08:40:47 PM

What's that even mean Build it and They Will Come lol
It's a (mis)quote from the Kevin Costner film Field of Dreams and its use here is a slightly sardonic reference to the days of the early web when there was far less content, so much so that just about any web site would collect an audience. However, there was no means of guaranteeing this so web site publishers followed a strategy of hopefulness, hence: “Build it and They Will Come” became something of a mantra, not unlike "Mooooon" is in altcoinland.

Cheers

Graham
BayAreaCoins
Legendary

Offline

Activity: 3528
Merit: 1232

CEO of AltQuick.com and FreeBitcoins.com

 February 24, 2021, 09:56:32 PM

What's that even mean Build it and They Will Come lol
It's a (mis)quote from the Kevin Costner film Field of Dreams and its use here is a slightly sardonic reference to the days of the early web when there was far less content, so much so that just about any web site would collect an audience. However, there was no means of guaranteeing this so web site publishers followed a strategy of hopefulness, hence: “Build it and They Will Come” became something of a mantra, not unlike "Mooooon" is in altcoinland.

Cheers

Graham

Here is the scene in the movie as well:  https://www.youtube.com/watch?v=o3c_pJ_CLJQ

It's a really great movie.  If you've not seen it... you should absolutely make time.

 ▄▄███████████▄▄▄████▀▀`````````▀▀████▄███▀```````````````````▀██████`````````````````````````█████```````````██``██````````````████````````▄▄▄▄██▄▄██▄▄▄▄`````````████`````````▀██████████████▄````````████`````````````███`````▀████`````````██▐█▌`````````````███`````▄███▀`````````▐█▌▐█▌`````````````███████████▄``````````▐█▌▐█▌`````````````███▀▀▀▀▀▀████▄````````▐█▌▐█▌`````````````███```````████````````▐█▌██`````````````███`````▄▄████````````████`````````▄██████████████▀````````████````````▀▀▀▀██▀▀██▀▀▀▀`````````████```````````██``██````````````█████`````````````````````````██████▄```````````````````▄███▀████▄▄`````````▄▄████▀▀▀███████████▀▀ ALTQUICK.com ██████ --GET FREE BITCOINS FAST---AND LEARN TO TRADE ALTCOINS- ██████ `````````▄````````▄█▄``````▄█████▄`````█████████```▄███████████▄``███████████████`█████████████████████████████████████████████████████████▌▀███████████████`██``▀████████████``██▄```▀████████```▀███▄▄`█████▀``````▀▀▀▀▀▀▀ FAUCET▀▀▀▀▀▀▀▀▀ ``````````````````▄▄▄▄▄▄``````````````````██████``````````````````██████``````````````````██████``````````██████``██████``````````██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``██████``████████████████████████████████▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ XCHANGE▀▀▀▀▀▀▀▀▀ ```````````▄`````````▄██```````▄████`````▄██████████▄`````▀███████████▄```````▀████``▀█████``````▄`▀██````▀████▄````██▄`▀``````█████▄``████▄`▀███████████▄``▀██████████▀```````████▀```````██▀```````▀ SWAP▀▀▀▀▀▀▀▀▀
BitcoinFX
Legendary

Offline

Activity: 2646
Merit: 1680

https://youtu.be/DsAVx0u9Cw4 ... Dr. WHO < KLF

 February 24, 2021, 11:26:26 PMLast edit: March 15, 2021, 10:39:52 AM by BitcoinFX

Is there anyone here who can compile the Windows .EXE for Higgins New Wallet?

I adapted the Ravencoin build script - by replacing references to Ravencoin with references to Gapcoin. The resulting Windows64 binaries are here (and have previously been advertised as such):

hxxps://github.com/gjhiggins/gapcoin-core/releases/download/v0.1rc-alpha/gapcoin-0.16.3-win64-setup.exe

hxxps://github.com/gjhiggins/gapcoin-core/releases/download/v0.1rc-alpha/gapcoin-0.16.3-win64.zip

(I did see your HMAC PR for v0.9 but as you observe, it is an ill fit with the 0.16.3 codebase)

The 0.20 client will remain unreleased because the code in 0.16.3 that enables a soft-fork segwit transition has been removed in the Bitcoin 0.20 client. This is because the Bitcoin blockchain is now irrevocably segwit-enabled and the soft-fork code has been replaced by a simple height switch. Without this soft-fork transition code, upgrading to the 0.20 client would unfortunately necessitate a hard fork for the current Gapcoin chain AIUI and according to the chainz explorer, the overwhelming majority of Gapcoin nodes are Gapcoin 0.9.2 vintage, likely original Windows clients and there seems to be little likelihood of that changing.

Cheers

Graham

The Windows64 alpha/beta binary Release Candidate will be added to Gapcoin Club (with relevant advisories) if that is appropriate at this juncture?

EDIT: Warning !!! do not use the old Alpha Release Candidate on main net. TESTNET Only.

The current Gapcoin Windows Release remains the original v0.9.2 and the current Linux Release is v0.9.2 or build v0.9.3-4

...

It is no secret that Gapcoin Club has operated the majority of network listening nodes for a number of years now.

Whilst these servers are still currently running Gapcoin v0.9.2 they were successfully upgraded to v0.16.3 for a couple of weeks testing on mainnet.

The servers are also running Riecoin nodes, the respective Gapcoin on Tor .onion addnodes (several public Tor Bridges), as well as solo CPU mining some GAP!

- https://gapcoin.club/downloads/gapcoin.conf.tor.txt

N.B. All Tor v2 .onion's will cease to function on July 15th, 2021 as 0.4.6.x: Tor will no longer support v2 and support will be removed from the code base.

See: "Onion Service version 2 deprecation timeline"
- https://blog.torproject.org/v2-deprecation-timeline

Bitcoin Core v0.21 supports Tor v3 addresses more fully with BIP155 supporting gossiping them over the network.

Currently, a target date of July 15th, 2021 would also seem to be a reasonable time frame to notify users to upgrade their Gapcoin wallets to a newer Gapcoin Core Project release?

Gapcoin Club will continue to run and upgrade our existing nodes, whilst introducing and announcing new Gapcoin mainnet nodes (and hopefully v3 .onion compatible addnodes).

The majority of the existing servers will then be retired.

- https://gapcoin.club/downloads/gapcoin.conf

As the network regains its user base the club will shift focus to launching our mining pool, adding faster seednodes and establishing and running a block explorer.

"Bitcoin OG" 1JXFXUBGs2ZtEDAQMdZ3tkCKo38nT2XSEp | Bitcoin logo™ Enforcer? | Bitcoin is BTC | CSW is NOT Satoshi Nakamoto | I Mine BTC, LTC, ZEC, XMR and GAP | BTC on Tor addnodes Project | Media enquiries : Wu Ming | Enjoy The Money Machine | "You cannot compete with Open Source" and "Cryptography != Banana" | BSV and BCH are COUNTERFEIT.
M0ndialu
Hero Member

Offline

Activity: 819
Merit: 1000

 February 27, 2021, 11:25:25 AM

new wallet give me error with my old wallet.dat

gjhiggins
Legendary

Offline

Activity: 2254
Merit: 1272

 February 27, 2021, 11:42:14 AMLast edit: July 06, 2021, 12:13:12 AM by WelshMerited by xandry (3)

Mod note: consecutive posts merged. hr inserted between posts where needed for clarity

new wallet give me error with my old wallet.dat
Indeed, the 0.16.3 client will not load wallet.dat files created with the 0.9 client because the 0.16.3 client wallets are in HD (Hierarchical Deterministic) key format.

The recommended route is either:

1. Hand-import all your privkeys to the 0.16.3 client by using `importprivkey <label> <rescan>` - providing a label will better help you manage your keys in an HD-enabled wallet and if you have several privkeys to import, use “false” for rescan and afterwards restart the client with the -rescan option on the command line. For ultimate clarity, here is the output for `help importprivkey`:
Code:
./src/gapcoin-cli -datadir=`pwd`/datadir help importprivkey
importprivkey "privkey" ( "label" ) ( rescan )

Adds a private key (as returned by dumpprivkey) to your wallet. Requires a new wallet backup.

Arguments:
1. "privkey"          (string, required) The private key (see dumpprivkey)
2. "label"            (string, optional, default="") An optional label
3. rescan               (boolean, optional, default=true) Rescan the wallet for transactions

Note: This call can take minutes to complete if rescan is true, during that time, other rpc calls
may report that the imported key exists but related transactions are still missing, leading to
temporarily incorrect/bogus balances and unspent outputs until rescan completes.

Examples:

Dump a private key
> gapcoin-cli dumpprivkey "myaddress"

Import the private key with rescan
> gapcoin-cli importprivkey "mykey"

Import using a label and without rescan
> gapcoin-cli importprivkey "mykey" "testing" false

Import using default blank label and without rescan
> gapcoin-cli importprivkey "mykey" "" false

As a JSON-RPC call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importprivkey", "params": ["mykey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:31397/

2. Use dumpwallet and importwallet because the 0.16.3 client can import wallets dumped by the 0.9 client.

Start the 0.9 client and in the debug console, run dumpwallet "/some/path/mydumpedwallet.txt" (You can and should provide an OS-specific pathname). Stop the 0.9 client, start the 0.16.3 client and in the debug console run importwallet "/some/path/mydumpedwallet.txt". Basically it's just a bulk import of privkeys with an automatic rescan.

Cheers

Graham

providing a label will better help you manage your keys in an HD-enabled wallet
Migrating from the flat keyspace of the 0.9 client to the structured keyspace of the 0.16.3 client can be a bit challenging.

Gapcoin 0.16.3 inherits pretty much all its functionality as a cryptocurrency from its Bitcoin 0.16.3 cloneparent. The only major change between the two codebases is the use of j0nn9's prime gap implementation as a PoW hashing algorithm instead of Bitcoin's SHA256D, otherwise the functionality is more or less identical. This means that the Bitcoin 0.16.3 documentation is a useful source of information on the functioning of the Gapcoin client. By extension, this includes the Bitcoin wiki (although do bear in mind that the wiki is about the latest version of Bitcoin which is now 0.21) so there is useful documentation on, e.g. the HD wallet.

The first difference that you are likely to encounter is that importing a single privkey results in three new addresses appearing in the "Receiving addresses" popup. These three addresses are just different formats of the same basic underlying ECC pubkey/privkey pair - "legacy", "segwit" and "bech32".

Currently the client is configured to use legacy addresses by default - i.e. the ones returned by clicking on “Receive->Request Payment”.

However, the default can be changed in the gapcoin.conf file or on the command line:  -addresstype "What type of addresses to use ("legacy", "p2sh-segwit", or "bech32"

I have added a couple of RPC API calls to help people get a better understanding of Gapcoin's new keyspace: makekeypair and showkeypair <privkey>.

Example output from makekeypair:
Code:
./src/gapcoin-cli  makekeypair
{
"compressed": true,
"addresses": {
"legacy": "GcwphVTaks2XGGB8RUk7auWdgmG8CV14TF",
"segwit": "34GsDWQGPQJHgv366Cvsd5PDQecj6P5cMK",
"bech32": "gp1q6xype4d7cvltvu92r3ujv7j229kh0my6t6cxpy"
},
"privkey": "FP547eMzeXLZvppGjkxTNkAx1wf9z9vZgWLSS2AkWYkia2dfkkU9",
"public key": "034e63f9af0ad2cf6e70f3785ecdc15cdb830c0fd252f366be43bee5eea6be6001",
"private key": "36796105fbdb2e68528bb09a21a95b25a89b96f59aa073de08db0aaa7b2c1d7f"
}
"privkey" is the one you're already used to (it's a reduced-format version of the of the ECC private key) whereas "public key" and "private key" will be new to you, they are the actual ECC public and private keys.

Aside: By default, makekeypair creates “compressed“ keys. Very early versions of the Bitcoin client were coded to use the points on both positive and negative x and y axes of the elliptic curve, i.e. two pairs of rather large numbers, the pairs being identical except that one was negative.  As Bitcoin evolved, it was realised that only one of the two pairs was necessary, along with a single bit indicating whether the pair was the positive or negative one - this reduced format was termed “compressed” and is now the norm.

Except that the test fixture for the test suite key still checks the validity of the uncompressed keys in the test fixture.

Although it's irrelevant in normal use, for the purposes of testing, it suited me to add an option to the makekeypair, if you pass it a second argument ("false"), it generates uncompressed keys:
Code:
./src/gapcoin-cli makekeypair false
{
"compressed": false,
"addresses": {
"legacy": "Gc6WYBnYDeVpbHySQx6E5h1hjcn3Cj8J9a"
},
"privkey": "4H5pZbnhj9BFmj6pg7ExNg2NhWUHwek9c7LVCPyfDf6BscvZ8n6",
"public key": "0401493fe086dac8f5c22c08fec7f71c915b9591709cd4fe1ab84e17e1e414b51e90d3464edc4b03c19d488c96e8b3845e8ccdd83233c4053aad6f8b2cb3c02a5d",
"private key": "c933dcfa2aeabae973f1c0eccce0012fb938ea2d00f6ed4e1894c736df4c014a"
}

The space-saving properties of compressed keys should be obvious.

So now you know.

Okay, on to showkeypair. There's less to say about this, it's a convenience function to allow you to identify which address is which, when given a privkey:

Code:
./src/gapcoin-cli showkeypair FP547eMzeXLZvppGjkxTNkAx1wf9z9vZgWLSS2AkWYkia2dfkkU9
{
"addresses": {
"legacy": "GcwphVTaks2XGGB8RUk7auWdgmG8CV14TF",
"segwit": "34GsDWQGPQJHgv366Cvsd5PDQecj6P5cMK",
"bech32": "gp1q6xype4d7cvltvu92r3ujv7j229kh0my6t6cxpy"
},
"privkey": "FP547eMzeXLZvppGjkxTNkAx1wf9z9vZgWLSS2AkWYkia2dfkkU9",
"public key": "034e63f9af0ad2cf6e70f3785ecdc15cdb830c0fd252f366be43bee5eea6be6001",
"private key": "36796105fbdb2e68528bb09a21a95b25a89b96f59aa073de08db0aaa7b2c1d7f"
}

Aside, for eyewatering completeness, this is the result when using an uncompressed privkey:

Code:
./src/gapcoin-cli showkeypair 4H5pZbnhj9BFmj6pg7ExNg2NhWUHwek9c7LVCPyfDf6BscvZ8n6
{
"addresses": {
"legacy": "Gc6WYBnYDeVpbHySQx6E5h1hjcn3Cj8J9a"
},
"privkey": "4H5pZbnhj9BFmj6pg7ExNg2NhWUHwek9c7LVCPyfDf6BscvZ8n6",
"public key": "0401493fe086dac8f5c22c08fec7f71c915b9591709cd4fe1ab84e17e1e414b51e90d3464edc4b03c19d488c96e8b3845e8ccdd83233c4053aad6f8b2cb3c02a5d",
"private key": "c933dcfa2aeabae973f1c0eccce0012fb938ea2d00f6ed4e1894c736df4c014a"
}

HTH

Cheers

Graham

Further to Gapcoin’s newly-acquired structured key space ...

Although the 0.16.3 client doesn't support mnemonic passphrases directly, mnemonic passphrases for the Gapcoin HD wallet are indirectly supported via Ian Coleman’s standalone BIP-39 key management HTML/Javascript application. I have cloned his repos and added the relevant Gapcoin extended key values. Using the application is quite straightforward, just clone the repos and open src/index.html in your browser.

There are two ways of using the application: i) with mnemonics in which you need to import any subequently-generated privkeys into the wallet and ii) without mnemonics in which you paste your wallet's extended privkey into the application and use it to manage/understand the structured space of keys.

First off, select "Gapcoin" in the drop-down “Coin” menu. Ignore the "Invalid root key warning", it just wants you to click the “Generate” button, so do that next in order to generate a mnemonic and a root key. If you're going to use this means of managing keys, remember to commit the mnemonic to memory or disk or whatever.

Otherwise, if you're not interested in using a mnemonic but merely want to understand the extended key space, navigate to a wallet.txt file dumped by the 0.16.3 client, open it and copy the extended private master key (starting with "gpxv") and paste it into the  “BIP32 Root Key” form field, accepting the warning.

Example extended private key to use:
Code:
# extended private masterkey: gpxv2JGkH1LYqUHcfU6LRjkgVx97cdrSarWyaraNQDkatPErTKfvajmGLZ46HqYUAurH3v5ioD8v9BnZpC8qRqRRuFVkcMzs78tQdbgrAPHigSZ

The corresponding extended public key is gpxp1b6ZHwV3SZpyNoYgtH2HrSsAct6w6FetogsekTuEWKJCxN5YjzKeY3YAns97h2CVogTfv6YGh7W uUbNNUMyLLXFU6hFdSn6jGA6JoLp9tYP

The HD wallet is extensively documented on the Bitcoin wiki on the BIP_0032 page but basically, with hierarchical deterministic wallets, the key space is conceived of as a keypath of the form
m/44/15/0/0, pretty much like a filepath, with the following meanings:

Code:
m / purpose' / coin_type' / account' / chain / address_index

Deconstructing the path m/44'/15'/0'/0 deconstruction

44 — BIP 44 Purpose
15 — Gapcoin’s coin type
0 — Account 0
0 — Chain 0

Gapcoin’s coin type is "15", repurposing the long-vanished Clearinghouse assignment. I applied for registration but the gatekeepers declined the request, so, in the finest tradition of altcoin devs, I simply ignored the centralised “authority” and used the number anyway.

Fwiw, Harsha Goli's medium blog post “HD Wallets Explained: From High Level to Nuts and Bolts” covers the topic very well.

With Gapcoin, the "gpxv" and "gpxp" are extended key "vanity addresses" (Bitcoin uses "xprv" and "xpub" respectively). I generated the complete set for mainnet and testnet.

Code:
BIP39 Extended keys
{
'public': '033C0DF8',
'private': '033C0E22',
}
Mainnet and Regtest
{
'p2pkhpub': '033C0DF8', 'p2pkhprv': '033C0E22',             // x
'p2shpub': '033C0DF8', 'p2shprv': '033C0E22',               // x
'p2sh_p2wpkhpub': '033C0F8D', 'p2sh_p2wpkhprv': '033C0FB7', // y
'p2sh_p2wshpub': '033BE7FF', 'p2sh_p2wshprv': '033BE829',   // Y
'p2wpkhpub': '033C1123', 'p2wpkhprv': '033C114C',           // z
'p2wshpub': '033BE994', 'p2wshprv': '033BE9BE'              // Z
}
Testnet
{
'p2pkhpub': '033C07A4', 'p2pkhprv': '033C07CE',             // t
'p2shpub': '033C07A4', 'p2shprv': '033C07CE',               // t
'p2sh_p2wpkhpub': '033C0939', 'p2sh_p2wpkhprv': '033C0963', // u
'p2sh_p2wshpub': '033BE1AB', 'p2sh_p2wshprv': '033BE1D5',   // U
'p2wpkhpub': '033C0ACE', 'p2wpkhprv': '033C0AF8',           // v
'p2wshpub': '033BE340', 'p2wshprv': '033BE36A'              // V
}

It all looks impenetrable but the scheme is reasonably simple:

Code:
Mainnet:
Legacy:
x = P2PKH or P2SH

Segwit:
y = P2WPKH in P2SH
Y = Multi-signature P2WSH in P2SH

Bech32:
z = P2WPKH
Z = Multi-signature P2WSH

Testnet:
Legacy:
t = P2PKH/P2SH

Segwit:
u = P2WPKH in P2SH
U = Multi-signature P2WSH in P2SH

Bech32:
v = P2WPKH
V = Multi-signature P2WSH

In summary - you have "legacy", the simplest form of pay to Pubkey hash or Script Hash. Then you have a combo of single-sig vs multisig for pubkey hash vs script hash witnessed transactions.

The Gapcoin-specfic scheme is gc[x|y|Y|z|Z][p|v], that is to say "gc" followed by one of "x", "y", "Y", "z" or "Z" (denoting the role) and "p" or "v" (denoting "public" or "private")

Now you're good to get going managing your Gapcoin structured key space according to the BIP32, BIP44, BIP49, BIP84 and  BIP141 protocols.

Cheers

Graham

M0ndialu
Hero Member

Offline

Activity: 819
Merit: 1000

 February 27, 2021, 05:35:07 PM

ty for help!

i try to solo mining on the new wallet from 2 pc to 1 pc wallet, like internal pool on my lan network, i use "rpcallowip=192.168.1.x" on my gapcoin config and give me error

[2021-02-27 19:33:45] waiting for server ...
[2021-02-27 19:33:55] curl_easy_perform() failed: Timeout was reached
[2021-02-27 19:33:55] waiting for server ...

with old wallet all work good

i need a new settings for new wallet ?

gjhiggins
Legendary

Offline

Activity: 2254
Merit: 1272

 February 27, 2021, 07:25:26 PMMerited by M0ndialu (5)

i need a new settings for new wallet ?

Yes, you need to use 192.168.1.0/24

(Tested, works. Courtesy of https://bitcoin.stackexchange.com/questions/32266/rpcallowip-192-168-0-invalid-configuration)

Cheers

Graham
M0ndialu
Hero Member

Offline

Activity: 819
Merit: 1000

 February 27, 2021, 08:26:07 PM

on my old config i have :

rpcallowip=192.168.1.199

and all work good

and on new config i put

rpcallowip=192.168.1.199/24

but no work

gjhiggins
Legendary

Offline

Activity: 2254
Merit: 1272

 February 27, 2021, 10:04:23 PMMerited by xandry (3)

and on new config i put
rpcallowip=192.168.1.199/24
but no work
no work indeed, that's because you didn't follow the instructions. I guess I wasn't clear enough, I intended that you should copy and paste the solution. You did the equivalent of 192.168.1.199.* which is wrong.

I was explicit and precise:
Yes, you need to use 192.168.1.0/24

It needs to be valid CIDR (see https://www.ionos.com/digitalguide/server/know-how/cidr-classless-inter-domain-routing/).

Just in case, I'll repeat: you need to use: rpcallowip=192.168.1.0/24 at least, maybe even rpcallowip=192.168.1.0/32 (see above link and do the arithmetic for yourself, this isn't a Gapcoin config issue, this is just a general CIDR networking config issue).

Cheers

Graham

wizz13150
Member

Offline

Activity: 66
Merit: 26

Tempus Narrabo

 February 27, 2021, 10:42:57 PMLast edit: February 28, 2021, 12:36:35 AM by wizz13150

Mining / DataMining Noob Stuff

https://github.com/wizz13150/GapcoinStuff

no work indeed

Yes, you need to use 192.168.1.0/24

I got this one, dumb (me) translation :
Allow a range, a network delimited by subnet mask.
Not a single IP nor IP and mask

Wizz_^
UsernameNumber7
Member

Offline

Activity: 256
Merit: 60

 March 01, 2021, 07:11:50 AM

https://github.com/bitcoin/bitcoin/blob/master/src/crypto/hmac_sha512.cpp

Found the HMAC, looks like it's just as easy to upgrade the key size to 512 Bit Keys.

This will make me happy enough to have everyone move up to 16.3.

But a new Windows build might need to be done.

The HMAC is the most important part of Bitcoin, as it's key size is what matters most.  With a distributed Blockchain across the World.

https://www.TRISQUEL.INFO #1 Free Software Linux Operating  System

Trisquel OS "Just Do It"        "Sic Semper Tyranis"
 Pages: 1 ... 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 [114] 115 116 117 118 119 120 121 122 123 124
Jump to: