We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1150175 commit fd7f326Copy full SHA for fd7f326
utils/crypto/bls/secret.go
@@ -30,8 +30,6 @@ type Signer interface {
30
PublicKey() *PublicKey
31
Sign(msg []byte) *Signature
32
SignProofOfPossession(msg []byte) *Signature
33
- // TODO: delete me
34
- ToBytes() []byte
35
}
36
37
type LocalSigner struct {
@@ -59,7 +57,7 @@ func (s *LocalSigner) ToBytes() []byte {
59
57
60
58
// SecretKeyFromBytes parses the big-endian format of the secret key into a
61
// secret key.
62
-func SecretKeyFromBytes(skBytes []byte) (Signer, error) {
+func SecretKeyFromBytes(skBytes []byte) (*LocalSigner, error) {
63
sk := new(SecretKey).Deserialize(skBytes)
64
if sk == nil {
65
return nil, errFailedSecretKeyDeserialize
0 commit comments