csakey

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	ID        uint
	PublicKey crypto.PublicKey

	EncryptedPrivateKey crypto.EncryptedPrivateKey
	CreatedAt           time.Time
	UpdatedAt           time.Time
	// contains filtered or unexported fields
}

func New

func New(passphrase string, scryptParams utils.ScryptParams) (*Key, error)

New creates a new CSA key consisting of an ed25519 key. It encrypts the Key with the passphrase.

func (*Key) Unlock

func (k *Key) Unlock(password string) error

Jump to

Keyboard shortcuts

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