For test Signature.Sign mock.
()
| 38 | |
| 39 | // For test Signature.Sign mock. |
| 40 | func init() { |
| 41 | priv, _ := ec.NewPrivateKey(ec.S256()) |
| 42 | ss, _ := (*ec.PrivateKey)(priv).Sign(([]byte)("00000000000000000000000000000000")) |
| 43 | bypassS = (*Signature)(ss) |
| 44 | verifyCache, _ = lru.New(256) |
| 45 | } |
| 46 | |
| 47 | // Signature is a type representing an ecdsa signature. |
| 48 | type Signature struct { |