csakey

package
v0.10.14 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 5 Imported by: 1

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

func (*Key) Unsafe_GetPrivateKey added in v0.10.9

func (k *Key) Unsafe_GetPrivateKey() ([]byte, error)

Jump to

Keyboard shortcuts

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