workflowkey

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 10 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 {
	// contains filtered or unexported fields
}

func FromEncryptedJSON

func FromEncryptedJSON(keyJSON []byte, password string) (Key, error)

func KeyFor

func KeyFor(raw internal.Raw) Key

func MustNewXXXTestingOnly

func MustNewXXXTestingOnly(k *big.Int) Key

func New

func New() (Key, error)

func (Key) Decrypt

func (k Key) Decrypt(ciphertext []byte) (plaintext []byte, err error)

Decrypt decrypts a message that was encrypted using the private key

func (Key) Encrypt

func (k Key) Encrypt(plaintext []byte) ([]byte, error)

Encrypt encrypts a message using the public key

func (Key) ID

func (k Key) ID() string

func (Key) PublicKey

func (k Key) PublicKey() [curve25519.PointSize]byte

func (Key) PublicKeyString

func (k Key) PublicKeyString() string

func (Key) Raw

func (k Key) Raw() internal.Raw

func (Key) ToEncryptedJSON

func (k Key) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)

Jump to

Keyboard shortcuts

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