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