Use 'curve25519' instead of 'pubkey'

This commit is contained in:
Neil Alexander 2020-02-16 23:44:20 +00:00
parent 6b0b704645
commit 429189d11d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 6 additions and 6 deletions

View file

@ -199,9 +199,9 @@ func (k BoxPubKey) String() string {
return hex.EncodeToString(k[:])
}
// Network returns "pubkey" for "box" keys.
// Network returns "curve25519" for "box" keys.
func (n BoxPubKey) Network() string {
return "pubkey"
return "curve25519"
}
// NewBoxKeys generates a new pair of public/private crypto box keys.