setup_sk

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKeyType

type PrivateKeyType string
const (
	EDDSA PrivateKeyType = "eddsa"
	ECDSA PrivateKeyType = "ecdsa"
)

type WpPrivateKey

type WpPrivateKey struct {
	Type PrivateKeyType `json:"type"`
	Key  string         `json:"key"`
}

type WpSigningKey

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

func NewWpSigningKey

func NewWpSigningKey(wpPrivateKey *WpPrivateKey) (*WpSigningKey, error)

func (*WpSigningKey) PublicKey

func (wsk *WpSigningKey) PublicKey() string

func (*WpSigningKey) Sign

func (wsk *WpSigningKey) Sign(msg []byte) string

Jump to

Keyboard shortcuts

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