Error: Error al implementar el programa Error en la simulación de transacción: Error al procesar la Instrucción 0: los datos de la cuenta son demasiado pequeños para la instrucción [3 mensajes de registro]
Necesitará ampliar el tamaño de su programa, si realizó cambios en él. Esto es posible desde la versión CLI 1.18 > Para arreglar esta ejecución programa solana extiende PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/solana...
¿Las órdenes objetivo son opcionales según las instrucciones de venta de Raydium?
Sí, la cuenta amm_target_orders está comentada y, por lo tanto, no es necesario llamar a la instrucción swap_base_out. Dado que Raydium AMM es de código abierto, puede confirmar esto a través del código fuente: ... let...
¿Cómo puedo deserializar la cuenta en Rust?
El problema con el #[max_len(32)] que falta es que la cuenta serializada contiene una cadena rellenada con 0 bytes para hacer 32 bytes, mientras que la estructura de deserialización intenta deserializar solo la longitud...
Mejores prácticas de autorización de Solana/Anchor para un sistema modular de múltiples programas (roles compartidos entre programas, CPI)
El repositorio parece ser privado: Cualquiera de las opciones tiene sus pros y sus contras, por lo que puede crear una implementación híbrida para mitigarla. Estas son algunas de las aplicaciones multiprograma que puede...
Error de restricción mut en Raydium
Después de mucho luchar y cambiar entre 100 LLM, finalmente encontré el problema. El problema era que mi contrato en sí generaba tipos de cuentas de entrada a partir de un IDL obsoleto de Launchlab, donde no se configuró...
ayuda en la nueva versión de pinocho
Pinocho no tiene funciones auxiliares para validarlos en la última versión ni en ninguna versión. Como mencionaste que estás haciendo esto para blueshift, allí también los implementan manualmente.
InstrucciónFallbackNotFound. Número de error: 101. Mensaje de error: Las funciones alternativas no son compatibles
Debe proporcionar la instrucción discriminadora a los datos de su transacción como lo mencionó Ademola. Lo que puede hacer es buscar el discriminador de instrucciones y luego agregarlo a sus datos en los primeros 8 bytes...
¿Las cadenas de 26 transacciones no confirmadas están prohibidas por la billetera en Bitcoin Core 31.0?
Puede tener una cadena de más de 25 transacciones no confirmadas en el mempool, pero la billetera aún impone un límite de cadena de 25 transacciones. Desde la ejecución de bitcoind -help-debug: ... -limitdedescendientec...
¿Qué es INIT_CODE_HASH y cómo se calcula/utiliza en los contratos inteligentes DeFi?
El hash del código de inicio es básicamente el hash keccak256 del código de bytes de los contratos. Uso del código de inicio Se necesita hash del código de inicio "Dado que el cálculo de la dirección depende del hash el...
¿Por qué la liquidez concentrada es eficiente en términos de capital?
La liquidez concentrada es más eficiente en términos de capital porque con una mayor concentración, la misma cantidad de tokens invertidos crea una mayor profundidad de liquidez. Del blog de Uniswap: Al concentrar su li...
Explicaciones del depósito de garantía de votación de la curva
El documento técnico de Curve DAO me resultó muy útil para comprender el código. Realmente recomiendo comenzar con él: https://curve.fi/files/CurveDAO.pdf Específicamente esta parte:
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...