csakey

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyV2

type KeyV2 struct {
	PublicKey ed25519.PublicKey
	Version   int
	// contains filtered or unexported fields
}

func FromEncryptedJSON

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

func KeyFor

func KeyFor(raw internal.Raw) KeyV2

func MustNewV2XXXTestingOnly

func MustNewV2XXXTestingOnly(k *big.Int) KeyV2

func NewV2

func NewV2() (KeyV2, error)

func (KeyV2) ID

func (k KeyV2) ID() string

func (KeyV2) Public

func (k KeyV2) Public() crypto.PublicKey

func (KeyV2) PublicKeyString

func (k KeyV2) PublicKeyString() string

func (KeyV2) Raw

func (k KeyV2) Raw() internal.Raw

func (KeyV2) Sign

func (k KeyV2) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) (signature []byte, err error)

func (KeyV2) StaticSizedPublicKey

func (k KeyV2) StaticSizedPublicKey() (sspk credentials.StaticSizedPublicKey)

func (KeyV2) ToEncryptedJSON

func (k KeyV2) 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