mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-14 11:10:05 +08:00
crypto: make the ECDSA receiver consistent
This commit is contained in:
parent
947196bbb7
commit
d68e65376d
@ -155,7 +155,7 @@ func (ePub *ECDSAPublicKey) Type() pb.KeyType {
|
||||
}
|
||||
|
||||
// Raw returns x509 bytes from a public key
|
||||
func (ePub ECDSAPublicKey) Raw() ([]byte, error) {
|
||||
func (ePub *ECDSAPublicKey) Raw() ([]byte, error) {
|
||||
return x509.MarshalPKIXPublicKey(ePub.pub)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user