func (privKey PrivKeyEd25519) ToCurve25519() *[32]byte { keyEd25519, keyCurve25519 := new([64]byte), new([32]byte) copy(keyEd25519[:], privKey) extra25519.PrivateKeyToCurve25519(keyCurve25519, keyEd25519) return keyCurve25519 }
func (privKey PrivKeyEd25519) ToCurve25519() *[32]byte { keyCurve25519 := new([32]byte) privKeyBytes := [64]byte(privKey) extra25519.PrivateKeyToCurve25519(keyCurve25519, &privKeyBytes) return keyCurve25519 }