知識デスク
質問と回答
具体的な質問から、デジタル資産、取引の仕組み、安全性の基礎を理解します。
質問ライブラリ24 件の結果
01technologyプログラムに変更を加えた場合は、プログラムのサイズを拡張する必要があります。これは CLI バージョン 1.18 から可能です > この実行を修正するには solana プログラム extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/solana/id.json 上記のコマンドはプログラムを 20000 バイト増加させ、~/.…
回答を読む02technologyはい、amm_target_orders アカウントはコメント化されているため、swap_base_out 命令を呼び出す必要はありません。 Raydium AMM はオープンソースであるため、ソース コードを通じてこれを確認できます。 ... amm_open_orders_info = next_account_info(account_info_iter)?; if in…
回答を読む03technology#[max_len(32)] が欠落している場合の問題は、シリアル化されたアカウントには 32 バイトにするために 0 バイトが埋め込まれた文字列が含まれているのに対し、逆シリアル化構造体は文字列が実際に長くなるまでのバイト数だけを逆シリアル化しようとし、残りの 0 バイトによって後続のフィールドの逆シリアル化が台無しになってしまうことです。 これを修正するには、declare…
回答を読む04technologyリポジトリは非公開のようです: どのオプションにも長所と短所があるため、ハイブリッド実装を作成して軽減できます。採用できるマルチプログラム アプリケーションのいくつかを以下に示します。 Marinade Finance: 特定のドメインに対して単一のコア プログラム + サテライト プログラムを使用します。管理者権限と運用権限をどのように処理するかを確認できます (コア プログ…
回答を読む05technology100 個の LLM を切り替えて苦労した結果、ついに問題が見つかりました。 問題は、私の契約自体が Launchlab の古い IDL から入力アカウント タイプを生成していて、writable: true が設定されていなかったことです。 私は、Solana がアカウントのプロパティには触れずにアカウントを転送するだけだと思っていたので、それは問題ではないと考えていました。…
回答を読む06technologyPinocchio には、最新バージョンまたはどのバージョンでも、これらを検証するためのヘルパー関数がありません。これをブルーシフトのために行っていると述べたので、そこでもこれらを手動で実装しています。
回答を読む07technologyAdemolaが述べたように、トランザクションのデータに命令識別子を提供する必要があります。 できることは、命令識別子をフェッチし、それをデータの最初の 8 バイトに追加することです。 Rustのフェッチ命令識別子 pub fn sighash(名前空間: &str, 名前: &str) -> [u8; 8] { let preimage = format!("{}:{}", …
回答を読む08technologymempool では 25 個の未確認トランザクションを超えるチェーンを持つことができますが、ウォレットでは依然として 25 個のトランザクション チェーン制限が適用されます。 bitcoind -help-debug を実行すると、次のようになります。 ... -limitdescendantcount= 祖先にトランザクションがあった場合、トランザクションを受け入れないとい…
回答を読む09defi初期コードのハッシュは、基本的にはコントラクトのバイトコードの keccak256 ハッシュです。 初期化コードの使用法 アドレス計算はハッシュに依存するため、初期化コードのハッシュが必要です 初期化コード。初期化コードは、実行時に生成されるコードです。 状態に配置されるランタイム バイトコード、および 通常、高水準言語によって実装されるために使用されます。 「コンストラクター…
回答を読む10defi流動性が集中すると、同じ量のトークンを投資してもより深い流動性が生まれるため、資本効率が高くなります。 Uniswap のブログより: 流動性を集中させることで、LP は指定された価格範囲内で v2 と同じ流動性の深さを提供しながら、リスクにさらされる資本をはるかに少なくすることができます。 資本効率を定義する非公式な方法は、投資された資本と生み出された価値の比率として見ること…
回答を読む11defiCurve DAO ホワイトペーパーは、コードを理解するのに非常に役立ちました。ぜひ、このホワイトペーパーから始めることをお勧めします。 https://curve.fi/files/CurveDAO.pdf 具体的にはこの部分:
回答を読む12defiDecentralized Finance (DeFi) is the movement that leverages decentralized networks to transform old financial products into trustless and transparent protocols that run without intermediarie…
回答を読む13tradingOne 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…
回答を読む14securityNothing. 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) f…
回答を読む15securityThe 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 u…
回答を読む16securityWhat 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 publ…
回答を読む17securityNo, 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 invo…
回答を読む18securityFor 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 usin…
回答を読む19securityInformation 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 …
回答を読む20securityRegardless 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 usin…
回答を読む