mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
11 lines
206 B
Go
11 lines
206 B
Go
package encoding
|
|
|
|
import (
|
|
"crypto/ecdsa"
|
|
)
|
|
|
|
func EncodeS256PubKey(pubKey *ecdsa.PublicKey) ([]byte, error) {
|
|
publicKeyBytes := append(pubKey.X.Bytes(), pubKey.Y.Bytes()...)
|
|
return publicKeyBytes, nil
|
|
}
|