From a8571743d8a84fa11681768da6ad64131a011e02 Mon Sep 17 00:00:00 2001 From: Andrew <95168952+terhnt@users.noreply.github.com> Date: Sat, 25 Dec 2021 01:02:52 +1100 Subject: [PATCH 1/3] Create uno.js --- lib/coins/uno.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 lib/coins/uno.js diff --git a/lib/coins/uno.js b/lib/coins/uno.js new file mode 100644 index 0000000..3da3481 --- /dev/null +++ b/lib/coins/uno.js @@ -0,0 +1,52 @@ +var common = { + name: 'Unobtanium', + unit: 'Uno' +} + +var main = Object.assign({}, { + hashGenesisBlock: '000004c2fc5fffb810dccc197d603690099a68305232e552d96ccbe8e2c52b75', + port: 65534, + protocol: { + magic: 0x03d5b503 + }, + seedsDns: [ + 'node1.unobtanium.uno', + 'node2.unobtanium.uno' + ], + versions: { + bip32: { + private: 0x0488B21E, + public: 0x0488ADE4 + }, + bip44: 0x5c, + private: 0xE0, + public: 0x82, + scripthash: 0x1E + } +}, common) + +var test = Object.assign({}, { + hashGenesisBlock: '000007b02afb00ae826d948d88f4973c00073425f965917f6298b6d280bde021', + port: 65522, + protocol: { + magic: 0x01020304 + }, + seedsDns: [ + 'testnet.unobtanium.uno' + ], + versions: { + bip32: { + private: 0x043586CE, + public: 0x04358293 + }, + bip44: 1, + private: 0xEF, + public: 0x44, + scripthash: 0x1E + } +}, common) + +module.exports = { + main, + test +} From 66f47fa5ed11ca15b8594dde18e8e1511fd69e14 Mon Sep 17 00:00:00 2001 From: Andrew <95168952+terhnt@users.noreply.github.com> Date: Sat, 25 Dec 2021 01:04:22 +1100 Subject: [PATCH 2/3] Update coininfo.js --- lib/coininfo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/coininfo.js b/lib/coininfo.js index 7a769b6..b8eef0b 100644 --- a/lib/coininfo.js +++ b/lib/coininfo.js @@ -23,6 +23,7 @@ var coins = [ require('./coins/qtum'), require('./coins/rvn'), require('./coins/rdd'), + require('./coins/uno'), require('./coins/vtc'), require('./coins/x42'), require('./coins/zec') From 4d9a028628f1c36da9f684d4c8797b9f6d70c742 Mon Sep 17 00:00:00 2001 From: Andrew <95168952+terhnt@users.noreply.github.com> Date: Sat, 25 Dec 2021 01:11:34 +1100 Subject: [PATCH 3/3] Update uno.js Add Uno Sources and message magic in comment. ( wasn't sure if can add the messagePrefix into the config ) --- lib/coins/uno.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/coins/uno.js b/lib/coins/uno.js index 3da3481..300b424 100644 --- a/lib/coins/uno.js +++ b/lib/coins/uno.js @@ -1,3 +1,12 @@ +/* +Info From; +https://github.com/unobtanium-official/Unobtanium/blob/master/src/chainparams.cpp +https://github.com/satoshilabs/slips/blob/master/slip-0044.md + +Unobtanium messagePrefix is: +messagePrefix = "\x1bUnobtanium Signed Message:\n" +*/ + var common = { name: 'Unobtanium', unit: 'Uno'