Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asn1DerEncodedMethod ¶
type Asn1DerEncodedMethod struct {
Method
}
type Method ¶
type Method struct {
PrivateKey *ecdsa.PrivateKey
PublicKey *ecdsa.PublicKey
HashFunc func() hash.Hash
Name string
// contains filtered or unexported fields
}
func FromPrivateKey ¶
func FromPrivateKey(privateKey *ecdsa.PrivateKey) (*Method, error)
func (*Method) GoString ¶ added in v1.86.0
GoString writes the method out without its private key, and String and MarshalText write the same.
A method is attached to errors and so to log entries. %#v prints the private key's address only, but %+v of the key and a JSON encoder write its scalar out; the method is written out the same way whichever is used, so that none of them can. The public key is kept, being what tells one method from another in a log.
func (*Method) MarshalText ¶ added in v1.86.0
Click to show internal directories.
Click to hide internal directories.