Browse Source

updated paths of the derosuite package

master
arnaucode 6 years ago
parent
commit
54d9934a3a
76 changed files with 299 additions and 204 deletions
  1. +1
    -1
      README.md
  2. +1
    -1
      address/address.go
  3. +1
    -1
      address/address_test.go
  4. +4
    -4
      block/block.go
  5. +2
    -2
      block/block_test.go
  6. +1
    -1
      blockchain/alt_blocks.go
  7. +4
    -4
      blockchain/block_chain_input.go
  8. +11
    -11
      blockchain/blockchain.go
  9. +1
    -1
      blockchain/blockheader.go
  10. +2
    -2
      blockchain/checkpoints_static.go
  11. +1
    -1
      blockchain/const.go
  12. +4
    -4
      blockchain/create_miner_tx.go
  13. +4
    -4
      blockchain/create_miner_tx_test.go
  14. +3
    -3
      blockchain/genesis.go
  15. +1
    -1
      blockchain/inputmaturity/inputmaturity.go
  16. +1
    -1
      blockchain/inputmaturity/inputmaturity_test.go
  17. +3
    -3
      blockchain/mempool/mempool.go
  18. +2
    -2
      blockchain/mempool/mempool_test.go
  19. +6
    -6
      blockchain/outputs_index.go
  20. +1
    -1
      blockchain/reorg_test.go
  21. +2
    -2
      blockchain/rpcserver/getblock.go
  22. +2
    -2
      blockchain/rpcserver/getblockheaderbyhash.go
  23. +2
    -2
      blockchain/rpcserver/getblockheaderbyheight.go
  24. +2
    -2
      blockchain/rpcserver/getinfo.go
  25. +1
    -1
      blockchain/rpcserver/getlastblockheader.go
  26. +1
    -1
      blockchain/rpcserver/gettransactions.go
  27. +2
    -2
      blockchain/rpcserver/rpcserver.go
  28. +4
    -4
      blockchain/store.go
  29. +17
    -17
      blockchain/transaction_verify.go
  30. +1
    -1
      blockchain/tx_fees.go
  31. +3
    -7
      build_all.sh
  32. +25
    -0
      build_allBACKUP.sh
  33. +11
    -26
      build_package.sh
  34. +78
    -0
      build_packageBACKUP.sh
  35. +2
    -2
      checkpoints/checkpoints.go
  36. +2
    -2
      cmd/dero-wallet-cli/daemon_communication.go
  37. +2
    -2
      cmd/dero-wallet-cli/easymenu_post_open.go
  38. +2
    -2
      cmd/dero-wallet-cli/easymenu_pre_open.go
  39. +5
    -5
      cmd/dero-wallet-cli/main.go
  40. +2
    -2
      cmd/dero-wallet-cli/prompt.go
  41. BIN
      cmd/derod/derod
  42. +12
    -12
      cmd/derod/main.go
  43. +4
    -4
      cmd/explorer/explorer.go
  44. +1
    -1
      config/config.go
  45. +1
    -1
      crypto/ringct/basic.go
  46. +1
    -1
      crypto/ringct/key.go
  47. +1
    -1
      crypto/ringct/mlsag.go
  48. +1
    -1
      crypto/ringct/ringct.go
  49. +2
    -2
      difficulty/difficulty.go
  50. +1
    -1
      difficulty/difficulty_test.go
  51. +1
    -1
      emission/emission.go
  52. +1
    -1
      globals/globals.go
  53. +2
    -2
      globals/struct.go
  54. +2
    -2
      p2p/bc_notify_new_block.go
  55. +2
    -2
      p2p/bc_notify_new_transactions.go
  56. +2
    -2
      p2p/bc_notify_request_chain_handler.go
  57. +2
    -2
      p2p/bc_notify_request_getobjects.go
  58. +2
    -2
      p2p/bc_notify_response_chain_handler.go
  59. +3
    -3
      p2p/bc_notify_response_get_objects.go
  60. +1
    -1
      p2p/command_handler_p2p_handshake.go
  61. +1
    -1
      p2p/connection_pool.go
  62. +2
    -2
      p2p/controller.go
  63. +1
    -1
      p2p/levin.go
  64. +1
    -1
      p2pv2/connection_pool.go
  65. +2
    -2
      p2pv2/controller.go
  66. +3
    -3
      p2pv2/peer.go
  67. +1
    -1
      storage/boltdb.go
  68. +1
    -1
      storage/goleveldb.go
  69. +11
    -0
      toHaveInMind.md
  70. +2
    -2
      transaction/transaction.go
  71. +1
    -1
      transaction/transaction_extra.go
  72. +1
    -1
      transaction/transaction_extra_test.go
  73. +1
    -1
      transaction/transaction_ringct_test.go
  74. +1
    -1
      transaction/transaction_test.go
  75. +1
    -1
      walletapi/mnemonics/mnemonics.go
  76. +7
    -7
      walletapi/wallet.go

+ 1
- 1
README.md

@ -116,7 +116,7 @@ The daemon and other programs are only for limited testing and evaluation purpos
- The golang versions of derosuite are using non-standard ports so as it does NOT clash with already running daemon.
## Build:
In go workspace: **go get -u github.com/deroproject/derosuite/...**
In go workspace: **go get -u github.com/arnaucode/derosuite/...**
Check bin folder for derod, explorer and wallet binaries. Use golang-1.9 version minimum.

