docs(dvm,wallet-rpc): clarify Initialize semantics and payload transfer amounts#3
Merged
Merged
Conversation
Add a focused subsection to smart-contract-fundamentals explaining that InitializePrivate flips a single metadata byte (SC_META_DATA.Type 0->1) and selects the install entrypoint — nothing more. It does NOT hide contract code, encrypt state, or change STORE/LOAD/GetSC behavior; for both types, code and stored variables are world-readable. "Private smart contract" refers to tokens becoming encrypted balances in user wallets, not to the contract itself. Grounded in daemon source (dvm/sc.go:38, transaction_execute.go:325-326, :336-337) and cross-linked to the existing private-smart-contracts page.
Extends the transfer 'amount' NOTE: a zero-amount transfer creates no output for the recipient's wallet to detect, so an attached payload_rpc (comment, destination port, or app data) never arrives even though the tx is valid and mined. Use >= 1 atomic unit. Applies to any use of a transfer as a data carrier, not just payments. Confirmed against the DeroMessage mainnet reference (Amount=1).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small documentation clarifications, relocated from a retired branch onto a clean branch off
main.InitializevsInitializePrivatesemanticsNo code changes — docs content only.