multy-io / multy-core Goto Github PK
View Code? Open in Web Editor NEWCross-platform mobile-first library for HD wallets and creating raw transactions of Bitcoin and Ethereum.
Home Page: http://multy.io
License: Other
Cross-platform mobile-first library for HD wallets and creating raw transactions of Bitcoin and Ethereum.
Home Page: http://multy.io
License: Other
...
std::array<unsigned char, 65> signature_data;
int recovery_id = 0;
secp256k1_ecdsa_recoverable_signature_serialize_compact(
secp_ctx(), signature_data.data(), &recovery_id, &signature);
signature_data.back() = static_cast<unsigned char>(recovery_id);
BinaryDataPtr result;
make_binary_data_from_bytes(
signature_data.data(), signature_data.size(),
reset_sp(result)));
...
The signature_data.data() will be truncated when signature_data has '\0' .
This rarely happens, but unfortunately it does.
When the project is built on Linux ARM64, it throws the errors.
Command:
cmake .. -DMULTY_WITH_TESTS=OFF && make
Error:
In file included from /home/admin/temp/Multy-Core/third-party/libwally-core/src/scrypt.c:38:
/home/admin/temp/Multy-Core/third-party/libwally-core/src/scrypt/crypto_scrypt_smix_neon.c: In function ‘neon_salsa20_8_intrinsic’:
/home/admin/temp/Multy-Core/third-party/libwally-core/src/scrypt/crypto_scrypt_smix_neon.c:107:5: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts
x0x1x2x3 = vld1q_u8((uint8_t *) input);
^~~~~~~~
/home/admin/temp/Multy-Core/third-party/libwally-core/src/scrypt/crypto_scrypt_smix_neon.c:107:14: error: incompatible types when assigning to type ‘uint32x4_t’ from type ‘uint8x16_t’
x0x1x2x3 = vld1q_u8((uint8_t *) input);
^
/home/admin/temp/Multy-Core/third-party/libwally-core/src/scrypt/crypto_scrypt_smix_neon.c:108:14: error: incompatible types when assigning to type ‘uint32x4_t’ from type ‘uint8x16_t’
x4x5x6x7 = vld1q_u8(16 + (uint8_t *) input);
^
/home/admin/temp/Multy-Core/third-party/libwally-core/src/scrypt/crypto_scrypt_smix_neon.c:109:16: error: incompatible types when assigning to type ‘uint32x4_t’ from type ‘uint8x16_t’
x8x9x10x11 = vld1q_u8(32 + (uint8_t *) input);
^
/home/admin/temp/Multy-Core/third-party/libwally-core/src/scrypt/crypto_scrypt_smix_neon.c:110:18: error: incompatible types when assigning to type ‘uint32x4_t’ from type ‘uint8x16_t’
x12x13x14x15 = vld1q_u8(48 + (uint8_t *) input);
^
make[2]: *** [third-party/libwally-core/CMakeFiles/libwally-core.dir/build.make:206: third-party/libwally-core/CMakeFiles/libwally-core.dir/src/scrypt.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:365: third-party/libwally-core/CMakeFiles/libwally-core.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Does Multy-core support aarm64? How can I configure the make parameter to build the library?
fatal error: 'libsecp256k1-config.h' file not found
#include "libsecp256k1-config.h"
I meet this problem when compiling the multy-core module, it seems I
don't have the library, how to install the libsecp256k1 from ndk.
If not, Is there a schedule to support it?
hello, I have complied the library of multy-core on ubuntu, and I want to use it as a library for my c++ program which run on linux platform. And my C++ program is used to implement a cold wallet.
I had read the code, but find only one sample of "make_mnemonic" and "make_seed" in the main.cpp. And in the multy_test, make_dummy_entropy_source is used to make_mnemonic.
Do you have any more samples for using multy-core library, such as "make_hd_account","make_seed","make_mnemonic"
thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.