Closed garious closed 3 years ago
Remove the automatic account creation feature.
This isn't super workable though. You can't automatically create spending addresses without pre-registration.
To solve 1, Bitcoin and other protocols use a checksum.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This stale issue has been automatically closed. Thank you for your contributions.
@aeyakovenko were checksums introduced into Solana? I Googled "Solana checksum" and this was the first relevant post.
What's the best way of confirming that an address is a valid Solana address?
A transfer to a public key with a typo will succeed, effectively burning all tokens by accident.
This is shocking. Solana addresses do not have a checksum (like other cryptocurrencies)?
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.
Problem
If a transaction references a system account that doesn't yet exist, the runtime creates one automatically. The "feature" introduces two problems:
space
parameter. Consequently, we seeCreateAccount
being used with an unusedfrom
key and zerolamports
, suggestingCreateAccount
is doing too much. It's anAllocate
and aTransfer
, when only anAllocate
is needed.Proposed Solution
Allocate
, which should be the same asCreateAccount
, but with nofrom
orlamports
parameters. Consider removingCreateAccount
.cc: @rob-solana @aeyakovenko