swarm/pss: Add same api interface for all Send* methods (#18218)
This commit is contained in:
@ -164,6 +164,10 @@ func (pssapi *API) SendSym(symkeyhex string, topic Topic, msg hexutil.Bytes) err
|
||||
return pssapi.Pss.SendSym(symkeyhex, topic, msg[:])
|
||||
}
|
||||
|
||||
func (pssapi *API) SendRaw(addr hexutil.Bytes, topic Topic, msg hexutil.Bytes) error {
|
||||
return pssapi.Pss.SendRaw(PssAddress(addr), topic, msg[:])
|
||||
}
|
||||
|
||||
func (pssapi *API) GetPeerTopics(pubkeyhex string) ([]Topic, error) {
|
||||
topics, _, err := pssapi.Pss.GetPublickeyPeers(pubkeyhex)
|
||||
return topics, err
|
||||
|
Reference in New Issue
Block a user