repo_signing

package
v0.0.0-...-791c77c Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewKeyFromSeed = ed25519.NewKeyFromSeed

Functions

func SignBase64

func SignBase64(key PrivateKey, message []byte) (signature string, err error)

func VerifyBase64Signature

func VerifyBase64Signature(
	publicKey PublicKey,
	message []byte,
	signatureBase64 string,
) (err error)

Types

type PrivateKey

type PrivateKey = ed25519.PrivateKey

type PublicKey

type PublicKey = ed25519.PublicKey

type TomlPrivateKeyV0

type TomlPrivateKeyV0 struct {
	PrivateKey bech32.Value `toml:"private-key,omitempty"`
}

func (*TomlPrivateKeyV0) GeneratePrivateKey

func (b *TomlPrivateKeyV0) GeneratePrivateKey() (err error)

func (TomlPrivateKeyV0) GetPrivateKey

func (b TomlPrivateKeyV0) GetPrivateKey() PrivateKey

func (*TomlPrivateKeyV0) GetPublicKey

func (b *TomlPrivateKeyV0) GetPublicKey() TomlPublicKeyV0

func (*TomlPrivateKeyV0) SetPrivateKey

func (b *TomlPrivateKeyV0) SetPrivateKey(key crypto.PrivateKey)

type TomlPublicKeyV0

type TomlPublicKeyV0 struct {
	PublicKey bech32.Value `toml:"public-key,omitempty"`
}

func (TomlPublicKeyV0) GetPublicKey

func (b TomlPublicKeyV0) GetPublicKey() PublicKey

func (*TomlPublicKeyV0) SetPublicKey

func (b *TomlPublicKeyV0) SetPublicKey(key crypto.PublicKey)

Jump to

Keyboard shortcuts

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