solana

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: AGPL-3.0, Apache-2.0 Imports: 5 Imported by: 0

README

this is a small subset from solana-go, and is licensed under the MIT license.

source: https://github.com/solana-foundation/solana-go/tree/main/base58
copied license: [LICENSE](./LICENSE)

Documentation

Overview

source: https://github.com/solana-foundation/solana-go/tree/main/base58 copied license: [LICENSE](./LICENSE)

Index

Constants

View Source
const (
	MaxSeedLength = 32
	MaxSeeds      = 16
	PDA_MARKER    = "ProgramDerivedAddress"
)

Variables

View Source
var (
	TokenProgramID = mustPubkey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA")
	ATAPROGRAMID   = mustPubkey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL")
)

Functions

func AssociatedTokenAddress

func AssociatedTokenAddress(owner, mint string) (string, error)

func IsOnCurve

func IsOnCurve(b []byte) bool

Types

type PublicKey

type PublicKey [32]byte

func CreateProgramAddress

func CreateProgramAddress(seeds [][]byte, programID PublicKey) (PublicKey, error)

func FindProgramAddress

func FindProgramAddress(seeds [][]byte, programID PublicKey) (PublicKey, uint8, error)

func PublicKeyFromBase58

func PublicKeyFromBase58(s string) (PublicKey, error)

func PublicKeyFromBytes

func PublicKeyFromBytes(b []byte) PublicKey

func (PublicKey) Bytes

func (p PublicKey) Bytes() []byte

func (PublicKey) String

func (p PublicKey) String() string

Directories

Path Synopsis
source: https://github.com/solana-foundation/solana-go/tree/main/base58 copied license: [LICENSE](./LICENSE)
source: https://github.com/solana-foundation/solana-go/tree/main/base58 copied license: [LICENSE](./LICENSE)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL