Documentation ¶
Index ¶
- func NewBoxCipher(pr PrivateKey, pu PublicKey) stream.Cipher
- type BoxCipher
- type PrivateKey
- func (k PrivateKey) MarshalJSON() ([]byte, error)
- func (k PrivateKey) Open(p PublicKey, ciphertext []byte, v interface{}) error
- func (k PrivateKey) OpenBase58(p PublicKey, msg string, v interface{}) error
- func (k PrivateKey) Public() PublicKey
- func (k PrivateKey) Seal(p PublicKey, v interface{}) ([]byte, error)
- func (k PrivateKey) SealBase58(p PublicKey, v interface{}) (string, error)
- func (k PrivateKey) String() string
- func (k *PrivateKey) UnmarshalJSON(bs []byte) error
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBoxCipher ¶ added in v0.5.0
func NewBoxCipher(pr PrivateKey, pu PublicKey) stream.Cipher
Types ¶
type BoxCipher ¶ added in v0.5.0
type BoxCipher struct {
// contains filtered or unexported fields
}
func (*BoxCipher) MaxOverhead ¶ added in v0.5.0
MaxOverhead implements Cipher.
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func GeneratePrivateKey ¶
func GeneratePrivateKey() (*PrivateKey, error)
func ParsePrivateKey ¶
func ParsePrivateKey(key string) (*PrivateKey, error)
func (PrivateKey) MarshalJSON ¶
func (k PrivateKey) MarshalJSON() ([]byte, error)
func (PrivateKey) Open ¶
func (k PrivateKey) Open(p PublicKey, ciphertext []byte, v interface{}) error
func (PrivateKey) OpenBase58 ¶
func (k PrivateKey) OpenBase58(p PublicKey, msg string, v interface{}) error
func (PrivateKey) Public ¶
func (k PrivateKey) Public() PublicKey
func (PrivateKey) SealBase58 ¶
func (k PrivateKey) SealBase58(p PublicKey, v interface{}) (string, error)
func (PrivateKey) String ¶
func (k PrivateKey) String() string
func (*PrivateKey) UnmarshalJSON ¶
func (k *PrivateKey) UnmarshalJSON(bs []byte) error
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func ParsePublicKey ¶
func (PublicKey) MarshalJSON ¶
func (*PublicKey) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.