radiance/pkg/gossip/types.go

16 lines
334 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 solana.Hash(h).MarshalText()
2022-09-08 10:40:32 -07:00
}
func (s Signature) MarshalText() ([]byte, error) {
return solana.Signature(s).MarshalText()
2022-09-08 10:40:32 -07:00
}