+ 1
- 1
address/address.go

@ -20,7 +20,7 @@ import "fmt"
import "bytes"
import "encoding/binary"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// see https://cryptonote.org/cns/cns007.txt to understand address more

+ 1
- 1
address/address_test.go

@ -21,7 +21,7 @@ import "bytes"
import "testing"
import "encoding/hex"
import "github.com/deroproject/derosuite/config"
import "github.com/arnaucode/derosuite/config"
func TestAddressError(t *testing.T) {
_, err := NewAddress("")

+ 4
- 4
block/block.go

@ -23,10 +23,10 @@ import "encoding/binary"
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/config"
import "github.com/deroproject/derosuite/cryptonight"
import "github.com/deroproject/derosuite/transaction"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/config"
import "github.com/arnaucode/derosuite/cryptonight"
import "github.com/arnaucode/derosuite/transaction"
// these are defined in file
//https://github.com/monero-project/monero/src/cryptonote_basic/cryptonote_basic.h

+ 2
- 2
block/block_test.go

@ -20,8 +20,8 @@ import "bytes"
import "testing"
import "encoding/hex"
import "github.com/deroproject/derosuite/config"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/config"
import "github.com/arnaucode/derosuite/crypto"
func Test_Genesis_block_serdes(t *testing.T) {

+ 1
- 1
blockchain/alt_blocks.go

@ -19,7 +19,7 @@ package blockchain
import "fmt"
import "encoding/hex"
import "github.com/deroproject/derosuite/block"
import "github.com/arnaucode/derosuite/block"
// this file only contains an altchain, 13 long
// which can be used to test out consensus on live data in house

+ 4
- 4
blockchain/block_chain_input.go

@ -19,10 +19,10 @@ package blockchain
/*
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/block"
import "github.com/deroproject/derosuite/transaction"
//import "github.com/deroproject/derosuite/blockchain/mempool"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/block"
import "github.com/arnaucode/derosuite/transaction"
//import "github.com/arnaucode/derosuite/blockchain/mempool"
*/
// DERO blockchain has been designed/developed as a state machine ( single-threaded)

+ 11
- 11
blockchain/blockchain.go

@ -33,17 +33,17 @@ import "runtime/debug"
import log "github.com/sirupsen/logrus"
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/config"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/storage"
import "github.com/deroproject/derosuite/difficulty"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/deroproject/derosuite/block"
import "github.com/deroproject/derosuite/transaction"
import "github.com/deroproject/derosuite/checkpoints"
import "github.com/deroproject/derosuite/blockchain/mempool"
import "github.com/deroproject/derosuite/blockchain/inputmaturity"
import "github.com/arnaucode/derosuite/config"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/storage"
import "github.com/arnaucode/derosuite/difficulty"
import "github.com/arnaucode/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/block"
import "github.com/arnaucode/derosuite/transaction"
import "github.com/arnaucode/derosuite/checkpoints"
import "github.com/arnaucode/derosuite/blockchain/mempool"
import "github.com/arnaucode/derosuite/blockchain/inputmaturity"
// all components requiring access to blockchain must use , this struct to communicate
// this structure must be update while mutex

+ 1
- 1
blockchain/blockheader.go

@ -17,7 +17,7 @@
package blockchain
//import "fmt"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// this is used to print blockheader for the rpc and the daemon
type BlockHeader_Print struct {

+ 2
- 2
blockchain/checkpoints_static.go

@ -21,8 +21,8 @@ import "encoding/hex"
//import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/globals"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
var mainnet_static_checkpoints = map[uint64]crypto.Hash{}
var testnet_static_checkpoints = map[uint64]crypto.Hash{}

+ 1
- 1
blockchain/const.go

@ -16,7 +16,7 @@
package blockchain
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// this file contains all the constant

+ 4
- 4
blockchain/create_miner_tx.go

@ -18,10 +18,10 @@ package blockchain
import "fmt"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/address"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/deroproject/derosuite/transaction"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/address"
import "github.com/arnaucode/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/transaction"
// this function creates a miner tx, with specific blockreward
// TODO we should consider hardfork version while creating a miner tx

+ 4
- 4
blockchain/create_miner_tx_test.go

@ -20,11 +20,11 @@ package blockchain
import "testing"
import "github.com/deroproject/derosuite/walletapi"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/walletapi"
import "github.com/arnaucode/derosuite/crypto"
//import "github.com/deroproject/derosuite/address"
import "github.com/deroproject/derosuite/transaction"
//import "github.com/arnaucode/derosuite/address"
import "github.com/arnaucode/derosuite/transaction"
// file to test whether the miner tx is created successfully and can be serialized/decoded successfully by the block miner

+ 3
- 3
blockchain/genesis.go

@ -20,9 +20,9 @@ import "encoding/hex"
import "github.com/romana/rlog"
//import "github.com/deroproject/derosuite/address"
import "github.com/deroproject/derosuite/block"
import "github.com/deroproject/derosuite/globals"
//import "github.com/arnaucode/derosuite/address"
import "github.com/arnaucode/derosuite/block"
import "github.com/arnaucode/derosuite/globals"
/*
func Create_Miner_Transaction(height uint64, median_size uint64, already_generated_coins uint64,

+ 1
- 1
blockchain/inputmaturity/inputmaturity.go

@ -17,7 +17,7 @@
package inputmaturity
import "time"
import "github.com/deroproject/derosuite/config"
import "github.com/arnaucode/derosuite/config"
//this file implements the logic to detect whether an input is mature or still locked
//This function is crucial as any bugs can have catastrophic effects

+ 1
- 1
blockchain/inputmaturity/inputmaturity_test.go

@ -18,7 +18,7 @@ package inputmaturity
import "testing"
import "github.com/deroproject/derosuite/config"
import "github.com/arnaucode/derosuite/config"
//this file implements the logic to detect whether an input is mature or still locked
//This function is crucial as any bugs can have catastrophic effects

+ 3
- 3
blockchain/mempool/mempool.go

@ -22,9 +22,9 @@ import "sync/atomic"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/transaction"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/transaction"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/crypto"
// NOTE: do NOT consider this code as useless, as it is used to avooid double spending attacks within the block
// let me explain, since we are a state machine, we add block to our blockchain

+ 2
- 2
blockchain/mempool/mempool_test.go

@ -23,8 +23,8 @@ import "encoding/hex"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/transaction"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/transaction"
// test the mempool interface with valid TX
func Test_mempool_Full_block_72_2c4738d3856e8e3e8f9fc4818a9197d4911af3010e067ec56d08c264627cb547(t *testing.T) {

+ 6
- 6
blockchain/outputs_index.go

@ -29,13 +29,13 @@ import "fmt"
import "github.com/vmihailenco/msgpack"
import "github.com/deroproject/derosuite/config"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/deroproject/derosuite/transaction"
import "github.com/arnaucode/derosuite/config"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/transaction"
import "github.com/deroproject/derosuite/walletapi"
import "github.com/arnaucode/derosuite/walletapi"
type Index_Data struct {
InKey ringct.CtKey

+ 1
- 1
blockchain/reorg_test.go

@ -19,7 +19,7 @@ package blockchain
import "sort"
import "testing"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
/* this function tests the core chain selection algorithm for reorganisation purpose */
func Test_chain_sort(t *testing.T) {

+ 2
- 2
blockchain/rpcserver/getblock.go

@ -29,8 +29,8 @@ import "encoding/json"
import "github.com/intel-go/fastjson"
import "github.com/osamingo/jsonrpc"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/blockchain"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/blockchain"
type (
GetBlock_Handler struct{}

+ 2
- 2
blockchain/rpcserver/getblockheaderbyhash.go

@ -27,8 +27,8 @@ import "context"
import "github.com/intel-go/fastjson"
import "github.com/osamingo/jsonrpc"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/blockchain"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/blockchain"
type (
GetBlockHeaderByHash_Handler struct{}

+ 2
- 2
blockchain/rpcserver/getblockheaderbyheight.go

@ -27,8 +27,8 @@ import "context"
import "github.com/intel-go/fastjson"
import "github.com/osamingo/jsonrpc"
//import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/blockchain"
//import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/blockchain"
type (
GetBlockHeaderByHeight_Handler struct{}

+ 2
- 2
blockchain/rpcserver/getinfo.go

@ -27,8 +27,8 @@ import "context"
import "github.com/intel-go/fastjson"
import "github.com/osamingo/jsonrpc"
import "github.com/deroproject/derosuite/config"
import "github.com/deroproject/derosuite/globals"
import "github.com/arnaucode/derosuite/config"
import "github.com/arnaucode/derosuite/globals"
/*
{

+ 1
- 1
blockchain/rpcserver/getlastblockheader.go

@ -27,7 +27,7 @@ import "context"
import "github.com/intel-go/fastjson"
import "github.com/osamingo/jsonrpc"
import "github.com/deroproject/derosuite/blockchain"
import "github.com/arnaucode/derosuite/blockchain"
type (
GetLastBlockHeader_Handler struct{}

+ 1
- 1
blockchain/rpcserver/gettransactions.go

@ -20,7 +20,7 @@ import "net/http"
import "encoding/hex"
import "encoding/json"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// we definitely need to clear up the MESS that has been created by the MONERO project
// half of their APIs are json rpc and half are http

+ 2
- 2
blockchain/rpcserver/rpcserver.go

@ -30,8 +30,8 @@ import "github.com/osamingo/jsonrpc"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/blockchain"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/blockchain"
/* this file implements the rpcserver api, so as wallet and block explorer tools can work without migration */

+ 4
- 4
blockchain/store.go

@ -21,10 +21,10 @@ import "encoding/binary"
//import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/block"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/transaction"
import "github.com/arnaucode/derosuite/block"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/transaction"
/* this file implements the only interface which translates comands to/from blockchain to storage layer *
*

+ 17
- 17
blockchain/transaction_verify.go

@ -30,12 +30,12 @@ import "runtime/debug"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/block"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/deroproject/derosuite/transaction"
import "github.com/deroproject/derosuite/emission"
import "github.com/arnaucode/derosuite/block"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/transaction"
import "github.com/arnaucode/derosuite/emission"
/* This function verifies tx fully, means all checks,
* if the transaction has passed the check it can be added to mempool, relayed or added to blockchain
@ -260,18 +260,18 @@ func (chain *Blockchain) Verify_Transaction_NonCoinbase(tx *transaction.Transact
// a similiar block level check is done for double spending attacks within the block itself
// check whether the key image is already used or spent earlier ( in blockchain )
/*
for i := 0; i < len(tx.Vin); i++ {
k_image := ringct.Key(tx.Vin[i].(transaction.Txin_to_key).K_image)
if chain.Read_KeyImage_Status(crypto.Hash(k_image)) {
logger.WithFields(log.Fields{
"txid": tx_hash,
"kimage": k_image,
}).Warnf("Key image is already spent, attempt to double spend ")
return false
/*
for i := 0; i < len(tx.Vin); i++ {
k_image := ringct.Key(tx.Vin[i].(transaction.Txin_to_key).K_image)
if chain.Read_KeyImage_Status(crypto.Hash(k_image)) {
logger.WithFields(log.Fields{
"txid": tx_hash,
"kimage": k_image,
}).Warnf("Key image is already spent, attempt to double spend ")
return false
}
}
}
*/
*/
// check whether the TX contains a signature or NOT
switch tx.RctSignature.Get_Sig_Type() {
case ringct.RCTTypeSimple, ringct.RCTTypeFull: // default case, pass through

+ 1
- 1
blockchain/tx_fees.go

@ -17,7 +17,7 @@
package blockchain
import "math/big"
import "github.com/deroproject/derosuite/config"
import "github.com/arnaucode/derosuite/config"
// this file implements the logic to calculate fees dynamicallly

+ 3
- 7
build_all.sh

@ -10,15 +10,11 @@ ABSDIR=$(dirname $ABSPATH)
cd $ABSDIR/../../../../
GOPATH=`pwd`
cd $CURDIR
bash $ABSDIR/build_package.sh "github.com/deroproject/derosuite/cmd/derod"
bash $ABSDIR/build_package.sh "github.com/deroproject/derosuite/cmd/explorer"
bash $ABSDIR/build_package.sh "github.com/deroproject/derosuite/cmd/dero-wallet-cli"
bash $ABSDIR/build_package.sh "github.com/arnaucode/derosuite/cmd/derod"
bash $ABSDIR/build_package.sh "github.com/arnaucode/derosuite/cmd/explorer"
bash $ABSDIR/build_package.sh "github.com/arnaucode/derosuite/cmd/dero-wallet-cli"
cd "${ABSDIR}/build"
#windows users require zip files
zip -r dero_windows_amd64.zip dero_windows_amd64
zip -r dero_windows_386.zip dero_windows_386
#all other platforms are okay with tar.gz
find . -mindepth 1 -type d -not -name '*windows*' -exec tar --owner=dummy --group=dummy -cvzf {}.tar.gz {} \;

+ 25
- 0
build_allBACKUP.sh

@ -0,0 +1,25 @@
#!/usr/bin/env bash
CURDIR=`/bin/pwd`
BASEDIR=$(dirname $0)
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)
cd $ABSDIR/../../../../
GOPATH=`pwd`
cd $CURDIR
bash $ABSDIR/build_package.sh "github.com/arnaucode/derosuite/cmd/derod"
bash $ABSDIR/build_package.sh "github.com/arnaucode/derosuite/cmd/explorer"
bash $ABSDIR/build_package.sh "github.com/arnaucode/derosuite/cmd/dero-wallet-cli"
cd "${ABSDIR}/build"
#windows users require zip files
zip -r dero_windows_amd64.zip dero_windows_amd64
zip -r dero_windows_386.zip dero_windows_386
#all other platforms are okay with tar.gz
find . -mindepth 1 -type d -not -name '*windows*' -exec tar --owner=dummy --group=dummy -cvzf {}.tar.gz {} \;
cd $CURDIR

+ 11
- 26
build_package.sh

@ -10,21 +10,12 @@ BASEDIR=$(dirname $0)
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)
PLATFORMS=""
#PLATFORMS="$PLATFORMS linux/amd64 linux/386"
PLATFORMS="$PLATFORMS linux/amd64"
PLATFORMS="darwin/amd64" # amd64 only as of go1.5
PLATFORMS="$PLATFORMS windows/amd64 windows/386" # arm compilation not available for Windows
PLATFORMS="$PLATFORMS linux/amd64 linux/386"
#PLATFORMS="$PLATFORMS linux/ppc64le" is it common enough ??
#PLATFORMS="$PLATFORMS linux/mips64le" # experimental in go1.6 is it common enough ??
PLATFORMS="$PLATFORMS freebsd/amd64 freebsd/386"
PLATFORMS="$PLATFORMS netbsd/amd64" # amd64 only as of go1.6
PLATFORMS="$PLATFORMS openbsd/amd64" # amd64 only as of go1.6
PLATFORMS="$PLATFORMS dragonfly/amd64" # amd64 only as of go1.5
#PLATFORMS="$PLATFORMS plan9/amd64 plan9/386" # as of go1.4, is it common enough ??
PLATFORMS="$PLATFORMS solaris/amd64" # as of go1.3
PLATFORMS_ARM="linux freebsd netbsd"
type setopt >/dev/null 2>&1
@ -35,19 +26,24 @@ OUTPUT="$package_name" # if no src file given, use current dir name
for PLATFORM in $PLATFORMS; do
echo "platform: $PLATFORM"
GOOS=${PLATFORM%/*}
echo "GOOS: $GOOS"
GOARCH=${PLATFORM#*/}
echo "GOARCH: $GOARCH"
OUTPUT_DIR="${ABSDIR}/build/dero_${GOOS}_${GOARCH}"
echo "OUTPUT_DIR: $OUTPUT_DIR"
BIN_FILENAME="${OUTPUT}-${GOOS}-${GOARCH}"
echo "BIN_FILENAME: $BIN_FILENAME"
echo mkdir -p $OUTPUT_DIR
if [[ "${GOOS}" == "windows" ]]; then BIN_FILENAME="${BIN_FILENAME}.exe"; fi
#if [[ "${GOOS}" == "windows" ]]; then BIN_FILENAME="${BIN_FILENAME}.exe"; fi
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build -o $OUTPUT_DIR/${BIN_FILENAME} $package"
echo "${CMD}"
echo "cmd: ${CMD}"
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
done
# ARM64 builds only for linux
if [[ $PLATFORMS_ARM == *"linux"* ]]; then
if [[ $PLATFORMS_ARM == *"linux"* ]]; then
GOOS="linux"
GOARCH="arm64"
OUTPUT_DIR="${ABSDIR}/build/dero_${GOOS}_${GOARCH}"
@ -58,17 +54,6 @@ fi
for GOOS in $PLATFORMS_ARM; do
GOARCH="arm"
# build for each ARM version
for GOARM in 7 6 5; do
OUTPUT_DIR="${ABSDIR}/build/dero_${GOOS}_${GOARCH}${GOARM}"
BIN_FILENAME="${OUTPUT}-${GOOS}-${GOARCH}${GOARM}"
CMD="GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -o $OUTPUT_DIR/${BIN_FILENAME} $package"
echo "${CMD}"
eval "${CMD}" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}"
done
done
# eval errors
if [[ "${FAILURES}" != "" ]]; then

+ 78
- 0
build_packageBACKUP.sh

@ -0,0 +1,78 @@
#!/usr/bin/env bash
package=$1
package_split=(${package//\// })
package_name=${package_split[-1]}
CURDIR=`/bin/pwd`
BASEDIR=$(dirname $0)
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)
PLATFORMS="darwin/amd64" # amd64 only as of go1.5
PLATFORMS="$PLATFORMS windows/amd64 windows/386" # arm compilation not available for Windows
PLATFORMS="$PLATFORMS linux/amd64 linux/386"
#PLATFORMS="$PLATFORMS linux/ppc64le" is it common enough ??
#PLATFORMS="$PLATFORMS linux/mips64le" # experimental in go1.6 is it common enough ??
PLATFORMS="$PLATFORMS freebsd/amd64 freebsd/386"
PLATFORMS="$PLATFORMS netbsd/amd64" # amd64 only as of go1.6
PLATFORMS="$PLATFORMS openbsd/amd64" # amd64 only as of go1.6
PLATFORMS="$PLATFORMS dragonfly/amd64" # amd64 only as of go1.5
#PLATFORMS="$PLATFORMS plan9/amd64 plan9/386" # as of go1.4, is it common enough ??
PLATFORMS="$PLATFORMS solaris/amd64" # as of go1.3
PLATFORMS_ARM="linux freebsd netbsd"
type setopt >/dev/null 2>&1
SCRIPT_NAME=`basename "$0"`
FAILURES=""
CURRENT_DIRECTORY=${PWD##*/}
OUTPUT="$package_name" # if no src file given, use current dir name
for PLATFORM in $PLATFORMS; do
GOOS=${PLATFORM%/*}
GOARCH=${PLATFORM#*/}
OUTPUT_DIR="${ABSDIR}/build/dero_${GOOS}_${GOARCH}"
BIN_FILENAME="${OUTPUT}-${GOOS}-${GOARCH}"
echo mkdir -p $OUTPUT_DIR
if [[ "${GOOS}" == "windows" ]]; then BIN_FILENAME="${BIN_FILENAME}.exe"; fi
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build -o $OUTPUT_DIR/${BIN_FILENAME} $package"
echo "${CMD}"
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
done
# ARM64 builds only for linux
if [[ $PLATFORMS_ARM == *"linux"* ]]; then
GOOS="linux"
GOARCH="arm64"
OUTPUT_DIR="${ABSDIR}/build/dero_${GOOS}_${GOARCH}"
CMD="GOOS=linux GOARCH=arm64 go build -o $OUTPUT_DIR/${OUTPUT}-linux-arm64 $package"
echo "${CMD}"
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
fi
for GOOS in $PLATFORMS_ARM; do
GOARCH="arm"
# build for each ARM version
for GOARM in 7 6 5; do
OUTPUT_DIR="${ABSDIR}/build/dero_${GOOS}_${GOARCH}${GOARM}"
BIN_FILENAME="${OUTPUT}-${GOOS}-${GOARCH}${GOARM}"
CMD="GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -o $OUTPUT_DIR/${BIN_FILENAME} $package"
echo "${CMD}"
eval "${CMD}" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}"
done
done
# eval errors
if [[ "${FAILURES}" != "" ]]; then
echo ""
echo "${SCRIPT_NAME} failed on: ${FAILURES}"
exit 1
fi

+ 2
- 2
checkpoints/checkpoints.go

@ -46,8 +46,8 @@ import "fmt"
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/globals"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
// this file handles and maintains checkpoints which are used by blockchain to skip some checks on known parts of the chain
// the skipping of the checks can be disabled by command line arguments

+ 2
- 2
cmd/dero-wallet-cli/daemon_communication.go

@ -32,8 +32,8 @@ import "compress/gzip"
//import "github.com/pierrec/lz4"
import "github.com/ybbus/jsonrpc"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/blockchain/rpcserver"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/blockchain/rpcserver"
var Wallet_Height uint64 // height of wallet
var Daemon_Height uint64 // height of daemon

+ 2
- 2
cmd/dero-wallet-cli/easymenu_post_open.go

@ -22,8 +22,8 @@ import "strings"
import "github.com/chzyer/readline"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/walletapi"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/walletapi"
// handle menu if a wallet is currently opened
func display_easymenu_post_open_command(l *readline.Instance) {

+ 2
- 2
cmd/dero-wallet-cli/easymenu_pre_open.go

@ -21,8 +21,8 @@ import "strings"
import "github.com/chzyer/readline"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/walletapi"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/walletapi"
// display menu before a wallet is opened
func display_easymenu_pre_open_command(l *readline.Instance) {

+ 5
- 5
cmd/dero-wallet-cli/main.go

@ -39,11 +39,11 @@ import "github.com/docopt/docopt-go"
import log "github.com/sirupsen/logrus"
import "github.com/vmihailenco/msgpack"
//import "github.com/deroproject/derosuite/address"
import "github.com/deroproject/derosuite/walletapi"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/walletapi/mnemonics"
//import "github.com/arnaucode/derosuite/address"
import "github.com/arnaucode/derosuite/walletapi"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/walletapi/mnemonics"
var command_line string = `dero-wallet-cli
DERO : A secure, private blockchain with smart-contracts

+ 2
- 2
cmd/dero-wallet-cli/prompt.go

@ -26,8 +26,8 @@ import "compress/gzip"
import "github.com/chzyer/readline"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/walletapi"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/walletapi"
// handle all commands while in prompt mode
func handle_prompt_command(l *readline.Instance, line string) {

BIN
cmd/derod/derod


+ 12
- 12
cmd/derod/main.go

@ -33,18 +33,18 @@ import "github.com/chzyer/readline"
import "github.com/docopt/docopt-go"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/p2p"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/blockchain"
import "github.com/arnaucode/derosuite/p2p"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/blockchain"
//import "github.com/deroproject/derosuite/checkpoints"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/deroproject/derosuite/blockchain/rpcserver"
//import "github.com/arnaucode/derosuite/checkpoints"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/blockchain/rpcserver"
//import "github.com/deroproject/derosuite/address"
//import "github.com/arnaucode/derosuite/address"
var command_line string = `derod
var command_line string = `derod
DERO : A secure, private blockchain with smart-contracts
Usage:
@ -373,9 +373,9 @@ func main() {
// fmt.Printf("chain diff %d\n",chain.Get_Difficulty_At_Block(chain.Top_ID))
//fmt.Printf("chain nw rate %d\n", chain.Get_Network_HashRate())
inc, out := p2p.Peer_Direction_Count()
supply := chain.Load_Already_Generated_Coins_for_BL_ID(chain.Get_Top_ID())
supply -= (2000000* 1000000000000) // remove premine
fmt.Printf("Network %s Height %d NW Hashrate %0.03f MH/sec TH %s Peers %d inc, %d out MEMPOOL size %d Total Circulating Supply %s DERO \n", globals.Config.Name, chain.Get_Height(), float64(chain.Get_Network_HashRate())/1000000.0, chain.Get_Top_ID(), inc, out, len(chain.Mempool.Mempool_List_TX()), globals.FormatMoney(supply))
supply := chain.Load_Already_Generated_Coins_for_BL_ID(chain.Get_Top_ID())
supply -= (2000000 * 1000000000000) // remove premine
fmt.Printf("Network %s Height %d NW Hashrate %0.03f MH/sec TH %s Peers %d inc, %d out MEMPOOL size %d Total Circulating Supply %s DERO \n", globals.Config.Name, chain.Get_Height(), float64(chain.Get_Network_HashRate())/1000000.0, chain.Get_Top_ID(), inc, out, len(chain.Mempool.Mempool_List_TX()), globals.FormatMoney(supply))
case strings.ToLower(line) == "sync_info":
p2p.Connection_Print()
case strings.ToLower(line) == "bye":

+ 4
- 4
cmd/explorer/explorer.go

@ -42,10 +42,10 @@ import "github.com/docopt/docopt-go"
import log "github.com/sirupsen/logrus"
import "github.com/ybbus/jsonrpc"
import "github.com/deroproject/derosuite/block"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/transaction"
import "github.com/deroproject/derosuite/blockchain/rpcserver"
import "github.com/arnaucode/derosuite/block"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/transaction"
import "github.com/arnaucode/derosuite/blockchain/rpcserver"
var command_line string = `dero_explorer
DERO Explorer: A secure, private blockchain with smart-contracts

+ 1
- 1
config/config.go

@ -17,7 +17,7 @@
package config
import "github.com/satori/go.uuid"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// all global configuration variables are picked from here

+ 1
- 1
crypto/ringct/basic.go

@ -17,7 +17,7 @@
package ringct
import "encoding/hex"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// convert a hex string to a key
// a copy of these functions exists in the crypto package also

+ 1
- 1
crypto/ringct/key.go

@ -20,7 +20,7 @@ import "io"
import "fmt"
import "crypto/rand"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
const KeyLength = 32

+ 1
- 1
crypto/ringct/mlsag.go

@ -1,7 +1,7 @@
package ringct
import "fmt"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// this file has license pending since it triggers a hard to find golang bug TODO add license after the golang bug is fixed
/* This file implements MLSAG signatures for the transactions */

+ 1
- 1
crypto/ringct/ringct.go

@ -19,7 +19,7 @@ package ringct
import "io"
import "fmt"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// enable debuggin mode within ringct
// if true debugging mode enabled

+ 2
- 2
difficulty/difficulty.go

@ -19,8 +19,8 @@ package difficulty
import "fmt"
import "math/big"
import "github.com/deroproject/derosuite/config"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/config"
import "github.com/arnaucode/derosuite/crypto"
var (
// bigZero is 0 represented as a big.Int. It is defined here to avoid

+ 1
- 1
difficulty/difficulty_test.go

@ -18,7 +18,7 @@ package difficulty
import "testing"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
func Test_Next_Difficulty(t *testing.T) {

+ 1
- 1
emission/emission.go

@ -18,7 +18,7 @@ package emission
//import "fmt"
import "math/big"
import "github.com/deroproject/derosuite/config"
import "github.com/arnaucode/derosuite/config"
//TODO trickling code is note implemented still, but we do NOT require it atleast for another 7-8 years

+ 1
- 1
globals/globals.go

@ -22,7 +22,7 @@ import "golang.org/x/net/proxy"
import "github.com/sirupsen/logrus"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/config"
import "github.com/arnaucode/derosuite/config"
type ChainState int // block chain can only be in 2 state, either SYNCRONISED or syncing

+ 2
- 2
globals/struct.go

@ -18,8 +18,8 @@ package globals
//import "github.com/vmihailenco/msgpack"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto/ringct"
// this structure is way blockchain sends outputs to wallet
// this structure is also used internal by blockchain itself, when TXs are expanded and verified

+ 2
- 2
p2p/bc_notify_new_block.go

@ -21,8 +21,8 @@ import "encoding/binary"
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/block"
import "github.com/deroproject/derosuite/transaction"
import "github.com/arnaucode/derosuite/block"
import "github.com/arnaucode/derosuite/transaction"
// FIXME this code can also be shared by NOTIFY_NEW_BLOCK, NOTIFY_NEW_TRANSACTIONS, Handle_BC_Notify_Response_GetObjects
// this code handles a new block floating in the network

+ 2
- 2
p2p/bc_notify_new_transactions.go

@ -20,8 +20,8 @@ import "bytes"
import "github.com/romana/rlog"
//import "github.com/deroproject/derosuite/blockchain"
import "github.com/deroproject/derosuite/transaction"
//import "github.com/arnaucode/derosuite/blockchain"
import "github.com/arnaucode/derosuite/transaction"
// if the incoming blob contains block with included transactions
//00009F94 01 11 01 01 01 01 02 01 01 08 06 62 6c 6f 63 6b ........ ...block

+ 2
- 2
p2p/bc_notify_request_chain_handler.go

@ -18,8 +18,8 @@ package p2p
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/crypto"
// when 2 peers communiate either both are in sync or async
// if async, reply to the request below, with your state and other will supply you list of block ids

+ 2
- 2
p2p/bc_notify_request_getobjects.go

@ -22,8 +22,8 @@ import "encoding/binary"
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/block"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/block"
// The peer triggers this it wants some blocks or txs
func Handle_BC_Notify_Request_GetObjects(connection *Connection,

+ 2
- 2
p2p/bc_notify_response_chain_handler.go

@ -21,8 +21,8 @@ import "encoding/binary"
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/crypto"
/* the data structure which needs to be serialised is defined in cryptonote_protocol_defs.h
* struct request

+ 3
- 3
p2p/bc_notify_response_get_objects.go

@ -21,10 +21,10 @@ import "bytes"
import "github.com/romana/rlog"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/block"
import "github.com/arnaucode/derosuite/block"
//import "github.com/deroproject/derosuite/blockchain"
import "github.com/deroproject/derosuite/transaction"
//import "github.com/arnaucode/derosuite/blockchain"
import "github.com/arnaucode/derosuite/transaction"
// if the incoming blob contains block with included transactions
//00009F94 01 11 01 01 01 01 02 01 01 08 06 62 6c 6f 63 6b ........ ...block

+ 1
- 1
p2p/command_handler_p2p_handshake.go

@ -23,7 +23,7 @@ import "time"
import "github.com/romana/rlog"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/globals"
import "github.com/arnaucode/derosuite/globals"
// the connection starts with P2P handshake

+ 1
- 1
p2p/connection_pool.go

@ -27,7 +27,7 @@ import "container/list"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// any connection incoming/outgoing can only be in this state
type Conn_State string

+ 2
- 2
p2p/controller.go

@ -22,8 +22,8 @@ import "sync/atomic"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/blockchain"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/blockchain"
var chain *blockchain.Blockchain // external reference to chain

+ 1
- 1
p2p/levin.go

@ -28,7 +28,7 @@ import "runtime/debug"
import "github.com/romana/rlog"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/globals"
import "github.com/arnaucode/derosuite/globals"
// all communications flow in little endian
const LEVIN_SIGNATURE = 0x0101010101012101 //Bender's nightmare

+ 1
- 1
p2pv2/connection_pool.go

@ -27,7 +27,7 @@ import "container/list"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// any connection incoming/outgoing can only be in this state
type Conn_State string

+ 2
- 2
p2pv2/controller.go

@ -22,8 +22,8 @@ import "sync/atomic"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/blockchain"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/blockchain"
var chain *blockchain.Blockchain // external reference to chain

+ 3
- 3
p2pv2/peer.go

@ -25,10 +25,10 @@ import "time"
//import log "github.com/sirupsen/logrus"
import "github.com/vmihailenco/msgpack"
//import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/globals"
//import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/globals"
//import "github.com/deroproject/derosuite/blockchain"
//import "github.com/arnaucode/derosuite/blockchain"
// This file defines what all needs to be responded to become a server ( handling incoming requests)

+ 1
- 1
storage/boltdb.go

@ -30,7 +30,7 @@ import "github.com/romana/rlog"
import bolt "github.com/coreos/bbolt"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/globals"
import "github.com/arnaucode/derosuite/globals"
type BoltStore struct {
DB *bolt.DB

+ 1
- 1
storage/goleveldb.go

@ -31,7 +31,7 @@ import "github.com/syndtr/goleveldb/leveldb"
import "github.com/syndtr/goleveldb/leveldb/opt"
import log "github.com/sirupsen/logrus"
import "github.com/deroproject/derosuite/globals"
import "github.com/arnaucode/derosuite/globals"
type BoltStore struct {
DB *leveldb.DB

+ 11
- 0
toHaveInMind.md

@ -0,0 +1,11 @@
- blockchain is stored in a boltdb, in tmp/derod_database.db
- the seeds are hardcoded in derosuite/p2p/controller.go, line 61:
```go
// add hard-coded seeds
end_point_list = append(end_point_list, "212.8.242.60:18090")
```
And also can be setted in the parameter:
```
derod --add-exclusive-node
```

+ 2
- 2
transaction/transaction.go

@ -22,8 +22,8 @@ import "encoding/binary"
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto/ringct"
const TXIN_GEN = byte(0xff)
const TXIN_TO_SCRIPT = byte(0)

+ 1
- 1
transaction/transaction_extra.go

@ -23,7 +23,7 @@ import "bytes"
import "github.com/romana/rlog"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// refer https://cryptonote.org/cns/cns005.txt to understand slightly more ( it DOES NOT cover everything)
// much of these constants are understood from tx_extra.h and cryptonote_format_utils.cpp

+ 1
- 1
transaction/transaction_extra_test.go

@ -20,7 +20,7 @@ import "fmt"
import "testing"
import "encoding/hex"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
func Test_Normal_PaymentID_parsing(t *testing.T) {

+ 1
- 1
transaction/transaction_ringct_test.go

@ -21,7 +21,7 @@ import "bytes"
import "testing"
import "encoding/hex"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/crypto/ringct"
// the tests are here because data depends on tx which is currently part of blockchain
// once a new Transaction package is created, these test can move directly to ringct package without major modification

+ 1
- 1
transaction/transaction_test.go

@ -20,7 +20,7 @@ import "fmt"
import "testing"
import "encoding/hex"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
// parse the tx and verify
func Test_Genesis_Tx(t *testing.T) {

+ 1
- 1
walletapi/mnemonics/mnemonics.go

@ -25,7 +25,7 @@ import "unicode/utf8"
import "hash/crc32"
import "github.com/deroproject/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto"
type Language struct {
Name string // Name of the language

+ 7
- 7
walletapi/wallet.go

@ -19,13 +19,13 @@ package walletapi
import "fmt"
import "sync"
import "github.com/deroproject/derosuite/config"
import "github.com/deroproject/derosuite/crypto"
import "github.com/deroproject/derosuite/crypto/ringct"
import "github.com/deroproject/derosuite/globals"
import "github.com/deroproject/derosuite/walletapi/mnemonics"
import "github.com/deroproject/derosuite/address"
import "github.com/deroproject/derosuite/blockchain/inputmaturity"
import "github.com/arnaucode/derosuite/config"
import "github.com/arnaucode/derosuite/crypto"
import "github.com/arnaucode/derosuite/crypto/ringct"
import "github.com/arnaucode/derosuite/globals"
import "github.com/arnaucode/derosuite/walletapi/mnemonics"
import "github.com/arnaucode/derosuite/address"
import "github.com/arnaucode/derosuite/blockchain/inputmaturity"
type _Keys struct {
Spendkey_Secret crypto.Key

Loading…
Cancel
Save