Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 stellar.Signer
// 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).
func (Chain) ReadOnly ¶ added in v0.100.0
func (c Chain) ReadOnly() (chaincommon.BlockChain, error)
type ChainMetadata ¶
type ChainMetadata = chaincommon.ChainMetadata
type KmsSigner ¶ added in v0.122.0
type KmsSigner struct {
// contains filtered or unexported fields
}
KmsSigner signs Stellar transactions with an Ed25519 key held in AWS KMS. The private key never leaves KMS. It implements bindings.Signer.
The signer deliberately holds no context. It is built while the chain is loaded but signs for as long as the chain is in use, so retaining the loader's context would make every signature fail once that context is done.
func (*KmsSigner) Address ¶ added in v0.122.0
Address returns the Stellar account address derived from the public key.
func (*KmsSigner) KeypairFull ¶ added in v0.122.0
KeypairFull returns nil. The private key lives in KMS, so no keypair.Full is available.
func (*KmsSigner) Sign ¶ added in v0.122.0
Sign signs message with the KMS Ed25519 key.
bindings.Signer.Sign takes no context, so Sign derives a fresh one per call instead of reusing the context that built the signer.
func (*KmsSigner) SignDecorated ¶ added in v0.122.0
func (s *KmsSigner) SignDecorated(message []byte) (xdr.DecoratedSignature, error)
SignDecorated signs message and returns a decorated signature in Stellar XDR format. The hint is the last four bytes of the public key.