MarshalBinary does the serialization.
()
| 64 | |
| 65 | // MarshalBinary does the serialization. |
| 66 | func (k *PublicKey) MarshalBinary() (keyBytes []byte, err error) { |
| 67 | return k.Serialize(), nil |
| 68 | } |
| 69 | |
| 70 | // UnmarshalBinary does the deserialization. |
| 71 | func (k *PublicKey) UnmarshalBinary(keyBytes []byte) (err error) { |