Skip to content

Commit d2275f4

Browse files
authored
Fix ed25519 signature usage in getProof (#2472)
Corrected the implementation of the getProof function to use the standard ed25519.Sign method for generating signatures. The previous code incorrectly attempted to use a non-existent Sign method on ed25519.PrivateKey, which would not compile. This change ensures proper and secure signature generation according to the Go standard library. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved reliability of signature generation for proofs, ensuring more consistent and secure handling of digital signatures. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 110ca3e commit d2275f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

da/cmd/local-da/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (d *LocalDA) getHash(blob []byte) []byte {
225225
}
226226

227227
func (d *LocalDA) getProof(id, blob []byte) []byte {
228-
sign, _ := d.privKey.Sign(rand.Reader, d.getHash(blob), &ed25519.Options{})
228+
sign := ed25519.Sign(d.privKey, d.getHash(blob))
229229
return sign
230230
}
231231

0 commit comments

Comments
 (0)