File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package minpk
19
19
import (
20
20
"bytes"
21
21
"crypto"
22
+ "encoding/hex"
22
23
"errors"
23
24
"fmt"
24
25
"io"
@@ -149,7 +150,7 @@ func (sig *Signature) Bytes() []byte {
149
150
150
151
// required by Signatory
151
152
func (sig * Signature ) String () string {
152
- return fmt .Sprintf ("bls12-381-minpk:[%s]" , sig .Bytes ())
153
+ return fmt .Sprintf ("bls12-381-minpk:[%s]" , hex . EncodeToString ( sig .Bytes () ))
153
154
}
154
155
155
156
func (sig * Signature ) IsValid () error {
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package minsig
19
19
import (
20
20
"bytes"
21
21
"crypto"
22
+ "encoding/hex"
22
23
"errors"
23
24
"fmt"
24
25
"io"
@@ -148,7 +149,7 @@ func (sig *Signature) Bytes() []byte {
148
149
}
149
150
150
151
func (sig * Signature ) String () string {
151
- return fmt .Sprintf ("bls12-381-minsig:[%s]" , sig .Bytes ())
152
+ return fmt .Sprintf ("bls12-381-minsig:[%s]" , hex . EncodeToString ( sig .Bytes () ))
152
153
}
153
154
154
155
func (sig * Signature ) IsValid () error {
You can’t perform that action at this time.
0 commit comments