Skip to content

Commit

Permalink
Fix code formatting in key parsing example
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Sep 1, 2021
1 parent c329067 commit 90b946d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func main() {
### Load/parse private and private keys

```go
{ // Load private key from a json file generated with
{
// Load private key from a json file generated with
// $ solana-keygen new --outfile=standard.solana-keygen.json
privateKey, err := solana.PrivateKeyFromSolanaKeygenFile("/path/to/standard.solana-keygen.json")
if err != nil {
Expand All @@ -118,7 +119,8 @@ func main() {
fmt.Println("public key:", publicKey.String())
}

{ // Load private key from base58:
{
// Load private key from base58:
{
privateKey, err := solana.PrivateKeyFromBase58("66cDvko73yAf8LYvFMM3r8vF5vJtkk7JKMgEKwkmBC86oHdq41C7i1a2vS3zE1yCcdLLk6VUatUb32ZzVjSBXtRs")
if err != nil {
Expand Down

0 comments on commit 90b946d

Please sign in to comment.