Go stdlib package — crypto/ed25519. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.GenerateKey()NeutralGenerateKey(rand io.Reader) (PublicKey, PrivateKey, error)
GenerateKey generates a public/private key pair using entropy from rand.
.NewKeyFromSeed()NeutralNewKeyFromSeed(seed []byte) PrivateKey
NewKeyFromSeed calculates a private key from a seed. It will panic if
.PrivateKey.Equal()NeutralPrivateKey.Equal(x crypto.PrivateKey) bool
Equal reports whether priv and x have the same value.
.PrivateKey.Public()NeutralPrivateKey.Public() crypto.PublicKey
Public returns the [PublicKey] corresponding to priv.
.PrivateKey.Seed()NeutralPrivateKey.Seed() []byte
Seed returns the private key seed corresponding to priv. It is provided for
.PrivateKey.Sign()NeutralPrivateKey.Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) ([]byte, error)
Sign signs the given message with priv. rand is ignored and can be nil.
.PublicKey.Equal()NeutralPublicKey.Equal(x crypto.PublicKey) bool
Equal reports whether pub and x have the same value.
.Sign()NeutralSign(privateKey PrivateKey, message []byte) []byte
Sign signs the message with privateKey and returns a signature. It will
.Verify()NeutralVerify(publicKey PublicKey, message []byte, sig []byte) bool
Verify reports whether sig is a valid signature of message by publicKey. It
| FQN | Field | |
|---|---|---|
| crypto/ed25519 | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # crypto/ed25519