MCPcopy Create free account
hub / github.com/XTLS/Go / PublicKey

Method PublicKey

key_schedule.go:162–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162func (p *nistParameters) PublicKey() []byte {
163 curve, _ := curveForCurveID(p.curveID)
164 return elliptic.Marshal(curve, p.x, p.y)
165}
166
167func (p *nistParameters) SharedKey(peerPublicKey []byte) []byte {
168 curve, _ := curveForCurveID(p.curveID)

Callers

nothing calls this directly

Calls 2

curveForCurveIDFunction · 0.85
MarshalMethod · 0.80

Tested by

no test coverage detected