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
Click to show internal directories.
Click to hide internal directories.