Internal
internal/adapters/sign
import "github.com/nilstate/scafld/v2/internal/adapters/sign"
Package sign signs receipts with an Ed25519 private key kept on the host, and refuses a key file that its group or other users can read.
Types
type Ed25519Signer
Source: internal/adapters/sign/ed25519.go:18
Ed25519Signer loads an on-host private key and signs canonical receipt bytes.
type Ed25519Signer struct {
PrivateKeyPath string
}Fields
PrivateKeyPath string
func (s Ed25519Signer) Sign(body receipt.Body) (receipt.DetachedSignature, error)
Source: internal/adapters/sign/ed25519.go:23
Sign signs the canonical receipt body and returns its detached signature.
func (s Ed25519Signer) SignCanonical(canonical []byte) (receipt.DetachedSignature, error)
Source: internal/adapters/sign/ed25519.go:32
SignCanonical signs caller-supplied canonical receipt bytes.