Documentation
¶
Overview ¶
Package ed25519 implements ED25519 digital signature generation and verification with streaming support. It provides ED25519 operations using the standard ED25519 algorithm with support for high-performance digital signatures and verification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStreamSigner ¶
func NewStreamSigner(w io.Writer, kp *keypair.Ed25519KeyPair) io.WriteCloser
NewStreamSigner creates a new streaming ED25519 signer.
func NewStreamVerifier ¶
func NewStreamVerifier(r io.Reader, kp *keypair.Ed25519KeyPair) io.WriteCloser
NewStreamVerifier creates a new streaming ED25519 verifier.
Types ¶
type StdSigner ¶
type StdSigner struct {
Error error // Error field for storing signature errors
// contains filtered or unexported fields
}
StdSigner represents a standard ED25519 signer.
func NewStdSigner ¶
func NewStdSigner(kp *keypair.Ed25519KeyPair) *StdSigner
NewStdSigner creates a new standard ED25519 signer.
type StdVerifier ¶
type StdVerifier struct {
Error error // Error field for storing verification errors
// contains filtered or unexported fields
}
StdVerifier represents a standard ED25519 verifier.
func NewStdVerifier ¶
func NewStdVerifier(kp *keypair.Ed25519KeyPair) *StdVerifier
NewStdVerifier creates a new standard ED25519 verifier.
func (*StdVerifier) Verify ¶
func (v *StdVerifier) Verify(src, sign []byte) (valid bool, err error)
Verify verifies the signature for the given data using the ED25519 public key.
type StreamSigner ¶
type StreamSigner struct {
Error error // Error field for storing signature errors
// contains filtered or unexported fields
}
StreamSigner represents a streaming ED25519 signer that processes data in chunks.
func (*StreamSigner) Close ¶
func (s *StreamSigner) Close() error
Close generates the signature and writes it to the underlying writer.
func (*StreamSigner) Write ¶
func (s *StreamSigner) Write(p []byte) (n int, err error)
Write accumulates data for signing.
type StreamVerifier ¶
type StreamVerifier struct {
Error error // Error field for storing verification errors
// contains filtered or unexported fields
}
StreamVerifier represents a streaming ED25519 verifier that processes data in chunks.
func (*StreamVerifier) Close ¶
func (v *StreamVerifier) Close() error
Close performs the final verification.
func (*StreamVerifier) Write ¶
func (v *StreamVerifier) Write(p []byte) (n int, err error)
Write accumulates data for verification.
type VerifyError ¶
type VerifyError struct {
Err error
}
func (VerifyError) Error ¶
func (e VerifyError) Error() string
Source Files
¶
- ed25519.go
- errors.go