Skip to content

Commit

Permalink
Merge pull request #121 from sumoprojects/dev
Browse files Browse the repository at this point in the history
Release v0.3.1.0
  • Loading branch information
quangvu3 committed Apr 17, 2018
2 parents 8836abb + 82ded2a commit cb0e722
Show file tree
Hide file tree
Showing 13 changed files with 505 additions and 34 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,9 @@ else()
set(CMAKE_RANLIB "gcc-ranlib")
endif()
# Default ubuntu 16.04 LTS ld.bfd refuses to cooperate with LTO'ed ar libs for some reason, gold linker works, go figure
set(RELEASE_FLAGS "${RELEASE_FLAGS} -fuse-ld=gold")
if(NOT ARM)
set(RELEASE_FLAGS "${RELEASE_FLAGS} -fuse-ld=gold")
endif()
endif()
endif()

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Portions Copyright (c) 2012-2013, The Cryptonote developers
- Web: [www.sumokoin.org](https://www.sumokoin.org)
- Mail: [[email protected]](mailto:[email protected])

Please note that code is developed on the [dev branch](https://github.com/sumoprojects/sumokoin/tree/dev), if you want to check out the latest updates, before they are merged on main branch, please refer there. Master branch will always point to a version that we consider stable, so you can download the code by simply typing `git clone https://github.com/sumoprojects/sumokoin.git`

## Introduction

Sumokoin (スモコイン in Japanese) is a fork from Monero, one of the most respectable cryptocurrency well-known for **security, privacy, untraceability** and **active development**. Starting as an educational project, we found that it would be great to create a new coin with high level of privacy by (1) moving forward right away to **Ring Confidential Transactions (RingCT)**, (2) setting **minimum transaction _mixin_ to 12** that would greatly reduce chance of being attacked, traced or identified by (blockchain) statistical analysis.
Expand Down
Binary file modified src/blocks/checkpoints.dat
Binary file not shown.
3 changes: 2 additions & 1 deletion src/crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ set(crypto_sources
skein.c
tree-hash.c
cn_slow_hash_soft.cpp
cn_slow_hash_hard_intel.cpp)
cn_slow_hash_hard_intel.cpp
cn_slow_hash_hard_arm.cpp)

set(crypto_headers)

Expand Down
12 changes: 10 additions & 2 deletions src/crypto/cn_slow_hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#define HAS_WIN_INTRIN_API
#endif

// Note HAS_INTEL_HW and future HAS_ARM_HW only mean we can emit the AES instructions
// Note HAS_INTEL_HW and HAS_ARM_HW only mean we can emit the AES instructions
// check CPU support for the hardware AES encryption has to be done at runtime
#if defined(__x86_64__) || defined(__i386__) || defined(_M_X86) || defined(_M_X64)
#ifdef __GNUC__
Expand All @@ -57,6 +57,14 @@
#define HAS_INTEL_HW
#endif

#if defined(__aarch64__)
#pragma GCC target ("+crypto")
#include <sys/auxv.h>
#include <asm/hwcap.h>
#include <arm_neon.h>
#define HAS_ARM_HW
#endif

#ifdef HAS_INTEL_HW
inline void cpuid(uint32_t eax, int32_t ecx, int32_t val[4])
{
Expand All @@ -83,7 +91,7 @@ inline bool hw_check_aes()
#ifdef HAS_ARM_HW
inline bool hw_check_aes()
{
return false;
return (getauxval(AT_HWCAP) & HWCAP_AES) != 0;
}
#endif

Expand Down
Loading

0 comments on commit cb0e722

Please sign in to comment.