stellar

package
v0.80.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeypairFromHex

func KeypairFromHex(hexKey string) (*keypair.Full, error)

KeypairFromHex creates a keypair.Full from a hex-encoded private key. The hex string can be with or without the "0x" prefix.

Types

type Chain

type Chain struct {
	ChainMetadata

	// Client is the Soroban RPC client for interacting with the Stellar network
	Client *rpcclient.Client

	// Signer is the keypair used for signing transactions
	Signer StellarSigner

	// URL is the Soroban RPC endpoint URL
	URL string

	// FriendbotURL is the Friendbot endpoint URL for funding test accounts (optional, only required for testing)
	FriendbotURL string

	// NetworkPassphrase identifies the Stellar network
	NetworkPassphrase string
}

Chain represents a Stellar network instance used by the Chainlink Deployments Framework (CLDF).

type ChainMetadata

type ChainMetadata = chaincommon.ChainMetadata

type StellarSigner

type StellarSigner interface {
	// Sign signs the given message and returns the signature bytes.
	Sign(message []byte) ([]byte, error)

	// SignDecorated signs the given message and returns a decorated signature (XDR format).
	SignDecorated(message []byte) (xdr.DecoratedSignature, error)

	// Address returns the Stellar address derived from the signer's public key.
	Address() string
}

StellarSigner is an interface that provides signing capabilities for Stellar transactions.

func NewStellarKeypairSigner

func NewStellarKeypairSigner(kp *keypair.Full) StellarSigner

NewStellarKeypairSigner creates a new StellarSigner from a keypair.Full.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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