radiance/pkg/gossip/types.go

16 lines
350 B
Go
Raw Normal View History

2022-09-08 10:40:32 -07:00
package gossip
import "github.com/gagliardetto/solana-go"
func (p Pubkey) MarshalText() ([]byte, error) {
return solana.PublicKey(p).MarshalText()
}
func (h Hash) MarshalText() ([]byte, error) {
return []byte(solana.Hash(h).String()), nil
}
func (s Signature) MarshalText() ([]byte, error) {
return []byte(solana.Signature(s).String()), nil
}