Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoisePublicKeySize = 32 NoisePrivateKeySize = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoiseNonce ¶
type NoiseNonce uint64 // padded to 12-bytes
type NoisePresharedKey ¶
type NoisePresharedKey [NoisePresharedKeySize]byte
type NoisePrivateKey ¶
type NoisePrivateKey [NoisePrivateKeySize]byte
func NewPrivateKey ¶
func NewPrivateKey() (sk NoisePrivateKey, err error)
func (NoisePrivateKey) Equals ¶
func (sk NoisePrivateKey) Equals(tar NoisePrivateKey) bool
func (*NoisePrivateKey) FromString ¶
func (sk *NoisePrivateKey) FromString(src string) error
func (NoisePrivateKey) IsZero ¶
func (sk NoisePrivateKey) IsZero() bool
func (NoisePrivateKey) PublicKey ¶
func (sk NoisePrivateKey) PublicKey() (pk NoisePublicKey)
func (NoisePrivateKey) String ¶
func (sk NoisePrivateKey) String() string
type NoisePublicKey ¶
type NoisePublicKey [NoisePublicKeySize]byte
func (NoisePublicKey) Equals ¶
func (pk NoisePublicKey) Equals(tar NoisePublicKey) bool
func (*NoisePublicKey) FromString ¶
func (pk *NoisePublicKey) FromString(src string) error
func (NoisePublicKey) IsZero ¶
func (pk NoisePublicKey) IsZero() bool
func (NoisePublicKey) String ¶
func (pk NoisePublicKey) String() string
Click to show internal directories.
Click to hide internal directories.