Error:Deploying program gagal simulasi transaksi gagal: Error memproses Instruksi 0: data akun terlalu kecil untuk instruksi [3 pesan log]
Anda perlu memperluas ukuran program Anda, jika Anda melakukan perubahan padanya. Ini dimungkinkan dari versi CLI 1.18 > Untuk memperbaikinya jalankan solana program extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/so...
Opsi target order opsional pada instruksi jual Raydium?
Ya, akun amm_target_orders dikomentari dan karenanya tidak diperlukan untuk memanggil instruksi swap_base_out. Karena Raydium AMM bersifat open source, Anda dapat mengonfirmasi ini melalui kode sumber: ... let amm_open_...
Bagaimana cara melakukan deserialisasi akun di frontend Rust?
Masalah dengan #[max_len(32)] yang hilang adalah bahwa akun yang diserialisasi berisi string yang di-padding dengan 0 byte agar menjadi 32 byte, sedangkan struct yang melakukan deserialisasi mencoba melakukan deserialisa...
Praktik terbaik otorisasi Solana/Anchor untuk sistem multi-program modular (peran bersama lintas program, CPI)
Repo tampaknya bersifat privat: Setiap opsi memiliki kelebihan dan kekurangannya masing-masing sehingga Anda dapat membuat implementasi hibrida untuk memitigasi, berikut adalah beberapa aplikasi multi-program yang dapat...
Kesalahan batasan Mut di Raydium
Setelah banyak berjuang dan berpindah di antara 100 LLM, akhirnya saya menemukan masalahnya. Masalahnya adalah kontrak saya sendiri menghasilkan tipe akun input dari IDL Launchlab yang sudah usang, di mana writable: true...
bantu di versi baru pinocchio
Pinocchio tidak memiliki fungsi helper untuk memvalidasi hal-hal ini di versi terbaru atau versi mana pun. Karena Anda menyebutkan Anda melakukan ini untuk blueshift, di sana mereka juga mengimplementasikannya secara man...
InstructionFallbackNotFound. Nomor Error: 101. Pesan Error: Fungsi fallback tidak didukung
Anda harus memberikan instruction discriminator ke data transaksi Anda seperti yang telah disebutkan oleh Ademola. Yang dapat Anda lakukan adalah mengambil instruction discriminator lalu menambahkannya ke data Anda pada...
Apakah rantai 26 transaksi yang belum dikonfirmasi dilarang oleh dompet di Bitcoin Core 31.0?
Anda dapat memiliki rantai yang lebih panjang dari 25 transaksi yang belum dikonfirmasi di mempool, tetapi wallet tetap memberlakukan batas rantai 25 transaksi. Dari menjalankan bitcoind -help-debug: ... -limitdescendan...
Apa itu INIT_CODE_HASH dan bagaimana cara menghitung / menggunakannya dalam kontrak pintar DeFi
Init code hash pada dasarnya adalah hash keccak256 dari bytecode kontrak. Penggunaan Init Code Init code hash diperlukan "Karena perhitungan alamat bergantung pada hashing init code. Init code adalah kode yang, ketika d...
Mengapa likuiditas terkonsentrasi hemat modal?
Likuiditas terkonsentrasi lebih efisien secara modal karena dengan peningkatan konsentrasi, jumlah token yang sama yang diinvestasikan menciptakan kedalaman likuiditas yang lebih besar. Dari blog Uniswap: Dengan memusat...
Curve Voting Escrow Explanations
The Curve DAO whitepaper was very helpful for me for understanding the code, I really recommend starting with it: https://curve.fi/files/CurveDAO.pdf Specifically this part:
What is DeFi decentralized finance?
Decentralized Finance (DeFi) is the movement that leverages decentralized networks to transform old financial products into trustless and transparent protocols that run without intermediaries. Some may prefer to call D...
Why do these two Ethereum transactions have different gas usages? Can't explain it from the GETH EVM debug traces
One of the reason for the gas cost not being the same would be that one account did not have any usdc before the transaction and the other already had some. It cost more gas to set a 0 value to non zero than non zero to...
Can ACINQ (Phoenix wallet peer) steal my funds during a recovery?
Nothing. If you have lost the last state and are recovering it from your peer then you are trusting it, no matter if it's encrypted or not. They could lie and continue operating (or close) from a state of the channel in...
Is it safe to use a private key for an existing singlesig wallet as one of the keys for a new multisig wallet?
The single-sig wallet will still work. Each key can be used in multiple wallets (singlesig or multisig) without interfering with the others. However, for a more secure multisig setup, it's usually better to generate sepa...
What does it mean that the security of Bitcoin public keys and 256-bit ECDSA is 128 bits?
What does it mean that the security of 256-bit ECDSA, and therefore Bitcoin keys, is 128 bits? I mean, if I have approximately 2^256 possible points on the elliptic curve (thus possible public keys), and therefore privat...
Can a blockchain's transactions be reversed?
No, as far as we know, Ethereum transactions cannot be reversed. The DAO hack exploited a badly coded smart contract. The smart contract runs on top of Ethereum, so there are two layers involved here: the Ethereum blo...
Receiving donation on a bitcoin address and security issues of reusing the same address
For a blog that only receives occasional small amounts you probably shouldn't worry too much about it. However, if you plan to scale up, here are some things to consider: One issue with using the same address for all tr...
How can vulnerabilites in bitcoin be responsibly reported?
Information on current (ie, not past/public/resolved) security issues should be sent to the private [email protected] mailing list. The SourceForge list is now obsolete and defunct. If you're using t...
Is 24 words seed safer than 12 words in terms of bruteforcing the private key
Regardless of whether you have a passphrase or not 12 words is just as secure as 24 words because the resulting public key will still require 2^128 iterations to compute its private key using the most efficient algorithm...