Skip to content

Commit dc02f69

Browse files
committed
oops
1 parent 9efec78 commit dc02f69

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

minpk/minpk.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package minpk
1919
import (
2020
"bytes"
2121
"crypto"
22+
"encoding/hex"
2223
"errors"
2324
"fmt"
2425
"io"
@@ -149,7 +150,7 @@ func (sig *Signature) Bytes() []byte {
149150

150151
// required by Signatory
151152
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()))
153154
}
154155

155156
func (sig *Signature) IsValid() error {

minsig/minsig.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package minsig
1919
import (
2020
"bytes"
2121
"crypto"
22+
"encoding/hex"
2223
"errors"
2324
"fmt"
2425
"io"
@@ -148,7 +149,7 @@ func (sig *Signature) Bytes() []byte {
148149
}
149150

150151
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()))
152153
}
153154

154155
func (sig *Signature) IsValid() error {

0 commit comments

Comments
 (0)