MCPcopy Create free account
hub / github.com/conforma/cli / PublicKey

Method PublicKey

cmd/validate/image_test.go:82–88  ·  view source on GitHub ↗
(opts ...signature.PublicKeyOption)

Source from the content-addressed store, hash-verified

80type simpleFakeSigner struct{}
81
82func (s *simpleFakeSigner) PublicKey(opts ...signature.PublicKeyOption) (crypto.PublicKey, error) {
83 return &ecdsa.PublicKey{
84 Curve: elliptic.P256(),
85 X: big.NewInt(1),
86 Y: big.NewInt(1),
87 }, nil
88}
89
90func (s *simpleFakeSigner) SignMessage(message io.Reader, opts ...signature.SignOption) ([]byte, error) {
91 return []byte("fake-signature"), nil

Calls

no outgoing calls

Tested by

no test coverage detected