Skip to content

Commit fd7f326

Browse files
Remove serializing the key from the signer interface
1 parent 1150175 commit fd7f326

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utils/crypto/bls/secret.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ type Signer interface {
3030
PublicKey() *PublicKey
3131
Sign(msg []byte) *Signature
3232
SignProofOfPossession(msg []byte) *Signature
33-
// TODO: delete me
34-
ToBytes() []byte
3533
}
3634

3735
type LocalSigner struct {
@@ -59,7 +57,7 @@ func (s *LocalSigner) ToBytes() []byte {
5957

6058
// SecretKeyFromBytes parses the big-endian format of the secret key into a
6159
// secret key.
62-
func SecretKeyFromBytes(skBytes []byte) (Signer, error) {
60+
func SecretKeyFromBytes(skBytes []byte) (*LocalSigner, error) {
6361
sk := new(SecretKey).Deserialize(skBytes)
6462
if sk == nil {
6563
return nil, errFailedSecretKeyDeserialize

0 commit comments

Comments
 (0)