bmresearch / Solnet

Solana's .NET SDK and integration library.
https://blockmountain.io/Solnet
MIT License
319 stars 128 forks source link

Added compute budget program, priority fees and versioned transactions. Bug fixes and more #419

Closed BifrostTitan closed 6 months ago

BifrostTitan commented 1 year ago

| Status | Type | ⚠️ Core Change | Issue | | Ready | Feature | Yes |https://github.com/bmresearch/Solnet/issues/418

Problem

What problem are you trying to solve?

Account class objects could not be created by using a base58 secret key (private key). The secret key is exported by popular wallets like phantom. Referenced it as a secret key because technically the true private key is the seed and the secret key is a combination of the precursor seed (private key) & public key which is encoded in base58. Encapsulated Seed/Private Key/Secret Key whatever you want to call it haha

Solution

How did you solve the problem?

Added static method to the account class that returns an initialized account object based on the private/secret key provided