Documentation ¶
Index ¶
- func JoinChannel(ktx, pubKey, signedKey, ktxCertFileName string, keyCollection *ED25519Keys) *websocket.Conn
- func OSCheck()
- func Send(msg string, conn *websocket.Conn) error
- func Sign(keyCollection *ED25519Keys, msg string) string
- func SignKey(keyCollection *ED25519Keys, publicKey string) string
- func VerifySignature(publicKey string, msg, signature string) bool
- func VerifySignedKey(publicKey string, publicSigningKey string, signature string) bool
- func Version() string
- type ED25519Keys
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinChannel ¶
func JoinChannel(ktx, pubKey, signedKey, ktxCertFileName string, keyCollection *ED25519Keys) *websocket.Conn
JoinChannel Takes a ktx address with port, boolean for new or returning, and keys. Outputs a websocket and CA cert
func Sign ¶
func Sign(keyCollection *ED25519Keys, msg string) string
Sign Takes keys and a message to sign
func SignKey ¶
func SignKey(keyCollection *ED25519Keys, publicKey string) string
SignKey Takes a key set and an ed25519 public key string parameter to sign a key. Returns a signature of the key signed with the key set.
func VerifySignature ¶
VerifySignature Takes a public key, a message, and a signature. This will return true if it verifies correctly.
func VerifySignedKey ¶
VerifySignedKey Takes a public key, a public signing key, and a signature. This will return true if it verifies correctly.
Types ¶
type ED25519Keys ¶
type ED25519Keys struct {
// contains filtered or unexported fields
}
ED25519Keys This is a struct for holding keys and a signature.
func GenerateKeys ¶
func GenerateKeys() *ED25519Keys
GenerateKeys Generates ed25519 keyset as strings
Click to show internal directories.
Click to hide internal directories.