Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToBytes ¶ added in v0.44.0
AddressToBytes converts a Sui address string to bytes. Sui addresses are hex strings typically prefixed with "0x" (32 bytes).
func PublicKeyBytes ¶ added in v0.45.2
PublicKeyBytes extracts the raw 32-byte ed25519 public key from a SuiSigner.
Types ¶
type AddressConverter ¶ added in v0.44.0
type AddressConverter struct{}
AddressConverter implements address conversion for Sui chains. This struct implements the AddressConverter strategy interface.
func (AddressConverter) ConvertToBytes ¶ added in v0.44.0
func (s AddressConverter) ConvertToBytes(address string) ([]byte, error)
ConvertToBytes converts a Sui address string to bytes.
func (AddressConverter) Supports ¶ added in v0.44.0
func (s AddressConverter) Supports(family string) bool
Supports returns true if this converter supports the given chain family.
type ChainMetadata ¶ added in v0.5.1
type ChainMetadata = common.ChainMetadata
type SuiSigner ¶ added in v0.24.0
type SuiSigner interface { // Sign signs the given message and returns the serialized signature. Sign(message []byte) ([]string, error) // GetAddress returns the Sui address derived from the signer's public key GetAddress() (string, error) }
TODO: Everything in this file should come from chainlink-sui when available
func NewSignerFromHexPrivateKey ¶ added in v0.24.0
func NewSignerFromSeed ¶ added in v0.24.0
Click to show internal directories.
Click to hide internal directories.