nacl

package
v0.0.0-...-d304510 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertKeyFromStringToByte

func ConvertKeyFromStringToByte(key string) (x [32]byte, err error)

ConvertKeyFromStringToByte converts a key from string type to byte type

func Decrypt

func Decrypt(recipientPrivateKey, senderPublicKey [32]byte, message string) (string, error)

Decrypt decrypts a message by recipient's private key and sender's public key

func Encrypt

func Encrypt(senderPrivateKey, recipientPublicKey [32]byte, message string) (string, error)

Encrypt encrypts a message by sender's private key and recipient's public key

func PublicKeyNaCl

func PublicKeyNaCl(decentralizedIdentifier string) (string, error)

PublicKeyNaCl returns a public key in NaCl form by a DID

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL