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

Method PublicKey

key_schedule.go:189–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187}
188
189func (p *x25519Parameters) PublicKey() []byte {
190 return p.publicKey[:]
191}
192
193func (p *x25519Parameters) SharedKey(peerPublicKey []byte) []byte {
194 sharedKey, err := curve25519.X25519(p.privateKey, peerPublicKey)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected