(opts ...signature.PublicKeyOption)
| 80 | type simpleFakeSigner struct{} |
| 81 | |
| 82 | func (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 | |
| 90 | func (s *simpleFakeSigner) SignMessage(message io.Reader, opts ...signature.SignOption) ([]byte, error) { |
| 91 | return []byte("fake-signature"), nil |
no outgoing calls
no test coverage detected