mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	TVM instructions: SECP256K1_XONLY_PUBKEY_TWEAK_ADD, SETCONTCTRMANY(X) (#1404)
* TVM instructions: SECP256K1_XONLY_PUBKEY_TWEAK_ADD, SETCONTCTRMANY(X) * Add tests for xonly_pubkey_tweak_add * added secp256k1 as submodule, since we need extrakeys feature of secp256k1 * cleanup * add ton_crypto_core secp256k1 dependency * adjust Dockerfile, android and wasm builds * adjust nix build * test windows build with SECP256K1_ENABLE_MODULE_EXTRAKEYS * test windows build with SECP256K1_ENABLE_MODULE_EXTRAKEYS * adjust android build * adjust emscripten build * adjust emscripten build * try macos-13 * emscripten build adjustments * windows build adjustments * final corrections --------- Co-authored-by: neodix <neodix@ton.org>
This commit is contained in:
		
							parent
							
								
									954a96a077
								
							
						
					
					
						commit
						25b4c6794a
					
				
					 56 changed files with 2112 additions and 502 deletions
				
			
		|  | @ -43,23 +43,6 @@ else | |||
|   echo "Using compiled lz4" | ||||
| fi | ||||
| 
 | ||||
| if [ ! -d "secp256k1" ]; then | ||||
| git clone https://github.com/bitcoin-core/secp256k1.git | ||||
| cd secp256k1 | ||||
| secp256k1Path=`pwd` | ||||
| git checkout v0.3.2 | ||||
| ./autogen.sh | ||||
| ./configure --enable-module-recovery --enable-static --disable-tests --disable-benchmark --with-pic | ||||
| make -j12 | ||||
| test $? -eq 0 || { echo "Can't compile secp256k1"; exit 1; } | ||||
| cd .. | ||||
| # ./.libs/libsecp256k1.a | ||||
| # ./include | ||||
| else | ||||
|   secp256k1Path=$(pwd)/secp256k1 | ||||
|   echo "Using compiled secp256k1" | ||||
| fi | ||||
| 
 | ||||
| if [ ! -d "libsodium" ]; then | ||||
|   export LIBSODIUM_FULL_BUILD=1 | ||||
|   git clone https://github.com/jedisct1/libsodium.git | ||||
|  | @ -126,9 +109,6 @@ cmake -GNinja .. \ | |||
| -DZLIB_FOUND=1 \ | ||||
| -DZLIB_INCLUDE_DIR=$zlibPath \ | ||||
| -DZLIB_LIBRARIES=$zlibPath/libz.a \ | ||||
| -DSECP256K1_FOUND=1 \ | ||||
| -DSECP256K1_INCLUDE_DIR=$secp256k1Path/include \ | ||||
| -DSECP256K1_LIBRARY=$secp256k1Path/.libs/libsecp256k1.a \ | ||||
| -DSODIUM_FOUND=1 \ | ||||
| -DSODIUM_INCLUDE_DIR=$sodiumPath/src/libsodium/include \ | ||||
| -DSODIUM_LIBRARY_RELEASE=$sodiumPath/src/libsodium/.libs/libsodium.a \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue