sdk

package
v0.0.0-...-162e81c Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

README

the audiusd sdk

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudiusdSDK

type AudiusdSDK struct {
	Core    corev1connect.CoreServiceClient
	Storage storagev1connect.StorageServiceClient
	ETL     etlv1connect.ETLServiceClient
	System  systemv1connect.SystemServiceClient
	Eth     ethv1connect.EthServiceClient
	// contains filtered or unexported fields
}

func NewAudiusdSDK

func NewAudiusdSDK(nodeURL string) *AudiusdSDK

func (*AudiusdSDK) Address

func (s *AudiusdSDK) Address() string

func (*AudiusdSDK) PrivKey

func (s *AudiusdSDK) PrivKey() *ecdsa.PrivateKey

func (*AudiusdSDK) Pubkey

func (s *AudiusdSDK) Pubkey() *ecdsa.PublicKey

func (*AudiusdSDK) ReadPrivKey

func (s *AudiusdSDK) ReadPrivKey(path string) error

func (*AudiusdSDK) RecoverSigner

func (s *AudiusdSDK) RecoverSigner(msg []byte, signature string) (string, error)

func (*AudiusdSDK) ReleaseTrack

func (s *AudiusdSDK) ReleaseTrack(ctx context.Context, cid, title, genre string) (*ReleaseResult, error)

func (*AudiusdSDK) SetPrivKey

func (s *AudiusdSDK) SetPrivKey(privKey *ecdsa.PrivateKey)

func (*AudiusdSDK) Sign

func (s *AudiusdSDK) Sign(msg []byte) (string, error)

type ReleaseResult

type ReleaseResult struct {
	TxHash  string
	TrackID string
}

Jump to

Keyboard shortcuts

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