This is probably not the right way to export a public key:
|
return &RsaPrivateKey{opensslPrivateKey{key}}, &RsaPublicKey{opensslPublicKey{key: key}}, nil |
|
return &RsaPublicKey{opensslPublicKey{key: sk.opensslPrivateKey.key}} |
As far as I can see, the fix would need to happen in go-openssl, and involve a bunch of super-ugly Go-to-C and vice versa code.
This is probably not the right way to export a public key:
go-libp2p/core/crypto/rsa_openssl.go
Line 33 in 47f9ea1
go-libp2p/core/crypto/rsa_openssl.go
Line 38 in 47f9ea1
As far as I can see, the fix would need to happen in go-openssl, and involve a bunch of super-ugly Go-to-C and vice versa code.