Skip to content

Commit

Permalink
Merge pull request bcosorg#16 from JUZIX-DEV/master
Browse files Browse the repository at this point in the history
delete pailler completely
  • Loading branch information
bcosdev authored Aug 4, 2017
2 parents ea2d7d5 + 73f5f8d commit b66f8ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libevm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ include_directories(../libodbc/include

target_link_libraries(evm ${Eth_ETHCORE_LIBRARIES})
target_link_libraries(evm ${Eth_EVMCORE_LIBRARIES})
target_link_libraries(evm pailler)
target_link_libraries(evm paillier)
target_include_directories(evm PRIVATE .. ${JSONCPP_INCLUDE_DIR})

if (EVMJIT)
Expand Down
4 changes: 2 additions & 2 deletions libpaillier/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ aux_source_directory(. SRC_LIST)

file(GLOB HEADERS "*.h")

add_library(pailler ${SRC_LIST} ${HEADERS})
add_library(paillier ${SRC_LIST} ${HEADERS})

install(TARGETS pailler RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
install(TARGETS paillier RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
2 changes: 1 addition & 1 deletion libpaillier/macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extern "C"{
#define Plus 0x00000000
#define Minus 0x00000001

//macro for BN in pailler
//macro for BN in paillier
#define PaiBNBitLen 1024
#define PaiBNWordLen 32
#define PaiPrimeWordLen 16
Expand Down
1 change: 1 addition & 0 deletions tool/demoTestPaillie.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ console.log(config);
var filename="TestPaillier";
var address=fs.readFileSync(config.Ouputpath+filename+'.address','utf-8');
var abi=JSON.parse(fs.readFileSync(config.Ouputpath/*+filename+".sol:"*/+filename+'.abi', 'utf-8'));

var contract = web3.eth.contract(abi);
var instance = contract.at(address);

Expand Down

0 comments on commit b66f8ed

Please sign in to comment.