fix: marshal pubkey correctly
This commit is contained in:
parent
fe50f12ac9
commit
f66ad3d3dd
|
@ -548,7 +548,12 @@ func (p *PushNotificationServer) MarshalText() ([]byte, error) {
|
|||
}
|
||||
|
||||
func (p *PushNotificationServer) UnmarshalText(data []byte) error {
|
||||
pk, err := crypto.UnmarshalPubkey(data)
|
||||
pubKeyBytes, err := hex.DecodeString(string(data))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
pk, err := crypto.UnmarshalPubkey(pubKeyBytes)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue