k1

package
v0.1.32-ci.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

d1-client-go/k1 is a client library for CYBERCRYPT K1.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the Key Server client.

func NewClient

func NewClient(ctx context.Context, endpoint, certPath, kik string, kikID uuid.UUID) (*Client, error)

NewClient creates a new Key Server client.

func (*Client) GetKeys

func (c *Client) GetKeys() (key.Keys, error)

GetKeys establishes a connection with a specified Key Server and retrieves a Key Set.

type GetKeySetRequest

type GetKeySetRequest struct {
	KikID string `json:"kikId"`
	Nonce []byte `json:"nonce"`
}

GetKeySetRequest is the request made during a GetKeySet call.

type GetKeySetResponse

type GetKeySetResponse struct {
	Nonce       []byte `json:"nonce"`
	WrappedKeys []byte `json:"wrappedKeys"`
}

GetKeySetResponse is the response to a GetKeySet call.

Jump to

Keyboard shortcuts

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