ถามตอบความรู้การเทรดคริปโต กระเป๋าเงิน และบล็อกเชน
ถาม-ตอบทั่วไปครอบคลุมการซื้อขายคริปโตเคอร์เรนซี กระเป๋าเงิน และความรู้บล็อกเชน รวมคำอธิบายและเนื้อหาคำตอบ
- 01
ข้อผิดพลาด: การปรับใช้โปรแกรมล้มเหลว การจำลองธุรกรรมล้มเหลว: เกิดข้อผิดพลาดในการประมวลผลคำสั่ง 0: ข้อมูลบัญชีเล็กเกินไปสำหรับคำสั่ง [ข้อความบันทึก 3 รายการ]
คุณจะต้องขยายขนาดโปรแกรมของคุณ หากคุณได้ทำการเปลี่ยนแปลงกับมัน ซึ่งสามารถทำได้จาก CLI เวอร์ชัน 1.18 > เพื่อแก้ไขปัญหานี้ ให้รัน solana program extend PROGRAM_ADDRESS_HERE 20000 -u...
เทคโนโลยี - 02
ตัวเลือกคำสั่งเป้าหมายเป็นทางเลือกในคำแนะนำการขายของ Raydium หรือไม่?
ใช่ บัญชี amm_target_orders ถูกคอมเมนต์ไว้ ดังนั้นจึงไม่จำเป็นต้องเรียกคำสั่ง swap_base_out เนื่องจาก Raydium AMM เป็นโอเพนซอร์ส คุณสามารถยืนยันได้ผ่านซอร์สโค้ด: ... let amm_open_...
เทคโนโลยี - 03
ฉันจะดีซีเรียลไลซ์บัญชีใน Rust frontend ได้อย่างไร
ปัญหาเกี่ยวกับ #[max_len(32)] ที่หายไปคือบัญชีที่ถูก serialize มีสตริงที่เติม 0 ไบต์เพื่อให้ครบ 32 ไบต์ ในขณะที่ struct ที่ทำ deserialize พยายาม deserialize เพียงเท่าความยาวจริงของ...
เทคโนโลยี - 04
แนวปฏิบัติที่ดีที่สุดสำหรับการอนุญาตสิทธิ์บน Solana/Anchor สำหรับระบบหลายโปรแกรมแบบโมดูลาร์ (บทบาทที่ใช้ร่วมกันระหว่างโปรแกรม, CPI)
Repo ดูเหมือนจะเป็นแบบส่วนตัว: ตัวเลือกแต่ละแบบมีข้อดีและข้อเสีย ดังนั้นคุณสามารถสร้างการใช้งานแบบไฮบริดเพื่อลดความเสี่ยง นี่คือตัวอย่างแอปพลิเคชันหลายโปรแกรมที่คุณสามารถนำมาใช้ได้...
เทคโนโลยี - 05
ข้อผิดพลาด Mut constraint บน Raydium
หลังจากต่อสู้และสลับไปมาระหว่าง LLM 100 ตัว ในที่สุดฉันก็พบปัญหานี้ ปัญหาคือสัญญาของฉันเองกำลังสร้างประเภทบัญชีอินพุตจาก IDL ที่ล้าสมัยของ Launchlab ซึ่ง writable: true ไม่ได้ถูกตั...
เทคโนโลยี - 06
ช่วยในเวอร์ชันใหม่ของพินอคคิโอ
Pinocchio ไม่มีฟังก์ชันช่วยสำหรับตรวจสอบสิ่งเหล่านี้ในเวอร์ชันล่าสุดหรือเวอร์ชันใด ๆ เนื่องจากคุณกล่าวว่าคุณทำสิ่งนี้สำหรับ blueshift ที่นั่นพวกเขาก็ใช้งานสิ่งเหล่านี้ด้วยตนเองเช่น...
เทคโนโลยี - 07
ไม่พบคำแนะนำสำรอง หมายเลขข้อผิดพลาด: 101 ข้อความข้อผิดพลาด: ไม่รองรับฟังก์ชันสำรอง
คุณต้องระบุ instruction discriminator ให้กับ data ของ transaction ของคุณตามที่ Ademola ได้กล่าวไว้ สิ่งที่คุณสามารถทำได้คือดึง instruction discriminator แล้วต่อท้ายเข้ากับ data ของ...
เทคโนโลยี - 08
เชนของธุรกรรมที่ยังไม่ได้รับการยืนยันจำนวน 26 รายการถูกห้ามโดยกระเป๋าเงินใน Bitcoin Core 31.0 หรือไม่
คุณสามารถมีเชนที่ยาวกว่า 25 ธุรกรรมที่ยังไม่ยืนยันใน mempool ได้ แต่กระเป๋าเงินยังคงบังคับใช้ขีดจำกัดเชน 25 ธุรกรรม จากการรัน bitcoind -help-debug: ... -limitdescendantcount= การ...
เทคโนโลยี - 09
INIT_CODE_HASH คืออะไร และคำนวณ / ใช้งานอย่างไรในสัญญาอัจฉริยะ DeFi
Init code hash โดยพื้นฐานแล้วคือแฮช keccak256 ของ bytecode ของสัญญา การใช้งาน Init Code Init code hash มีความจำเป็น "เนื่องจาก การคำนวณที่อยู่ขึ้นอยู่กับการแฮช init code. Init cod...
DeFi - 10
ทำไมสภาพคล่องแบบกระจุกตัวจึงใช้ทุนอย่างมีประสิทธิภาพ?
สภาพคล่องแบบกระจุกตัวมีประสิทธิภาพด้านทุนมากกว่า เพราะเมื่อการกระจุกตัวเพิ่มขึ้น จำนวนโทเคนที่ลงทุนเท่าเดิมจะสร้างความลึกของสภาพคล่องได้มากกว่า จากบล็อกของ Uniswap: ด้วยการกระจุกต...
DeFi - 11
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:
DeFi - 12
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 int...
DeFi - 13
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...
การซื้อขายและตลาด - 14
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 (o...
ความปลอดภัยและความเสี่ยง - 15
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 set...
ความปลอดภัยและความเสี่ยง - 16
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 pos...
ความปลอดภัยและความเสี่ยง - 17
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 tw...
ความปลอดภัยและความเสี่ยง - 18
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 issu...
ความปลอดภัยและความเสี่ยง - 19
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...
ความปลอดภัยและความเสี่ยง - 20
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 privat...
ความปลอดภัยและความเสี่ยง