Can the coin symbol prefix in a cloned NXT blockchain start with a digit?

5

Creating a new blockchain with the Nxt Blockchain Creation Kit, is it possible to use a coin symbol prefix beginning with a digit in the wallet address?

I get an error that the address is malformed when I try this. Should I look for an error, or is this impossible?

CryptoWoman

Posted 2018-10-12T11:08:01.783

Reputation: 91

Question was closed 2018-10-17T18:13:47.287

4I'm voting to close this question as off-topic because it is unrelated to Bitcoin.Anonymous 2018-10-12T11:25:48.330

1Please provide the prefix you try and the errorPetko Petkov 2018-10-13T09:19:47.020

1Error: "The recipient address is malformed." The prefix would reveal the project prematurely...CryptoWoman 2018-10-13T12:06:42.157

Answers

3

No, adding a coin symbol prefix is not doable as it will impact other functions that might take it as a parameter. Your better off just doing it on the front end using a css :before class using the content: property.

Patoshi パトシ

Posted 2018-10-12T11:08:01.783

Reputation: 8 911

1We discovered that we could add the prefix by editing the Constants.java file.CryptoWoman 2018-10-17T03:50:46.483

2

It should be OK for the prefix to start with digit. Or at least this works for me in Constants.java:

public static final String COIN_SYMBOL = "5Coin";
public static final String ACCOUNT_PREFIX = "5CN";
public static final String PROJECT_NAME = "5Coin";

Now accounts look like 5CN-P6F5-J7VU-RWHZ-9LXN8 and the coin name as displayed in UI is 5Coin.

Petko Petkov

Posted 2018-10-12T11:08:01.783

Reputation: 336

1Thanks, we got it to appear in the UI, the error appeared when we tried to send funds. Error: "The recipient address is malformed."CryptoWoman 2018-10-13T10:52:57.097