Jump to content

Search the Community

Showing results for tags 'bitcoin'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • BlockForums Announcements
    • Denarius Announcements
  • Cryptocurrency Discussions
    • Cryptocurrencies
    • Altcoin Announcements
    • General Discussion
    • Tutorials & Help
  • Denarius Discussions
    • General Discussion
    • Tutorials & Help
    • Marketing & PR
    • Development
    • Mining & Staking
    • Trading & Exchanges
    • Marketplace
  • Programming & Design
    • Development QA
    • Design QA
  • Gaming
    • Bot Downloads & Discussion
    • Gaming Discussion
  • Classifieds
    • Buy Sell and Trade
  • Other Discussions
    • The Lounge
    • Hardware & IoT
    • Tutorials & Guides
    • Domains & Hosting

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


BTC Address

Found 12 results

  1. Denarius v3.3.9.8 Mandatory Update! Denarius Release Notes: Protocol Bump to 33933 (All nodes will need to update) Jupiter IPFS now has PeerID and PubKey Support (If using jupiterlocal=1) Include Vout TX Hex Data with asm in Transactions Added Transaction Sizes to RPC Update to FortunaStakes Improved FS Status Information Updated getinfo and other RPC Commands to return more information Updated other RPC commands for use with Kronos (https://github.com/carsenk/kronos) Added burn RPC command (Credits to @CircuitBreaker88) New EUR Balance in QT Overview (Credits to @CircuitBreaker88) Random updates, fixes, and improvements to Denarius overall Credits to @buzzkillb for being so kind and hosting our chaindata at https://denarii.cloud If you are running Denarius via Snap, Snap will automatically upgrade you, simply restart your Denarius node and verify you are running version 3.3.9.8 Latest version is available in our master branch on the Github Get v3.3.9.8 for Windows and macOS: https://github.com/carsenk/denarius/releases/tag/v3.3.9.8 This includes updates to D that improve it for use with its new secondary interface Kronos https://github.com/carsenk/kronos
  2. Been wondering how to make use of the electrumx server, but in bash. First I needed to connect to the electrumx server. #!/bin/bash echo "get block header" (echo '{"method" : "blockchain.block.header", "params": ["1"], "id": "msg_id"}'; sleep 1) | ncat --ssl electrumx1.denarius.pro 50002 This outputs. block header {"jsonrpc": "2.0", "result": "06000000cd8f82c4c28201fd89def0dba541d66432bff9c1bb16fc1c6201dabb5d0d0000e4abd1522f390c5a2b83add7c8d29b875e1e0691dc43267f0406e9ddfea329c76ab74159ffff0f1e000d8425", "id": "msg_id"} So now to get a balance. The thing with electrumx server is that you need a scripthash to call any address functions. But I don't have that. All I have is a bash terminal and a Denarius address. So what do I do? Line by line dissect how people create an address and then work backwards to the scripthash. I need this image, but down to up. source: https://learnmeabitcoin.com/guide/p2pkh This is not so easy as I can't find anyone doing this backwards in bash. But I found lots of posts how to go forwards. Here is how to get it before converting to big endian. #!/bin/bash . denarius.sh #DUP HASH160 begin="76A914" echo $begin #EQUALVERIFY CHECKSIG end="88AC" echo $end echo "decodeBase58" decoded="$(decodeBase58 DCMRvR6MUppPgP8vrMKuni4FL5de8SjicG)" echo "Remove 00 bytes" echo ${decoded#??} removefront=$(echo "${decoded#??}") echo $removefront echo "Remove checksum" removeback=$(echo "${removefront%????????}") echo "95 characters base58" echo $removeback echo "now what?" echo $begin$removeback$end echo "convert to scripthash" echo -n $begin$removeback$end | xxd -r -p | sha256sum | cut -d' ' -f1 scripthash=$(echo -n $begin$removeback$end | xxd -r -p | sha256sum | cut -d' ' -f1) echo $scripthash Will also need grondilu bitcoin-bash-tools. https://github.com/grondilu/bitcoin-bash-tools Get the bitcoin.sh and throw that into the same directory you are going to test this out in, for obvious reasons I renamed bitcoin.sh to denarius.sh. First I am assuming a standard P2PKH address with OP_DUP OP_HASH160 hashedpublickey OP_EQUALVERIFY OP_CHECKSIG #DUP HASH160 begin="76A914" echo $begin #EQUALVERIFY CHECKSIG end="88AC" echo $end Then decodeBase58 of our Denarius address, works on bitcoin obviously. echo "decodeBase58" decoded="$(decodeBase58 DCMRvR6MUppPgP8vrMKuni4FL5de8SjicG)" Then remove 00 bytes from the front of this. The #?? removes 2 characters from the left of a string. echo "Remove 00 bytes" echo ${decoded#??} removefront=$(echo "${decoded#??}") echo $removefront Now remove the checksum. The %???????? removes 8 characters from the right of the string. echo "Remove checksum" removeback=$(echo "${removefront%????????}") echo "95 characters base58" echo $removeback Now what? How to convert to scripthash? We can echo the the uncompressed public key, kind of. echo "now what?" echo $begin$removeback$end echo "convert to scripthash" sha256 this in proper format, using xxd and then sha256 that. echo -n $begin$removeback$end | xxd -r -p | sha256sum | cut -d' ' -f1 scripthash=$(echo -n $begin$removeback$end | xxd -r -p | sha256sum | cut -d' ' -f1) echo $scripthash At the end from that address I get. 3735fe8239322122222f8a8f42d9b6545bc517e2086116e57953fdc9cc7f6115 For now I have a separate function I found to convert to big endian, since electrumx server wants it this way. source: https://electrumx.readthedocs.io/en/latest/protocol-basics.html#script-hashes #!/bin/bash #echo 6191c3b590bfcfa0475e877c302da1e323497acf3b42c08d8fa28e364edf018b | ./bigendian.sh #8b01df4e368ea28f8dc0423bcf7a4923e3a12d307c875e47a0cfbf90b5c39161 # check stdin if [ -t 0 ]; then exit; fi v=`cat /dev/stdin` i=${#v} while [ $i -gt 0 ] do i=$[$i-2] echo -n ${v:$i:2} done echo I run this like echo 3735fe8239322122222f8a8f42d9b6545bc517e2086116e57953fdc9cc7f6115 | ./bigendian.sh and get the scripthash electrumx server wants 15617fccc9fd5379e5166108e217c55b54b6d9428f8a2f222221323982fe3537 Like bash magic we can use that scripthash to talk to the electrumx server to get a balance. #!/bin/bash echo "get balance" (echo '{"method" : "blockchain.scripthash.get_balance", "params": ["15617fccc9fd5379e5166108e217c55b54b6d9428f8a2f222221323982fe3537"], "id": "msg_id"}'; sleep 1) | ncat --ssl electrumx1.denarius.pro 50002 And we get the balance. get balance {"jsonrpc": "2.0", "result": {"confirmed": 125740854, "unconfirmed": 0}, "id": "msg_id"} And a large step forward in creating a basic terminal wallet for any device that can use bash, ncat and has port 50002 open.
  3. So I decided to start building an open source hardware wallet....specifically for Denarius (D) I decided upon the ESP32 platform chip due to its powerful feature set enabling the use of cryptographic functions and cheap cost. We have options of Wifi and Bluetooth if needed, though the focus will be around not enabling these on the board. The code is very basic as this is my first time with playing with MCUs and development micro controller boards. Everything will be released in due time as well as this post updated, this thread will serve as a historical and discussion venue. Some early prototyping with a breadboard + ESP32 Dev Board + 128x32 OLED display Some serial console output of some transaction signing attempts on chip
  4. So not a lot of information out there, but if you want to convert a Bitcoin or Denarius or any standard crypto typically, you take the block hex to a block hash (typically used for block explorers and things) you just do the following: changeEndianness(SHA256(SHA256(BLOCKHEX))) So basically visually in text it would be: BLOCKHEX => Hashed to SHA256 => Hashed to SHA256 => Swap Endianness = Block Hash You are just hashing the hex twice and then swapping the endianness to obtain the hash of the block.
  5. Denarius's genesis block was created 3 years ago today (6/14/2017). Happy 3 years old Denarius and thank you to everyone for your support of D over the years! Register here on BlockForums.org and make a post in this thread saying how you found Denarius (D) with your Denarius address and receive 1.0 D and 100 BF$!
  6. PR is in the works to make Denarius and Beam Atomic swaps possible in the Beam wallet. You can start building it to test the atomic swaps via electrum and or the native D wallet. You only will need the Beam wallet though if using electrum. Beam building guide coming soon that adds onto their documentation and new atomic swap guides. https://github.com/BeamMW/beam/pull/1303
  7. Buying 100m OSRS 2007 for $0.50 per mill. Payment in D or BTC
  8. What is the best mining OS you recommend? I personally like HiveOS - https://hiveos.farm
  9. How to Install Snap and Denarius (D) on any Chromebook (ChromeOS) Guide by Carsen Klock First you need to install/enable Linux (Beta) aka Crostini within your ChromeOS Settings. You will be running the following commands in the default Linux (Beta) terminal within ChromeOS to get a full working install of https://snapcraft.io (Snap/Snapd) on ChromeOS with Denarius installed via Snap. Update and Upgrade your Linux (Beta) aka. Debian 9 Stretch by default as of this guides writing: sudo apt update && sudo apt upgrade Now you need to install some dependencies and tools that we will be using: sudo apt install git wget curl build-essential automake libtool autoconf pkg-config udev fuse snap snapd --------------------------------------------------------------------------------------------- Now you will need to install libsquashfuse0 and squashfuse, you can manually compile these and link them, but for ease of use, you can just install their respective .deb packages for your ChromeOS Architecture, Snap will be installed at this point, but it will not successfully mount and install any Snaps until you have libsquashfuse0 and squashfuse packages installed and linked. ARM64 Arch Only: wget http://ftp.us.debian.org/debian/pool/main/s/squashfuse/libsquashfuse0_0.1.103-1_arm64.deb AMD64 Arch Only: wget http://ftp.us.debian.org/debian/pool/main/s/squashfuse/libsquashfuse0_0.1.103-1_amd64.deb Now after downloading the proper libsquashfuse0 from one of the commands above, you want to install it with dpkg, after the -i flag (install) enter in the name of the file with the correct architecture you downloaded for your device: (ARM64 is used in the example) sudo dpkg -i libsquashfuse0_0.1.103-1_arm64.deb --------------------------------------------------------------------------------------------- Now you will want to do the same thing with the squashfuse package as libsquashfuse0 ARM64 Arch Only: wget http://ftp.us.debian.org/debian/pool/main/s/squashfuse/squashfuse_0.1.103-1_arm64.deb AMD64 Arch Only: wget http://ftp.us.debian.org/debian/pool/main/s/squashfuse/squashfuse_0.1.103-1_amd64.deb Now after downloading, the step is the same as above, run dpkg -i to install the *.deb package (ARM64 is in the example below): sudo dpkg -i squashfuse_0.1.103-1_arm64.deb If successfully done correctly, you will now have a working Snap install on ChromeOS! --------------------------------------------------------------------------------------------- Now it is time to install and run your first Snap! sudo snap install denarius It should now install without fail if you followed the commands above and used the proper architectures for your Chromebook, Now to run Denarius on your Chromebook, simply run the command: denarius.daemon You can also install the GUI Snap Store with the snap command: sudo snap install snap-store GUI support and guide will be coming soon
  10. Denarius v3.3.9.7 Changes and Features: New Denarius Jupiter Flags (-jupiterlocal=1 and -jupiterip=ipfsnodeip:port to specify a remote or locally hosted IPFS node) Default is jupiterlocal=0 and uses Infura.io APIs to connect to IPFS (sudo apt install libcurl4-openssl-dev is required as a dep now!) New proofofdata RPC Command Updated Jupiter IPFS UI in the Denarius QT New jupiterduo and jupiterduopod commands (Must have jupiterlocal flag enabled) Autocomplete in the Denarius QT Debug Window Fixes for upcoming PoW Block 3 Million. (Proof of Work rewards end) Bug Fixes Performance Updates Snap is updated as always snap refresh denarius or snap install denarius on any Linux distro and arch! Denarius-v3.3.9.7-Win64.zip SHA256 Hash: A022FEC6D9C5C4EA747A8F121E39578842803FB2CF3BA57C4798760A85906878 SHA1 Hash: 6AF62D2F684EAE99ECB27289182E6A1C9722668E CRC64 Hash: 9F8F0D998A62B44E Denarius.exe SHA256 Hash: 16F7D0D928C02878428BAB1F697128079EB08FAD3480184716EFA450B051B694 SHA1 Hash: 0BB82DA5C91327A3AF22A40213152E89EA7FA839 CRC64 Hash: 4849558F817C7921 Get the latest release from https://github.com/carsenk/denarius/releases You can also run snap update denarius or snap install denarius if on any Linux distribution
  11. How to compile Denarius (D) on macOS Mojave 10.14 By Carsen K First download Xcode from the App Store (v10.x) Install Xcode Command Line Tools via your Terminal: sudo xcode-select --install Accept Xcode License sudo xcodebuild -license Type agree after hitting space to get to the end -------------------------------------------------------- Download Qt 5.3.2 from: https://download.qt.io/archive/qt/5.3/5.3.2/qt-opensource-mac-x64-clang-5.3.2.dmg Install Qt and Qt Creator from this dmg (no need to install source files) Now in your default_pre.prf file inside your Qt 5.3.2 install change the following lines Example Location: Qt_install_folder/5.3.2/5.3/clang_64/mkspecs/features/mac/default_pre.prf REPLACE: isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))) WITH: isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))) Sometimes you just need to comment out line 16 the line below this (#error()) for Qt to recognize Xcode -------------------------------------------------------- Then download MacPorts from: https://www.macports.org/install.php Once installed run the following command in your Terminal to install all required Denarius dependancies. sudo port install boost db48 qrencode libevent miniupnpc openssl git Now you are almost ready to compile! -------------------------------------------------------- git clone https://github.com/carsenk/denarius cd denarius Now inside your denarius-qt.pro on line 14, replace the current QMAKE_CXXFLAGS with: QMAKE_CXXFLAGS += -fpermissive -Wno-literal-suffix -stdlib=libc++ Run this command in your terminal session with the denarius folder open, replace your username with your username or the entire path below with your correct QT location. export PATH=$PATH:/Users/<yourname>/Qt5.3.2/5.3/clang_64/bin Run qmake --version which should return Qt 5.3.2 You can now compile Denarius with the usual commands qmake "USE_UPNP=1" "USE_QRCODE=1" denarius-qt.pro make -j4 After compiling you can create a .dmg installer by running this command in the denarius root (you must have Python 2.7 installed, can be installed via MacPorts) sudo python contrib/macdeploy/macdeployqtplus Denarius.app -dmg You have successfully compiled Denarius on macOS!
  12. Hey all! A Denarius Price Ticker is now available for MacBook Pros with the Touch Bar! Get it here: https://github.com/carsenk/touchbardenarius
×
×
  • Create New...